/* ============================================
   COURSES LIST PAGE STYLES
   ============================================ */

.courses-hero {
    background: linear-gradient(135deg, #0C2B4B 0%, #1a3a66 50%, #2a4a7a 100%);
    padding: 80px 0 60px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='50' font-size='80' opacity='0.03'%3E★%3C/text%3E%3C/svg%3E") repeat;
    background-size: 100px 100px;
}

.courses-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.courses-hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.filter-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.filter-section .form-control,
.filter-section .form-select {
    border-radius: 10px;
    border: 2px solid #e8edf2;
    padding: 10px 16px;
    font-size: 14px;
    color: #0C2B4B;
    transition: all 0.3s ease;
}

.filter-section .form-control:focus,
.filter-section .form-select:focus {
    border-color: #F3BD00;
    box-shadow: 0 0 0 4px rgba(243, 189, 0, 0.1);
}

.filter-section .form-label {
    font-weight: 600;
    color: #0C2B4B;
    font-size: 13px;
    margin-bottom: 4px;
}

.btn-filter-reset {
    background: #f0f4f8;
    color: #555;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-filter-reset:hover {
    background: #e0e4e8;
    color: #0C2B4B;
}

.course-count-badge {
    background: #F3BD00;
    color: #0C2B4B;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.course-count-badge i {
    font-size: 16px;
}

.course-card-white {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-white:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.course-image-wrapper-white {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.course-image-white {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card-white:hover .course-image-white {
    transform: scale(1.05);
}

.course-price-badge-white {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #F3BD00;
    padding: 10px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(243, 189, 0, 0.4);
    z-index: 2;
    min-width: 75px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.price-current-white {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.price-original-white {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.discount-badge-white {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.course-overlay-white {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 43, 75, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.course-card-white:hover .course-overlay-white {
    opacity: 1;
}

.course-overlay-content-white {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card-white:hover .course-overlay-content-white {
    transform: translateY(0);
}

.btn-white-detail {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    min-width: 170px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-white-detail:hover {
    background: rgba(243, 189, 0, 0.3);
    border-color: #F3BD00;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 189, 0, 0.15);
}

.btn-white-cart {
    background: #F3BD00;
    color: #0C2B4B;
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    min-width: 170px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(243, 189, 0, 0.2);
}

.btn-white-cart:hover {
    background: #e0a800;
    color: #0C2B4B;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(243, 189, 0, 0.3);
}

.btn-white-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-white-cart.added {
    background: #28a745;
    color: #fff;
}

.course-content-white {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.course-title-white {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0C2B4B;
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: 46px;
}

.course-description-white {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.course-meta-white {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.meta-item-white {
    font-size: 0.7rem;
    color: #555555;
    background: #f0f4f8;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-item-white i {
    font-size: 0.6rem;
}

.course-benefits-white {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.benefit-tag-white {
    font-size: 0.7rem;
    color: #555555;
    background: #f0f4f8;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.benefit-tag-white.more {
    background: #0C2B4B;
    color: #ffffff;
}

.course-footer-white {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #e8edf2;
    margin-top: auto;
    gap: 6px;
}

.course-detail-link-white {
    font-size: 0.7rem;
    color: #888888;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    order: 1;
    flex: 1;
}

.course-detail-link-white:hover {
    color: #F3BD00;
    text-decoration: none;
}

.course-price-footer-white {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0C2B4B;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    order: 2;
}

.price-original-footer-white {
    font-size: 0.7rem;
    color: #999999;
    text-decoration: line-through;
    font-weight: 400;
}

.course-cart-btn-white {
    font-size: 0.7rem;
    color: #F3BD00;
    background: transparent;
    border: 1px solid rgba(243, 189, 0, 0.3);
    padding: 4px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    order: 3;
}

.course-cart-btn-white:hover {
    background: #F3BD00;
    color: #0C2B4B;
    border-color: #F3BD00;
}

.course-cart-btn-white:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.course-cart-btn-white.added {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.empty-courses {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.empty-courses i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-courses h3 {
    color: #0C2B4B;
    margin-bottom: 10px;
}

.btn-white-primary {
    display: inline-block;
    background: #F3BD00;
    color: #0C2B4B;
    padding: 14px 44px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(243, 189, 0, 0.3);
}

.btn-white-primary:hover {
    background: #e0a800;
    color: #0C2B4B;
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(243, 189, 0, 0.4);
}

@media (max-width: 768px) {
    .courses-hero h1 {
        font-size: 2rem;
    }
    .courses-hero p {
        font-size: 1rem;
    }
    .course-image-white {
        height: 180px;
    }
    .course-price-badge-white {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        min-width: 65px;
    }
    .price-current-white {
        font-size: 1.2rem;
    }
    .course-content-white {
        padding: 16px 18px 18px;
    }
    .course-title-white {
        font-size: 0.95rem;
        min-height: auto;
    }
    .btn-white-detail,
    .btn-white-cart {
        padding: 8px 20px;
        font-size: 13px;
        min-width: 140px;
    }
    .course-overlay-content-white {
        gap: 8px;
    }
    .filter-section {
        padding: 16px 18px;
    }
    .course-footer-white {
        flex-wrap: wrap;
        justify-content: center;
    }
    .course-detail-link-white {
        flex: 0 0 100%;
        justify-content: center;
    }
    .course-price-footer-white {
        order: 1;
    }
    .course-cart-btn-white {
        order: 2;
    }
}

@media (max-width: 576px) {
    .course-image-white {
        height: 160px;
    }
    .btn-white-detail,
    .btn-white-cart {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 120px;
    }
    .meta-item-white {
        font-size: 0.6rem;
        padding: 2px 10px;
    }
    .benefit-tag-white {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    .course-detail-link-white,
    .course-cart-btn-white {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    .filter-section .row > div {
        margin-bottom: 10px;
    }
}