@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES & DESIGN TOKENS --- */
:root {
    /* Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f4f4f5;
    
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    
    --border-light: #e4e4e7;
    --border-hover: #d4d4d8;
    
    --primary-cta: #111111;
    --primary-cta-hover: #27272a;
    
    /* Exam Hover Gradients */
    --gradient-ielts: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-pte: linear-gradient(135deg, #0284c7, #06b6d4);
    --gradient-duolingo: linear-gradient(135deg, #10b981, #059669);
    --gradient-langcert: linear-gradient(135deg, #18181b, #d97706);
    
    /* Premium Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(9, 9, 11, 0.75);
    --glass-border: rgba(228, 228, 231, 0.4);
    --glass-border-dark: rgba(63, 63, 70, 0.3);
    --glass-blur: blur(16px) saturate(180%);
    
    /* Elevation Shadows */
    --shadow-sm: 0 2px 8px -2px rgba(24, 24, 27, 0.04), 0 1px 3px -1px rgba(24, 24, 27, 0.02);
    --shadow-md: 0 12px 24px -6px rgba(24, 24, 27, 0.05), 0 4px 12px -2px rgba(24, 24, 27, 0.03);
    --shadow-lg: 0 24px 48px -12px rgba(24, 24, 27, 0.08), 0 8px 24px -4px rgba(24, 24, 27, 0.04);
    --shadow-premium: 0 0 0 1px rgba(24, 24, 27, 0.04), 0 32px 64px -16px rgba(24, 24, 27, 0.08);
    
    /* Timing & Curves */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Heading Typography: Satoshi & General Sans aesthetic via Plus Jakarta Sans */
h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--primary-cta);
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- LIGHTWEIGHT MESH BG CANVAS --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(244, 244, 245, 0.4), rgba(255, 255, 255, 0) 60%);
}

/* --- CONTAINER UTIL --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- GLASS CONTAINER FOR SECTIONS --- */
.premium-section {
    position: relative;
    padding: 7.5rem 0;
    overflow: hidden;
}

/* --- TRANSPARENT BLUR HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-quick);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    text-decoration: none;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    color: var(--primary-cta);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 34px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition-quick);
}

.logo-img:hover {
    transform: scale(1.02);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-cta);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-quick);
    position: relative;
    padding: 0.4rem 0;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-cta);
}

.nav-links a.active {
    color: var(--primary-cta);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-cta);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon-btn.instagram:hover {
    transform: scale(1.1) translateY(-2px);
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.social-icon-btn.youtube:hover {
    transform: scale(1.1) translateY(-2px);
    color: #ff0000;
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-cta);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.btn-primary:hover {
    background: var(--primary-cta-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.25);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-cyan {
    background: var(--primary-cta);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.btn-cyan:hover {
    background: var(--primary-cta-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.25);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: var(--transition-quick);
}

.hero-badge:hover {
    background: var(--border-light);
    border-color: var(--border-hover);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #111111 20%, #444444 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    max-width: 580px;
}

.hero-seo-line {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    display: inline-flex;
    align-items: center;
    background: rgba(17, 17, 17, 0.03);
    border: 1px dashed rgba(17, 17, 17, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-actions .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: 14px;
}

.hero-social-cta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.8rem;
}

.hero-social-cta span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-cta-btns {
    display: flex;
    gap: 0.8rem;
}

.social-cta-btns .btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* Floating Mockup Panel */
.hero-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(40px);
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.hero-mockup {
    position: relative;
    width: 100%;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(24, 24, 27, 0.15);
}

.hero-mockup img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: normal;
}

.hero-mockup-nav {
    height: 36px;
    background: rgba(244, 244, 245, 0.6);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.4rem;
}

.hero-mockup-nav span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.hero-mockup-nav span:nth-child(1) { background: #ff5f56; }
.hero-mockup-nav span:nth-child(2) { background: #ffbd2e; }
.hero-mockup-nav span:nth-child(3) { background: #27c93f; }

/* --- TRUST BADGES BAR --- */
.trust-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.trust-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* --- EXAM TYPES --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #111 30%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.exam-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom interactive mouse cursor glow element */
.exam-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 200px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.08), transparent 80%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.exam-card:hover .card-glow {
    opacity: 1;
}

/* Exam-specific hover custom hover gradient backgrounds */
.exam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.exam-card.card-ielts::before { background: var(--gradient-ielts); }
.exam-card.card-pte::before { background: var(--gradient-pte); }
.exam-card.card-duolingo::before { background: var(--gradient-duolingo); }
.exam-card.card-langcert::before { background: var(--gradient-langcert); }

.exam-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    margin-bottom: 2rem;
    color: var(--primary-cta);
}

.exam-card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.exam-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--transition-smooth);
}

.exam-action {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-cta);
    transition: var(--transition-smooth);
}

.exam-action svg {
    width: 16px;
    height: 16px;
    transform: translateX(0);
    transition: var(--transition-smooth);
    stroke-width: 2.5px;
}

/* EXAM CARD HOVER EFFECTS */
.exam-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.exam-card:hover::before {
    opacity: 1;
}

.exam-card:hover h3, 
.exam-card:hover p, 
.exam-card:hover .exam-action {
    color: #ffffff;
}

.exam-card:hover .exam-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.exam-card:hover .exam-action svg {
    transform: translateX(4px);
    stroke: #ffffff;
}

/* --- WHY STUDENTS PREFER --- */
.why-prefer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.why-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-cta);
}

.why-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.why-card p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.location-details {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.metro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    width: max-content;
}

/* --- HOW IT WORKS --- */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Central path line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #3b82f6, #06b6d4);
    transition: height 0.5s ease-out;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
    z-index: 2;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-badge {
    position: absolute;
    top: 2.2rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -19px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -19px;
}

.timeline-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: inline-block;
    text-align: left;
    max-width: 380px;
}

