/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global button reset to prevent browser default glow effects */
button {
    outline: none;
    border: none;
    background: none;
    box-shadow: none;
}

button:focus,
button:active,
button:focus-visible {
    outline: none;
    box-shadow: none;
}

:root, :root[data-theme="admin"] {
    /* Logo-based Blue Colors - More Vibrant */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    
    /* Professional Light Blue Colors */
    --secondary-color: #0ea5e9;
    --secondary-dark: #0284c7;
    --secondary-light: #38bdf8;
    --secondary-50: #f0f9ff;
    --secondary-100: #e0f2fe;
    --secondary-200: #bae6fd;
    
    /* Neutral Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Gradients - Professional Blue Palette */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    --gradient-warm: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);

    /* Global typography scale */
    --h1-size: 2.5rem;
    /* Global layout rhythm */
    --section-y-mobile: 40px;
    --section-y-desktop: 64px;
    --section-gap-mobile: 24px;
    --section-gap-desktop: 36px;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
    --p-size: 1rem;
    --small-size: 0.875rem;
}
/* =========================
   Level Test Page (scoped)
   ========================= */
.level-test-page .lt-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.level-test-page .lt-section { padding: var(--section-y-mobile) 0; }
@media (min-width: 900px){ .level-test-page .lt-section { padding: var(--section-y-desktop) 0; } }
.level-test-page .lt-section + .lt-section { padding-top: var(--section-gap-mobile); }
@media (min-width: 900px){ .level-test-page .lt-section + .lt-section { padding-top: var(--section-gap-desktop); } }
.level-test-page .lt-section-head { margin: 0 0 18px 0; }
@media (min-width: 900px){ .level-test-page .lt-section-head { margin-bottom: 24px; } }
.level-test-page .lt-section-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.level-test-page .lt-section-head p { color: var(--text-secondary); margin-top: 4px; }
.level-test-page .lt-hero { padding: 88px 0 40px; position: relative; overflow: hidden; }
@media (min-width: 900px){ .level-test-page .lt-hero { padding: 104px 0 56px; } }
.level-test-page .lt-hero::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(135deg, 
        rgba(37,99,235,.12) 0%, 
        rgba(14,165,233,.08) 25%, 
        rgba(59,130,246,.06) 50%, 
        rgba(37,99,235,.04) 75%, 
        transparent 100%
    ); 
    pointer-events:none; 
}
.level-test-page .lt-title { 
    font-size: 2.5rem; 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
.level-test-page .lt-subtitle { 
    color: var(--text-secondary); 
    margin-top: 10px; 
    max-width: 820px; 
    font-size: 1.1rem;
    line-height: 1.6;
}
.level-test-page .lt-hero-decor .blob { 
    position: absolute; 
    border-radius: 999px; 
    opacity: .2; 
    filter: blur(20px); 
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: float 6s ease-in-out infinite;
}
.level-test-page .lt-hero-decor .b1 { 
    width: 220px; 
    height: 220px; 
    top: -40px; 
    right: -60px; 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    animation-delay: 0s;
}
.level-test-page .lt-hero-decor .b2 { 
    width: 160px; 
    height: 160px; 
    bottom: -40px; 
    left: -40px; 
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    animation-delay: 2s;
}
.level-test-page .lt-hero-decor .b3 { 
    width: 120px; 
    height: 120px; 
    top: 20%; 
    left: 10%; 
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    animation-delay: 4s;
}

.level-test-page .lt-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow-md); padding: 22px; }
@media (min-width: 900px){ .level-test-page .lt-card { padding: 28px; } }
.level-test-page .lt-lead-card { max-width: 980px; margin: 0 auto; }
@media (min-width: 900px){ .level-test-page .lt-lead-card { margin-top: -28px; padding: 28px; box-shadow: var(--shadow-lg); } }
.level-test-page .lt-lead-card { margin-bottom: 4px; }
.level-test-page .lt-form { display: grid; gap: 16px; }
.level-test-page .lt-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .level-test-page .lt-grid { grid-template-columns: 1fr 1fr; } }
.level-test-page .lt-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.level-test-page input[type="text"], .level-test-page select { width: 100%; border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; background: #fff; }
.level-test-page .lt-btn-primary { background: var(--primary-color); color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.level-test-page .lt-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.level-test-page .lt-btn-primary:focus-visible { outline: 3px solid var(--secondary-200); outline-offset: 2px; }

.level-test-page .lt-steps { position: relative; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .level-test-page .lt-steps { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.level-test-page .lt-steps::before { content: ""; position: absolute; top: 42px; left: 24px; right: 24px; height: 2px; background: var(--border-color); border-radius: 2px; display: none; }
@media (min-width: 900px) { .level-test-page .lt-steps::before { display: block; } }
.level-test-page .lt-step { position: relative; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
@media (min-width: 900px){ .level-test-page .lt-step { padding: 26px; } }
.level-test-page .lt-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--secondary-200); }
.level-test-page .lt-step-badge { position: absolute; top: -14px; left: 20px; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--border-color); display: grid; place-items: center; font-weight: 800; color: var(--primary-color); box-shadow: 0 6px 14px rgba(15,23,42,.06); }
.level-test-page .lt-step-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary-50); color: var(--secondary-dark); margin-bottom: 10px; }
.level-test-page .lt-step h3 { margin-top: 6px; margin-bottom: 6px; }

.level-test-page .lt-benefits { overflow: hidden; }
.level-test-page .lt-benefits-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.level-test-page .lt-benefits-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--secondary-50); color: var(--secondary-dark); display: grid; place-items: center; }
.level-test-page .lt-benefits h3 { margin: 0; }
.level-test-page .lt-benefits-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.level-test-page .lt-benefits-list li { display: grid; grid-template-columns: 28px 1fr; align-items: start; column-gap: 10px; }
.level-test-page .lt-benefits-list .tick { width: 24px; height: 24px; border-radius: 8px; background: #fff; border: 1px solid var(--border-color); display: grid; place-items: center; color: var(--primary-color); box-shadow: 0 4px 10px rgba(37,99,235,.08); }
.level-test-page .lt-note { color: var(--text-secondary); margin-top: 8px; }

/* Reveal on scroll */
.level-test-page .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.level-test-page .reveal.in-view { opacity: 1; transform: translateY(0); }

/* FAQ */
.level-test-page .lt-faq { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.level-test-page .lt-faq details { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; margin: 12px 0; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.level-test-page .lt-faq details[open] { box-shadow: var(--shadow-md); border-color: var(--secondary-200); }
.level-test-page .lt-faq summary { list-style: none; cursor: pointer; padding: 16px 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.level-test-page .lt-faq summary::-webkit-details-marker { display: none; }
.level-test-page .lt-faq .faq-icon { width: 26px; height: 26px; border-radius: 8px; background: var(--secondary-50); color: var(--secondary-dark); display: grid; place-items: center; flex-shrink: 0; }
.level-test-page .lt-faq .faq-caret { margin-left: auto; color: var(--text-secondary); transition: transform .15s ease; }
.level-test-page .lt-faq details[open] .faq-caret { transform: rotate(90deg); }
.level-test-page .lt-faq details p { padding: 0 16px 16px 52px; color: var(--text-secondary); }

/* Floating elements (reusable) */
.section-floating-elements { position: relative; overflow: hidden; }
.section-floating-elements .floating-elements { position: absolute; inset: 0; pointer-events: none; }
.section-floating-elements .floating-elements .float {
  position: absolute; width: 14px; height: 14px; border-radius: 999px;
  background: var(--secondary-100); box-shadow: 0 6px 16px rgba(2,132,199,.15);
  animation: floatY 8s ease-in-out infinite;
}
.section-floating-elements .floating-elements .f1 { top: 10%; left: 6%; animation-delay: 0s; }
.section-floating-elements .floating-elements .f2 { top: 22%; right: 8%; width: 10px; height: 10px; animation-delay: 1.5s; }
.section-floating-elements .floating-elements .f3 { bottom: 12%; left: 12%; width: 12px; height: 12px; animation-delay: .8s; }
.section-floating-elements .floating-elements .f4 { bottom: 18%; right: 10%; animation-delay: 2.2s; }
.section-floating-elements .floating-elements .f5 { top: 46%; left: 50%; width: 8px; height: 8px; animation-delay: 3s; }

@keyframes floatY { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(-10px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .section-floating-elements .floating-elements .float { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .level-test-page .reveal { transition: none; opacity: 1; transform: none; }
  .level-test-page .lt-btn-primary { transition: none; }
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography with Enhanced Hierarchy */
h1, h2, h3, h4, h5, h6, .section-title { 
    font-family: 'Poppins', sans-serif; 
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: 2rem; 
    font-weight: 600; 
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

h3 { 
    font-size: 1.5rem; 
    font-weight: 600; 
    line-height: 1.3;
    letter-spacing: -0.01em;
}

p { 
    font-size: 1rem; 
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

small, .small { 
    font-size: 0.875rem; 
    font-weight: 400; 
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Enhanced Section Titles */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Blue shade overlay for all images */
img {
    position: relative;
    display: block;
    transition: all 0.3s ease;
}

img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.08) 0%, 
        rgba(37, 99, 235, 0.12) 50%, 
        rgba(14, 165, 233, 0.08) 100%);
    mix-blend-mode: overlay;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

img:hover::after {
    opacity: 0.9;
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.12) 0%, 
        rgba(37, 99, 235, 0.18) 50%, 
        rgba(14, 165, 233, 0.12) 100%);
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 1.2rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header logo: nav (header.html) and PHP header */
.logo,
.header .logo .logo-img,
.nav-logo .logo,
.nav-logo .logo-img {
    height: 70px;
    width: auto;
    max-height: 74px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover,
.header .logo .logo-img:hover,
.nav-logo .logo:hover,
.nav-logo .logo-img:hover {
    transform: scale(1.05);
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Modern Asymmetric Layout */
.hero {
    padding: 120px 0 60px;
    background: var(--gradient-subtle);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--secondary-color) 3%, transparent) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.08), transparent);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: var(--text-primary);
}

.highlight {
    background: linear-gradient(45deg, var(--secondary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-bottom: 0.15em;
    line-height: inherit;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Unified Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-sizing: border-box;
}

/* Larger button variant for prominent CTAs */
.btn-lg { 
    padding: 1.25rem 2.5rem; 
    font-size: 1.125rem; 
    min-height: 56px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

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

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Secondary button variant */
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

/* WhatsApp button uses consistent styling */
.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
    border: 2px solid #25d366;
}

.btn-whatsapp:hover:not(:disabled) {
    background: #1ea952;
    border-color: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
}

/* Modern Section-Specific Floating Elements */
.section-floating-elements {
    position: relative;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(56, 189, 248, 0.04));
    animation: modernFloat 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.floating-element.blurred {
    filter: blur(2px);
    backdrop-filter: blur(3px);
    opacity: 0.6;
}

.floating-element.heavy-blur {
    filter: blur(4px);
    backdrop-filter: blur(5px);
    opacity: 0.4;
}

/* Hero Section Floating Elements */
.hero .floating-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.05));
}

.hero .floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 12s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(37, 99, 235, 0.06));
}

.hero .floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 8s;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(56, 189, 248, 0.08));
}

/* About Section Floating Elements */
.about-hero .floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 11s;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.04));
}

.about-hero .floating-element:nth-child(2) {
    width: 70px;
    height: 70px;
    bottom: 25%;
    left: 15%;
    animation-delay: 5s;
    animation-duration: 9s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(37, 99, 235, 0.05));
}

/* Gallery Section Floating Elements */
.gallery-hero .floating-element:nth-child(1) {
    width: 90px;
    height: 90px;
    top: 25%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 13s;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(56, 189, 248, 0.06));
}

.gallery-hero .floating-element:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 70%;
    right: 25%;
    animation-delay: 4s;
    animation-duration: 7s;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.08));
}

/* Level Test Section Floating Elements */
.lt-hero .floating-element:nth-child(1) {
    width: 110px;
    height: 110px;
    top: 30%;
    right: 10%;
    animation-delay: 2.5s;
    animation-duration: 14s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.09), rgba(37, 99, 235, 0.045));
}

.lt-hero .floating-element:nth-child(2) {
    width: 65px;
    height: 65px;
    bottom: 20%;
    left: 25%;
    animation-delay: 7s;
    animation-duration: 10s;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.11), rgba(56, 189, 248, 0.055));
}

/* Additional Section Floating Elements */
.highlights .floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 20%;
    animation-delay: 1s;
    animation-duration: 12s;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.04));
}

.proficiency-test .floating-element:nth-child(1) {
    width: 70px;
    height: 70px;
    top: 15%;
    left: 15%;
    animation-delay: 3s;
    animation-duration: 11s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(37, 99, 235, 0.05));
}

.testimonials .floating-element:nth-child(1) {
    width: 90px;
    height: 90px;
    top: 25%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 13s;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.09), rgba(56, 189, 248, 0.045));
}

.blog .floating-element:nth-child(1) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 10s;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.06));
}

.limited-seats .floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 1.5s;
    animation-duration: 14s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.07), rgba(37, 99, 235, 0.035));
}

/* About Page Section Floating Elements */
.mission-vision .floating-element:nth-child(1) {
    width: 85px;
    height: 85px;
    top: 30%;
    right: 25%;
    animation-delay: 2s;
    animation-duration: 12s;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(56, 189, 248, 0.04));
}

.our-story .floating-element:nth-child(1) {
    width: 75px;
    height: 75px;
    bottom: 25%;
    right: 20%;
    animation-delay: 4s;
    animation-duration: 11s;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.05));
}

.our-values .floating-element:nth-child(1) {
    width: 65px;
    height: 65px;
    top: 20%;
    left: 25%;
    animation-delay: 3s;
    animation-duration: 13s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.09), rgba(37, 99, 235, 0.045));
}

.our-team .floating-element:nth-child(1) {
    width: 95px;
    height: 95px;
    top: 15%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 14s;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.07), rgba(56, 189, 248, 0.035));
}

/* Gallery Page Section Floating Elements */
.gallery-filters .floating-element:nth-child(1) {
    width: 50px;
    height: 50px;
    top: 30%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 10s;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.05));
}

.gallery-subscribe .floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
    animation-duration: 12s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(37, 99, 235, 0.04));
}

/* Level Test Page Section Floating Elements */
.lt-steps .floating-element:nth-child(1) {
    width: 70px;
    height: 70px;
    top: 25%;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 11s;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.09), rgba(56, 189, 248, 0.045));
}

.lt-benefits .floating-element:nth-child(1) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 13s;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.05));
}

.lt-faq .floating-element:nth-child(1) {
    width: 55px;
    height: 55px;
    top: 20%;
    left: 25%;
    animation-delay: 3s;
    animation-duration: 10s;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.11), rgba(37, 99, 235, 0.055));
}

/* Contact Page Styles - Redesigned */
.contact-hero {
    padding: 110px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    color: var(--text-primary);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.badge-icon {
    font-size: 1rem;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 560px;
}

.contact-hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-stat .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-cta {
    margin-top: 1rem; /* reduced from 2rem */
}

/* Hero Visual Section */
.contact-hero-visual {
    position: relative;
    height: 450px;
    overflow: visible;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

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

.hero-img {
    width: 100%;
    max-width: 460px; /* reduced from 500px */
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.1));
}

/* Floating Cards */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: visible;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    max-width: 220px;
    animation: floatCard 6s ease-in-out infinite;
    white-space: nowrap;
}

.floating-card.card-1 {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
    z-index: 10;
}

.floating-card.card-2 {
    top: 50%;
    left: -10%;
    animation-delay: 2s;
    z-index: 10;
}

.floating-card.card-3 {
    bottom: 15%;
    right: 5%;
    animation-delay: 1s;
    z-index: 10;
}

.contact-hero-text {
    position: relative;
    z-index: 10;
}



.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.card-1 .card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-2 .card-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.card-3 .card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* Contact Methods Section */
.contact-methods {
    padding: 80px 0;
    background: var(--bg-primary);
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-method-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
}

.whatsapp-card .method-icon {
    background: #25d366;
}

.phone-card .method-icon {
    background: var(--primary-color);
}

.email-card .method-icon {
    background: var(--secondary-color);
}

.form-card .method-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contact-method-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-method-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.method-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.method-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.method-value {
    font-weight: 700;
    color: var(--primary-color);
}

.method-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.contact-form-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.form-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container {
    background: white;
    border-radius: 24px;
    padding: 2rem 2.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.modern-contact-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-light);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.625rem 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    font-weight: 500;
    color: var(--text-primary);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-light);
}

