/* Elementor Widgets Piano Styles */

/* Tính Năng Chính Widget */
.tinh-nang-chinh-widget {
    margin: 20px 0;
}

.tinh-nang-chinh-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.tinh-nang-chinh-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column; /* Changed for better card layout */
    align-items: center; /* Center content in the card */
    text-align: center; /* Center text */
    gap: 15px;
    padding: 0;
    background: #fff;
    transition: box-shadow 0.3s ease;
    overflow: hidden; /* Ensure image corners are clipped */
}


.feature-image {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    flex: 1;
    padding: 20px 0;
}

.feature-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.feature-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

/* Responsive cho Tính Năng Chính */
@media (max-width: 1024px) { /* Tablet */
    .tinh-nang-chinh-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) { /* Mobile */
    .tinh-nang-chinh-list {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column; /* Match desktop layout */
        text-align: center;
    }

    .feature-image {
        width: 100%; /* Full width on mobile */
        aspect-ratio: 3 / 2;
    }
}

/* Kích Thước & Thông Số Kỹ Thuật Widget */
.kt-tskt-wrapper {
    margin: 20px 0;
}

.kt-tskt-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* Table Style */
.kt-tskt-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kt-tskt-table th,
.kt-tskt-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.kt-tskt-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.kt-tskt-table td {
    background-color: #fff;
    color: #666;
    font-size: 14px;
}

.kt-tskt-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.kt-tskt-table tr:hover td {
    background-color: #f0f8ff;
}

/* List Style */
.kt-tskt-list {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kt-tskt-content {
    line-height: 1.6;
    color: #666;
}

.kt-tskt-content p {
    margin: 0 0 10px 0;
}

.kt-tskt-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive cho bảng */
@media (max-width: 768px) {
    .kt-tskt-table {
        font-size: 12px;
    }
    
    .kt-tskt-table th,
    .kt-tskt-table td {
        padding: 8px 10px;
    }
    
    .kt-tskt-table th {
        font-size: 14px;
    }
    
    .kt-tskt-table td {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .kt-tskt-table,
    .kt-tskt-table thead,
    .kt-tskt-table tbody,
    .kt-tskt-table th,
    .kt-tskt-table td,
    .kt-tskt-table tr {
        display: block;
    }
    
    .kt-tskt-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .kt-tskt-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 6px;
    }
    
    .kt-tskt-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .kt-tskt-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #2c3e50;
    }
}

/* General Utilities */
.elementor-widget-tinh_nang_chinh,
.elementor-widget-kich_thuoc_thong_so {
    margin-bottom: 30px;
}

/* Animation */
.tinh-nang-item,
.kt-tskt-table,
.kt-tskt-list {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}