.timeline-item:nth-child(odd) .timeline-card {
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-card * {
    text-align: left;
}

.timeline-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Timeline scroll reveal styles */
.timeline-item.active .timeline-badge {
    border-color: #3b82f6;
    background: var(--primary-cta);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.timeline-item.active .timeline-card {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* --- PERFORMANCE SHOWCASE (DARK SECTION) --- */
.dark-section {
    background-color: #09090b;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 8rem 0;
}

.dark-section .section-header h2 {
    background: linear-gradient(135deg, #ffffff 30%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-section .section-header p {
    color: #a1a1aa;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.showcase-points {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.showcase-point {
    display: flex;
    gap: 1rem;
}

.point-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.showcase-point h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.showcase-point p {
    font-size: 0.92rem;
    color: #a1a1aa;
}

/* Glassmorphic feedback mock reports elements */
.showcase-cards {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-mesh-bg {
    position: absolute;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle at 60% 50%, rgba(124, 58, 237, 0.12) 0%, rgba(2, 132, 199, 0.08) 40%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
}

.glass-report-card {
    position: absolute;
    background: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-dark);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: var(--transition-smooth);
}

.glass-report-card:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 5 !important;
}

.card-main-score {
    width: 240px;
    top: 10%;
    left: 5%;
    z-index: 3;
}

.card-writing-feedback {
    width: 280px;
    top: 45%;
    right: 5%;
    z-index: 2;
}

.card-grammar-feedback {
    width: 260px;
    bottom: 5%;
    left: 10%;
    z-index: 4;
}

/* Report Internal design details */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.report-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.report-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.report-tag.ielts { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.report-tag.pte { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.report-tag.expert { background: rgba(217, 119, 6, 0.15); color: #d97706; }

.score-dial-flex {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.score-circle {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(#8b5cf6 var(--progress, 85%), rgba(255, 255, 255, 0.1) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle::after {
    content: '';
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #111113;
}

.score-value {
    position: relative;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    z-index: 10;
}

.score-meta h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.score-meta p {
    font-size: 0.78rem;
    color: #a1a1aa;
}

.report-body-text {
    font-size: 0.85rem;
    color: #e4e4e7;
    line-height: 1.5;
}

.correction-block {
    margin-top: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
}

.correction-block.wrong {
    background: rgba(239, 68, 68, 0.08);
    border-left: 2.5px solid #ef4444;
    color: #fca5a5;
    margin-bottom: 0.4rem;
}

.correction-block.correct {
    background: rgba(16, 185, 129, 0.08);
    border-left: 2.5px solid #10b981;
    color: #a7f3d0;
}

/* --- REVIEWS SECTION --- */
.reviews-section {
    padding: 7.5rem 0;
    overflow: hidden;
}

/* Scrolling slider container */
.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollMarquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.review-card {
    width: 340px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.review-rating {
    display: flex;
    gap: 0.2rem;
    color: #eab308;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    min-height: 72px;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 0.8rem;
}

.author-info h6 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-cta);
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
}

.verified-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.reviews-subtext {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.reviews-subtext a {
    color: var(--primary-cta);
    text-decoration: underline;
    font-weight: 600;
}

/* --- FAQ ACCORDION SECTION --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem 1.8rem;
    background: none;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-trigger h4 {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--primary-cta);
    transition: var(--transition-quick);
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-icon svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3px;
    transition: var(--transition-smooth);
}

/* Bulletproof CSS Grid Accordion Transition */
.faq-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content {
    overflow: hidden;
}

.faq-body {
    padding: 0 1.8rem 1.5rem 1.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Active States */
.faq-item.active {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-content-wrapper {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-icon {
    background: var(--primary-cta);
    color: #ffffff;
    transform: rotate(45deg);
}

/* --- FINAL CTA SECTION --- */
.final-cta {
    padding: 8rem 0;
}

.final-cta-card {
    position: relative;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 6rem 4rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4);
}

.final-cta-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.final-cta-card h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.final-cta-card p {
    color: #a1a1aa;
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
    line-height: 1.5;
}

.final-cta-card .btn {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    border-radius: 14px;
}

.final-cta-card .btn-primary {
    background: #ffffff;
    color: #09090b;
}

.final-cta-card .btn-primary:hover {
    background: #e4e4e7;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 3rem 0;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* --- GOOGLE MAPS LOCATION CARD --- */
.footer-map-column {
    display: flex;
    flex-direction: column;
}

.map-card-wrapper {
    flex: 1;
    display: flex;
}

.map-card-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
}

.map-card {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 220px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.map-btn {
    pointer-events: auto;
    background: #111111;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.map-card-link:hover .map-card {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.map-card-link:hover iframe {
    transform: scale(1.05);
}

.map-card-link:hover .map-btn {
    background: #27272a;
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.25);
    transform: translateY(-1px);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 280px;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-cta);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.footer-links a:hover {
    color: var(--primary-cta);
    transform: translateX(2px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-social-wrap {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-quick);
}

.footer-legal a:hover {
    color: var(--primary-cta);
}

/* --- BOOKING MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    margin: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: var(--bg-secondary);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.modal-close:hover {
    color: var(--primary-cta);
    transform: rotate(90deg);
}

.booking-form {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 0.95rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-quick);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-control:disabled {
    background-color: rgba(228, 228, 231, 0.15);
    border-color: rgba(228, 228, 231, 0.5);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.85;
}

select.form-control:disabled {
    background-image: none !important;
    padding-right: 1rem;
}

.form-control:focus {
    border-color: #3b82f6;
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    height: auto;
    min-height: 80px;
    padding: 0.75rem 1rem;
    resize: none;
}

/* --- STEPPER PROGRESSDOTS INDICATOR --- */
.form-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    cursor: default;
    transition: var(--transition-quick);
}

.step-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    border: 2px solid var(--border-light);
    transition: var(--transition-quick);
}

.step-dot.active {
    color: var(--text-primary);
}

.step-dot.active::before {
    background: var(--primary-cta);
    border-color: var(--primary-cta);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.step-dot.completed {
    color: #10b981;
}

.step-dot.completed::before {
    background: #10b981;
    border-color: #10b981;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 0.5rem;
    transform: translateY(-7px);
    transition: var(--transition-quick);
}

.step-line.active {
    background: var(--primary-cta);
}

.step-line.completed {
    background: #10b981;
}

/* --- MULTI-STEP SHIFT TRANSITIONS --- */
.form-step {
    display: none;
    opacity: 0;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: formStepFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes formStepFadeIn {
    from {
        opacity: 0;
        transform: translate3d(14px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* --- STEP 1 SEGMENTED CONTROLS & CHIPS --- */
.segmented-control {
    display: flex;
    background: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.segmented-control input[type="radio"] {
    display: none;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 7px;
    cursor: pointer;
    transition: var(--transition-quick);
    margin-bottom: 0;
}

.segmented-control input[type="radio"]:checked + label {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.chips-container {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.chips-container input[type="checkbox"] {
    display: none;
}

.chips-container .chip {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 99px;
    cursor: pointer;
    transition: var(--transition-quick);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
    user-select: none;
}

.chips-container .chip:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.chips-container input[type="checkbox"]:checked + .chip {
    background: var(--primary-cta);
    color: #ffffff;
    border-color: var(--primary-cta);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(17, 17, 17, 0.12);
}

/* --- STEP 2 SELECT EXAM CARDS --- */
.step-question {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.exam-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-top: 0.25rem;
}

.select-exam-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.select-exam-card .select-exam-icon {
    font-size: 1.4rem;
    margin-bottom: 0.15rem;
}

.select-exam-card h4 {
    font-size: 0.98rem;
    margin-bottom: 0;
    transition: var(--transition-quick);
}

.select-exam-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    transition: var(--transition-quick);
}

.select-exam-card .card-glow-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: opacity 0.35s ease;
}

/* EXAM SELECT HOVER & SELECTED STATE ACTIONS */
.select-exam-card[data-exam="IELTS"]:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}
.select-exam-card[data-exam="IELTS"].selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(139, 92, 246, 0.04));
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.select-exam-card[data-exam="PTE"]:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
}
.select-exam-card[data-exam="PTE"].selected {
    border-color: #06b6d4;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.04), rgba(6, 182, 212, 0.04));
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.select-exam-card[data-exam="Duolingo"]:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}
.select-exam-card[data-exam="Duolingo"].selected {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(5, 150, 105, 0.04));
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.select-exam-card[data-exam="LanguageCert"]:hover {
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.1);
}
.select-exam-card[data-exam="LanguageCert"].selected {
    border-color: #d97706;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.04), rgba(217, 119, 6, 0.04));
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
}

/* --- STEP 3 CONDITIONAL MOCK SUB-CARDS --- */
.sub-exam-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.select-sub-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.1rem 1.35rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.select-sub-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
    transform: translateY(-1.5px);
}

.select-sub-card.selected {
    border-color: var(--primary-cta);
    background: var(--bg-tertiary);
    box-shadow: 0 4px 15px rgba(17, 17, 17, 0.06);
}

.select-sub-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.select-sub-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* --- STEP 4 SLOT TIME SELECTION --- */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.slot-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease-out;
}

.slot-card:hover {
    transform: scale(1.02) translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15), var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

.slot-card.selected {
    background: var(--primary-cta);
    border-color: #fbbf24;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.slot-card.selected h4 {
    color: #ffffff !important;
}

.slot-card.selected .slot-time-icon {
    transform: scale(1.1);
}

.slot-time-icon {
    font-size: 1.6rem;
    transition: transform 0.3s ease-out;
}

.slot-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
    transition: color 0.3s ease-out;
}

/* --- STEP 5 REVIEW PANEL SUMMARY --- */
.review-details-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(228, 228, 231, 0.6);
}

.review-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.review-value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.consent-group {
    display: flex;
    align-items: flex-start;
}

.consent-flex {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.consent-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--primary-cta);
}

.consent-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

/* --- NAVIGATION BUTTONS & ERROR STYLES --- */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.form-navigation .btn {
    margin-top: 0 !important;
    flex: 1;
}

.form-group .error-msg {
    font-size: 0.72rem;
    color: #ef4444;
    font-weight: 500;
    margin-top: 0.2rem;
}

.form-control.invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.02);
}

.form-control.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* --- DYNAMIC GLASS SUCCESS MODAL PANEL --- */
.modal-success-screen {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-primary);
    animation: formStepFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon-wrap svg {
    width: 32px;
    height: 32px;
}

.modal-success-screen h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.success-message-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 380px;
    margin-bottom: 2rem;
}

.close-success-btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

/* --- GOOGLE SHEETS SETUP ACCORDION PANEL --- */
.google-sheets-setup-panel {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    margin-bottom: 2rem;
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.setup-header {
    padding: 0.85rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
    gap: 0.5rem;
}

.setup-toggle-btn {
    background: var(--primary-cta);
    color: #ffffff;
    border: none;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
}

.setup-toggle-btn:hover {
    background: var(--primary-cta-hover);
}

.setup-body {
    padding: 1.2rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background: var(--bg-secondary);
}

.setup-body p {
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.setup-body ol {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.setup-body li {
    color: var(--text-secondary);
}

/* --- PREMIUM CHATBOT --- */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: inherit;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-cta);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.2);
    transition: var(--transition-smooth);
}

.chatbot-toggle:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.3);
}

.chatbot-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.chatbot-toggle.active svg {
    transform: rotate(90deg);
}

.chatbot-window {
    position: absolute;
    bottom: 4.5rem;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--bg-secondary);
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.chat-header h4 {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.chat-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    border-radius: 14px;
    line-height: 1.4;
}

.chat-msg.bot {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.chat-msg.user {
    background: var(--primary-cta);
    color: #ffffff;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.chat-quick-replies {
    padding: 0.6rem 1.2rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.quick-reply-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: 99px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-quick);
}

.quick-reply-btn:hover {
    background: var(--primary-cta);
    color: #ffffff;
    border-color: var(--primary-cta);
}

/* --- MOBILE BOTTOM BAR --- */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1) translate(3%, 2%);
        opacity: 1;
    }
}