/* Team Contact Section */
.team-contact {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.team-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-color);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-specialty {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.member-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link.whatsapp {
    background: #25d366;
    color: white;
}

.contact-link.email {
    background: var(--primary-color);
    color: white;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact FAQ Section */
.contact-faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.faq-category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Info Section */
.contact-info {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* Google Maps Section */
.contact-map {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.contact-map .section-header {
    margin-bottom: 2.5rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Force single row of three tiles on large screens */
@media (min-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

/* Two columns on medium screens */
@media (min-width: 640px) and (max-width: 1023.98px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Map iframe responsive */
#gmapFrame,
iframe[data-map-iframe] {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

@media (max-width: 768px) {
    #gmapFrame,
    iframe[data-map-iframe] {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    #gmapFrame,
    iframe[data-map-iframe] {
        min-height: 250px;
    }
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.info-note {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
}

/* Business Hours specific styling */
.info-card .business-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    margin: 1rem 0;
}

.info-card .business-hours .hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card .business-hours .hours-row:last-child {
    border-bottom: none;
}

.info-card .business-hours .day {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.info-card .business-hours .time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-card .business-hours .closed {
    color: #ef4444;
    font-weight: 600;
}

/* Modern Floating Animation */
@keyframes modernFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(30px, 10px) rotate(180deg);
    }
    75% {
        transform: translate(10px, 25px) rotate(270deg);
    }
}

/* Modern Micro-Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-rotate-in {
    animation: rotateIn 0.7s ease-out;
}

/* Staggered Animation Delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

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

/* Floating Actions Container */
.floating-actions {
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 1100;
    pointer-events: none;
}

.floating-actions > * {
    pointer-events: auto;
}

/* Scroll to Top Button */
.scroll-to-top {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    outline: none;
    position: relative;
    z-index: 1;
}


.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top::before,
.scroll-to-top::after {
    content: none;
    display: none;
}

.scroll-to-top:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: none;
    outline: none;
    filter: none;
}

.scroll-to-top:focus,
.scroll-to-top:active,
.scroll-to-top:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}


/* Floating WhatsApp button */
.wa-float {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: none;
    text-decoration: none;
    animation: waPop .6s ease-out both;
    transition: all 0.3s ease;
}

.wa-float:hover { 
    filter: none; 
    transform: translateY(-2px); 
    box-shadow: none;
    background: #16a34a;
}

@keyframes waPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 640px) {
  .floating-actions {
    right: 20px;
    left: 20px;
    bottom: 90px;
    gap: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    height: 54px;
  }
  .wa-float { 
    width: 54px; 
    height: 54px; 
    font-size: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    flex-shrink: 0;
  }
  .scroll-to-top { 
    width: 54px; 
    height: 54px; 
    font-size: 16px; 
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    flex-shrink: 0;
  }
  
  /* Mobile typography adjustments */
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .courses-hero-title { font-size: 1.8rem; }
  .detail-title { font-size: 1.6rem; }
  .about-hero-title { font-size: 1.8rem; }
  .lt-hero-title { font-size: 1.8rem; }
  .gallery-hero-title { font-size: 1.8rem; }
  
  /* Smaller floating elements on mobile */
  .hero .floating-element:nth-child(1) { width: 80px; height: 80px; }
  .hero .floating-element:nth-child(2) { width: 60px; height: 60px; }
  .hero .floating-element:nth-child(3) { width: 40px; height: 40px; }
  
  .about-hero .floating-element:nth-child(1) { width: 70px; height: 70px; }
  .about-hero .floating-element:nth-child(2) { width: 50px; height: 50px; }
  
  .gallery-hero .floating-element:nth-child(1) { width: 60px; height: 60px; }
  .gallery-hero .floating-element:nth-child(2) { width: 35px; height: 35px; }
  
  .lt-hero .floating-element:nth-child(1) { width: 75px; height: 75px; }
  .lt-hero .floating-element:nth-child(2) { width: 45px; height: 45px; }
  
  /* Additional sections mobile sizing */
  .highlights .floating-element:nth-child(1) { width: 60px; height: 60px; }
  .proficiency-test .floating-element:nth-child(1) { width: 50px; height: 50px; }
  .testimonials .floating-element:nth-child(1) { width: 70px; height: 70px; }
  .blog .floating-element:nth-child(1) { width: 45px; height: 45px; }
  .limited-seats .floating-element:nth-child(1) { width: 80px; height: 80px; }
  
  .mission-vision .floating-element:nth-child(1) { width: 65px; height: 65px; }
  .our-story .floating-element:nth-child(1) { width: 55px; height: 55px; }
  .our-values .floating-element:nth-child(1) { width: 50px; height: 50px; }
  .our-team .floating-element:nth-child(1) { width: 75px; height: 75px; }
  
  .gallery-filters .floating-element:nth-child(1) { width: 35px; height: 35px; }
  .gallery-subscribe .floating-element:nth-child(1) { width: 60px; height: 60px; }
  
  .lt-steps .floating-element:nth-child(1) { width: 50px; height: 50px; }
  .lt-benefits .floating-element:nth-child(1) { width: 45px; height: 45px; }
  .lt-faq .floating-element:nth-child(1) { width: 40px; height: 40px; }
  
  /* Contact page responsive styles */
  @media (max-width: 1024px) {
    .contact-hero {
      padding: 80px 0;
      overflow: hidden;
    }
    
    .contact-hero-content {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      position: relative;
    }
    
    .contact-hero-text {
      position: relative;
      z-index: 10;
      order: 2;
    }
    
    .contact-hero-title {
      font-size: 2.5rem;
      text-align: center;
    }
    
    .contact-hero-subtitle {
      text-align: center;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
    
    .hero-cta {
      display: flex;
      justify-content: center;
    }
    
    .contact-hero-visual {
      height: 380px;
      order: 1;
      position: relative;
      z-index: 1;
      margin-bottom: 2rem;
    }
    
    .contact-methods {
      padding: 60px 0;
    }
    
    .contact-methods-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
    
    .contact-form-section {
      padding: 60px 0;
    }
    
    .contact-form-container {
      padding: 2.5rem 2rem;
    }
    
    .contact-info {
      padding: 60px 0;
    }
    
    .contact-faq {
      padding: 60px 0;
    }
    
    .faq-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  }

  @media (max-width: 768px) {
    .contact-hero {
      padding: 60px 0;
      overflow: hidden;
    }
    
    .contact-hero-content {
      gap: 2rem;
      text-align: center;
      position: relative;
    }
    
    .contact-hero-text {
      position: relative;
      z-index: 10;
      order: 2;
      margin-top: 1.5rem;
    }
    
    .contact-hero-title {
      font-size: 2rem;
      line-height: 1.2;
    }
    
    .contact-hero-subtitle {
      font-size: 1rem;
      margin-bottom: 1.25rem;
    }
    
    .hero-badge {
      font-size: 0.8rem;
      padding: 0.4rem 0.875rem;
      margin-bottom: 1rem;
    }
    
    .contact-hero-visual {
      height: auto;
      min-height: 400px;
      order: 1;
      position: relative;
      z-index: 1;
      margin-bottom: 1.5rem;
      overflow: visible;
      width: 100%;
      max-width: 100%;
    }

    .hero-image-container {
      overflow: visible;
      width: 100%;
      height: 100%;
      min-height: 400px;
    }
    
    .hero-main-image {
      width: 100%;
      height: 100%;
    }
    
    .hero-img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      object-fit: cover;
      object-position: center;
    }
    
    .floating-elements {
      display: none;
    }
    
    .floating-card {
      min-width: 140px;
      padding: 0.75rem;
    }
    
    .floating-card.card-1 {
      top: 10%;
      right: 5%;
    }
    
    .floating-card.card-2 {
      top: 40%;
      left: 2%;
    }
    
    .card-title {
      font-size: 0.8rem;
    }
    
    .card-subtitle {
      font-size: 0.7rem;
    }
    
    .contact-methods {
      padding: 50px 0;
    }
    
    .contact-methods-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .contact-method-card {
      padding: 2rem 1.5rem;
      text-align: center;
    }
    
    .method-info {
      justify-content: center;
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
    
    .method-label,
    .method-value {
      text-align: center;
    }
    
    .contact-form-section {
      padding: 50px 0;
    }
    
    .form-header {
      margin-bottom: 2rem;
    }
    
    .form-title {
      font-size: 1.75rem;
    }
    
    .form-subtitle {
      font-size: 1rem;
    }
    
    .contact-form-container {
      padding: 2rem 1.5rem;
    }
    
    .form-row {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .step-header {
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
    }
    
    .step-header h3 {
      font-size: 1.25rem;
    }
    
    .contact-info {
      padding: 50px 0;
    }
    
    .info-card {
      text-align: center;
    }
    
    .info-card .business-hours {
      text-align: center;
      align-items: center;
    }
    
    .info-card .business-hours .hours-row {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 0.25rem;
    }
    
    .info-card .business-hours .day,
    .info-card .business-hours .time {
      text-align: center;
      min-width: auto;
    }
    
    .info-card p,
    .info-card #locationText {
      text-align: center;
    }
    
    .info-note {
      text-align: center;
    }
    
    .contact-faq {
      padding: 50px 0;
    }
    
    .faq-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .contact-info-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .form-navigation {
      flex-direction: column;
      gap: 1rem;
    }
    
    .form-navigation .btn {
      width: 100%;
    }
  }

  @media (max-width: 640px) {
    .contact-hero {
      padding: 50px 0;
      overflow: hidden;
    }
    
    .contact-hero-content {
      gap: 1.5rem;
    }
    
    .contact-hero-text {
      order: 2;
      margin-top: 1rem;
      z-index: 10;
    }
    
    .contact-hero-title {
      font-size: 1.75rem;
    }
    
    .contact-hero-subtitle {
      font-size: 0.95rem;
    }
    
    .contact-hero-visual {
      height: auto;
      min-height: 350px;
      order: 1;
      margin-bottom: 1rem;
      overflow: visible;
      width: 100%;
      max-width: 100%;
    }

    .hero-image-container {
      min-height: 350px;
    }
    
    .hero-img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      object-fit: cover;
      object-position: center;
    }
    
    .floating-elements {
      display: none;
    }
    
    .contact-methods {
      padding: 40px 0;
    }
    
    .contact-method-card {
      padding: 1.75rem 1.25rem;
      text-align: center;
    }
    
    .method-icon {
      width: 70px;
      height: 70px;
      font-size: 1.75rem;
      margin-bottom: 1.25rem;
    }
    
    .contact-method-card h3 {
      font-size: 1.25rem;
      text-align: center;
    }
    
    .contact-method-card p {
      font-size: 0.9rem;
      text-align: center;
    }
    
    .method-info {
      justify-content: center;
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
    
    .method-label,
    .method-value {
      text-align: center;
    }
    
    .contact-form-section {
      padding: 40px 0;
    }
    
    .form-title {
      font-size: 1.5rem;
    }
    
    .form-subtitle {
      font-size: 0.95rem;
    }
    
    .contact-form-container {
      padding: 1.75rem 1.25rem;
    }
    
    .contact-info {
      padding: 40px 0;
    }
    
    .info-card {
      text-align: center;
    }
    
    .info-card h3 {
      text-align: center;
    }
    
    .info-card p,
    .info-card #locationText {
      text-align: center;
    }
    
    .info-card .business-hours {
      text-align: center;
      align-items: center;
    }
    
    .info-card .business-hours .hours-row {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 0.25rem;
    }
    
    .info-card .business-hours .day,
    .info-card .business-hours .time {
      text-align: center;
      min-width: auto;
    }
    
    .info-note {
      text-align: center;
    }
    
    .contact-faq {
      padding: 40px 0;
    }
    
    .faq-category-title {
      font-size: 1.25rem;
      text-align: center;
    }
    
    .faq-question {
      padding: 1.25rem;
      font-size: 0.95rem;
    }
  }

  @media (max-width: 480px) {
    .contact-hero {
      padding: 40px 0;
      overflow: hidden;
    }
    
    .contact-hero-content {
      gap: 1.25rem;
    }
    
    .contact-hero-text {
      order: 2;
      margin-top: 0.75rem;
      z-index: 10;
    }
    
    .contact-hero-title {
      font-size: 1.5rem;
      line-height: 1.3;
    }
    
    .contact-hero-subtitle {
      font-size: 0.875rem;
    }
    
    .hero-badge {
      font-size: 0.75rem;
      padding: 0.35rem 0.75rem;
    }
    
    .contact-hero-visual {
      height: auto;
      min-height: 300px;
      order: 1;
      margin-bottom: 0.75rem;
      overflow: visible;
      width: 100%;
      max-width: 100%;
    }

    .hero-image-container {
      min-height: 300px;
    }
    
    .hero-main-image {
      width: 100%;
      height: 100%;
    }
    
    .hero-img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      object-fit: cover;
      object-position: center;
      border-radius: 0;
    }
    
    .floating-elements {
      display: none;
    }
    
    .floating-card {
      min-width: 120px;
      padding: 0.625rem;
      gap: 0.5rem;
    }
    
    .card-icon {
      width: 32px;
      height: 32px;
      font-size: 1rem;
    }
    
    .card-title {
      font-size: 0.7rem;
    }
    
    .card-subtitle {
      font-size: 0.65rem;
    }
    
    .contact-methods {
      padding: 36px 0;
    }
    
    .contact-method-card {
      padding: 1.5rem 1rem;
      text-align: center;
    }
    
    .contact-method-card h3 {
      text-align: center;
    }
    
    .contact-method-card p {
      text-align: center;
    }
    
    .method-info {
      justify-content: center;
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
    
    .method-label,
    .method-value {
      text-align: center;
    }
    
    .contact-form-section {
      padding: 36px 0;
    }
    
    .form-title {
      font-size: 1.35rem;
    }
    
    .contact-form-container {
      padding: 1.5rem 1rem;
      border-radius: 20px;
    }
    
    .step-header {
      margin-bottom: 1.25rem;
    }
    
    .step-header h3 {
      font-size: 1.1rem;
    }
    
    .step-number {
      width: 36px;
      height: 36px;
      font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
      padding: 0.875rem;
      font-size: 0.95rem;
    }
    
    .contact-info {
      padding: 36px 0;
    }
    
    .info-card {
      padding: 1.5rem 1.25rem;
      text-align: center;
    }
    
    .info-card h3 {
      text-align: center;
    }
    
    .info-card p,
    .info-card #locationText {
      text-align: center;
    }
    
    .info-card .business-hours {
      text-align: center;
      align-items: center;
    }
    
    .info-card .business-hours .hours-row {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 0.25rem;
    }
    
    .info-card .business-hours .day,
    .info-card .business-hours .time {
      text-align: center;
      min-width: auto;
    }
    
    .info-note {
      text-align: center;
    }
    
    .contact-faq {
      padding: 36px 0;
    }
    
    .faq-category-title {
      text-align: center;
    }
    
    .faq-question {
      padding: 1rem;
      font-size: 0.9rem;
    }
    
    .faq-answer p {
      padding: 0 1rem 1rem;
      font-size: 0.875rem;
    }
  }
  
  /* Modern layout mobile adjustments */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .course-card:nth-child(1),
  .course-card:nth-child(2),
  .course-card:nth-child(3),
  .course-card:nth-child(4),
  .course-card:nth-child(5),
  .course-card:nth-child(6) {
    grid-column: 1;
    grid-row: auto;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Typography mobile adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .section-title::before {
    width: 30px;
    height: 3px;
  }
  
  /* Contact info mobile adjustments */
  .info-card {
    min-height: auto;
    padding: 1.5rem;
  }
  
  .info-card .business-hours {
    margin: 0.5rem 0;
  }
  
  .info-card .business-hours .hours-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }
  
  .info-card .business-hours .day {
    min-width: auto;
    font-size: 0.9rem;
  }
  
  .info-card .business-hours .time {
    font-size: 0.85rem;
  }
}

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.8s both;
    overflow: visible;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: visible;
    z-index: 10;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.floating-card i {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.card-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
    z-index: 10;
}

.card-2 {
    top: 45%;
    left: 5%;
    animation-delay: 1s;
    z-index: 10;
}

.card-3 {
    bottom: 15%;
    right: 10%;
    animation-delay: 2s;
    z-index: 10;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Courses Section */
/* Courses Section - Modern Design */
.courses {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-50) 100%);
    position: relative;
    overflow: hidden;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            circle at 20% 80%,
            color-mix(in srgb, var(--primary-color) 8%, transparent) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            color-mix(in srgb, var(--secondary-color) 8%, transparent) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Loading state - keep hidden until content loads */
.courses-grid.loading {
    opacity: 0;
    visibility: hidden;
}

/* Fade-in when content is loaded */
.courses-grid.fade-in {
    opacity: 1;
    visibility: visible;
}

/* Homepage Special Layout - 3 Card Grid (Equal Columns) */
.courses-grid:not(.modern) {
    grid-template-columns: repeat(12, 1fr);
}

/* Homepage: 3 equal columns layout */
.courses-grid:not(.modern) .course-card:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1;
}

.courses-grid:not(.modern) .course-card:nth-child(2) {
    grid-column: 5 / 9;
    grid-row: 1;
}

.courses-grid:not(.modern) .course-card:nth-child(3) {
    grid-column: 9 / 13;
    grid-row: 1;
}

/* Prevent flicker for other dynamic sections */
.testimonials-grid,
.blog-wrap,
.blog-grid,
.video-grid {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.testimonials-grid.loading,
.blog-wrap.loading,
.blog-grid.loading,
.video-grid.loading {
    opacity: 0;
    visibility: hidden;
}

.testimonials-grid.fade-in,
.blog-wrap.fade-in,
.blog-grid.fade-in,
.video-grid.fade-in {
    opacity: 1;
    visibility: visible;
}

/* Modern Grid Layout - Clean 3-column grid for courses page */
.courses-grid.modern {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.courses-grid.modern .course-card {
    grid-column: span 4;
    display: block;
}

/* Show only first 3 cards by default - only on homepage */
.courses-grid:not(.modern) .course-card:nth-child(n+4) {
    display: none;
}

/* Override for courses page - show all courses */
.courses-grid.modern .course-card {
    display: block !important;
}

/* Force show all courses on courses page */
.courses-grid-section .courses-grid .course-card {
    display: block !important;
}

/* Responsive Design for Homepage Courses Grid */
@media (max-width: 1280px) {
    .courses-grid.modern {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Homepage: Keep 3 equal columns */
    .courses-grid:not(.modern) {
        grid-template-columns: repeat(12, 1fr);
    }
    
    .courses-grid:not(.modern) .course-card:nth-child(1),
    .courses-grid:not(.modern) .course-card:nth-child(2),
    .courses-grid:not(.modern) .course-card:nth-child(3) {
        grid-column: span 4;
        grid-row: 1;
    }
}

@media (max-width: 1024px) {
    .courses-grid.modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Homepage: Stack cards vertically on tablet */
    .courses-grid:not(.modern) {
        grid-template-columns: 1fr;
    }
    
    .courses-grid:not(.modern) .course-card:nth-child(1),
    .courses-grid:not(.modern) .course-card:nth-child(2),
    .courses-grid:not(.modern) .course-card:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

    .courses-grid:not(.modern) .course-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .courses-grid.modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid:not(.modern) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .courses-grid.modern,
    .courses-grid:not(.modern) {
        grid-template-columns: 1fr;
    }
    
    .courses-grid:not(.modern) .course-card:nth-child(1),
    .courses-grid:not(.modern) .course-card:nth-child(2),
    .courses-grid:not(.modern) .course-card:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }
}

.courses-actions {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

/* All courses button uses primary styling */
.btn-all-courses {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    border: 2px solid var(--primary-color);
    font-weight: 700;
}

.btn-all-courses:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.course-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 0;
    text-align: left;
    box-shadow: 0 8px 32px color-mix(in srgb, var(--primary-color) 12%, transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid color-mix(in srgb, var(--primary-100) 60%, transparent);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image card variant */
.course-card.image-card { overflow: hidden; display: flex; flex-direction: column; }
.course-card.image-card .course-media { position: relative; height: 300px; overflow: hidden; }
.course-card.image-card .course-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card.image-card .course-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0) 40%, rgba(2,6,23,0.35) 100%); }
.course-card.image-card .course-content { padding: 1.2rem 1.4rem 1.4rem; }
.course-card.image-card .course-title { margin-top: .2rem; }
.course-card.image-card:hover .course-media img { transform: scale(1.06); transition: transform .5s ease; }

/* Mobile responsive course card images */
@media (max-width: 768px) {
    .course-card.image-card .course-media { 
        height: 280px; 
    }
}

@media (max-width: 480px) {
    .course-card.image-card .course-media { 
        height: 250px; 
    }
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--primary-color) 6%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover::before {
    opacity: 1;
}

/* Enhanced shadow hover effect for course cards */
.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Removed special featured overrides to keep unified hover behavior for all cards */

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--secondary-color) 35%, transparent);
    z-index: 3;
    letter-spacing: 0.5px;
}

.course-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.course-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.course-card:hover .course-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.course-level {
    background: var(--primary-100);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary-200);
}

