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

/* Use same CSS variables from navbar.css */
:root {
    --primary-navy: #1a2332;
    --primary-gold: #d4af37;
    --accent-teal: #2c5f5d;
    --accent-burgundy: #72242c;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e8ebed;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Work Sans', sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */

.courses-hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c3e50 100%);
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 95, 93, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   FILTERS SECTION
   ======================================== */

.filters-section {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 2px solid var(--light-gray);
    position: sticky;
    top: 80px;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: 2px solid var(--light-gray);
    background: var(--white);
    color: var(--dark-gray);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: capitalize;
}

.filter-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #c99d2e 100%);
    border-color: var(--primary-gold);
    color: var(--primary-navy);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* ========================================
   COURSES GRID SECTION
   ======================================== */

.courses-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    padding: 4rem 0;
    min-height: 60vh;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   COURSE CARD STYLES
   ======================================== */

.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--accent-teal) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.course-card:hover::before {
    transform: scaleX(1);
}

/* Course Image */
.course-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-teal) 100%);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

/* Image Overlay */
.course-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-image::after {
    opacity: 1;
}

/* Level Badge */
.level-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-gold);
    color: var(--primary-navy);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Course Content */
.course-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: var(--primary-gold);
}

.course-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Course Meta */
.course-meta {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--accent-teal);
}

/* Course Footer */
.course-footer {
    padding: 0 1.75rem 1.75rem;
}

.btn-view-course {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-navy);
    color: var(--white);
    border: 2px solid var(--primary-navy);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-view-course:hover {
    background: transparent;
    color: var(--primary-navy);
    transform: translateY(-2px);
}

.btn-view-course i {
    transition: transform 0.3s ease;
}

.course-card:hover .btn-view-course i {
    transform: translateX(5px);
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */

.loading-state,
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--medium-gray);
}

.loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: var(--font-display);
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-teal) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--primary-gold);
    color: var(--primary-navy);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-cta:hover {
    background: #f0c851;
    color: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4,
.footer-section h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 991.98px) {
    .filters-section {
        top: 70px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .filters-section {
        padding: 1.5rem 0;
    }
    
    .filter-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-image {
        height: 200px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .courses-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .course-title {
        font-size: 1.3rem;
    }
    
    .btn-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}