/* --- MOBILE & CROSS-DEVICE STYLING (RESPONSIVE) --- */

/* 0. BREAKPOINTS: DESKTOP & LARGE SCREENS */
@media (min-width: 1200px) {
    .header-container {
        max-width: 1440px; /* Moves logo block significantly further left (by ~120px on 1440px screens) */
        padding: 0 3rem;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .header-container {
        max-width: 100%;
        padding: 0 2rem;
    }
    .logo-img {
        height: 30px; /* Sleek logo sizing to fit navigation items */
    }
    .nav-links {
        gap: 12px; /* Extra-tight gap to guarantee single row layout */
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .header-right {
        gap: 0.8rem;
    }
    .header-right .btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.84rem;
    }
}

/* 1. BREAKPOINT: LAPTOPS / LARGE TABLETS (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-grid {
        gap: 3rem;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 2. BREAKPOINT: PORTRAIT TABLETS (max-width: 991px) */
@media (max-width: 991px) {
    /* Collapse header menu to hamburger toggle */
    .menu-toggle {
        display: block;
        margin-left: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.2rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto; /* prevents clipping of links on horizontal tabs */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .header-right .btn-primary,
    .header-right .btn-cyan {
        display: inline-flex;
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }
    
    .header-socials {
        display: none; /* Hide socials in header to fit buttons on tablet screens */
    }
    
    /* Collapse Hero layout */
    .hero {
        padding-top: 7.5rem;
        padding-bottom: 4rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .hero-badge {
        margin: 0 auto 1.5rem auto;
    }
    
    .hero-subtitle {
        margin: 0 auto 1rem auto;
        max-width: 100%;
    }

    .hero-seo-line {
        margin: 0 auto 2.2rem auto;
        display: inline-flex;
        text-align: center;
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-mockup {
        transform: none !important; /* Flat 2D for high readability */
        max-width: 580px;
        margin: 0 auto;
    }
    
    /* Collapse grids */
    .exam-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }
    
    /* Collapse alternating Timeline to standard single column */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding: 1.5rem 0 1.5rem 3.5rem;
        left: 0 !important;
        text-align: left !important;
    }
    
    .timeline-badge {
        left: 2px !important;
    }
    
    .timeline-card {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* 3. BREAKPOINT: LARGE PHABLETS / MOBILE DEVICES (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Offset to prevent mobile sticky CTA overlapping content */
    }
    
    .premium-section {
        padding: 4.5rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.1rem;
    }
    
    .exam-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
    
    .trust-flex {
        justify-content: center;
        gap: 2.2rem;
    }
    
    .mobile-sticky-bar {
        display: block;
    }
    
    .mobile-sticky-bar .btn {
        width: 100%;
    }
}

/* 4. BREAKPOINT: STANDARD SMARTPHONES (max-width: 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .header-right .btn-cyan {
        display: none !important; /* Hide secondary CTA to avoid crowding on mobile */
    }
    .header-right .btn-primary {
        display: inline-flex !important;
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
    .logo-img {
        height: 28px; /* Slightly shrink logo height on mobile viewports */
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* Transform absolute overlapping showcase cards into clean vertical glass stacks */
    .showcase-cards {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        padding: 1rem 0;
    }
    
    .glass-report-card {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: var(--shadow-md) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    /* Float modal with a beautiful margin gap on smartphones */
    .modal {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 100%;
        margin: 0.5rem auto;
        border-radius: 20px;
    }
    
    .booking-form {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group-full {
        grid-column: span 1;
    }

    .form-control {
        height: 46px; /* Slightly reduced height for mobile density */
    }
    
    .final-cta-card {
        padding: 4rem 1.5rem;
        border-radius: 24px;
    }
    
    .final-cta-card h2 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* 5. BREAKPOINT: COMPACT SMARTPHONES / PORTRAIT (max-width: 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2.1rem;
    }
    
    /* Fit conversational chatbot cleanly inside the SE viewports to prevent overflow */
    .chatbot-window {
        width: calc(100vw - 3rem);
        right: -1rem;
        height: 400px;
    }
    
    .quick-reply-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.72rem;
    }
    
    .slots-grid {
        gap: 0.6rem;
    }
    
    .slot-card {
        padding: 1rem 0.5rem;
    }
    
    .slot-card h4 {
        font-size: 0.85rem;
    }
}

/* --- PREMIUM HERO PROMO MARQUEE BANNER --- */
.hero-promo-marquee {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 0;
    margin-top: -3.5rem; /* pull up closer to header */
    margin-bottom: 3.5rem; /* push down hero content elegantly */
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 10;
}

.marquee-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.marquee-content-wrap {
    display: flex;
    width: 100%;
    z-index: 1;
}

.marquee-slide {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    flex-shrink: 0;
    white-space: nowrap;
    animation: promoMarquee 20s linear infinite;
}

.hero-promo-marquee:hover .marquee-slide {
    animation-play-state: paused;
}

@keyframes promoMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.marquee-slide span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-highlight {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 850 !important;
    background: linear-gradient(135deg, #fbbf24 30%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0 0.25rem;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45));
    animation: goldPulse 2s infinite ease-in-out;
}

@keyframes goldPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.25));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.65));
    }
}

