/**
 * Ellora Academy Theme - Mobile-First Stylesheet
 * 
 * Base: Mobile (320-480px)
 * Tablet: 768px+
 * Desktop: 1024px+
 * 
 * @package Ellora_Academy
 */

/* ========================================
   1. CSS RESET & BASE STYLES
======================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2d2d2d;
    background-color: #ffffff;
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #135e96;
    text-decoration: underline;
}

/* ========================================
   2. TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }      /* 40px */
h2 { font-size: 2rem; }   /* 32px */
h3 { font-size: 1.75rem; }    /* 28px */
h4 { font-size: 1.5rem; }   /* 24px */
h5 { font-size: 1.25rem; }  /* 20px */
h6 { font-size: 1.125rem; }      /* 18px */

p {
    margin: 0 0 1.5rem;
}

/* ========================================
   3. LAYOUT COMPONENTS
======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 0;
}

/* ========================================
   4. HEADER & NAVIGATION (Mobile First)
======================================== */

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state - add shadow for depth */
.site-header.scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title a:hover {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.site-description {
    display: none;
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.custom-logo-link {
    display: block;
    max-width: 200px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    min-height: 44px;
    min-width: 44px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Primary Navigation - Mobile */
.main-navigation {
    position: static;
}

/* Hide menu items on mobile by default */
.main-navigation ul {
    position: fixed;
    top: var(--header-height, 106px);
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Solid background for mobile menu */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

/* Show menu items when toggled */
.main-navigation.toggled ul {
    max-height: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    /* Positioning and hiding is done in rule above */
}

.main-navigation li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: inherit; /* Use nav link color from Customizer */
    text-decoration: none;
    font-weight: 500;
    min-height: 48px;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a:active {
    color: inherit; /* Use nav hover color from Customizer */
    text-decoration: none;
    outline: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

.main-navigation a:hover::before,
.main-navigation a:focus::before,
.main-navigation a:active::before {
    width: 4px;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: inherit; /* Use nav hover color from Customizer */
    font-weight: 700;
    outline: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Contact Buttons in Header (Mobile) */
.header-contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0 20px 15px;
}

.header-contact-buttons .btn {
    flex: 1;
    text-align: center;
}

/* ========================================
   5. BUTTONS (Mobile Optimized)
======================================== */

.btn,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #fff;
    color: #667eea;
    border: 2px solid #fff;
    font-weight: 700;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(255, 255, 255, 0.9);
    color: #764ba2;
    border-color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.btn-call {
    background-color: #25D366;
    color: #fff;
}

.btn-call .icon {
    vertical-align: middle;
    margin-right: 4px;
}

.btn-call:hover,
.btn-call:focus {
    background-color: #128C7E;
    color: #fff;
    text-decoration: none;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #128C7E;
    color: #fff;
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.contact-buttons .btn {
    width: 100%;
}

/* ========================================
   6. HERO SECTION (Homepage)
======================================== */

/* Hero Slider with Featured Courses */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding-bottom: 40px; /* Add spacing on mobile before next section */
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Container for hero to handle flex layout */
.hero-slide .container {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    align-items: center;
    gap: 20px; /* Reduced gap for mobile */
    width: 100%;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    min-height: auto; /* Auto height on mobile */
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 30px 0; /* Reduced padding for mobile */
}

.hero-slide-image {
    flex: 0 0 100%; /* Full width on mobile */
    max-width: 100%; /* Full width on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0; /* Reduced padding */
    order: 2; /* Image comes after content on mobile */
}

.hero-slide-image img {
    width: 100%;
    height: auto;
    max-height: 300px; /* Smaller on mobile */
    object-fit: contain;
    border-radius: 8px;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    display: none;
}

/* Promotion slides use background image with overlay */
.hero-slide-promotion {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-promotion .hero-slide-overlay {
    display: block;
}

.hero-slide-promotion .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slide-content-centered {
    text-align: center;
    max-width: 800px;
    color: #fff;
}

.hero-slide-content-centered h1 {
    color: #fff;
}

.hero-slide-content-centered .hero-excerpt {
    color: #fff;
    opacity: 0.95;
}

.hero-slide-content-centered .hero-actions {
    justify-content: center;
}

.hero-slide-content {
    flex: 1;
    color: #333;
    padding: 20px; /* Reduced padding on mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%; /* Full width on mobile */
    order: 1; /* Content comes first on mobile */
    width: 100%; /* Ensure full width */
}

/* Full width content when no image */
.hero-slide-content:only-child {
    max-width: 100%;
}

.hero-category {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 6px 16px; /* Smaller padding for mobile */
    border-radius: 20px;
    font-size: 0.75rem; /* Smaller font for mobile */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Reduced letter spacing */
    margin-bottom: 12px;
    width: auto;
    align-self: flex-start;
}

.hero-slide-content h1 {
    color: #1a1a1a;
    font-size: 1.75rem; /* Smaller for mobile */
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero-excerpt {
    font-size: 1rem; /* Smaller for mobile */
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Smaller gap for mobile */
    margin-bottom: 20px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5; /* Solid background for mobile */
    padding: 6px 12px; /* Smaller padding */
    border-radius: 16px;
    font-size: 0.8125rem; /* Smaller font */
    font-weight: 500;
    color: #333; /* Dark text for contrast */
    border: 1px solid #e0e0e0;
}

.meta-badge-cdit {
    padding: 5px 15px;
}

.cdit-badge-hero {
    height: 32px;
    width: auto;
    display: block;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-actions .btn {
    width: 100%;
}

/* Hide secondary button on mobile */
.hero-actions .btn-secondary {
    display: none;
}

/* Hero Slider Navigation */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9); /* More visible on mobile */
    color: #667eea;
    border: none;
    padding: 8px; /* Smaller padding */
    cursor: pointer;
    min-height: 40px; /* Smaller touch target */
    min-width: 40px;
    border-radius: 50%;
    font-size: 20px; /* Smaller icon */
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-slider-nav.prev { left: 10px; } /* Closer to edge on mobile */
.hero-slider-nav.next { right: 10px; }

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px 0;
    position: relative; /* Changed from absolute for mobile */
    margin-top: 20px; /* Add space above dots */
    left: 0;
    right: 0;
    z-index: 10;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.6);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.hero-slider-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slider-dot.active::after {
    opacity: 1;
}

/* Original Hero Section (Fallback) */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center top;
    will-change: transform, opacity, filter;
}

.hero-subtitle {
    display: block;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 600;
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    font-size: 0.9375rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-cta .btn {
    width: 100%;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
}

/* ========================================
   7. COURSES (Archive & Cards)
======================================== */

/* Courses section container */
section:has(.courses-grid),
.courses-section {
    position: relative;
    z-index: 10;
    background: #ffffff;
    padding: 80px 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    margin-top: -2px; /* Prevent gap during transition */
}

.courses-highlights {
    padding: 80px 0;
    background: #fafbfc;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 40px 0;
}

.course-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.course-card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    aspect-ratio: 16/10;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

.course-category-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
}

.course-category-badge-overlay {
    display: inline-block;
    background: rgba(255, 255, 255, 0.98);
    color: #667eea;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.course-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title {
    margin: 0 0 15px;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.course-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-card-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.course-card-excerpt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    flex: 1;
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-top: 1px solid #e8e8e8;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #555;
}

.meta-icon {
    color: #667eea;
    flex-shrink: 0;
}

.meta-value {
    font-weight: 600;
    color: #333;
}

/* CDIT Approved Badge - Inline with meta items */
.meta-cdit-badge {
    margin-left: auto;
}

.cdit-badge-inline {
    height: 28px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.course-card:hover .cdit-badge-inline {
    transform: scale(1.1);
}

.meta-item-price {
    margin-left: auto;
}

.meta-price {
    color: #28a745;
    font-size: 1rem;
    font-weight: 700;
}

.btn-course-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

.btn-course-cta:hover .btn-icon {
    transform: translateX(4px);
}

/* Course Categories Filter */
.course-categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.course-categories-filter .filter-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.course-categories-filter .filter-btn:hover {
    background: #e8e8e8;
    border-color: #667eea;
    transform: translateY(-2px);
}

.course-categories-filter .filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Course card filtering animations */
.course-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.course-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.courses-grid {
    position: relative;
    transition: min-height 0.4s ease;
}

/* No results message */
.no-results,
.no-results-filter {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 40px 0;
}

.no-results h2,
.no-results-filter h2 {
    color: #666;
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.no-results p,
.no-results-filter p {
    color: #888;
    font-size: 1.125rem;
    margin-bottom: 25px;
}

/* ========================================
   8. PROMOTIONS SLIDER (Mobile First)
======================================== */

.promotions-slider {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slider-slide {
    min-width: 100%;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    background: #f8f9fa;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 200px);
    display: block;
    object-fit: contain;
}

/* Clickable slide link */
.slider-slide-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slider-slide-link:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.slider-slide-link img {
    transition: filter 0.3s ease;
}

.slider-slide-link:hover img {
    filter: brightness(1.05);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    color: #fff;
    padding: 30px 20px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slider-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h3 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 1.75rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.slide-content p {
    margin: 0;
    font-size: 1.125rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.6;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 15px;
    cursor: pointer;
    min-height: 48px;
    min-width: 48px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev { left: 15px; }
.slider-nav.next { right: 15px; }

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    min-height: 44px;
    min-width: 44px;
    transition: all 0.3s ease;
    position: relative;
}

.slider-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-dot.active::after {
    opacity: 1;
}

.slider-dot:hover {
    transform: scale(1.2);
}

/* ========================================
   9. FOOTER
======================================== */

.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 15px;
}

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

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-widget a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: #bdc3c7;
}

.site-info a {
    color: #ecf0f1;
}

/* Fixed Contact Buttons (Mobile) */
.fixed-contact-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 998;
}

.fixed-contact-buttons .btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

/* Add padding to body when fixed buttons are active */
body.has-fixed-buttons .site-content {
    padding-bottom: 80px;
}

/* ========================================
   10. PAGINATION
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   11. UTILITY CLASSES
======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ========================================
   12. STATS/ACHIEVEMENTS SECTION
======================================== */

.stats-section {
    background: #ffffff;
    padding: 40px 20px; /* Reduced padding on mobile */
    margin: 30px 0 0 0; /* Add top margin for separation */
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    min-width: 120px;
    text-align: center;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 5px;
}

.stat-subtitle {
    font-size: 0.9375rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   13. TABLET BREAKPOINT (768px+)
======================================== */

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    
    .site-header .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .site-description {
        display: block;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .main-navigation {
        position: static;
        max-height: none;
        border: none;
        background: transparent;
        backdrop-filter: none;
    }
    
    .main-navigation ul {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }
    
    .main-navigation li {
        border: none;
    }
    
    .main-navigation a {
        padding: 10px 16px;
        min-height: auto;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .main-navigation a::before {
        display: none;
    }
    
    .main-navigation a:hover,
    .main-navigation a:focus {
        padding-left: 16px;
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a {
        border-left: none;
        padding-left: 16px;
    }
    
    .header-contact-buttons {
        display: none;
    }
    
    .hero-section {
        padding: 100px 20px;
    }
    
    /* Restore horizontal layout on tablet */
    .hero-slide .container {
        flex-direction: row;
        gap: 40px;
    }
    
    .hero-slide {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-slide-image {
        flex: 0 0 45%;
        max-width: 45%;
        padding: 20px;
        order: 2; /* Image on right */
    }
    
    .hero-slide-image img {
        max-height: 500px;
    }
    
    .hero-slide-content {
        max-width: 55%;
        padding: 40px;
        order: 1; /* Content on left */
    }
    
    .hero-slide-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-excerpt {
        font-size: 1.25rem;
        margin-bottom: 25px;
    }
    
    .hero-category {
        padding: 8px 20px;
        font-size: 0.875rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
    
    .hero-meta {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .meta-badge {
        padding: 10px 20px;
        font-size: 0.9375rem;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        color: #333;
        border: none;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .hero-actions .btn {
        width: auto;
        min-width: 200px;
    }
    
    /* Show secondary button on tablet/desktop */
    .hero-actions .btn-secondary {
        display: inline-block;
    }
    
    .hero-slider-nav {
        min-height: 48px;
        min-width: 48px;
        padding: 15px;
        font-size: 28px;
    }
    
    .hero-slider-nav.prev { left: 40px; }
    .hero-slider-nav.next { right: 40px; }
    
    /* Restore absolute positioning for dots on tablet/desktop */
    .hero-slider-dots {
        position: absolute;
        bottom: 30px;
        margin-top: 0;
    }
    
    .hero-slider-section {
        padding-bottom: 0; /* Remove extra padding on larger screens */
    }
    
    .stats-section {
        padding: 60px 20px; /* Restore larger padding on tablet */
        margin: 0; /* Remove top margin on tablet */
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
    
    .hero-features {
        gap: 30px;
    }
    
    .hero-feature {
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-cta .btn {
        width: auto;
        min-width: 200px;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .course-card-meta {
        flex-direction: row;
        gap: 20px;
    }
    
    .meta-item-price {
        margin-left: 0;
    }
    
    .contact-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-buttons .btn {
        width: auto;
        min-width: 180px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fixed-contact-buttons {
        display: none;
    }
    
    .slider-slide img {
        width: auto;
        max-width: calc(100% - 40px);
        height: auto;
        max-height: calc(100vh - 200px);
        object-fit: contain;
    }
    
    .slide-content {
        padding: 40px 30px;
    }
    
    .slide-content h3 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.125rem;
    }
    
    /* Stats section - tablet */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 25px;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
        min-width: 100px;
    }
    
    /* Program grid - tablet */
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-category-section h3 {
        font-size: 2.5rem;
    }
}

/* ========================================
   14. DESKTOP BREAKPOINT (1024px+)
======================================== */

@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    
    .container {
        padding: 0 40px;
    }
    
    .site-content {
        padding: 0;
    }
    
    .hero-section {
        padding: 120px 40px;
    }
    
    .hero-slide {
        height: 600px;
    }
    
    .hero-slide-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .section-header h2 {
        font-size: 3.25rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
    
    .slider-slide img {
        height: auto;
        object-fit: contain;
    }
    
    /* Stats section - desktop */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .stats-section {
        padding: 80px 40px;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 3rem;
        min-width: auto;
    }
    
    .stat-label {
        font-size: 1.125rem;
    }
    
    .stat-subtitle {
        font-size: 0.875rem;
    }
    
    /* Program grid - desktop */
    .program-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .program-card {
        height: 320px;
    }
    
    .course-category-section h3 {
        font-size: 2.75rem;
    }
}

/* ========================================
   15. LARGE DESKTOP (1440px+)
======================================== */

@media (min-width: 1440px) {
    .courses-grid {
        gap: 40px;
    }
}

/* ========================================
   15. SINGLE COURSE PAGE
======================================== */

.course-featured-image {
    margin-bottom: 30px;
}

.course-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.course-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.course-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.course-category-badge:hover {
    background: #2271b1;
    color: #fff;
    text-decoration: none;
}

.entry-title {
    margin-bottom: 20px;
}

.entry-content {
    margin-bottom: 40px;
    line-height: 1.8;
}

.course-modules,
.course-who-for {
    background: #f9f9f9;
    padding: 25px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.course-modules h2,
.course-who-for h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #2271b1;
}

.modules-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modules-list li {
    padding: 12px 0 12px 30px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.modules-list li:last-child {
    border-bottom: none;
}

.modules-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.course-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
}

.course-cta h3 {
    color: #fff;
    margin-top: 0;
}

.course-cta p {
    color: rgba(255,255,255,0.95);
}

.related-courses {
    margin: 40px 0;
}

.related-courses h2 {
    margin-bottom: 20px;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* ========================================
   16. ACCESSIBILITY
======================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   17. SCROLL ANIMATIONS
======================================== */

/* Base state for elements that will animate */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Fade in animation */
.animate-on-scroll.fade-in {
    transform: translateY(0);
}

.animate-on-scroll.fade-in.animated {
    opacity: 1;
}

/* Fade and slide up animation */
.animate-on-scroll.fade-slide-up {
    transform: translateY(30px);
}

.animate-on-scroll.fade-slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade and slide in from left */
.animate-on-scroll.fade-slide-left {
    transform: translateX(-30px);
}

.animate-on-scroll.fade-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Fade and slide in from right */
.animate-on-scroll.fade-slide-right {
    transform: translateX(30px);
}

.animate-on-scroll.fade-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.animate-on-scroll.scale-up {
    transform: scale(0.9);
}

.animate-on-scroll.scale-up.animated {
    opacity: 1;
    transform: scale(1);
}

/* Image loading animation */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   18. HERO SECTION ENHANCEMENTS
======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ========================================
   19. LOADING STATES & SKELETON SCREENS
======================================== */

.course-card.loading {
    pointer-events: none;
}

.course-card.loading .course-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ========================================
   20. ENHANCED BUTTON ANIMATIONS
======================================== */

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary,
.btn-secondary,
.btn-call,
.btn-whatsapp {
    position: relative;
    z-index: 1;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 113, 177, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 113, 177, 0);
    }
}

.hero-cta .btn-primary {
    animation: pulse 2s infinite;
}

/* ========================================
   21. COURSE CATEGORY SECTION STYLING
======================================== */

.course-category-section {
    margin-bottom: 60px;
    position: relative;
}

.course-category-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.course-category-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ========================================
   22. RESPONSIVE ENHANCEMENTS
======================================== */

/* Program/Course Category Cards - Pearl Academy style */
.program-categories {
    padding: 80px 0;
    background: #ffffff;
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.program-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.program-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 30px 25px;
    color: #fff;
}

.program-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Simplified Footer - White Background */
.site-footer {
    background: #ffffff;
    color: #666;
    padding: 40px 0;
    margin-top: 0;
    border-top: 1px solid #e8e8e8;
}

.footer-widgets {
    display: none;
}

.site-info {
    text-align: center;
    font-size: 0.9375rem;
    color: #666;
    padding: 0;
}

.site-info p {
    margin: 0;
    line-height: 1.8;
}

.site-info a {
    color: #667eea;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-info a:hover {
    color: #764ba2;
    text-decoration: none;
}

.footer-menu-inline {
    display: inline;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-inline li {
    display: inline;
    margin: 0 10px;
}

.footer-menu-inline li:first-child {
    margin-left: 0;
}

.footer-menu-inline a {
    color: #b8b8b8;
}

.footer-menu-inline a:hover {
    color: #fff;
}

/* Course Category Section Styling */
.course-category-section {
    margin-bottom: 80px;
    position: relative;
}

.course-category-section h3 {
    font-size: 2.25rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    font-weight: 800;
    color: #1a1a1a;
}

.course-category-section h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

/* Smooth transitions for responsive changes */
@media (min-width: 768px) {
    .slider-slide img {
        height: auto;
        max-width: 1000px;
        object-fit: contain;
    }
    
    .slide-content {
        padding: 40px 30px;
    }
    
    .slide-content h3 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .slider-slide {
        min-height: 750px;
    }
    
    .slider-slide img {
        height: auto;
        max-width: 1200px;
        object-fit: contain;
    }
    
    .course-category-section h3 {
        font-size: 2.25rem;
    }
}

/* ========================================
   INSTAGRAM SECTION
======================================== */

.instagram-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 60px 20px;
    margin-top: 0;
}

.instagram-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.instagram-text {
    text-align: center;
}

.instagram-text h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: #2d2d2d;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-text p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.instagram-handle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #833ab4;
    padding: 12px 24px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.instagram-handle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.25);
    text-decoration: none;
}

.instagram-handle svg {
    fill: #833ab4;
}

.instagram-qr {
    display: flex;
    justify-content: center;
}

.qr-code-wrapper {
    text-align: center;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-code-wrapper:hover {
    transform: scale(1.05);
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-scan-text {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .instagram-section {
        padding: 80px 40px;
    }
    
    .instagram-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 60px;
    }
    
    .instagram-text {
        text-align: left;
        flex: 1;
    }
    
    .instagram-text h2 {
        font-size: 2.5rem;
    }
    
    .instagram-text p {
        font-size: 1.125rem;
    }
    
    .qr-code-image {
        width: 250px;
        height: 250px;
    }
    
    .qr-code-placeholder {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .instagram-text h2 {
        font-size: 3rem;
    }
}

/* ========================================
   ACCESSIBILITY: REDUCED MOTION
======================================== */

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Keep hero and courses sections static */
    .hero-section,
    section:has(.courses-grid),
    .courses-section {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

/* Smooth scrolling for users who don't prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