.course-content {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.course-description,
.course-desc {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--primary-50);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--primary-100);
    transition: all 0.3s ease;
}

.course-card:hover .feature-tag {
    background: var(--primary-100);
    transform: translateY(-2px);
}

.course-footer {
    padding: 0 2rem 2rem;
}

/* Course buttons use primary button styling */
.btn-course {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    border: 2px solid var(--primary-color);
    width: 100%;
    font-size: 0.95rem;
}

.btn-course:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

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

.btn-course:hover i {
    transform: translateX(3px);
}

/* Highlights Section - Diagonal Design */
.highlights {
    padding: 60px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), transparent 50%, rgba(37, 99, 235, 0.05));
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
    z-index: 1;
}

.highlights::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 40%;
    background: linear-gradient(45deg, rgba(56, 189, 248, 0.08), transparent);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}

.highlight-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.highlight-icon {
    width: 96px;
    height: 96px;
    background: var(--secondary-50);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.highlight-card:hover .highlight-icon i {
    color: white;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: white;
}

.highlight-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.highlight-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Proficiency Test Section */
.proficiency-test {
    padding: 48px 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.test-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.proficiency-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 24px 28px 24px;
    position: relative;
    animation: fadeInUp 0.6s ease both;
}

/* Animated floating blobs */
.pt-blob { display: none; }

.pt-blob.blob-1 {
    width: 220px; height: 220px;
    left: -60px; top: -60px;
    background: var(--gradient-primary);
}

.pt-blob.blob-2 {
    width: 260px; height: 260px;
    right: -80px; bottom: -80px;
    background: var(--gradient-secondary);
    animation-delay: 4s;
}

@keyframes ptFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -6px) scale(1.03); }
}

.test-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.test-description {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.test-features {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.test-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.test-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--primary-50) 70%, transparent);
    border: 1px solid var(--primary-100);
    padding: 10px 14px;
    border-radius: 12px;
}

.test-feature i {
    color: var(--secondary-color);
    background: var(--secondary-50);
    border: 1px solid color-mix(in srgb, var(--secondary-color) 40%, transparent);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--secondary-color) 30%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Animated chips */
.animated-chips .chip {
    background: color-mix(in srgb, var(--primary-50) 60%, transparent);
    border: 1px solid var(--primary-100);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, background 0.2s ease;
}

.animated-chips .chip:hover { transform: translateX(2px); }

/* Icon subtle bob animation on load */
.animated-icons .test-feature i { animation: iconBob 2s ease-in-out infinite, iconGlow 3s ease-in-out infinite; }
.animated-icons .test-feature:nth-child(2) i { animation-delay: .15s; }
.animated-icons .test-feature:nth-child(3) i { animation-delay: .3s; }

@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes iconGlow {
    0%, 100% { box-shadow: 0 2px 6px color-mix(in srgb, var(--secondary-color) 25%, transparent), inset 0 0 0 0 color-mix(in srgb, var(--secondary-color) 0%, transparent); }
    50% { box-shadow: 0 6px 14px color-mix(in srgb, var(--secondary-color) 35%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--secondary-color) 30%, transparent); }
}

.animated-icons .test-feature:hover i {
    transform: translateY(-2px) scale(1.08) rotate(-3deg);
}

@media (prefers-reduced-motion: reduce) {
    .animated-icons .test-feature i { animation: none; }
}

@keyframes chipIn {
    to { transform: translateY(0); opacity: 1; }
}

/* Test button uses secondary gradient styling */
.btn-test {
    background: var(--gradient-secondary);
    color: white;
    font-size: 1.05rem;
    padding: 1.05rem 2.1rem;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
    font-weight: 700;
    margin-top: 0.6rem;
}

.btn-test:hover:not(:disabled) {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.35);
}

.test-image {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
}

.test-img {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block; /* remove inline image bottom gap */
    transition: transform 0.3s ease;
}

.test-image:hover .test-img { transform: translateY(-2px); }

.phone-chat {
    position: absolute;
    right: 6%;
    bottom: 16%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.phone-chat .bubble {
    max-width: 240px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    animation: fadeInUp .6s ease both;
}

.phone-chat .bubble.system { background: #ffffff; color: #0f172a; border: 1px solid rgba(2,6,23,.06); }
.phone-chat .bubble.user { background: var(--primary-50); color: var(--primary-dark); margin-left: 40px; }
.phone-chat .bubble.typing { display: inline-flex; align-items: center; gap: 6px; }

.phone-chat .bubble.typing .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; opacity: .6;
    animation: typingDots 1.2s ease-in-out infinite;
}
.phone-chat .bubble.typing .dot:nth-child(2) { animation-delay: .15s; }
.phone-chat .bubble.typing .dot:nth-child(3) { animation-delay: .3s; }

@keyframes typingDots {
    0%, 100% { transform: translateY(0); opacity: .6; }
    50% { transform: translateY(-3px); opacity: 1; }
}

/* sequence timing */
.phone-chat .bubble:nth-child(1) { animation-delay: .2s; }
.phone-chat .bubble:nth-child(2) { animation-delay: .9s; }
.phone-chat .bubble:nth-child(3) { animation-delay: 1.6s; }

@media (max-width: 1024px) {
    .phone-chat { right: 2%; bottom: 12%; }
    .phone-chat .bubble { max-width: 200px; font-size: 13px; }
}

.accent-circle::before {
    content: '';
    position: absolute;
    right: 40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 18%, transparent) 0%, transparent 62%);
    border-radius: 50%;
    z-index: -1;
}

/* Progress demo */

/* Progress demo removed */
.progress-demo .bars span:nth-child(2){ animation-delay: .2s; }
.progress-demo .bars span:nth-child(3){ animation-delay: .4s; }
.progress-demo .bars span:nth-child(4){ animation-delay: .6s; }

@keyframes barPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }

/* Testimonials Section - Layered Design */
.testimonials {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.03), transparent 30%, rgba(37, 99, 235, 0.03));
    transform: rotate(-15deg);
    z-index: 1;
    pointer-events: none;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 80%;
    height: 160%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), transparent 40%);
    transform: rotate(10deg);
    z-index: 1;
    pointer-events: none;
}

.testimonials-container {
    position: relative;
    z-index: 2;
}

.testimonials-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .testimonials-layout { grid-template-columns: 1fr; gap: 2rem; }
    .iphone-mockup { width: 280px; height: 457px; }
}

.iphone-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* iPhone 17 Pro Max Mockup - Better Proportions */
.iphone-mockup {
    position: relative;
    width: 380px; /* More accurate iPhone 17 Pro Max width proportion */
    height: 620px; /* Better height ratio matching 6.9" display */
    margin: 0 auto;
    transform: translate3d(0, 0, 0); /* Hardware acceleration */
}

.iphone-frame {
    background: linear-gradient(145deg, #d1d5db 0%, #9ca3af 50%, #6b7280 100%); /* Darker, more metallic titanium */
    border-radius: 48px; /* Slightly less rounded for iPhone 17 Pro Max */
    padding: 6px; /* Thinner bezel for modern iPhone */
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic Island - iPhone 17 Pro Max (Solid Black Pill) */
.iphone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    z-index: 10;
}

/* Dynamic Island - Solid Black Pill (No Visible Inner Elements) */
.iphone-frame::after {
    display: none; /* Remove inner camera element - Dynamic Island should be solid black */
}

.iphone-screen {
    background: #000000; /* iPhone screen bezel */
    border-radius: 42px; /* Matches refined iPhone 17 Pro Max screen radius */
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2px; /* Thinner bezel for modern iPhone */
}

.iphone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary); /* Use website's primary background color */
    border-radius: 41px;
    z-index: 1;
}

/* Fixed App Header */
.app-header {
    padding: 70px 20px 25px; /* More space for Dynamic Island and better logo positioning */
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-50) 100%); /* Subtle gradient matching website */
    flex-shrink: 0;
    z-index: 5;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    min-height: 120px; /* Ensure adequate header height */
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-icons {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--text-primary);
}

.app-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Sliding Testimonial Content */
.testimonials-content-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    transform: translateX(100%);
    opacity: 0;
}

.testimonial-slide.active {
    transform: translateX(0);
    opacity: 1;
}

.testimonial-slide.slide-left {
    transform: translateX(-100%);
    opacity: 0;
}

/* iPhone Mockup Styles */
.iphone-mockup {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.iphone-frame {
    background: #1a1a1a;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}


.iphone-screen {
    background: var(--bg-primary); /* Use website's primary background color */
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/19.5;
}

.testimonial-content {
    height: 100%;
    background: var(--bg-primary); /* Use website's primary background color */
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

/* App Header */
.app-header {
    padding: 25px 20px 15px; /* Better spacing for logo */
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-50) 100%); /* Subtle gradient matching website */
    backdrop-filter: blur(10px);
    min-height: 80px; /* Ensure adequate header height */
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* More space before logo */
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color); /* Use website's blue color for better visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-icons {
    display: flex;
    gap: 4px;
    font-size: 12px;
    color: var(--primary-color); /* Use website's blue color for better visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.app-logo {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px; /* More space from status bar */
    margin-bottom: 10px; /* Space before content */
}

.logo-img {
    height: auto; /* Auto height for natural scaling */
    width: auto;
    max-width: 100px; /* Reduced max width */
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Testimonial Body */
.testimonial-body {
    height: 100%;
    padding: 25px 20px 30px; /* Optimized padding for better spacing */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-50) 50%, var(--bg-primary) 100%); /* Subtle gradient matching website */
}

.stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 25px;
}