/* Responsive design adjustments for Full Viewport Marquee */
@media (max-width: 768px) {
    .hero-promo-marquee {
        padding: 0.85rem 0;
        margin-top: -2rem;
        margin-bottom: 2.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .marquee-slide span {
        font-size: 0.88rem;
        gap: 0.35rem;
    }
    .premium-highlight {
        font-size: 1.1rem;
    }
}

/* --- LANGUAGECERT PREMIUM OPTION CARD DESIGN --- */
.langcert-sub-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.langcert-sub-card:hover {
    transform: scale(1.02) translateY(-2px) !important;
    border-color: rgba(217, 119, 6, 0.5) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 0 20px rgba(217, 119, 6, 0.35) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.langcert-sub-card.selected {
    background: var(--primary-cta) !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25) !important;
}

.langcert-sub-card.selected h4 {
    color: #ffffff !important;
}

.langcert-sub-card.selected p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* --- IELTS PREMIUM OFFICIAL LOGO STYLING --- */
.ielts-logo-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    animation: ieltsLogoFloat 4s ease-in-out infinite;
    overflow: visible !important;
}

.ielts-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 10px rgba(227, 24, 55, 0.2));
    transition: var(--transition-smooth);
}

/* Floating micro-animation to wow the user */
@keyframes ieltsLogoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Hover effects for IELTS logo inside the card */
.exam-card:hover .ielts-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.3));
}

/* Smaller Select Card IELTS logo styling for the modal form */
.ielts-select-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 6px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(227, 24, 55, 0.15));
    transition: var(--transition-quick);
}

.select-exam-card:hover .ielts-select-logo-img {
    transform: scale(1.05);
}

/* Mobile responsive styling for the logos */
@media (max-width: 768px) {
    .ielts-logo-img {
        width: 44px;
        height: 44px;
    }
    .ielts-select-logo-img {
        width: 22px;
        height: 22px;
    }
}

/* --- PTE PREMIUM OFFICIAL LOGO STYLING --- */
.pte-logo-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    animation: pteLogoFloat 4s ease-in-out infinite;
    animation-delay: 0.5s; /* Offset from IELTS for organic visual pacing */
    overflow: visible !important;
}

.pte-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 10px rgba(6, 182, 212, 0.25));
    transition: var(--transition-smooth);
}

/* Floating micro-animation for PTE logo */
@keyframes pteLogoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Hover effects for PTE logo inside the card */
.exam-card:hover .pte-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.35));
}

/* Smaller Select Card PTE logo styling for the modal form */
.pte-select-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 6px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(6, 182, 212, 0.15));
    transition: var(--transition-quick);
}

.select-exam-card:hover .pte-select-logo-img {
    transform: scale(1.05);
}

/* Mobile responsive styling for PTE logos */
@media (max-width: 768px) {
    .pte-logo-img {
        width: 44px;
        height: 44px;
    }
    .pte-select-logo-img {
        width: 22px;
        height: 22px;
    }
}

/* --- DUOLINGO PREMIUM OFFICIAL LOGO STYLING --- */
.duolingo-logo-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    animation: duolingoLogoFloat 4s ease-in-out infinite;
    animation-delay: 1s; /* Offset from IELTS & PTE for organic visual pacing */
    overflow: visible !important;
}

.duolingo-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 10px rgba(88, 204, 2, 0.25));
    transition: var(--transition-smooth);
}

/* Floating micro-animation for Duolingo logo */
@keyframes duolingoLogoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Hover effects for Duolingo logo inside the card */
.exam-card:hover .duolingo-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.35));
}

/* Smaller Select Card Duolingo logo styling for the modal form */
.duolingo-select-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 6px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(88, 204, 2, 0.15));
    transition: var(--transition-quick);
}

.select-exam-card:hover .duolingo-select-logo-img {
    transform: scale(1.05);
}

/* Mobile responsive styling for Duolingo logos */
@media (max-width: 768px) {
    .duolingo-logo-img {
        width: 44px;
        height: 44px;
    }
    .duolingo-select-logo-img {
        width: 22px;
        height: 22px;
    }
}

/* --- LANGUAGECERT PREMIUM OFFICIAL LOGO STYLING --- */
.langcert-logo-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    animation: langcertLogoFloat 4s ease-in-out infinite;
    animation-delay: 1.5s; /* Offset from other logos for organic visual pacing */
    overflow: visible !important;
}

.langcert-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 10px rgba(217, 119, 6, 0.25));
    transition: var(--transition-smooth);
}

/* Floating micro-animation for LanguageCert logo */
@keyframes langcertLogoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Hover effects for LanguageCert logo inside the card */
.exam-card:hover .langcert-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.35));
}

/* Smaller Select Card LanguageCert logo styling for the modal form */
.langcert-select-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 6px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.15));
    transition: var(--transition-quick);
}

.select-exam-card:hover .langcert-select-logo-img {
    transform: scale(1.05);
}

/* Mobile responsive styling for LanguageCert logos */
@media (max-width: 768px) {
    .langcert-logo-img {
        width: 44px;
        height: 44px;
    }
    .langcert-select-logo-img {
        width: 22px;
        height: 22px;
    }
}

/* --- ANIMATED JOURNEY SECTION --- */
.journey-section {
    padding: 7.5rem 0;
    overflow: hidden;
}

.journey-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.journey-visual-wrapper {
    display: flex;
    flex-direction: column;
}

.journey-visual-container {
    position: relative;
    width: 100%;
    aspect-ratio: 500 / 220;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.journey-svg {
    width: 100%;
    height: 100%;
}

/* Track paths styling */
#metro-track {
    stroke: var(--border-light);
    stroke-width: 6px;
    stroke-linecap: round;
}

#walk-track {
    stroke: var(--border-light);
    stroke-width: 4px;
    stroke-linecap: round;
}

.journey-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.journey-icon svg {
    width: 24px;
    height: 24px;
}

.metro-icon {
    left: 12%;
    top: 75%;
    opacity: 0;
}

.walker-container {
    position: absolute;
    left: 50%;
    top: 75%;
    width: 24px;
    height: 48px;
    transform: translate(-50%, -95%);
    z-index: 10;
    opacity: 0;
    display: none;
}

.walker-character {
    position: relative;
    width: 100%;
    height: 100%;
}

.character-body-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: bottom center;
}

/* Head styling */
.char-head {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    position: absolute;
    top: 2px;
    left: 9.5px; /* offset forward slightly to look profile facing right */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    z-index: 5;
}

/* Torso styling */
.char-torso {
    width: 5px;
    height: 17px;
    border-radius: 2.5px;
    background: #1e1b4b;
    position: absolute;
    top: 13px;
    left: 9.5px;
    z-index: 3;
}

/* Limbs styling */
.char-arm {
    width: 3px;
    height: 13px;
    border-radius: 1.5px;
    position: absolute;
    top: 14px;
    transform-origin: 50% 1.5px; /* Pivot from shoulder joint */
}

.arm-left {
    left: 10.5px;
    background: #4f46e5;
    z-index: 4; /* Front arm */
}

.arm-right {
    left: 10.5px;
    background: #312e81;
    z-index: 2; /* Back arm, darker shading */
}

.char-leg {
    width: 3.5px;
    height: 17px;
    border-radius: 1.75px;
    position: absolute;
    top: 29px;
    transform-origin: 50% 1.75px; /* Pivot from hip joint */
}

.leg-left {
    left: 10.25px;
    background: #111827;
    z-index: 4; /* Front leg */
}

.leg-right {
    left: 10.25px;
    background: #374151;
    z-index: 1; /* Back leg, darker shading */
}

/* Keyframe Animations for Cinematic Walk Cycle */
@keyframes charWalkLegLeft {
    0%, 100% { transform: rotate(-28deg); }
    50% { transform: rotate(28deg); }
}

@keyframes charWalkLegRight {
    0%, 100% { transform: rotate(28deg); }
    50% { transform: rotate(-28deg); }
}

@keyframes charWalkArmLeft {
    0%, 100% { transform: rotate(24deg); }
    50% { transform: rotate(-24deg); }
}

@keyframes charWalkArmRight {
    0%, 100% { transform: rotate(-24deg); }
    50% { transform: rotate(24deg); }
}

@keyframes charBobbing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2.5px); }
}

/* Walking state triggers */
.walker-character.walking .leg-left {
    animation: charWalkLegLeft 0.75s infinite linear;
}

.walker-character.walking .leg-right {
    animation: charWalkLegRight 0.75s infinite linear;
}

.walker-character.walking .arm-left {
    animation: charWalkArmLeft 0.75s infinite linear;
}

.walker-character.walking .arm-right {
    animation: charWalkArmRight 0.75s infinite linear;
}

.walker-character.walking .character-body-wrap {
    animation: charBobbing 0.375s infinite linear; /* Double frequency for steps */
}

.dest-icon {
    left: 88%;
    top: 30%;
    position: absolute;
    z-index: 9;
    background: #ffffff;
    border-color: #f59e0b;
}

.dest-glow-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    opacity: 0;
    pointer-events: none;
}

.dest-icon.arrived .dest-glow-ring {
    animation: destGlowPulse 1.8s infinite ease-in-out;
}

@keyframes destGlowPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Station Labels */
.station-label {
    position: absolute;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transform: translate(-50%, 0);
    text-align: center;
    white-space: nowrap;
}

.label-start {
    left: 12%;
    top: 86%;
}

.label-mid {
    left: 50%;
    top: 86%;
}

.label-end {
    left: 88%;
    top: 14%;
}

/* Distance Counter Overlay */
.journey-counter-card {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    min-width: 155px;
    box-shadow: var(--shadow-sm);
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.counter-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.counter-num-wrap {
    font-size: 1.5rem;
    font-weight: 850;
    color: var(--primary-cta);
    font-family: inherit;
    line-height: 1.1;
}

.counter-unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 1px;
}

.counter-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    transition: color 0.3s ease;
}

.counter-status.active {
    color: #3b82f6;
}

.counter-status.walking {
    color: #10b981;
}