.stars i {
    color: var(--secondary-color); /* Use website's orange color */
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.author-name {
    font-weight: 800;
    font-size: 19px;
    margin: 0;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.author-title {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Content Section (Right) */
.testimonials-content {
    padding-left: 2rem;
}

.content-wrapper {
    max-width: 500px;
}

.content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.content-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-100);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Mobile Responsive for Real Success Stories */
@media (max-width: 1024px) {
    .testimonials-content {
        padding-left: 1.5rem;
    }
    
    .content-title {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        gap: 1.25rem;
    }
    
    .stat-item {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .testimonials-content {
        padding-left: 0;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .content-wrapper {
        max-width: 100%;
    }
    
    .content-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1.25rem;
    }
    
    .content-description {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        background: #fff;
        border: 1px solid var(--border-light);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .stat-number {
        font-size: 1.8rem;
        color: var(--primary-color);
    }
    
    .stat-label {
        font-size: 1rem;
        font-weight: 600;
    }
}

@media (max-width: 640px) {
    .content-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .content-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .stats-grid {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content-title {
        font-size: 1.6rem;
    }
    
    .content-description {
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

.features-list {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 0;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-warm);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cta-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Slider Dots Only (No Buttons) */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* iPhone Mockup Enhancements */
.iphone-frame {
    animation: float 6s ease-in-out infinite;
}

.iphone-screen {
    position: relative;
}

.iphone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Testimonial slide animations */
.testimonial-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

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

/* Touch/swipe support */
.testimonials-slider {
    touch-action: pan-y;
    user-select: none;
}

/* Hover effects for better interactivity */
.iphone-mockup:hover .iphone-frame {
    transform: scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status bar icons styling */
.status-icons i {
    color: white;
    opacity: 0.8;
}

/* App title with gradient text */
.app-title {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video Gallery Section */
.video-gallery {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 1.5rem;
    margin-left: 3px;
}

.video-card:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.video-duration {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.video-gallery-cta {
    text-align: center;
    margin-top: 2rem;
}

.explore-videos-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.explore-videos-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    color: white;
}

.explore-videos-btn i {
    font-size: 1.25rem;
}

/* Video Popup Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

.video-modal.active {
    display: flex;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    transform-origin: center center;
}

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

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    border-color: rgba(37, 99, 235, 0.3);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    min-height: 0;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 24px 24px 0 0;
}

/* Circular Shapes - Inspired by English Bus Design */

/* Contact Modal */
/* ===== REDESIGNED CONTACT MODAL ===== */
.contact-modal { 
    position: fixed; 
    inset: 0; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 10000; 
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
}
.contact-modal.active { display: flex; }

/* Modern backdrop with enhanced blur - No background color */
.contact-overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(16px) saturate(1.3); 
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    animation: fadeIn 0.3s ease-out;
}

/* Modern Card Design - Glassmorphism */
.contact-content { 
    position: relative; 
    width: 100%; 
    max-width: 580px; 
    max-height: 90vh; 
    overflow-y: auto; 
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.5); 
    border-radius: 24px; 
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0; 
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth scrollbar */
.contact-content::-webkit-scrollbar {
    width: 6px;
}
.contact-content::-webkit-scrollbar-track {
    background: transparent;
}
.contact-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}
.contact-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Close Button - Modern Design */
.contact-close { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    z-index: 10;
    border: none; 
    background: rgba(248, 113, 113, 0.1); 
    color: #dc2626; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.contact-close:hover { 
    background: #dc2626; 
    color: #ffffff; 
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

/* Modal Header Section - Using website color palette */
.modal-header {
    text-align: center;
    padding: 48px 40px 32px;
    background: transparent;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.3),
        0 5px 15px rgba(59, 130, 246, 0.2);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
}

.contact-title { 
    margin: 0 0 12px; 
    font-size: 2.25rem; 
    font-weight: 800; 
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.contact-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Form Container */
.contact-form {
    padding: 32px 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: var(--primary-color);
    font-size: 14px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: inherit; 
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder { 
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button - Using website color palette */
.contact-form .btn-submit {
    width: 100%;
    padding: 16px 24px;
    margin-top: 8px;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 14px rgba(59, 130, 246, 0.35),
        0 2px 6px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

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

.contact-form .btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.4),
        0 4px 12px rgba(59, 130, 246, 0.3);
    background: #2563eb;
}

.contact-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 14px rgba(59, 130, 246, 0.35),
        0 2px 6px rgba(59, 130, 246, 0.2);
}

.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Quick Contact Info - Glassmorphism */
.quick-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px 40px;
    background: rgba(241, 245, 249, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 24px 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.quick-contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-contact-item a:hover {
    color: var(--primary-color);
}

.quick-contact-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Two-column on wide screens */
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .contact-form .form-row:nth-child(n+3) { grid-column: span 2; }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .contact-content { 
    max-width: 95%; 
    border-radius: 20px;
  }
  
  .modal-header {
    padding: 36px 24px 28px;
  }
  
  .modal-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .contact-title { 
    font-size: 1.75rem; 
    margin-bottom: 10px; 
  }
  
  .contact-subtitle {
    font-size: 0.875rem;
  }
  
  .contact-form {
    padding: 24px 20px;
  }
  
  .form-grid { 
    grid-template-columns: 1fr;
    gap: 16px; 
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-label {
    font-size: 0.8rem;
  }
  
  .contact-form input, .contact-form textarea { 
    padding: 12px 14px; 
    font-size: 0.9rem;
  }
  
  .contact-form .btn-submit { 
    padding: 14px 20px; 
    font-size: 0.95rem; 
  }
  
  .quick-contact {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  
  .quick-contact-item {
    font-size: 0.8rem;
  }
  
  .contact-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}
/* Submit button full width with modern gradient */
/* Contact form buttons use unified styling */
.contact-form .btn.btn-primary { 
    width: 100%; 
    padding: 16px 24px; 
    font-size: 1rem; 
    font-weight: 600;
    margin-top: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}
.contact-form .btn.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}
.contact-form .btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-45deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotate(5deg);
    }
    70% {
        transform: scale(0.9) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(10deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-10deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Accessibility and Error States */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 4px;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #dc2626;
    background: rgba(254, 226, 226, 0.5);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.submit-status {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.submit-status.show {
    opacity: 1;
    transform: translateY(0);
}

.submit-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.submit-status.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Quiz styles */
.hidden { display: none; }
.quiz { margin-top: 8px; }
.quiz-header { display:flex; justify-content: space-between; align-items:center; gap: 12px; margin-bottom: 10px; }
.quiz-title { font-weight: 800; color: var(--text-primary); display:flex; align-items:center; gap:8px; }
.quiz-progress { display:flex; align-items:center; gap:10px; }
.quiz-progress-bar { width: 180px; height: 8px; background: var(--primary-100); border-radius: 999px; overflow:hidden; position: relative; }
.quiz-progress-bar span { display:block; height:100%; width:0; background: var(--gradient-primary); border-radius:999px; transition: width .35s ease; }
.quiz-step { color: var(--text-secondary); font-weight:700; display:flex; align-items:center; gap:6px; }
.quiz-card { background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-lg); animation: fadeInUp .4s ease; }
.quiz-question { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.quiz-options { display:grid; gap:10px; }
.quiz-option { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--border-light); border-radius: 12px; background: var(--bg-secondary); cursor:pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.quiz-option:hover { transform: translateY(-1px); border-color: var(--primary-100); }
.quiz-option i { color: var(--secondary-color); }
.quiz-option.selected { border-color: var(--primary-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 20%, transparent); background: #fff; }
.quiz-actions { margin-top: 12px; display:flex; justify-content:flex-end; }
.quiz-result { text-align:center; margin-top: 16px; animation: fadeInUp .4s ease; }
.result-score { font-size: 1.6rem; font-weight: 800; color: var(--primary-color); display:flex; align-items:center; justify-content:center; gap:8px; }
.result-actions { margin-top: 12px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* WhatsApp-style quiz */
.wa-quiz { margin-top: 18px; }
.wa-title { text-align:center; font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.wa-title .accent { color: var(--secondary-color); }
.wa-grid { display:grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items:start; }
.wa-intro { color: var(--text-secondary); margin-bottom: 10px; }
.wa-list { counter-reset: q; list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.wa-list li { counter-increment: q; background:#fff; border:1px solid var(--secondary-100); border-radius:14px; padding:12px 14px; box-shadow: var(--shadow-sm); display:flex; align-items:center; gap:10px; }
.wa-list li::before { content: counter(q); width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; border:2px solid var(--secondary-color); color: var(--secondary-color); font-weight:800; }
.wa-malayalam { font-weight:700; color: var(--text-primary); }
.wa-english { margin-left:auto; padding:8px 12px; border-radius:10px; border:1px dashed var(--secondary-200); color: var(--text-secondary); background: var(--secondary-50); }
.wa-info { background:#fff; border:1px solid var(--border-light); border-radius:14px; padding:12px; box-shadow: var(--shadow-sm); }
.wa-actions { display:flex; justify-content:flex-end; margin-top: 12px; }

@media (max-width: 900px) { .wa-grid { grid-template-columns: 1fr; } .wa-actions { justify-content:center; } }

/* Level Test page styles */
/* Blog Section - Featured + List layout */
.blog { padding: 70px 0; background: var(--bg-primary); }
.blog-wrap { display:grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items:start; }

/* Featured card */
.blog-featured { background:#fff; border:1px solid var(--border-light); border-radius: 20px; overflow:hidden; box-shadow: var(--shadow-sm); display:flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.blog-featured:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.bf-media { position: relative; display:block; overflow:hidden; aspect-ratio: 16/9; background: var(--primary-50); }
.bf-media img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .6s ease; }
.blog-featured:hover .bf-media img { transform: scale(1.06); }
.bf-badge { position:absolute; top:14px; left:14px; background: var(--secondary-color); color:#fff; font-weight:800; font-size:.8rem; padding:6px 10px; border-radius:999px; box-shadow: 0 8px 20px color-mix(in srgb, var(--secondary-color) 40%, transparent); }
.bf-content { padding: 18px 18px 20px; }
.bf-category { display:inline-block; background: var(--primary-50); color: var(--primary-color); border:1px solid var(--primary-100); border-radius:999px; padding:6px 10px; font-weight:700; font-size:.8rem; text-decoration:none; }
.bf-title { font-size: 1.6rem; line-height:1.3; margin: 10px 0 8px; font-weight:800; }
.bf-title a { color: var(--text-primary); text-decoration:none; }
.bf-title a:hover { color: var(--primary-color); }
.bf-excerpt { color: var(--text-secondary); margin-bottom: 12px; }
.bf-meta { display:flex; align-items:center; gap:10px; color: var(--text-light); font-weight:600; font-size:.9rem; }
.bf-meta i { color: var(--secondary-color); }
.bf-dot { opacity:.5; }

/* List */
.blog-list { display:flex; flex-direction: column; gap: 1rem; }
.blog-item { display:grid; grid-template-columns: 120px 1fr; gap: 12px; background:#fff; border:1px solid var(--border-light); border-radius: 14px; overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.blog-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.bi-media { display:block; height: 100%; background: var(--primary-50); }
.bi-media img { width:100%; height:100%; object-fit:cover; display:block; }
.bi-content { padding: 12px 12px 12px 0; }
.bi-category { display:inline-block; color: var(--secondary-color); font-weight:800; text-decoration:none; font-size:.8rem; }
.bi-title { font-size: 1.05rem; line-height:1.35; margin: 6px 0 8px; font-weight:800; }
.bi-title a { color: var(--text-primary); text-decoration:none; }
.bi-title a:hover { color: var(--primary-color); }
.bi-meta { color: var(--text-light); font-weight:600; font-size:.85rem; display:flex; align-items:center; gap:8px; }
.blog-cta { text-align:center; margin-top: 1.8rem; }

@media (max-width: 1024px) {
  .blog-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .blog-item { grid-template-columns: 100px 1fr; }
}
@media (max-width: 480px) {
  .blog-item { grid-template-columns: 80px 1fr; }
}
.lt-hero { background: linear-gradient(135deg, var(--primary-50), #fff); padding: 64px 0; position: relative; overflow:hidden; }
.lt-hero::after { content:''; position:absolute; right:-120px; top:-120px; width:360px; height:360px; border-radius:50%; background: radial-gradient(circle, color-mix(in srgb, var(--secondary-color) 25%, transparent), transparent 60%); filter: blur(6px); opacity:.6; }
.lt-hero-wrap { display:grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items:center; }
.lt-hero-title { font-size: 3rem; font-weight: 800; color: var(--text-primary); margin-bottom: .6rem; letter-spacing:-.5px; animation: slideUp .6s ease both; }
.lt-hero-sub { color: var(--text-secondary); margin-bottom: 1.2rem; max-width: 700px; animation: slideUp .6s ease .08s both; }
.lt-cta { display:flex; align-items:center; gap: .6rem; margin-bottom: 1.2rem; animation: slideUp .6s ease .16s both; }
.lt-stats { display:flex; gap: 1rem; flex-wrap:wrap; animation: fadeIn .8s ease .22s both; }
.lt-stat { background: #fff; border:1px solid var(--border-light); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-sm); color: var(--text-secondary); font-weight:600; }
.lt-stat span { color: var(--primary-color); font-weight: 800; margin-right: 6px; }
.lt-hero-media .img-placeholder { width: 100%; height: 320px; border-radius: 22px; border: 2px dashed var(--primary-200); background: var(--primary-50); display:flex; align-items:center; justify-content:center; color: var(--primary-dark); font-weight:800; position:relative; }
.media-stack { position: relative; width: 100%; height: 360px; }
.media-stack img { position:absolute; inset:auto; border-radius: 18px; border: 2px solid var(--primary-100); background: var(--primary-50); box-shadow: var(--shadow-md); object-fit: cover; }
.media-stack .ph1 { animation: floatSoft 10s ease-in-out infinite; }
/* .media-stack.single .ph1 { left: 20px; right: 20px; } */
.photo-card {
  position: absolute; inset: 0; display:flex; align-items:center; justify-content:center;
  padding: 18px; border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 70px rgba(2,6,23,.10), 0 2px 10px rgba(2,6,23,.04);
  transition: transform .35s ease, box-shadow .35s ease;
}
/* Subtle brand gradient border */
.photo-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 26px; padding: 2px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 45%, #fff), color-mix(in srgb, var(--secondary-color) 45%, #fff));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .25;
}
.photo-card::after {
  content:''; position:absolute; inset: 18px; border-radius: 20px;
  background: radial-gradient(120% 80% at 50% 120%, rgba(2,6,23,.20), transparent 60%);
  pointer-events:none; opacity:.15;
}
.photo-card:hover { transform: translateY(-2px); box-shadow: 0 28px 80px rgba(2,6,23,.12), 0 4px 12px rgba(2,6,23,.06); }
.photo-card img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 20px; border: 0; object-fit: cover; }

/* Glassy pills for better contrast on photo */
.lt-hero .floating-pill { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(255,255,255,.85); border-color: color-mix(in srgb, #000 8%, #fff); box-shadow: 0 8px 24px rgba(2,6,23,.12); }
.lt-hero .floating-pill.right { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.floating-pill { position:absolute; left: 12px; bottom: 18px; background:#fff; border:1px solid var(--border-light); border-radius:999px; padding:8px 12px; color: var(--text-secondary); display:flex; align-items:center; gap:8px; box-shadow: var(--shadow-sm); animation: slideUp .6s ease .25s both; }
.floating-pill.right { left: auto; right: 12px; bottom: 60px; animation-delay:.35s; }
.floating-pill i { color: var(--secondary-color); }
.img-placeholder.tall { height: 320px; }
.img-badge { position:absolute; top:10px; right:10px; background: var(--secondary-color); color:#fff; font-weight:800; padding:4px 8px; border-radius:8px; font-size:.8rem; }

/* Level Test hero: place pills at top of image */
.lt-hero .floating-pill { top: 18px; bottom: auto; z-index: 3; left: -60px; }
.lt-hero .floating-pill.right { top: auto; bottom: 18px; right: -68px; left: auto; }

.lt-steps { padding: 64px 0; }
.steps-timeline { position: relative; margin-top: 28px; }
.steps-timeline ul { list-style:none; padding:0; margin:0; position: relative; }
/* Central gradient spine */
.steps-timeline ul::before { content:''; position:absolute; left:50%; top:0; bottom:0; width:6px; background: linear-gradient(180deg, var(--primary-100), var(--secondary-100)); transform: translateX(-50%); border-radius:999px; box-shadow: inset 0 0 0 1px var(--primary-50); }

/* Items */
.tl-item { position: relative; width: 50%; padding: 16px 0 16px; }
.tl-item.left { padding-right: 32px; text-align: right; }
.tl-item.right { margin-left: 50%; padding-left: 32px; }

/* Dots */
.tl-dot { display: none; }

/* Cards */
.tl-card { display:inline-block; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border:1px solid var(--border-light); border-radius: 16px; box-shadow: 0 10px 30px rgba(2,6,23,.08); padding: 16px 18px; max-width: 560px; opacity:0; transform: translateY(10px) scale(.98); transition: transform .4s var(--bezier,.25,.8,.25,1) var(--tl-delay,0ms), opacity .4s ease var(--tl-delay,0ms), box-shadow .25s ease; }
.tl-item.in-view .tl-card { opacity:1; transform: translateY(0) scale(1); box-shadow: 0 16px 46px rgba(2,6,23,.10); }
.tl-item.in-view .tl-dot { animation: pulseGlow 2.2s ease-in-out .2s 2; }
.tl-item.right .tl-card { text-align: left; }
.tl-item.left .tl-card { text-align: right; }

/* Connectors from dot to card */
.tl-item.left .tl-card::after { content:''; position:absolute; top: 50%; transform: translateY(-50%); right: -16px; width: 16px; height: 2px; background: var(--primary-100); }
.tl-item.right .tl-card::after { content:''; position:absolute; top: 50%; transform: translateY(-50%); left: -16px; width: 16px; height: 2px; background: var(--primary-100); }
@media (max-width: 900px) {
  .steps-timeline ul::before { left: 16px; transform:none; }
  .tl-item, .tl-item.right { width: 100%; margin-left:0; padding: 14px 0 14px 46px; text-align:left; }
  .tl-item.left .tl-card, .tl-item.right .tl-card { text-align:left; display:block; }
  .tl-dot { left: 2px; transform: translateY(-50%); }
}

.lt-tips { padding: 64px 0; background: var(--bg-secondary); }
.habit-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 12px; }
.habit-card { position: relative; background:#fff; border:1px solid var(--border-light); border-radius: 16px; padding: 16px 16px 16px 60px; box-shadow: var(--shadow-sm); opacity:0; transform: translateY(10px); transition: transform .35s ease var(--hc-delay,0ms), opacity .35s ease var(--hc-delay,0ms), box-shadow .2s ease; }
.habit-card::before { content:''; position:absolute; left:16px; top:16px; bottom:16px; width:6px; border-radius:3px; background: var(--gradient-secondary); opacity:.6; }
.habit-card.in-view { opacity:1; transform: translateY(0); box-shadow: var(--shadow-md); }
.habit-icon { position:absolute; left: 26px; top: 18px; width: 28px; height: 28px; border-radius: 8px; background: var(--secondary-50); border:1px solid var(--secondary-200); color: var(--secondary-color); display:flex; align-items:center; justify-content:center; }
.habit-body h4 { margin-bottom: 6px; }
@media (max-width: 1024px) { .habit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .habit-grid { grid-template-columns: 1fr; } }

.lt-benefits { padding: 72px 0; position: relative; }
.benefits-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: stretch; }
/* Premium cards */
.benefit-card {
  position: relative;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 22px 20px 20px;
  box-shadow: 0 14px 36px rgba(2,6,23,.08);
  text-align:center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit-card::before{
  content:""; position:absolute; inset:0; border-radius:18px; pointer-events:none; opacity:.18;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 40%, #fff), color-mix(in srgb, var(--secondary-color) 40%, #fff));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding:1px;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(2,6,23,.12); border-color: var(--primary-100); }

.benefit-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary-50); display:flex; align-items:center; justify-content:center; color: var(--primary-color); margin: 0 auto 12px; box-shadow: inset 0 0 0 1px var(--primary-100); }
.benefit-card h4 { font-weight: 800; margin-bottom: 8px; }
.benefit-card p { color: var(--text-secondary); }

/* Staggered reveal */
.benefit-card { opacity: 0; transform: translateY(8px); }
.benefit-card:nth-child(1){ animation: slideUp .5s ease .05s both; }
.benefit-card:nth-child(2){ animation: slideUp .5s ease .15s both; }
.benefit-card:nth-child(3){ animation: slideUp .5s ease .25s both; }
.benefit-card:nth-child(4){ animation: slideUp .5s ease .35s both; }

.lt-faq { padding: 64px 0; background: var(--bg-secondary); }
.faq-accordion { max-width: 960px; margin: 0 auto; display:flex; flex-direction:column; gap: .8rem; }
.faq-item { background:#fff; border:1px solid var(--border-light); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-question { width:100%; text-align:left; padding: 16px 18px; background:#fff; border:none; display:flex; align-items:center; justify-content:space-between; gap: 10px; cursor:pointer; font-weight:800; color: var(--text-primary); }
.faq-question i { transition: transform .25s ease; color: var(--primary-color); }
.faq-answer { padding: 0 18px 0; max-height: 0; opacity: 0; transform: translateY(-6px); transition: max-height .35s ease, opacity .25s ease, transform .25s ease; color: var(--text-secondary); }
.faq-item.open .faq-answer { padding: 0 18px 16px; max-height: 240px; opacity: 1; transform: translateY(0); }
.faq-item.open .faq-question i { transform: rotate(180deg); }

/* Simple reveal animations */
@keyframes slideUp { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform: translateY(0);} }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes floatSoft { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(14,165,233,.0);} 50% { box-shadow: 0 0 0 8px rgba(14,165,233,.12);} }

@media (max-width: 1024px) {
  .lt-hero-wrap { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .lt-split { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .steps-grid, .benefits-grid { grid-template-columns: 1fr; }
}

/* Hero Section Circle */
.hero-flowing-shape {
    position: absolute;
    top: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.08;
    animation: heroCircleFloat 20s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes heroCircleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.08;
    }
    50% { 
        transform: translate(15px, -20px) scale(1.1);
        opacity: 0.12;
    }
}

/* Courses Section Circle */
.courses-flowing-shape {
    position: absolute;
    top: 20%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    opacity: 0.06;
    animation: coursesCircleFloat 25s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes coursesCircleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.06;
    }
    50% { 
        transform: translate(-10px, 25px) scale(0.9);
        opacity: 0.1;
    }
}

/* Highlights Section Circle */
.highlights-flowing-shape {
    position: absolute;
    bottom: 25%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(225deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.07;
    animation: highlightsCircleFloat 30s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes highlightsCircleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.07;
    }
    50% { 
        transform: translate(20px, -15px) scale(1.05);
        opacity: 0.11;
    }
}

/* Testimonials Section Circle */
.testimonials-flowing-shape {
    position: absolute;
    top: 30%;
    left: 3%;
    width: 60px;
    height: 60px;
    background: linear-gradient(315deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    opacity: 0.05;
    animation: testimonialsCircleFloat 22s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes testimonialsCircleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.05;
    }
    50% { 
        transform: translate(12px, 18px) scale(1.15);
        opacity: 0.09;
    }
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    padding: 0 1rem;
    color: var(--text-primary);
}

.video-description {
    color: var(--text-secondary);
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}

/* Limited Seats Section */
.limited-seats { padding: 60px 0; background: var(--gradient-warm); color: var(--text-primary); }
.limited-seats.redesigned { background: linear-gradient(180deg, var(--bg-secondary), #fff); position: relative; overflow: hidden; }
.limited-seats.redesigned::before { content:''; position:absolute; inset:-20% -10% auto -10%; height:60%; background: radial-gradient(100% 50% at 10% 10%, color-mix(in srgb, var(--primary-color) 6%, transparent) 0%, transparent 60%); pointer-events:none; }

/* Banner layout like the reference */
.urgency-banner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--primary-100); border-radius: 28px; padding: 24px 28px; box-shadow: 0 20px 60px color-mix(in srgb, var(--primary-color) 16%, transparent); animation: bannerRise .7s ease-out both; }
.ub-left { position: relative; min-height: 260px; display: flex; align-items: flex-end; }
.ub-circle { position: absolute; left: 10%; top: 10%; width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--primary-color) 85%, white) 0%, color-mix(in srgb, var(--primary-color) 65%, white) 60%, color-mix(in srgb, var(--primary-color) 40%, white) 100%); border-radius: 50%; filter: saturate(1.1); opacity: 0.95; box-shadow: 0 12px 40px color-mix(in srgb, var(--primary-color) 25%, transparent); animation: circlePulse 6s ease-in-out infinite; }
.ub-img { position: relative; width: 100%; max-width: 320px; height: auto; z-index: 1; }
.ub-right { padding: 10px 0; }
.ub-title { font-size: 2.2rem; line-height: 1.2; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; letter-spacing: .2px; }
.ub-title .accent { color: var(--primary-color); position: relative; }
.ub-title .accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--secondary-color), color-mix(in srgb, var(--secondary-color) 70%, var(--primary-color))); filter: blur(.3px); opacity: .25; animation: accentSweep 2.6s ease-in-out infinite; }
.ub-sub { color: var(--text-secondary); margin-bottom: 18px; font-size: 1.05rem; }
.ub-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--primary-dark), var(--primary-color)); color: #fff; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 14px 32px color-mix(in srgb, var(--primary-color) 35%, transparent); transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; }
.ub-btn::before { content: ''; position: absolute; top: 0; left: -120%; width: 120%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); animation: btnSheen 2.4s linear infinite; }
.ub-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px color-mix(in srgb, var(--primary-color) 45%, transparent); }

@keyframes bannerRise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes circlePulse { 0%,100% { transform: scale(1); filter: saturate(1.05); } 50% { transform: scale(1.06); filter: saturate(1.15); } }
@keyframes accentSweep { 0%,100% { transform: translateX(-5%); opacity: .22; } 50% { transform: translateX(5%); opacity: .35; } }
@keyframes btnSheen { 0% { transform: translateX(0); } 100% { transform: translateX(200%); } }

@media (max-width: 1024px) {
  .urgency-banner { grid-template-columns: 1fr; text-align: center; }
  .ub-left { justify-content: center; min-height: 200px; }
  .ub-circle { left: 50%; transform: translateX(-50%); }
  .ub-img { margin: 0 auto; }
}

/* Extra mobile safety tweaks */
@media (max-width: 640px) {
  .hero { padding: 130px 0 40px; }
  .hero-title { font-size: 1.9rem; }
  .hero-buttons { gap: .75rem; }
  .btn { width: 100%; justify-content: center; }

  .ub-title { font-size: 1.8rem; }
  .ub-btn { display: flex; width: 100%; justify-content: center; }

  /* Fix chip text alignment when hero-content centers the parent */
  .test-feature { text-align: left !important; justify-content: flex-start !important; }
  .test-feature span { text-align: left !important; flex: 1; }

  .video-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }

  .testimonials-layout { grid-template-columns: 1fr; gap: 2rem; }
  .iphone-mockup { width: 300px; height: 489px; margin: 0 auto; }

  /* Level Test Page Mobile */
  .lt-hero-wrap { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .lt-hero-title { font-size: 2.2rem; }
  .lt-cta { flex-direction: column; align-items: stretch; }
  .lt-stats { justify-content: center; }
  .lt-stat { flex: 1; min-width: 0; }
  
  /* Fix floating pills positioning on mobile */
  .lt-hero .floating-pill { left: 8px; right: auto; }
  .lt-hero .floating-pill.right { right: 8px; left: auto; }
  .floating-pill { font-size: 0.85rem; padding: 6px 10px; }
  
  /* Ensure photo card contains all elements */
  .photo-card { overflow: hidden; position: relative; }
  .media-stack { overflow: hidden; }
  
  /* Assessment Page Mobile */
  .quiz-header { flex-direction: column; gap: 1rem; align-items: stretch; }
  .quiz-progress { flex-direction: column; gap: 0.5rem; }
  .quiz-actions { text-align: center; }
  .quiz-card { padding: 1.5rem; }
  .quiz-answer-input { font-size: 16px; } /* Prevent zoom on iOS */
  .quiz-timer { font-size: 1.1rem; }
  .quiz-count { font-size: 0.9rem; }
  
  /* Contact Modal Mobile */
  .contact-content { margin: 1rem; max-width: calc(100vw - 2rem); }
  .contact-form { padding: 1.5rem; }
  .contact-form input, .contact-form textarea { font-size: 16px; } /* Prevent zoom on iOS */
  
  /* Blog Section Mobile */
  .blog-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-item { grid-template-columns: 80px 1fr; gap: 0.75rem; }
  
  /* FAQ Mobile */
  .faq-question { padding: 1rem; font-size: 0.95rem; }
  .faq-answer { padding: 0 1rem 1rem; }
  
  /* Footer Mobile */
  .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-bottom-content { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Large screens subtle spacing */
@media (min-width: 1440px) {
  .hero-content { gap: 5rem; }
  .urgency-banner { padding: 36px 40px; }
}

.urgency-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.urgency-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.urgency-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.countdown-timer {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.timer-item {
    text-align: center;
    background: var(--secondary-50);
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    padding: 1rem;
    min-width: 80px;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.timer-item:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

.timer-item:hover .timer-number,
.timer-item:hover .timer-label {
    color: white;
}

.timer-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.timer-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.urgency-buttons {
    display: flex;
    gap: 1rem;
}

.seats-indicator {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.seats-filled {
    width: 100%;
    height: 20px;
    background: var(--primary-50);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.seats-filled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    animation: fillSeats 2s ease;
}

.seats-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, color-mix(in srgb, var(--primary-dark) 85%, #000 15%) 100%);
    color: #ffffff;
    padding: 70px 0 80px;
    position: relative;
}

/* Responsive Footer Padding */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 60px;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 40px 0 50px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Responsive Footer Layout */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    border-radius: 8px;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    mix-blend-mode: normal;
}

.footer-description {
    color: color-mix(in srgb, #ffffff 82%, transparent);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.9rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--secondary-color) 35%, transparent);
}

.social-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    box-shadow: 0 12px 26px color-mix(in srgb, var(--secondary-dark) 40%, transparent);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: color-mix(in srgb, #ffffff 78%, transparent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary-light);
}

.footer-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: transparent;
    padding: 0;
}

/* Responsive Footer Sections */
@media (max-width: 640px) {
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin: 0 auto 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-item i {
    color: var(--secondary-color);
    width: 20px;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    display: block;
    white-space: normal;
    word-break: break-word;
}

.footer-bottom {
    border-top: 1px solid color-mix(in srgb, var(--secondary-color) 25%, transparent);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: color-mix(in srgb, #ffffff 75%, transparent);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive Footer Bottom */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: color-mix(in srgb, #ffffff 75%, transparent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--secondary-light);
}

.footer-credit {
    margin-top: 1rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--secondary-color) 15%, transparent);
}

.footer-credit p {
    color: color-mix(in srgb, #ffffff 60%, transparent);
    font-size: 0.875rem;
    margin: 0;
}

.footer-credit a {
    color: var(--secondary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Most Popular Activity Section */
.activities-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.activity-highlight {
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.highlight-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.highlight-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.highlight-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Activity Timeline */
.activity-timeline {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-day {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.timeline-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Mobile Responsive for Most Popular Activity */
@media (max-width: 768px) {
    .activities-sidebar {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }
    
    .highlight-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }
    
    .highlight-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .highlight-description {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .highlight-stats {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .stat {
        padding: 0.75rem;
        background: var(--primary-50);
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .activity-timeline {
        padding-top: 1.25rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .timeline-item {
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding: 0.75rem;
        background: var(--bg-secondary);
        border-radius: 8px;
    }
    
    .timeline-dot {
        width: 10px;
        height: 10px;
    }
    
    .timeline-day {
        font-size: 1rem;
    }
    
    .timeline-time {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .activities-sidebar {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .highlight-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .highlight-title {
        font-size: 1.3rem;
    }
    
    .highlight-description {
        font-size: 0.95rem;
    }
    
    .stat {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .timeline-item {
        padding: 0.5rem;
    }
}

/* What Makes Us Different Section */
.description-highlights {
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsive for What Makes Us Different */
@media (max-width: 768px) {
    .description-highlights {
        margin-top: 1.5rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .highlight-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        margin: 0 auto;
    }
    
    .highlight-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .highlight-item p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .description-highlights h3 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .highlight-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .highlight-item h4 {
        font-size: 1.1rem;
    }
    
    .highlight-item p {
        font-size: 0.9rem;
    }
}

/* Learning Activities Section */
.activities-showcase {
    margin-top: 3rem;
}

.activities-main {
    width: 100%;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.activity-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-100);
}

.activity-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.activity-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.activity-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive for Learning Activities */
@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        gap: 1.5rem;
    }
    
    .activity-card {
        padding: 1.75rem;
    }
    
    .activity-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .activity-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .activity-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .activity-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 0 auto 1.25rem;
    }
    
    .activity-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .activity-description {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

@media (max-width: 640px) {
    .activities-showcase {
        margin-top: 2rem;
    }
    
    .activities-grid {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .activity-card {
        padding: 1.25rem;
    }
    
    .activity-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .activity-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .activity-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .activities-showcase {
        margin-top: 1.5rem;
    }
    
    .activities-grid {
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
    
    .activity-card {
        padding: 1rem;
    }
    
    .activity-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .activity-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .activity-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* What You'll Master Section */
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.point-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.point-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-100);
}

.point-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.point-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.point-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive for What You'll Master */
@media (max-width: 1024px) {
    .points-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        gap: 1.5rem;
    }
    
    .point-card {
        padding: 1.75rem;
    }
    
    .point-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .point-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .points-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .point-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .point-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 0 auto 1.25rem;
    }
    
    .point-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .point-description {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

@media (max-width: 640px) {
    .points-grid {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .point-card {
        padding: 1.25rem;
    }
    
    .point-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .point-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .point-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .points-grid {
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
    
    .point-card {
        padding: 1rem;
    }
    
    .point-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .point-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .point-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* About Page Mobile Responsive */
@media (max-width: 1024px) {
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-hero-title {
        font-size: 2.5rem;
    }
    
    .about-hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 60px 0;
    }
    
    .about-hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .about-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .about-hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .about-stat {
        padding: 1.25rem;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        min-width: 220px;
        border: 1px solid var(--primary-100);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .about-stat:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .about-stat .stat-number {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }
    
    .about-stat .stat-label {
        font-size: 0.9rem;
        color: var(--text-secondary);
        font-weight: 600;
    }
    
    .about-hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        max-width: 350px;
    }
    
    .about-hero-img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .about-hero-badge {
        position: static;
        margin: 1.5rem auto 0;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        max-width: 300px;
        text-align: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid var(--primary-100);
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .mission-vision {
        padding: 60px 0;
    }
    
    .mv-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .mv-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1rem;
    }
    
    .mv-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .mv-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .our-story {
        padding: 60px 0;
    }
    
    .story-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .story-highlights {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        margin-top: 1.5rem;
        width: 100%;
    }
    
    .story-highlight {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--primary-100);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        max-width: 400px;
        width: 100%;
    }
    
    .story-highlight:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    .story-highlight i {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }
    
    .story-highlight span {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.5;
    }
    
    .our-values {
        padding: 60px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .value-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 1rem;
    }
    
    .value-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .value-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .highlights {
        padding: 60px 0;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .highlight-icon {
        width: 56px;
        height: 56px;
        font-size: 1rem;
        margin: 0 auto 1rem;
    }
    
    .highlight-icon i {
        font-size: 1rem;
    }
    
    .highlight-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .highlight-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .our-team {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        text-align: center;
    }
    
    .member-photo {
        margin: 0 auto 1rem;
        width: 200px;
        height: 200px;
        border-radius: 50%;
    }
    
    .member-name {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .member-role {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .member-bio {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .testimonials-content {
        padding-left: 0;
        order: -1;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .limited-seats {
        padding: 60px 0;
    }
    
    .urgency-banner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .ub-left {
        min-height: 200px;
        justify-content: center;
    }
    
    .ub-circle {
        width: 150px;
        height: 150px;
    }
    
    .ub-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .ub-sub {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 40px 0;
    }
    
    .about-hero-title {
        font-size: 1.8rem;
    }
    
    .about-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .about-hero-stats {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .about-stat {
        min-width: 180px;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .about-stat .stat-number {
        font-size: 1.6rem;
        font-weight: 800;
    }
    
    .about-stat .stat-label {
        font-size: 0.85rem;
    }
    
    .about-hero-image {
        max-width: 300px;
    }
    
    .about-hero-img {
        max-width: 280px;
    }
    
    .about-hero-badge {
        margin: 1.25rem auto 0;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .mission-vision {
        padding: 40px 0;
    }
    
    .mv-card {
        padding: 1.25rem;
    }
    
    .mv-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .mv-title {
        font-size: 1.3rem;
    }
    
    .mv-description {
        font-size: 0.9rem;
    }
    
    .our-story {
        padding: 40px 0;
    }
    
    .story-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .story-highlights {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        margin-top: 1.25rem;
        width: 100%;
    }
    
    .story-highlight {
        padding: 1rem;
        max-width: 350px;
        border-radius: 14px;
    }
    
    .story-highlight i {
        font-size: 1.4rem;
    }
    
    .story-highlight span {
        font-size: 0.9rem;
    }
    
    .our-values {
        padding: 40px 0;
    }
    
    .value-card {
        padding: 1.25rem;
    }
    
    .value-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .value-title {
        font-size: 1.1rem;
    }
    
    .value-description {
        font-size: 0.85rem;
    }
    
    .highlights {
        padding: 40px 0;
    }
    
    .highlight-card {
        padding: 1.25rem;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
        font-size: 0.95rem;
    }
    
    .highlight-icon i {
        font-size: 0.95rem;
    }
    
    .highlight-title {
        font-size: 1.1rem;
    }
    
    .highlight-description {
        font-size: 0.85rem;
    }
    
    .our-team {
        padding: 40px 0;
    }
    
    .member-photo {
        width: 150px;
        height: 150px;
        border-radius: 50%;
    }
    
    .member-placeholder i {
        font-size: 2.25rem;
    }
    
    .member-name {
        font-size: 1.2rem;
    }
    
    .member-role {
        font-size: 0.95rem;
    }
    
    .member-bio {
        font-size: 0.85rem;
    }
    
    .testimonials {
        padding: 40px 0;
    }
    
    .content-title {
        font-size: 1.8rem;
    }
    
    .content-description {
        font-size: 0.95rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .limited-seats {
        padding: 40px 0;
    }
    
    .urgency-banner {
        padding: 1.25rem;
    }
    
    .ub-left {
        min-height: 150px;
    }
    
    .ub-circle {
        width: 120px;
        height: 120px;
    }
    
    .ub-title {
        font-size: 1.6rem;
    }
    
    .ub-sub {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 30px 0;
    }
    
    .about-hero-title {
        font-size: 1.6rem;
    }
    
    .about-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .about-hero-stats {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .about-stat {
        min-width: 140px;
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .about-stat .stat-number {
        font-size: 1.4rem;
        font-weight: 800;
    }
    
    .about-stat .stat-label {
        font-size: 0.8rem;
    }
    
    .about-hero-image {
        max-width: 250px;
    }
    
    .about-hero-img {
        max-width: 220px;
    }
    
    .about-hero-badge {
        margin: 1rem auto 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        max-width: 260px;
        border-radius: 40px;
    }
    
    .mission-vision {
        padding: 30px 0;
    }
    
    .mv-card {
        padding: 1rem;
    }
    
    .mv-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .mv-title {
        font-size: 1.2rem;
    }
    
    .mv-description {
        font-size: 0.85rem;
    }
    
    .our-story {
        padding: 30px 0;
    }
    
    .story-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .story-highlights {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        margin-top: 1rem;
        width: 100%;
    }
    
    .story-highlight {
        padding: 0.75rem;
        max-width: 300px;
        border-radius: 12px;
    }
    
    .story-highlight i {
        font-size: 1.3rem;
    }
    
    .story-highlight span {
        font-size: 0.85rem;
    }
    
    .our-values {
        padding: 30px 0;
    }
    
    .value-card {
        padding: 1rem;
    }
    
    .value-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .value-title {
        font-size: 1rem;
    }
    
    .value-description {
        font-size: 0.8rem;
    }
    
    .highlights {
        padding: 30px 0;
    }
    
    .highlight-card {
        padding: 1rem;
    }
    
    .highlight-icon {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }
    
    .highlight-icon i {
        font-size: 0.85rem;
    }
    
    .highlight-title {
        font-size: 1rem;
    }
    
    .highlight-description {
        font-size: 0.8rem;
    }
    
    .our-team {
        padding: 30px 0;
    }
    
    .member-photo {
        width: 120px;
        height: 120px;
        border-radius: 50%;
    }
    
    .member-placeholder i {
        font-size: 1.75rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-role {
        font-size: 0.9rem;
    }
    
    .member-bio {
        font-size: 0.8rem;
    }
    
    .testimonials {
        padding: 30px 0;
    }
    
    .content-title {
        font-size: 1.6rem;
    }
    
    .content-description {
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .limited-seats {
        padding: 30px 0;
    }
    
    .urgency-banner {
        padding: 1rem;
    }
    
    .ub-left {
        min-height: 120px;
    }
    
    .ub-circle {
        width: 100px;
        height: 100px;
    }
    
    .ub-title {
        font-size: 1.4rem;
    }
    
    .ub-sub {
        font-size: 0.9rem;
    }
}

/* Accessibility focus */
.footer a:focus-visible {
    outline: 2px dashed var(--secondary-light);
    outline-offset: 3px;
}

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

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

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

@keyframes fillSeats {
    from {
        width: 0%;
    }
    to {
        width: 80%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* iPhone 17 Pro Max Media Queries */
@media screen
  and (device-width: 440px)
  and (device-height: 956px)
  and (-webkit-device-pixel-ratio: 3)
  and (orientation: portrait) {
    .iphone-mockup {
        width: 440px;
        height: 956px;
        transform: scale(1);
    }
}

@media screen
  and (device-width: 956px)
  and (device-height: 440px)
  and (-webkit-device-pixel-ratio: 3)
  and (orientation: landscape) {
    .iphone-mockup {
        width: 956px;
        height: 440px;
        transform: scale(0.5);
    }
}

/* Fallback for iPhone 17 Pro Max class devices */
@media screen
  and (min-width: 430px) and (max-width: 450px)
  and (min-height: 940px) and (max-height: 970px)
  and (resolution: 3dppx) {
    .iphone-mockup {
        width: 440px;
        height: 956px;
        transform: scale(0.8);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-slider {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background: #ffffff;
        background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
        z-index: 1200;
        padding-top: 80px; /* space for header */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Ensure body doesn't scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item { opacity: 0; transform: translateY(8px); transition: all .3s ease; }
    .nav-menu.active .nav-item { opacity: 1; transform: translateY(0); }
    .nav-menu.active .nav-item:nth-child(1){ transition-delay: .05s; }
    .nav-menu.active .nav-item:nth-child(2){ transition-delay: .1s; }
    .nav-menu.active .nav-item:nth-child(3){ transition-delay: .15s; }
    .nav-menu.active .nav-item:nth-child(4){ transition-delay: .2s; }
    .nav-menu.active .nav-item:nth-child(5){ transition-delay: .25s; }

    .nav-toggle {
        display: flex;
    }

    /* Keep close icon above overlay and positioned in header area */
    .nav-toggle { z-index: 1301; position: relative; }
    .nav-toggle.active { position: fixed; top: 18px; right: 20px; }
    .nav-toggle .bar { background: var(--text-primary); }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
        padding: 130px 0 40px;
    }

    /* Hide floating blobs on mobile — backdrop-filter stacks over text */
    .hero .floating-element {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }

    .test-container {
        grid-template-columns: 1fr;
    }

    .test-title,
    .test-description,
    .btn-test {
        text-align: center;
    }

    .test-features,
    .test-feature,
    .test-feature span {
        text-align: left !important;
    }

    .urgency-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .countdown-timer {
        justify-content: center;
    }

    .urgency-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .floating-card {
        display: none;
    }

    .hero-img {
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
}

/* Tablet adjustments for floating cards */
@media (max-width: 1024px) and (min-width: 769px) {
    .floating-elements {
        overflow: visible;
        z-index: 10;
    }
    
    .floating-card {
        min-width: 140px;
        padding: 0.75rem;
        font-size: 0.8rem;
        z-index: 10;
    }
    
    .card-1 {
        top: 10%;
        right: 2%;
    }
    
    .card-2 {
        top: 40%;
        left: 2%;
    }
    
    .card-3 {
        bottom: 10%;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .testimonials-content {
        padding-left: 0;
        order: -1;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .iphone-mockup {
        width: 320px;
        height: 520px; /* Better mobile proportions */
    }
    
    .iphone-frame::before {
        width: 80px; /* Mobile Dynamic Island */
        height: 18px;
        border-radius: 9px;
        top: 12px;
    }
    
    .slider-dots {
        margin-top: 25px;
        gap: 10px;
    }
    
    .header .logo-img,
    .nav-logo .logo-img,
    .nav-logo .logo {
        height: 62px;
        max-width: 180px;
        width: auto;
    }
    
    .app-logo {
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        flex-wrap: wrap;
    }

    /* Extra small mobile optimizations */
    .hero { padding: 130px 0 40px; }
    .hero-title { font-size: 1.75rem; line-height: 1.3; }
    .hero-description { font-size: 0.95rem; }
    
    .lt-hero-title { font-size: 1.9rem; }
    .lt-hero-sub { font-size: 0.95rem; }
    
    /* Extra small mobile - ensure pills stay within bounds */
    .lt-hero .floating-pill { left: 4px; right: auto; font-size: 0.8rem; padding: 5px 8px; }
    .lt-hero .floating-pill.right { right: 4px; left: auto; }
    
    .quiz-title { font-size: 1.1rem; }
    .quiz-question { font-size: 1rem; }
    
    .contact-content { margin: 0.5rem; padding: 1rem; }
    .contact-form { padding: 1rem; }
    
    .blog-item { grid-template-columns: 60px 1fr; gap: 0.5rem; }
    .blog-item .bi-title { font-size: 0.9rem; }
    
    .faq-question { padding: 0.75rem; font-size: 0.9rem; }
    .faq-answer { padding: 0 0.75rem 0.75rem; font-size: 0.9rem; }
    
    .benefit-card { padding: 1rem; }
    .benefit-card h4 { font-size: 1rem; }
    .benefit-card p { font-size: 0.9rem; }
    
    .steps-timeline ul { padding-left: 0; }
    .tl-item { padding: 12px 0 12px 40px; }
    .tl-dot { left: 0; width: 24px; height: 24px; }
    .tl-card h3 { font-size: 1.1rem; }
    .tl-card p { font-size: 0.9rem; }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .container { padding: 0 10px; }
    .hero-title { font-size: 1.5rem; }
    .lt-hero-title { font-size: 1.7rem; }
    .section-title { font-size: 1.8rem; }
    .btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
    .contact-content { margin: 0.25rem; padding: 0.75rem; }
    .quiz-card { padding: 1rem; }
    .benefit-card { padding: 0.75rem; }
    .faq-question { padding: 0.5rem; font-size: 0.85rem; }
    .faq-answer { padding: 0 0.5rem 0.5rem; font-size: 0.85rem; }
    
    /* Very small screens - pills positioning */
    .lt-hero .floating-pill { left: 2px; right: auto; font-size: 0.75rem; padding: 4px 6px; }
    .lt-hero .floating-pill.right { right: 2px; left: auto; }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    .btn { min-height: 44px; } /* iOS recommended touch target */
    .nav-link { padding: 0.75rem 1rem; }
    .faq-question { min-height: 44px; }
    .contact-close { width: 44px; height: 44px; }
    .modal-close { width: 44px; height: 44px; }
    .wa-float { width: 56px; height: 56px; } /* Larger touch target */
}

/* About Us Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-50), #fff);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--secondary-color) 25%, transparent), transparent 60%);
    filter: blur(6px);
    opacity: .6;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    animation: slideUp 0.6s ease both;
}

.about-hero-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: slideUp 0.6s ease 0.1s both;
}

.about-hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease 0.2s both;
}

.about-stat {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    min-width: 120px;
}

.about-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.about-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.about-hero-image {
    position: relative;
    animation: slideUp 0.6s ease 0.3s both;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.about-hero-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease 0.4s both;
}

.about-hero-badge i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Mission & Vision Section */
.mission-vision {
    padding: 80px 0;
    background: var(--bg-primary);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mv-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mv-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.mission .mv-icon {
    background: var(--gradient-primary);
}

.vision .mv-icon {
    background: var(--gradient-secondary);
}

.mv-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.mv-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Our Story Section */
.our-story {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.story-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.story-highlights {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.story-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.story-highlight i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.story-highlight span {
    color: var(--text-primary);
    font-weight: 600;
}

.story-image {
    position: relative;
}

.story-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Our Values Section */
.our-values {
    padding: 80px 0;
    background: var(--bg-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Our Team Section - Professional design */
.our-team {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.our-team .section-header {
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.team-member {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--primary-color);
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-100);
}

.member-photo {
    position: relative;
    overflow: hidden;
    height: 200px;
    width: 200px;
    border-radius: 50%;
    margin: 2rem auto 0;
    flex-shrink: 0;
    border: 3px solid var(--primary-100);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: var(--primary-50);
}

.member-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-100);
    color: var(--primary-color);
    z-index: 0;
}

.member-placeholder i {
    font-size: 3rem;
    opacity: 0.9;
}

.member-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-img {
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.85) 0%, rgba(37, 99, 235, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-social {
    display: flex;
    gap: 0.75rem;
}

.member-social .social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.member-social .social-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.member-info {
    padding: 1.75rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.9375rem;
    margin: 0;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: var(--bg-primary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.why-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.why-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 1024px) {
    .about-hero-content,
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid,
    .team-grid,
    .why-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 60px 0;
    }
    
    .about-hero-title {
        font-size: 2.2rem;
    }
    
    .about-hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .about-stat {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }
    
    .mission-vision,
    .our-story,
    .our-values,
    .our-team,
    .why-choose-us {
        padding: 60px 0;
    }
    
    .mv-card,
    .value-card,
    .why-card {
        padding: 1.5rem;
    }
    
    .team-member {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .member-photo {
        height: 200px;
        width: 200px;
        border-radius: 50%;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== GALLERY PAGE STYLES ===== */

/* Gallery Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, var(--gradient-primary), var(--gradient-secondary));
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.gallery-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.gallery-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #2d2d2d;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Gallery Filters */
.gallery-filters {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-light);
    background: white;
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

/* Video count styles in filter buttons */
.filter-btn .category-name {
    font-weight: 600;
}

.filter-btn .video-count {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: 0.25rem;
    font-weight: 500;
}

.filter-btn:hover .video-count,
.filter-btn.active .video-count {
    opacity: 1;
}

.gallery-search {
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Video Gallery Grid */
.video-gallery {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }

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

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-play-overlay i {
    color: white;
    font-size: 2rem;
    margin-left: 4px;
}

.video-card:hover .video-play-overlay {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.video-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading States */
.gallery-loading {
    text-align: center;
    padding: 4rem 0;
}


.gallery-empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.gallery-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-light);
    background: white;
    color: var(--text-secondary);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.pagination-btn:hover:not(:disabled)::before {
    left: 0;
}

.pagination-btn:hover:not(:disabled) {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    margin: 0 1rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-light);
    background: white;
    color: var(--text-secondary);
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.page-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.page-number:hover::before,
.page-number.active::before {
    left: 0;
}

.page-number:hover,
.page-number.active {
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.page-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

/* Subscribe Section */
.gallery-subscribe {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gradient-primary), var(--gradient-secondary));
    color: white;
    text-align: center;
}

.subscribe-content {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subscribe-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.subscribe-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.subscribe-actions .btn {
    min-width: 180px;
}

/* Video Modal Enhancements */
.video-modal .modal-content {
    max-width: 900px;
    width: 95%;
    margin: 20px;
}

/* Video Modal Responsive Styles */
@media (max-width: 1024px) {
    .video-modal {
        padding: 15px;
    }
    
    .video-modal .modal-content {
        width: 95%;
        max-width: 95%;
        border-radius: 20px;
    }
    
    .video-container {
        border-radius: 20px 20px 0 0;
    }
}

@media (max-width: 768px) {
    .video-modal {
        padding: 15px;
        align-items: center;
        justify-content: center;
    }
    
    .video-modal .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 0;
        border-radius: 16px;
        max-height: 90vh;
        max-height: 90dvh;
        display: flex;
        flex-direction: column;
        animation: popupSlideInMobile 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: hidden;
    }
    
    @keyframes popupSlideInMobile {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    .video-container {
        padding-bottom: 56.25%;
        width: 100%;
        border-radius: 16px 16px 0 0;
        min-height: 0;
        position: relative;
        flex-shrink: 0;
    }
    
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.95);
        color: var(--text-primary);
        border: 2px solid rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .modal-close:hover,
    .modal-close:active {
        background: var(--primary-color);
        color: white;
        border-color: rgba(37, 99, 235, 0.3);
    }
    
    .video-info {
        padding: 1.25rem;
        flex-shrink: 0;
        border-radius: 0 0 16px 16px;
        display: block;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
    
    .video-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .video-modal {
        padding: 10px;
    }
    
    .video-modal .modal-content {
        width: 98%;
        max-width: 98%;
        border-radius: 16px;
        max-height: 90vh;
        max-height: 90dvh;
        animation: popupSlideInMobile 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .video-container {
        padding-bottom: 56.25%;
        border-radius: 16px 16px 0 0;
    }
    
    .video-container iframe {
        border-radius: 16px 16px 0 0;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .video-modal {
        padding: 10px;
    }
    
    .video-modal .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        max-height: 85vh;
        max-height: 85dvh;
        animation: popupSlideInMobile 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .video-container {
        border-radius: 12px 12px 0 0;
    }
    
    .video-container iframe {
        border-radius: 12px 12px 0 0;
    }
    
    .modal-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .video-info {
        padding: 0.875rem;
        border-radius: 0 0 12px 12px;
    }
    
    .video-info h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .video-info p {
        font-size: 0.8rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .video-modal {
        padding: 10px;
    }
    
    .video-modal .modal-content {
        max-width: 90%;
        max-height: 95vh;
        max-height: 95dvh;
    }
    
    .video-container {
        padding-bottom: 50%;
    }
}

.video-info {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 16px 16px;
}

.video-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero-title {
        font-size: 2.5rem;
    }
    
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        min-height: 44px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pagination {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .subscribe-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .subscribe-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        padding: 3rem 0;
    }
    
    .gallery-hero-title {
        font-size: 2rem;
    }
    
    
    .video-gallery {
        padding: 2rem 0;
    }
    
    .pagination-container {
        margin-top: 2rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-numbers {
        margin: 0.5rem 0;
    }
    
    .gallery-subscribe {
        padding: 2rem 0;
    }
}

/* --- Courses Page (2026 modern layout) --- */
.courses-hero {
    padding: 110px 0;
    background: linear-gradient(135deg, var(--secondary-50), #fff);
    position: relative;
    overflow: hidden;
}

.courses-hero-text {
    position: relative;
    z-index: 2;
}

.courses-hero-subtitle {
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.courses-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.courses-hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.courses-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.courses-hero-visual .media-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.hero-visual-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.course-filters {
    padding: 24px 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn:hover {
    transform: translateY(-1px);
    border-color: var(--secondary-color);
    background: var(--secondary-50);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.courses-grid-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    position: relative;
}

.courses-grid.modern {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.courses-grid.modern .course-card {
    grid-column: span 4;
    display: block;
}

.course-card { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}
.course-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.course-media.gradient {
    height: 300px;
    background: var(--gradient-secondary);
    border-radius: 0 !important;
}

.course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.course-content { 
    padding: 1.5rem 1.75rem 1.75rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem;
    flex-grow: 1;
}

.course-title { 
    font-size: 1.25rem; 
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.course-desc { 
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.course-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem;
    margin: 0;
}

.tag { 
    background: var(--secondary-50); 
    color: var(--secondary-dark); 
    border: 1px solid var(--secondary-200); 
    padding: 0.25rem 0.6rem; 
    border-radius: 999px; 
    font-size: 0.85rem;
    white-space: nowrap;
}

.course-meta { 
    display: flex; 
    gap: 1rem; 
    color: var(--text-light); 
    font-size: 0.9rem;
    margin: 0;
    flex-wrap: wrap;
}

.course-cta { 
    display: flex; 
    gap: 0.75rem; 
    margin-top: auto;
    padding-top: 0.5rem;
}

.courses-cta-strip {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.cta-strip {
    display: grid;
    gap: 0.75rem;
    place-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
}

@media (max-width: 1280px) {
  .courses-grid.modern {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .courses-grid.modern .course-card {
    grid-column: span 4;
  }
}

@media (max-width: 1024px) {
  .courses-hero {
    padding: 80px 0;
  }
  
  .courses-hero-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Fix: CSS Grid min-width:auto on both children forces 1fr track to 480px */
  .courses-hero-text,
  .courses-hero-visual {
    min-width: 0;
    width: 100%;
  }

  .courses-hero-title {
    font-size: 2rem;
  }
  
  .courses-hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .courses-actions {
    justify-content: center;
    width: 100%;
  }
  
  .courses-grid.modern {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
  }
  
  .courses-grid.modern .course-card {
    grid-column: span 6;
  }
  
  .courses-grid-section {
    padding: 50px 0;
  }
  
  .detail-hero-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-aside {
    position: static;
  }
  
  .course-filters {
    padding: 20px 0;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .courses-cta-strip {
    padding: 48px 0;
  }
}

@media (max-width: 768px) {
  .courses-hero {
    padding: 70px 0;
  }
  
  .courses-hero-title {
    font-size: 1.75rem;
  }
  
  .courses-hero-subtitle {
    font-size: 0.95rem;
  }
  
  .courses-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .courses-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .course-filters {
    padding: 16px 0;
  }
  
  .filter-tabs {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 0.875rem;
    min-height: 44px;
    font-size: 0.85rem;
  }
  
  .courses-grid-section {
    padding: 40px 0;
  }
  
  .courses-grid.modern {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  
  .courses-grid.modern .course-card {
    grid-column: span 6;
  }
  
  .course-media.gradient {
    height: 260px;
  }
  
  .course-content {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  
  .course-title {
    font-size: 1.15rem;
  }
  
  .course-desc {
    font-size: 0.9rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-subtitle {
    font-size: 0.95rem;
  }
  
  .courses-cta-strip {
    padding: 40px 0;
  }
}

@media (max-width: 640px) {
  .courses-hero {
    padding: 60px 0;
  }
  
  .courses-hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .courses-hero-subtitle {
    font-size: 0.9rem;
  }
  
  .courses-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .courses-actions .btn {
    width: 100%;
  }
  
  .course-filters {
    padding: 14px 0;
  }
  
  .filter-tabs {
    gap: 0.375rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  
  .courses-grid-section {
    padding: 36px 0;
  }
  
  .courses-grid.modern {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  
  .courses-grid.modern .course-card {
    grid-column: span 6;
  }
  
  .course-card {
    margin-bottom: 1rem;
  }
  
  .course-media.gradient {
    height: 240px;
  }
  
  .course-content {
    padding: 1.125rem 1.25rem 1.25rem;
  }
  
  .course-title {
    font-size: 1.1rem;
  }
  
  .course-desc {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
  }
  
  .detail-hero-content .detail-title {
    font-size: 1.8rem;
  }
  
  .detail-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-title {
    font-size: 1.35rem;
  }
  
  .cta-subtitle {
    font-size: 0.9rem;
  }
  
  .courses-cta-strip {
    padding: 36px 0;
  }
}

@media (max-width: 480px) {
  .courses-hero {
    padding: 50px 0;
  }
  
  .courses-hero-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  
  .courses-hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .courses-actions {
    gap: 0.625rem;
  }
  
  .course-filters {
    padding: 12px 0;
  }
  
  .filter-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
  
  .courses-grid-section {
    padding: 32px 0;
  }
  
  .courses-grid.modern {
    gap: 0.875rem;
  }
  
  .course-media.gradient {
    height: 220px;
  }
  
  .course-content {
    padding: 1rem 1.125rem 1.125rem;
    gap: 0.625rem;
  }
  
  .course-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .course-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }
  
  .course-tags {
    gap: 0.375rem;
  }
  
  .tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }
  
  .course-meta {
    font-size: 0.85rem;
    gap: 0.75rem;
  }
  
  .course-cta {
    margin-top: 0.75rem;
  }
  
  .cta-title {
    font-size: 1.25rem;
  }
  
  .cta-subtitle {
    font-size: 0.875rem;
  }
  
  .courses-cta-strip {
    padding: 32px 0;
  }
  
  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* --- Course Detail Page --- */
.course-detail-hero { padding: 90px 0; background: linear-gradient(135deg, var(--primary-50), #fff); }
.detail-hero-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.detail-hero-content .detail-title { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin: .5rem 0 .75rem; }
.detail-subtitle { color: var(--text-secondary); max-width: 640px; }
.detail-meta { display: flex; gap: 1rem; color: var(--text-light); margin: 1rem 0; flex-wrap: wrap; }
.detail-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.detail-hero-media .media-frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-xl); background: linear-gradient(135deg, var(--primary-100), var(--secondary-100)); aspect-ratio: 4/3; }
.detail-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.course-detail-body { padding: 60px 0; background: var(--bg-secondary); }
.detail-grid { display: grid; grid-template-columns: 1.2fr 360px; gap: 2rem; align-items: start; }
.detail-aside { position: sticky; top: 90px; align-self: start; }
.enroll-card { margin: 0; }
.detail-block { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.block-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.outcomes { display: grid; gap: .5rem; }
.outcomes li { list-style: none; display: flex; gap: .5rem; align-items: center; }
.outcomes i { color: var(--primary-color); }

.accordion .acc-item { width: 100%; text-align: left; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 10px; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; cursor: pointer; }
.accordion .acc-item[aria-expanded="true"] { background: #fff; border-color: var(--secondary-200); }
.accordion .acc-panel { display: none; padding: .75rem 1rem; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; margin-top: -.25rem; margin-bottom: .5rem; }
.accordion.small .acc-item { padding: .75rem 1rem; }

.detail-aside { position: sticky; top: 96px; }
.enroll-card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 1.25rem; box-shadow: var(--shadow-sm); }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.price { font-size: 1.75rem; font-weight: 700; }
.badge.saving { background: var(--secondary-50); color: var(--secondary-dark); border: 1px solid var(--secondary-200); padding: .25rem .5rem; border-radius: 8px; font-weight: 600; }
.bullets { display: grid; gap: .5rem; margin: .75rem 0; }
.bullets li { list-style: none; display: flex; gap: .5rem; align-items: center; color: var(--text-secondary); }
.w-full { width: 100%; }

.instructor { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
.instructor-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--secondary-100); }
.instructor-name { font-weight: 700; font-size: 1.1rem; }
.instructor-bio { color: var(--text-secondary); }

@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

.page-offset { padding-top: 90px; }
@media (max-width: 768px) { .page-offset { padding-top: 110px; } }

/* Mobile button responsiveness */
@media (max-width: 768px) {
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
        max-width: 100%;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .btn-lg {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
}

/* Course Detail Floating Elements */
.course-detail-hero .floating-element:nth-child(1) { width: 110px; height: 110px; top: 18%; left: 12%; animation-delay: 1s; animation-duration: 12s; }
.course-detail-hero .floating-element:nth-child(2) { width: 70px; height: 70px; bottom: 22%; right: 18%; animation-delay: 4s; animation-duration: 9s; }
.course-detail-hero .floating-element:nth-child(3) { width: 50px; height: 50px; top: 35%; right: 30%; animation-delay: 7s; animation-duration: 10s; }


.course-detail-body .floating-element:nth-child(1) { width: 80px; height: 80px; top: 15%; right: 10%; animation-delay: 2s; animation-duration: 13s; }

/* ===== NAV ENROLL BUTTON ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-enroll-btn {
    padding: 10px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
@media (max-width: 768px) {
    .nav-enroll-btn { display: none; }
}

/* ===== HERO OUTLINE BUTTON ===== */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== HIGHLIGHT ICON COLOR VARIANTS — solid bg, white icon ===== */
.highlight-icon.icon-blue   { background: #2563eb; border-color: #2563eb; }
.highlight-icon.icon-sky    { background: #0ea5e9; border-color: #0ea5e9; }
.highlight-icon.icon-green  { background: #16a34a; border-color: #16a34a; }
.highlight-icon.icon-orange { background: #ea580c; border-color: #ea580c; }
.highlight-icon.icon-purple { background: #9333ea; border-color: #9333ea; }
.highlight-icon.icon-teal   { background: #0d9488; border-color: #0d9488; }

/* Hover: darken */
.highlight-card:hover .highlight-icon.icon-blue   { background: #1d4ed8; border-color: #1d4ed8; }
.highlight-card:hover .highlight-icon.icon-sky    { background: #0284c7; border-color: #0284c7; }
.highlight-card:hover .highlight-icon.icon-green  { background: #15803d; border-color: #15803d; }
.highlight-card:hover .highlight-icon.icon-orange { background: #c2410c; border-color: #c2410c; }
.highlight-card:hover .highlight-icon.icon-purple { background: #7e22ce; border-color: #7e22ce; }
.highlight-card:hover .highlight-icon.icon-teal   { background: #0f766e; border-color: #0f766e; }

/* ===== COURSES LOADING SKELETON ===== */
.courses-grid.loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    min-height: 200px;
}
.courses-grid.loading::before,
.courses-grid.loading::after {
    content: '';
    display: block;
    height: 320px;
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 16px;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== VIDEO GRID LOADING SKELETON ===== */
.video-grid.loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 20px;
    min-height: 180px;
}
.video-grid.loading::before,
.video-grid.loading::after {
    content: '';
    display: block;
    height: 200px;
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 12px;
}

/* ============================================
   2024 DESIGN REFRESH — Modern Visual Update
   ============================================ */

/* 1. PILL-SHAPED BUTTONS — Universal */
.btn,
.btn-test,
.ub-btn,
.nav-enroll-btn,
.btn-all-courses,
.btn-course,
.cta-btn,
.explore-videos-btn {
    border-radius: 50px !important;
}
.btn::before { border-radius: 50px !important; }

/* 2. HERO TYPOGRAPHY — Larger, bolder, tighter */
.hero-title {
    font-size: 3.9rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    font-weight: 800 !important;
    padding-bottom: 0.1em;
}
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem !important; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem !important; line-height: 1.15 !important; }
}

/* 3. HERO STATS — Frosted glass pill container */
.hero-stats {
    display: inline-flex !important;
    gap: 0 !important;
    background: rgba(255,255,255,0.78) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(37,99,235,0.14) !important;
    border-radius: 100px !important;
    padding: 14px 8px !important;
    margin-top: 28px !important;
    box-shadow: 0 4px 28px rgba(37,99,235,0.1), 0 1px 3px rgba(0,0,0,0.04) !important;
}
.hero-stats .stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 24px !important;
    position: relative !important;
    text-align: center !important;
}
.hero-stats .stat + .stat::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important; top: 12% !important;
    height: 76% !important; width: 1px !important;
    background: rgba(37,99,235,0.18) !important;
}
.hero-stats .stat-number {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    line-height: 1.1 !important;
    display: block !important;
}
.hero-stats .stat-label {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    letter-spacing: 0.01em !important;
    margin-top: 2px !important;
    display: block !important;
    white-space: nowrap !important;
}

/* 4. HERO IMAGE — Animated gradient blob behind instructor */
.hero-image {
    position: relative !important;
    overflow: visible !important;
}
.hero-image::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-44%, -50%) !important;
    width: 76% !important;
    height: 76% !important;
    background: linear-gradient(135deg, rgba(37,99,235,0.18) 0%, rgba(14,165,233,0.22) 60%, rgba(59,130,246,0.14) 100%) !important;
    border-radius: 60% 40% 55% 45% / 50% 55% 45% 50% !important;
    z-index: 0 !important;
    animation: blob-morph 9s ease-in-out infinite !important;
    pointer-events: none !important;
}
.hero-img {
    position: relative !important;
    z-index: 1 !important;
}
.hero-image .floating-elements { z-index: 2 !important; }
.hero-image .hero-flowing-shape { z-index: 0 !important; }
@keyframes blob-morph {
    0%,100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
    33%      { border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%; }
    66%      { border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%; }
}

/* 5. HIDE OLD DECORATIVE DASHES — replaced by section-label pills */
.section-title::before { display: none !important; }
.section-header h2::after,
.section-header .section-title::after { display: none !important; }

/* 6. SECTION LABEL PILLS */
.section-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(14,165,233,0.11)) !important;
    color: #2563eb !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 5px 15px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(37,99,235,0.16) !important;
    margin-bottom: 12px !important;
}

/* 7. ALTERNATING SECTION BACKGROUNDS */
section.courses        { background: #ffffff !important; }
section.highlights     { background: linear-gradient(180deg, #f0f9ff 0%, #f5f9ff 100%) !important; }
section.proficiency-test { background: #ffffff !important; }
section.video-gallery  { background: #ffffff !important; }
section#blog           { background: #f0f9ff !important; }
section.limited-seats  { background: #ffffff !important; }

/* 8. DARK TESTIMONIALS SECTION */
section#testimonials {
    background: linear-gradient(155deg, #0f172a 0%, #1a2d50 55%, #162540 100%) !important;
}
section#testimonials .section-title { color: #f1f5f9 !important; }
section#testimonials .section-subtitle { color: #94a3b8 !important; }
section#testimonials .section-label {
    background: rgba(96,165,250,0.12) !important;
    color: #60a5fa !important;
    border-color: rgba(96,165,250,0.2) !important;
}
section#testimonials .content-title  { color: #f1f5f9 !important; }
section#testimonials .content-description { color: #94a3b8 !important; }
section#testimonials .stat-number    { color: #60a5fa !important; }
section#testimonials .stat-label     { color: #94a3b8 !important; }
section#testimonials .stat-item      {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
section#testimonials .cta-text       { color: #cbd5e1 !important; }
section#testimonials .cta-btn        { background: #2563eb !important; }
section#testimonials .floating-element { opacity: 0.12 !important; }

/* 9. HIGHLIGHT CARDS — Gradient border on hover + stronger lift */
.highlight-card {
    position: relative !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(37,99,235,0.08) !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.04), 0 1px 3px rgba(0,0,0,0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    overflow: hidden !important;
}
.highlight-card::after {
    content: '' !important;
    position: absolute !important;
    inset: -1.5px !important;
    border-radius: 17px !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9, #38bdf8) !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transition: opacity 0.35s ease !important;
}
.highlight-card:hover::after { opacity: 1 !important; }
.highlight-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 24px 64px rgba(37,99,235,0.14) !important;
    border-color: transparent !important;
}

/* 10. TRUST BAR */
.trust-bar {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    margin-top: 24px !important;
    padding-top: 22px !important;
    border-top: 1px solid rgba(37,99,235,0.1) !important;
    flex-wrap: wrap !important;
}
.trust-bar-label {
    font-size: 0.75rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
.trust-bar-items {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}
.trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
.trust-item i { color: #2563eb !important; font-size: 0.88rem !important; }
@media (max-width: 768px) {
    .trust-bar { gap: 10px; padding-top: 16px; margin-top: 18px; }
    .trust-bar-items { gap: 12px; }
    .trust-item { font-size: 0.75rem; }
    .hero-stats .stat { padding: 0 16px !important; }
    .hero-stats .stat-number { font-size: 1.2rem !important; }
}

/* ============================================
   CROSS-PAGE FIXES
   ============================================ */

/* Fix 1: Suppress old decorative blue dash on ALL h2s sitewide
   (replaces old 2019 pattern — pill labels are used instead) */
h2::after { display: none !important; }

/* Fix 2: Gallery page hero — add gradient background so it has visual depth */
.gallery-hero,
.gallery-page .page-hero,
section.gallery-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
    padding: 80px 0 60px !important;
}

/* Fix 3: Course detail nav button fix — white outline on dark blue hero */
.course-detail-hero .nav-enroll-btn,
.course-detail-hero ~ * .nav-enroll-btn {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.6) !important;
    color: #fff !important;
}

/* Fix 4: About page stats — apply glass pill styling to match homepage */
.about-stats,
.about-hero .stats-row,
.about-hero-stats {
    display: inline-flex !important;
    gap: 0 !important;
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(37,99,235,0.14) !important;
    border-radius: 100px !important;
    padding: 14px 8px !important;
    margin-top: 24px !important;
    box-shadow: 0 4px 28px rgba(37,99,235,0.1) !important;
}

/* Fix 5: About core value cards — color-coded icons same as homepage highlights */
.values-grid .value-card:nth-child(1) .value-icon,
.core-values .value-card:nth-child(1) .highlight-icon { background: #2563eb !important; border-color: #2563eb !important; }
.values-grid .value-card:nth-child(2) .value-icon,
.core-values .value-card:nth-child(2) .highlight-icon { background: #0ea5e9 !important; border-color: #0ea5e9 !important; }
.values-grid .value-card:nth-child(3) .value-icon,
.core-values .value-card:nth-child(3) .highlight-icon { background: #16a34a !important; border-color: #16a34a !important; }
.values-grid .value-card:nth-child(4) .value-icon,
.core-values .value-card:nth-child(4) .highlight-icon { background: #ea580c !important; border-color: #ea580c !important; }
.values-grid .value-card:nth-child(5) .value-icon,
.core-values .value-card:nth-child(5) .highlight-icon { background: #9333ea !important; border-color: #9333ea !important; }
.values-grid .value-card:nth-child(6) .value-icon,
.core-values .value-card:nth-child(6) .highlight-icon { background: #0d9488 !important; border-color: #0d9488 !important; }

/* Fix 6: Blog page hero gradient background */
.blog-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 40%, #f0f9ff 100%) !important;
}

/* Fix 7: About page value-icon color variants (mirrors highlight-icon colors) */
.value-icon.icon-blue   { background: #2563eb !important; border-color: #2563eb !important; }
.value-icon.icon-sky    { background: #0ea5e9 !important; border-color: #0ea5e9 !important; }
.value-icon.icon-green  { background: #16a34a !important; border-color: #16a34a !important; }
.value-icon.icon-orange { background: #ea580c !important; border-color: #ea580c !important; }
.value-icon.icon-purple { background: #9333ea !important; border-color: #9333ea !important; }
.value-icon.icon-teal   { background: #0d9488 !important; border-color: #0d9488 !important; }
.value-icon.icon-blue i, .value-icon.icon-sky i, .value-icon.icon-green i,
.value-icon.icon-orange i, .value-icon.icon-purple i, .value-icon.icon-teal i { color: #fff !important; }

/* ============================================================
   FULL CONSISTENCY SYSTEM — Buttons, Spacing, Hover, Animation
   ============================================================ */

/* ── 1. BUTTON CONSISTENCY ── */

/* Unify all filter/tab buttons to pill shape */
.filter-btn, .tab-btn {
    border-radius: 50px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    padding: 8px 20px !important;
    min-height: 40px !important;
    cursor: pointer !important;
}
.filter-btn:hover, .tab-btn:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}
.filter-btn.active, .tab-btn.active {
    border-radius: 50px !important;
}

/* Fix decimal font-sizes on scaled buttons */
.btn-test { font-size: 1rem !important; }
.cta-btn { font-size: 1rem !important; }

/* Unify all button transition */
.btn, .filter-btn, .tab-btn, .ub-btn, .nav-enroll-btn {
    transition: all 0.3s ease !important;
}

/* Standardize btn-lg — reduce excessive 71px height */
.btn-lg {
    padding: 14px 36px !important;
    font-size: 1rem !important;
    min-height: 52px !important;
}

/* Standardize regular buttons */
.btn:not(.btn-lg):not(.nav-enroll-btn):not(.btn-sm) {
    padding: 12px 28px !important;
    font-size: 1rem !important;
    min-height: 48px !important;
}

/* ── 2. SECTION SPACING STANDARDIZATION ── */
/* System: Hero=120px, Primary=96px, Secondary=80px, Compact=64px */

/* Primary sections — 96px */
section.courses,
section.highlights,
section.testimonials,
section#blog,
section.limited-seats,
.mission-vision,
section.our-story,
section.our-values,
section.our-team,
section.courses-grid-section { 
    padding-top: 96px !important; 
    padding-bottom: 96px !important; 
}

/* Secondary sections — 80px */
section.proficiency-test,
section.video-gallery,
section.gallery-hero,
section.gallery-subscribe,
section.contact-hero,
section.contact-methods,
section.contact-info,
section.contact-faq,
section.contact-form-section,
section.courses-cta-strip {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* ── 3. HOVER STATE CONSISTENCY ── */

/* Value cards (About page) — match highlight card hover */
.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    cursor: default !important;
}
.value-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1) !important;
}

/* Standardize course/blog/video card hover */
.course-card,
.video-card,
.blog-card,
.blog-article {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.course-card:hover,
.video-card:hover,
.blog-card:hover,
.blog-article:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1) !important;
}

/* Contact method cards hover */
.contact-method-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.contact-method-card:hover {
    transform: translateY(-4px) !important;
}

/* ── 4. ANIMATION CONSISTENCY ── */

/* Staggered card entrance — sequential delay per card */
.highlight-card:nth-child(1), .value-card:nth-child(1), .course-card:nth-child(1) { --anim-delay: 0ms; }
.highlight-card:nth-child(2), .value-card:nth-child(2), .course-card:nth-child(2) { --anim-delay: 80ms; }
.highlight-card:nth-child(3), .value-card:nth-child(3), .course-card:nth-child(3) { --anim-delay: 160ms; }
.highlight-card:nth-child(4), .value-card:nth-child(4), .course-card:nth-child(4) { --anim-delay: 240ms; }
.highlight-card:nth-child(5), .value-card:nth-child(5), .course-card:nth-child(5) { --anim-delay: 320ms; }
.highlight-card:nth-child(6), .value-card:nth-child(6), .course-card:nth-child(6) { --anim-delay: 400ms; }

.highlight-card.fade-in,
.value-card.fade-in,
.course-card.fade-in {
    transition-delay: var(--anim-delay, 0ms) !important;
}

/* Hero floating badge cards — staggered entrance */
.floating-card.card-1 { animation-delay: 0.2s !important; }
.floating-card.card-2 { animation-delay: 0.5s !important; }
.floating-card.card-3 { animation-delay: 0.8s !important; }

/* ── 5. MOBILE SPACING FIXES ── */
@media (max-width: 768px) {
    section.courses,
    section.highlights,
    section.testimonials,
    section#blog,
    section.limited-seats,
    .mission-vision,
    section.our-story,
    section.our-values,
    section.our-team,
    section.courses-grid-section {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }
    section.proficiency-test,
    section.video-gallery,
    section.gallery-hero,
    section.gallery-subscribe,
    section.contact-hero,
    section.contact-methods,
    section.contact-info,
    section.contact-faq,
    section.contact-form-section,
    section.courses-cta-strip {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .filter-btn, .tab-btn { padding: 7px 16px !important; }
}

/* ============================================================
   CTA BOX REDESIGN — bold brand-blue gradient, white text
   Applied: index.html, about.html, course.html
   ============================================================ */

/* Remove old light-gradient look */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.35), 0 4px 16px rgba(37, 99, 235, 0.2) !important;
}

/* Decorative ring top-right */
.cta-section::before {
    content: '' !important;
    position: absolute !important;
    top: -40px !important;
    right: -40px !important;
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.07) !important;
    pointer-events: none !important;
}

/* Decorative ring bottom-left */
.cta-section::after {
    content: '' !important;
    position: absolute !important;
    bottom: -50px !important;
    left: -30px !important;
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    pointer-events: none !important;
}

/* Text — always white, always readable */
.cta-text,
.cta-section .cta-text,
section#testimonials .cta-text,
.testimonials .cta-section .cta-text {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Button — inverted (white bg, blue text) */
.cta-btn,
.cta-section .cta-btn,
section#testimonials .cta-btn,
.testimonials .cta-section .btn {
    background: #ffffff !important;
    color: #1e40af !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    padding: 0.85rem 2.25rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.cta-btn:hover,
.cta-section .cta-btn:hover,
.testimonials .cta-section .btn:hover {
    background: #f0f9ff !important;
    color: #1d4ed8 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================================
   SECTION-LABEL ALIGNMENT — always centered, consistent across all pages
   ============================================================ */
.section-label {
    display: block !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

/* ============================================================
   CTA BOX — dark testimonials section context override
   Use glassmorphism to blend with the dark navy section
   ============================================================ */
section#testimonials .cta-section,
.testimonials .cta-section {
    background: rgba(37, 99, 235, 0.18) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(96, 165, 250, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

section#testimonials .cta-section::before,
.testimonials .cta-section::before {
    background: rgba(255, 255, 255, 0.04) !important;
}

section#testimonials .cta-section::after,
.testimonials .cta-section::after {
    background: rgba(255, 255, 255, 0.03) !important;
}

section#testimonials .cta-section .cta-btn,
.testimonials .cta-section .cta-btn,
.testimonials .cta-section .btn {
    background: #ffffff !important;
    color: #1e40af !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

section#testimonials .cta-section .cta-btn:hover,
.testimonials .cta-section .cta-btn:hover,
.testimonials .cta-section .btn:hover {
    background: #f0f9ff !important;
    color: #1d4ed8 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* ============================================================
   UNIFIED CARD HOVER SYSTEM — remove all gradient fills
   Replace with: lift + shadow + thin blue border
   Applies to: highlight, course, value, blog, video, contact cards
   ============================================================ */

/* --- Kill gradient ::after fill on highlight cards --- */
.highlight-card::after {
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
}
.highlight-card:hover::after {
    opacity: 0 !important;
}

/* --- Kill blue tint ::before on course cards --- */
.highlight-card:hover,
.course-card:hover,
.value-card:hover,
.blog-card:hover,
.blog-article:hover,
.video-card:hover,
.contact-method-card:hover,
.activity-card:hover,
.point-card:hover,
.why-card:hover,
.mv-card:hover,
.benefit-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    background: #ffffff !important;
}

/* Keep scale off — just a clean lift */
.course-card:hover {
    transform: translateY(-6px) !important;
}

/* Prevent ::before blue tint from showing */
.course-card:hover::before {
    opacity: 0 !important;
}

/* Contact method cards: lighter lift (they have coloured icons) */
.contact-method-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.10), 0 2px 8px rgba(0,0,0,0.05) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}

/* Keep icon colour animation intact */
.highlight-card:hover .highlight-icon {
    transform: scale(1.08) !important;
}

/* ============================================================
   UNIFIED BUTTON HOVER SYSTEM
   Signature: 3px lift + shimmer sweep + proportional shadow
   Easing: cubic-bezier(0.4, 0, 0.2, 1) — snappy & professional
   ============================================================ */

/* Base transition for ALL buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-whatsapp,
.cta-btn,
.method-btn,
.explore-videos-btn,
.ub-btn,
.contact-form .btn,
.filter-btn,
.tab-btn,
.nav-enroll-btn {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Shimmer pseudo-element — ensure it exists on all btn variants */
.btn::before,
.cta-btn::before,
.method-btn::before,
.explore-videos-btn::before,
.ub-btn::before,
.nav-enroll-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent) !important;
    transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
.btn:hover::before,
.cta-btn:hover::before,
.method-btn:hover::before,
.explore-videos-btn:hover::before,
.ub-btn:hover::before,
.nav-enroll-btn:hover::before {
    left: 100% !important;
}

/* PRIMARY — darken + lift + shadow */
.btn-primary:hover:not(:disabled),
.btn.btn-primary:hover:not(:disabled),
.contact-form .btn.btn-primary:hover,
.nav-enroll-btn:hover {
    background: var(--primary-dark) !important;
    background-image: none !important;
    border: none !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38) !important;
    color: #ffffff !important;
}

/* SECONDARY — fill with primary + lift */
.btn-secondary:hover:not(:disabled) {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28) !important;
}

/* OUTLINE — fill + lift (was missing lift before) */
.btn-outline:hover:not(:disabled),
.btn-outline:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28) !important;
}

/* WHATSAPP — darken green + lift */
.btn-whatsapp:hover:not(:disabled) {
    background: #128c45 !important;
    border-color: #128c45 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38) !important;
}

/* CTA BUTTON (inverted white on blue section) */
.cta-btn:hover,
.cta-section .cta-btn:hover,
.testimonials .cta-section .btn:hover,
section#testimonials .cta-section .cta-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}

/* EXPLORE / METHOD / UB buttons */
.explore-videos-btn:hover,
.method-btn:hover,
.ub-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.30) !important;
}
/* Kill rogue scale on ub-btn */
.ub-btn:hover {
    transform: translateY(-3px) !important;
}

/* FILTER / TAB buttons — subtle, no lift (they're in-page controls) */
.filter-btn:hover,
.tab-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

/* Active/selected state stays put — no hover lift on active tab/filter */
.filter-btn.active:hover,
.tab-btn.active:hover {
    transform: none !important;
}

/* ============================================================
   CONTACT MODAL — FULL REDESIGN (split-panel)
   Left: brand blue panel   Right: clean form
   ============================================================ */

/* Reset old modal-header, modal-icon, contact-subtitle rules */
.modal-header, .modal-icon, .contact-subtitle,
.form-grid, .form-label, .quick-contact { display: revert; }

/* Backdrop */
.contact-modal {
    position: fixed !important;
    inset: 0 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    padding: 1rem !important;
}
.contact-modal.active { display: flex !important; }

.contact-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(10, 18, 40, 0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

/* Outer card — two-column grid */
.contact-content {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    width: 100% !important;
    max-width: 720px !important;
    max-height: 92vh !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 32px 80px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.12) !important;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    padding: 0 !important;
    border: none !important;
}

/* === LEFT BRAND PANEL === */
.cm-brand-panel {
    background: linear-gradient(160deg, #1a2f6e 0%, #2563eb 60%, #38bdf8 100%) !important;
    padding: 40px 28px 36px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border-radius: 24px 0 0 24px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Decorative circle behind panel */
.cm-brand-panel::before {
    content: '' !important;
    position: absolute !important;
    bottom: -60px !important;
    right: -60px !important;
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.07) !important;
    pointer-events: none !important;
}
.cm-brand-panel::after {
    content: '' !important;
    position: absolute !important;
    top: -40px !important;
    left: -40px !important;
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.05) !important;
    pointer-events: none !important;
}

/* Close button — top-right of brand panel */
.contact-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    z-index: 10 !important;
    box-shadow: none !important;
}
.contact-close:hover {
    background: rgba(255,255,255,0.30) !important;
    transform: rotate(90deg) !important;
    color: #ffffff !important;
}

/* Brand logo icon */
.cm-brand-logo {
    width: 56px !important;
    height: 56px !important;
    background: rgba(255,255,255,0.18) !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    position: relative !important;
    z-index: 1 !important;
}

.cm-brand-heading {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.02em !important;
    position: relative !important;
    z-index: 1 !important;
}

.cm-brand-sub {
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.75) !important;
    line-height: 1.55 !important;
    margin: 0 0 24px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Perks list */
.cm-perks {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 28px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 1 !important;
}
.cm-perks li {
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.cm-perks li i {
    color: #86efac !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

/* Contact links at bottom */
.cm-contact-links {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 1 !important;
}
.cm-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: rgba(255,255,255,0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.cm-link:hover {
    background: rgba(255,255,255,0.22) !important;
    color: #ffffff !important;
}
.cm-link-icon {
    width: 28px !important;
    height: 28px !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
}
.cm-link-wa .cm-link-icon { background: rgba(37, 211, 102, 0.3) !important; }

/* === RIGHT FORM PANEL === */
.cm-form-panel {
    display: flex !important;
    flex-direction: column !important;
    padding: 36px 32px 32px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border-radius: 0 24px 24px 0 !important;
}

.cm-form-header {
    margin-bottom: 14px !important;
}
.cm-form-title {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px !important;
    letter-spacing: -0.02em !important;
}
.cm-form-subtitle {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Two-col row for name+phone */
.cm-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}

/* Field */
.cm-field {
    margin-bottom: 10px !important;
}
.cm-field label {
    display: block !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
}

/* Input wrapper with icon */
.cm-input-wrap {
    position: relative !important;
}
.cm-input-icon {
    position: absolute !important;
    left: 13px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
.cm-textarea-wrap .cm-textarea-icon {
    top: 14px !important;
    transform: none !important;
}

.contact-form input,
.contact-form textarea {
    width: 100% !important;
    padding: 11px 14px 11px 36px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10) !important;
    transform: none !important;
}
.contact-form textarea {
    resize: none !important;
    min-height: 90px !important;
    padding-top: 11px !important;
}

/* Submit button */
.cm-submit-btn {
    width: 100% !important;
    padding: 13px 24px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,0.30) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-transform: none !important;
}
.cm-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(37,99,235,0.40) !important;
}
.cm-submit-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent) !important;
    transition: left 0.45s ease !important;
}
.cm-submit-btn:hover::before { left: 100% !important; }

/* Error messages */
.error-message {
    font-size: 0.75rem !important;
    color: #ef4444 !important;
    margin-top: 4px !important;
    min-height: 16px !important;
}

/* Submit status */
.submit-status {
    margin-top: 10px !important;
    font-size: 0.85rem !important;
    text-align: center !important;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr !important;
        max-width: calc(100vw - 2rem) !important;
        max-height: 95vh !important;
        border-radius: 20px !important;
        overflow-y: auto !important;
    }
    .cm-brand-panel {
        border-radius: 20px 20px 0 0 !important;
        padding: 28px 24px 20px !important;
        gap: 0 !important;
    }
    .cm-perks { display: none !important; }
    .cm-brand-heading { font-size: 1.3rem !important; }
    .cm-form-panel {
        border-radius: 0 0 20px 20px !important;
        padding: 24px 20px 20px !important;
    }
    .cm-form-row {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 640px) {
    .contact-content {
        max-width: 100% !important;
    }
    .cm-brand-heading { font-size: 1.25rem !important; }
    .cm-contact-links { flex-direction: row !important; gap: 8px !important; }
    .cm-link span:last-child { display: none !important; }
    .cm-form-panel {
        padding: 20px 16px 16px !important;
    }
}


/* ===== PAGE PRELOADER ===== */
#page-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.preloader-scene {
    position: relative;
    width: 200px;
    height: 100px;
    overflow: hidden;
}
.preloader-road {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 28px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}
.preloader-road::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        to right,
        #f8fafc 0px, #f8fafc 18px,
        transparent 18px, transparent 42px
    );
    transform: translateY(-50%);
    animation: road-scroll 0.42s linear infinite;
}
.preloader-bus {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    animation: bus-bounce 0.46s ease-in-out infinite alternate;
}
.bus-body {
    position: relative;
    width: 140px;
    height: 54px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    overflow: hidden;
}
.bus-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: inherit;
}
.bus-body::after {
    content: '';
    position: absolute;
    top: 0; right: -16px;
    width: 20px;
    height: 100%;
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    border-radius: 0 6px 6px 0;
}
.bus-windows {
    display: flex;
    gap: 7px;
    padding: 10px 10px 0 10px;
    position: relative;
    z-index: 1;
}
.bus-window {
    width: 22px;
    height: 16px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}
.bus-windshield {
    position: absolute;
    right: 4px;
    bottom: 10px;
    width: 15px;
    height: 22px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 2px;
    z-index: 1;
}
.bus-headlight {
    position: absolute;
    right: -14px;
    bottom: 12px;
    width: 10px;
    height: 7px;
    background: #fef08a;
    border-radius: 0 3px 3px 0;
    box-shadow: 4px 0 10px rgba(254, 240, 138, 0.7);
}
.bus-label {
    position: absolute;
    top: 6px;
    left: 44px;
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1.5px;
    font-family: monospace;
    z-index: 2;
}
.bus-undercarriage {
    height: 5px;
    background: #1e293b;
    border-radius: 0 0 3px 3px;
    margin: 0 10px;
}
.bus-wheel {
    position: absolute;
    bottom: -12px;
    width: 22px;
    height: 22px;
    background: #1e293b;
    border-radius: 50%;
    animation: wheel-spin 0.44s linear infinite;
}
.bus-wheel::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #94a3b8;
    border-radius: 50%;
}
.bus-wheel.front { left: 20px; }
.bus-wheel.rear  { right: 20px; }
.preloader-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.04em;
}
.preloader-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.preloader-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    animation: dot-pulse 1.4s ease-in-out infinite;
}
.preloader-dots span:nth-child(1) { animation-delay: 0s; }
.preloader-dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%            { transform: scale(1.1); opacity: 1; }
}
@keyframes bus-bounce {
    from { transform: translateX(-50%) translateY(0); }
    to   { transform: translateX(-50%) translateY(-5px); }
}
@keyframes wheel-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes road-scroll {
    from { background-position: 0 0; }
    to   { background-position: -42px 0; }
}

/* Chip text left-align fix — appended last for maximum cascade priority */
@media (max-width: 768px) {
    section.proficiency-test .test-features .test-feature {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        align-items: center !important;
        gap: 10px !important;
    }
    section.proficiency-test .test-features .test-feature i {
        grid-column: 1 !important;
    }
    section.proficiency-test .test-features .test-feature span {
        grid-column: 2 !important;
        text-align: left !important;
        min-width: 0 !important;
    }
}

/* ── Phone Input Group (country code + number) ── */
.phone-field-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.phone-field-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.phone-field-group.has-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important; }
.phone-field-group .cc-select {
    flex-shrink: 0;
    width: 80px;
    border: none;
    border-right: 2px solid var(--border-color);
    background: transparent;
    padding: 14px 4px 14px 12px;
    font-size: .875rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    -webkit-appearance: auto;
    appearance: auto;
}
.phone-field-group .phone-num-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    color: var(--text-primary) !important;
    min-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: auto !important;
}
.phone-field-group .phone-num-input::placeholder { color: var(--text-muted); }

/* Modal phone group */
.cm-phone-group {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    overflow: hidden;
}
.cm-phone-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
    background: #ffffff;
}
.cm-phone-group.has-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important; }
.cm-phone-icon {
    color: #94a3b8;
    font-size: 13px;
    padding: 0 6px 0 13px;
    flex-shrink: 0;
    pointer-events: none;
}
.cm-cc-select {
    flex-shrink: 0;
    border: none !important;
    border-right: 1.5px solid #e2e8f0 !important;
    background: transparent !important;
    padding: 11px 4px 11px 4px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: #0f172a;
    cursor: pointer;
    outline: none !important;
    width: 60px;
    -webkit-appearance: auto;
    appearance: auto;
}
.cm-phone-group input[type="tel"] {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 11px 14px 11px 8px !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Inline field error text */
.field-error-text {
    display: block;
    font-size: .78rem;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 500;
}
input.input-error, select.input-error, textarea.input-error {
    border-color: #ef4444 !important;
}

/* ── Phone group fixes: force-override .contact-form input !important for modal ── */
#contact-phone-group input[type="tel"],
#contactModal .cm-phone-group input[type="tel"] {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 11px 14px 11px 8px !important;
}
/* Wider selects to fit flag + code (e.g. 🇮🇳 +91) */
.cm-cc-select { width: 92px !important; font-size: 0.85rem !important; padding: 11px 2px 11px 6px !important; }
.phone-field-group .cc-select { width: 96px !important; font-size: 0.875rem !important; }