.counter-status.arrived {
    color: #f59e0b;
}

/* CTA Group */
.journey-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.journey-cta-group .btn {
    flex: 1;
}

/* Step cards wrapper style */
.journey-steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.journey-step-card {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3.5px solid transparent;
}

.journey-step-card.active {
    border-color: var(--border-hover);
    border-left-color: var(--primary-cta);
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

.step-num {
    font-size: 1.5rem;
    font-weight: 850;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.35s ease;
}

.journey-step-card.active .step-num {
    color: var(--primary-cta);
}

.step-card-content h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-cta);
    margin-bottom: 0.3rem;
    transition: color 0.35s ease;
}

.step-card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
}

@media (max-width: 576px) {
    .journey-visual-container {
        aspect-ratio: 16 / 10;
    }
    .station-label {
        font-size: 0.62rem;
    }
    .label-start {
        left: 14%;
        top: 86%;
    }
    .label-mid {
        left: 50%;
        top: 86%;
    }
    .label-end {
        left: 86%;
        top: 14%;
    }
    .metro-icon {
        left: 14%;
    }
    .dest-icon {
        left: 86%;
    }
    .journey-cta-group {
        flex-direction: column;
        gap: 0.8rem;
    }
}


/* --- PREMIUM CENTERED PARTNER WITH US CTA SECTION --- */
.partner-cta {
    padding: 8rem 0;
}

.partner-cta-card {
    position: relative;
    background: linear-gradient(135deg, #020617, #071426, #0f2d52, #020617);
    background-size: 400% 400%;
    animation: partnerCtaGradientShift 8s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 6rem 4rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.55);
}

@keyframes partnerCtaGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.partner-cta-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(59, 130, 246, 0.16) 0%, rgba(147, 51, 234, 0.09) 45%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.partner-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.partner-cta-card h2 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.partner-cta-card p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.partner-cta-card .partner-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    background: #ffffff;
    color: #020617;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-cta-card .partner-cta-btn:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

@media (max-width: 1024px) {
    .partner-cta-card h2 {
        font-size: 44px;
    }
    .partner-cta-card p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .partner-cta {
        padding: 5rem 0;
    }
    .partner-cta-card {
        padding: 4rem 1.5rem;
        border-radius: 24px;
    }
    .partner-cta-card h2 {
        font-size: 36px;
    }
    .partner-cta-card p {
        font-size: 17px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .partner-cta-card {
        padding: 3.5rem 24px;
    }
    .partner-cta-card h2 {
        font-size: 30px;
    }
    .partner-cta-card p {
        font-size: 16px;
    }
    .partner-cta-card .partner-cta-btn {
        width: 100%;
        max-width: 280px;
        height: 52px;
    }
}

/* --- DEDICATED PARTNER PORTAL STYLES --- */

/* Partner Hero */
.partner-hero {
    padding: 11rem 0 7rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.partner-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.partner-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #6366f1;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.partner-hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.partner-hero-sub {
    font-size: 1.35rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 1.5rem;
}

.partner-hero-desc {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.partner-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

/* Bento Grid Features Section */
.why-partner-section {
    padding: 8rem 0;
    background: #020617;
    color: #ffffff;
    position: relative;
}

.why-partner-section .section-header h2 {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.why-partner-section .section-header p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
}

.why-partner-section .section-header {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6rem;
    text-align: center;
}

.why-partner-section .section-label {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    background: linear-gradient(120deg, #8b5cf6 0%, #d8b4fe 40%, #8b5cf6 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), background-position 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-position: 100% 0;
    margin-bottom: 1.5rem;
}

.why-partner-section .section-label.revealed {
    opacity: 1;
    transform: translateY(0);
    background-position: 0% 0;
}

/* Word-by-word reveal structures */
.reveal-word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-right: 0.28em;
}

.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 50px, 0);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-word.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Bento Grid Layout Configuration */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.bento-card-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

/* Card Column Spanning */
.bento-card.span-2 {
    grid-column: span 2;
}

.bento-card.span-4 {
    grid-column: span 4;
}

.bento-card-content {
    position: relative;
    z-index: 2;
}

/* Icon Badges & Gradients */
.bento-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #ffffff;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

/* Specific Card Theme Color Gradients */
.bento-card[data-theme="blue"] .bento-icon-wrapper { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.bento-card[data-theme="blue"] .bento-card-bg-glow { background: radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.15) 0%, transparent 60%); }

.bento-card[data-theme="sky"] .bento-icon-wrapper { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.bento-card[data-theme="sky"] .bento-card-bg-glow { background: radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.15) 0%, transparent 60%); }

.bento-card[data-theme="green"] .bento-icon-wrapper { background: linear-gradient(135deg, #22c55e, #15803d); }
.bento-card[data-theme="green"] .bento-card-bg-glow { background: radial-gradient(circle at 10% 10%, rgba(34, 197, 94, 0.15) 0%, transparent 60%); }

.bento-card[data-theme="purple"] .bento-icon-wrapper { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.bento-card[data-theme="purple"] .bento-card-bg-glow { background: radial-gradient(circle at 10% 10%, rgba(168, 85, 247, 0.15) 0%, transparent 60%); }

.bento-card[data-theme="red"] .bento-icon-wrapper { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bento-card[data-theme="red"] .bento-card-bg-glow { background: radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.15) 0%, transparent 60%); }

.bento-card[data-theme="orange"] .bento-icon-wrapper { background: linear-gradient(135deg, #f97316, #c2410c); }
.bento-card[data-theme="orange"] .bento-card-bg-glow { background: radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.15) 0%, transparent 60%); }

.bento-card[data-theme="cyan"] .bento-icon-wrapper { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.bento-card[data-theme="cyan"] .bento-card-bg-glow { background: radial-gradient(circle at 10% 10%, rgba(6, 182, 212, 0.15) 0%, transparent 60%); }

.bento-card[data-theme="indigo"] .bento-icon-wrapper { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.bento-card[data-theme="indigo"] .bento-card-bg-glow { background: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.15) 0%, transparent 60%); }

/* Bento Typography */
.bento-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.bento-card p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.bento-card p.revealed {
    opacity: 0.65;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

/* Card Hover States & Micro-interactions */
.bento-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
}

/* Theme specific hover glows for premium feel */
.bento-card[data-theme="blue"]:hover { border-color: rgba(37, 99, 235, 0.35); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(37, 99, 235, 0.15); }
.bento-card[data-theme="sky"]:hover { border-color: rgba(14, 165, 233, 0.35); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(14, 165, 233, 0.15); }
.bento-card[data-theme="green"]:hover { border-color: rgba(34, 197, 94, 0.35); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(34, 197, 94, 0.15); }
.bento-card[data-theme="purple"]:hover { border-color: rgba(168, 85, 247, 0.35); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(168, 85, 247, 0.15); }
.bento-card[data-theme="red"]:hover { border-color: rgba(239, 68, 68, 0.35); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(239, 68, 68, 0.15); }
.bento-card[data-theme="orange"]:hover { border-color: rgba(249, 115, 22, 0.35); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(249, 115, 22, 0.15); }
.bento-card[data-theme="cyan"]:hover { border-color: rgba(6, 182, 212, 0.35); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(6, 182, 212, 0.15); }
.bento-card[data-theme="indigo"]:hover { border-color: rgba(99, 102, 241, 0.35); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(99, 102, 241, 0.15); }

.bento-card:hover .bento-card-bg-glow {
    opacity: 0.08;
}

.bento-card:hover .bento-icon-wrapper {
    transform: scale(1.1) translateY(-2px);
}

/* Bento Micro-Animations for Icons */
@keyframes scanPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
.bento-card:hover .animated-camera {
    animation: scanPulse 1.2s ease infinite;
    color: #60a5fa;
}

@keyframes wifiFlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; transform: scale(1.08); }
}
.bento-card:hover .animated-wifi {
    animation: wifiFlow 1.2s infinite;
    color: #38bdf8;
}

@keyframes glowWallet {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.3)); }
    50% { filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.85)); }
}
.bento-card:hover .animated-wallet {
    animation: glowWallet 1.5s infinite;
}

@keyframes chartGrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.bento-card:hover .animated-trending {
    animation: chartGrow 1.5s ease infinite;
}

@keyframes shieldGlow {
    0%, 100% { filter: drop-shadow(0 0 1px rgba(239, 68, 68, 0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.85)); }
}
.bento-card:hover .animated-shield {
    animation: shieldGlow 1.5s infinite;
}

@keyframes calendarMove {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(8deg) scale(1.05); }
}
.bento-card:hover .animated-calendar {
    animation: calendarMove 1.5s ease infinite;
}

@keyframes headsetPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 5px #06b6d4); }
}
.bento-card:hover .animated-headset {
    animation: headsetPulse 1.4s infinite;
}

@keyframes serverLedBlink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}
.server-led-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.bento-card:hover .server-led-indicator {
    animation: serverLedBlink 0.4s infinite;
}

/* Partnership Process Section (Timeline) */
.timeline-section {
    padding: 8rem 0;
}

.timeline-container {
    position: relative;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desktop Horizontal Timeline Styles */
.timeline-track-horizontal {
    position: absolute;
    top: 35px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: rgba(228, 228, 231, 0.5);
    z-index: 1;
}

.timeline-track-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.timeline-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-node {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step.active .timeline-node {
    border-color: #6366f1;
    color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
    transform: scale(1.1);
}

.timeline-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--primary-cta);
}

.timeline-step p {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
    max-width: 200px;
}

/* Trust Metrics Section */
.metrics-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    margin-top: 4rem;
}

.metric-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #6366f1;
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-cta);
    margin-bottom: 0.4rem;
}

.metric-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Who Can Partner Section */
.who-section {
    padding: 8rem 0;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.who-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.who-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.who-card-icon svg {
    width: 26px;
    height: 26px;
}

.who-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-cta);
    margin: 0;
    line-height: 1.35;
}

.who-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.12);
}

.who-card:hover .who-card-icon {
    background: #6366f1;
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

/* Intermediary CTA Section */
.partner-portal-cta {
    padding: 4rem 0 8rem;
}

.partner-portal-cta-card {
    border-radius: 32px;
    padding: 6rem 4rem;
    background: linear-gradient(135deg, #020617, #071426, #0f2d52, #020617);
    background-size: 400% 400%;
    animation: partnerCtaGradientShift 10s ease infinite;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
}

.partner-portal-cta-card h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

.partner-portal-cta-card p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.partner-portal-cta-card .btn {
    position: relative;
    z-index: 2;
}

/* Contact Form Section */
.partner-form-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.partner-form-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.partner-form-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.partner-form-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.partner-form-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 4.5rem 4rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.partner-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group-full {
    grid-column: span 2;
}

.partner-form-group {
    position: relative;
}

.partner-form-input {
    width: 100%;
    height: 56px;
    padding: 1.5rem 1rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.partner-form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}

textarea.partner-form-input {
    height: 120px;
    padding-top: 1.8rem;
    resize: none;
}

.partner-form-label {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
    pointer-events: none;
    transform-origin: left top;
}

/* Floating label mechanics */
.partner-form-group.focused .partner-form-label,
.partner-form-group.has-value .partner-form-label {
    transform: translateY(-0.7rem) scale(0.75);
    color: #6366f1;
    font-weight: 600;
}

.partner-form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.02);
}

.partner-form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.partner-form-group.error .partner-form-label {
    color: #ef4444;
}

.error-message {
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 0.3rem;
    position: absolute;
    bottom: -1.2rem;
    left: 0.2rem;
}

.partner-submit-container {
    grid-column: span 2;
    text-align: center;
    margin-top: 1rem;
}

.partner-submit-btn {
    width: 100%;
    max-width: 320px;
    height: 56px;
    font-size: 1.05rem;
    position: relative;
}

/* Loading & Success States Overlay */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.form-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.form-overlay.success .success-checkmark {
    transform: scale(1);
    opacity: 1;
}

.form-overlay-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-cta);
    margin-bottom: 0.5rem;
}

.form-overlay-text {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 400px;
    padding: 0 1.5rem;
}

/* Animations Scroll Reveals */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness adjustments */
@media (max-width: 1199px) {
    .partner-hero h1 {
        font-size: 3.5rem;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card.span-2 {
        grid-column: span 2;
    }
    .bento-card.span-4 {
        grid-column: span 2;
    }
    .who-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .partner-hero {
        padding: 8rem 0 4rem;
    }
    .partner-hero h1 {
        font-size: 2.8rem;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.span-2, .bento-card.span-4 {
        grid-column: auto;
    }
    .timeline-track-horizontal {
        display: none;
    }
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-left: 3rem;
        border-left: 3px solid rgba(228, 228, 231, 0.5);
        text-align: left;
    }
    .timeline-step {
        align-items: flex-start;
        position: relative;
    }
    .timeline-node {
        position: absolute;
        left: -3rem;
        top: 0;
        transform: translateX(-50%);
        margin-bottom: 0;
        width: 54px;
        height: 54px;
        font-size: 1.1rem;
    }
    .timeline-step p {
        max-width: 100%;
    }
    .who-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-form-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .partner-hero h1 {
        font-size: 2.3rem;
    }
    .partner-hero-sub {
        font-size: 1.2rem;
    }
    .partner-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .partner-hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    .partner-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .partner-submit-container {
        grid-column: span 1;
    }
    .partner-portal-cta-card {
        padding: 4rem 2rem;
    }
    .partner-portal-cta-card h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .who-grid {
        grid-template-columns: 1fr;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .partner-portal-cta-card {
        padding: 3rem 1.5rem;
    }
    .partner-portal-cta-card h2 {
        font-size: 1.8rem;
    }
}

.footer-separator {
    color: var(--border-light);
    font-size: 0.85rem;
    align-self: center;
    opacity: 0.5;
}

/* --- LEGAL PAGES & DISCLAIMER LAYOUT --- */
.legal-hero {
    padding: 11rem 0 5rem;
    position: relative;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.legal-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    color: var(--primary-cta);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.legal-hero .subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

.toc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border-light);
}

.toc-sidebar h3 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-cta);
    margin-bottom: 1.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toc-list li a {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: var(--transition-quick);
    line-height: 1.4;
    display: block;
}

.toc-list li a:hover,
.toc-list li.active a {
    color: #6366f1;
    font-weight: 600;
    padding-left: 4px;
}

.legal-content {
    max-width: 900px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.legal-content section {
    margin-bottom: 4rem;
    scroll-margin-top: 110px; /* Offset for smooth scroll sticky header spacing */
}

.legal-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-cta);
    margin-bottom: 1.2rem;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.legal-content li {
    margin-bottom: 0.6rem;
}

.legal-contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 4rem;
}

.legal-contact-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-cta);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }
    
    .toc-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .header, .footer, .mobile-sticky-bar, .toc-sidebar, #bg-canvas {
        display: none !important;
    }
    .legal-container {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .legal-content {
        max-width: 100% !important;
    }
    .legal-hero {
        padding: 2rem 0 !important;
    }
    .legal-content section {
        page-break-inside: avoid;
        margin-bottom: 2.5rem !important;
    }
}




/* ==========================================================================
   TESTNEST LANDING PAGE UPDATES - JUNE 2026
   ========================================================================== */

/* Header Mobile Buttons Responsiveness */
@media (max-width: 991px) {
    .header-right .btn-primary,
    .header-right .open-langcert-booking-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        height: 38px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 28px !important;
    }
    .header-right {
        gap: 0.4rem;
    }
    .header-right .btn-primary,
    .header-right .open-langcert-booking-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        height: 32px;
    }
    .menu-toggle {
        margin-left: 0.5rem !important;
    }
}

/* LanguageCert Section styling */
.langcert-exam-section {
    background: var(--bg-primary);
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.langcert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.langcert-card {
    grid-column: span 2;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-quick);
}

.langcert-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-premium);
}

.langcert-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.langcert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Centering last two cards on desktop */
.langcert-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.langcert-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Icon Gradient Backgrounds matching Bento Card style */
.langcert-card .why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.langcert-card .why-icon svg {
    width: 24px;
    height: 24px;
}

.langcert-icon-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.langcert-icon-sky { background: linear-gradient(135deg, #0ea5e9, #0369a1); color: #fff; }
.langcert-icon-green { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; }
.langcert-icon-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); color: #fff; }
.langcert-icon-orange { background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; }

/* LanguageCert CTAs & Support Text */
.langcert-cta-block {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.langcert-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.langcert-support-text {
    max-width: 700px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.langcert-support-text strong {
    color: var(--text-primary);
}

/* Responsive Rules for LanguageCert grid */
@media (max-width: 991px) {
    .langcert-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    .langcert-card {
        grid-column: span 2 !important;
    }
    .langcert-card:nth-child(5) {
        grid-column: 2 / span 2 !important; /* Centered on tablets */
    }
}

@media (max-width: 576px) {
    .langcert-grid {
        grid-template-columns: 1fr;
    }
    .langcert-card {
        grid-column: span 1 !important;
    }
}

/* Lead Capture Popup Modal specific styling */
.lead-popup-content {
    max-width: 550px !important;
    border-radius: 20px;
}

.lead-popup-form {
    padding: 1.25rem 1.75rem 1.75rem 1.75rem !important;
    gap: 0.8rem !important;
}

.lead-popup-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.lead-popup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.popup-submit-group {
    margin-top: 0.5rem;
}


/* --- LANGUAGECERT REDESIGN --- */
:root {
    --langcert-red: #e31b23;
}

.langcert-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; /* 57% to 43% */
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.langcert-hero-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(227, 27, 35, 0.05);
    border: 1px solid rgba(227, 27, 35, 0.15);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--langcert-red);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(227, 27, 35, 0.03);
}

.partner-badge .badge-icon {
    font-weight: 800;
    color: #22c55e; /* green check inside badge */
}

.langcert-heading {
    font-size: 3.2rem; /* Large headline */
    line-height: 1.12;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
}

.brand-lang {
    color: #111827;
}

.brand-cert {
    color: var(--langcert-red);
}

.langcert-subheading {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

.langcert-desc-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.langcert-desc-wrap p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.langcert-trust-indicators {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    width: 100%;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-indicator .indicator-check {
    color: #22c55e;
    font-weight: 800;
    font-size: 1.1rem;
}

.langcert-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.langcert-hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.langcert-illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.langcert-illustration-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

.illustration-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(227, 27, 35, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}



/* --- THREE PREMIUM CARDS --- */
.langcert-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.langcert-premium-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.015);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.langcert-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: var(--transition-smooth);
}

.langcert-premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(17, 17, 17, 0.05), 0 1px 3px rgba(17, 17, 17, 0.01);
    border-color: rgba(227, 27, 35, 0.15);
}

.langcert-premium-card:hover::before {
    background: linear-gradient(90deg, var(--langcert-red), #ff7a00); /* red to orange gradient */
}

.card-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.card-icon-wrap svg {
    width: 26px;
    height: 26px;
}

.icon-blue { background: rgba(37, 99, 235, 0.08); color: #2563eb; }
.icon-green { background: rgba(34, 197, 94, 0.08); color: #22c55e; }
.icon-orange { background: rgba(249, 115, 22, 0.08); color: #f97316; }

.langcert-premium-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.langcert-premium-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive updates for redesigned LanguageCert */
@media (max-width: 991px) {
    .langcert-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
        margin-bottom: 4rem;
    }
    .langcert-hero-left {
        align-items: flex-start;
    }
    .langcert-heading {
        font-size: 2.5rem;
    }
    .langcert-hero-right {
        max-width: 480px;
        margin: 0 auto;
    }

    .langcert-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .langcert-premium-card {
        padding: 2.5rem 2rem;
    }
}

