/* Base Styles using Nunito and Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

/* --- CHATBOT MOBILE FIX (Priority Injection) --- */
@media (max-width: 768px) {
    .chatbot-window {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        z-index: 10000 !important;
        /* Above site header (3000) */
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }

    .chatbot-window.hidden {
        display: none !important;
    }

    .chat-header {
        padding: 15px 20px !important;
        flex-shrink: 0 !important;
        border-radius: 0 !important;
        background: #4a90e2 !important;
    }

    /* Ensure close button is visible and tappable */
    #chatbot-close {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        z-index: 10001 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #chatbot-close svg {
        width: 24px !important;
        height: 24px !important;
    }
}

@import url('booking-styles.css');

/* --- MOBILE MENU OVERHAUL (Priority Injection) --- */
@media (max-width: 992px) {
    .nav-list {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        padding: 20px !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        height: 100vh !important;
        width: 100% !important;
        transition: right 0.3s ease !important;
        z-index: 9999 !important;
    }

    .nav-list.active {
        right: 0 !important;
    }

    .nav-list.active~.nav-toggle {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .mobile-menu-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
    }

    .mobile-logo {
        height: 50px !important;
        width: auto !important;
    }

    .mobile-brand-name {
        display: none !important;
    }

    .mobile-close-btn {
        background: #f1f5f9 !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #64748b !important;
        padding: 0 !important;
        pointer-events: auto !important;
        /* Ensure clickable */
        z-index: 10000 !important;
        /* Top of stack */
    }

    .mobile-close-btn svg {
        width: 24px !important;
        height: 24px !important;
        pointer-events: none !important;
        /* Let clicks pass to button */
    }

    .nav-list a,
    .dropdown-toggle {
        font-family: 'Nunito', sans-serif !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        padding: 16px 10px !important;
        color: var(--color-secondary) !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: transparent !important;
        text-align: left !important;
    }

    .nav-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        margin-right: 12px !important;
        color: var(--color-primary) !important;
    }

    .nav-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .dropdown {
        position: static !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border-radius: 16px !important;
        padding: 10px 15px !important;
        margin: 5px 0 15px !important;
        display: none !important;
        width: 100% !important;
    }

    .dropdown.active {
        display: block !important;
    }

    .nav-list .contact-cta {
        margin-top: 30px !important;
        background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%) !important;
        color: white !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 50px !important;
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3) !important;
        width: 100% !important;
        padding: 16px !important;
    }
}

* {
    box-sizing: border-box;
}

:root {
    /* Logo Colors */
    --color-primary: #4a90e2;
    --color-secondary: #2c3e50;
    --color-accent: #0f1724;
    --color-accent: #0f1724;

    /* Usage Colors */
    --bg-body: #fdfdfd;
    /* Slightly warmer white */
    --bg-card: #ffffff;
    --text-main: #475569;
    /* Softer dark gray */
    /* Softer dark gray */
    --text-heading: #1e293b;
    --text-light: #64748b;

    --spacing-container: 1200px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Softer shadows */
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

/* Remove old cursor glow CSS to switch to Canvas */

body {
    margin: 0;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    /* Increased for readability */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

h1,
h2,
h3 {
    font-family: 'Nunito', sans-serif;
    /* Friendly rounded font */
    color: var(--text-heading);
    line-height: 1.2;
    margin-top: 0;
    font-weight: 800;
    text-wrap: balance;
    /* Prevents awkward line shapes and orphans */
}

h1 {
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Ensure clip works */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Layout Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Button Components - Premium Style */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, #357abd 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    /* Pill shape for modern look */
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.35);
    background: linear-gradient(135deg, #5b9eed 0%, #3a82c8 100%);
}

/* Desktop-only line break utility */
.desktop-br {
    display: none;
}

@media (min-width: 1025px) {
    .desktop-br {
        display: block;
    }
}

.btn.secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid #e2e8f0;
    box-shadow: none;
}

.btn.secondary:hover {
    background-color: #f8fafc;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header & Nav */
/* Header & Nav */
/* Header & Nav */
/* Header & Nav */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
    z-index: 2000;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Sticky State (Applied by JS) */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Stronger shadow when pinned */
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Offset for fixed header removed as sticky handles flow */
body {
    padding-top: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    /* Taller, more substantial */
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-secondary);
    font-family: 'Nunito', sans-serif;
}

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    /* Bolder */
    font-size: 1.5rem;
    /* Larger */
    font-family: 'Nunito', sans-serif;
    /* Apply gradient to brand text */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Provide fallback color - trickier with fill-color, but text-fill-color handles it in supportive browsers */
    color: var(--color-secondary);
}

.logo {
    width: 50px;
    height: auto;
    object-fit: contain;
}

/* Hide Mobile-Only Elements on Desktop */
.mobile-menu-header,
.nav-icon {
    display: none;
}



.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-list a,
.dropdown-toggle {
    text-decoration: none;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
}

.nav-list a:not(.contact-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-list a:not(.contact-cta):hover::after {
    width: 100%;
}

.nav-list .contact-cta {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a2533 100%) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
    transition: all 0.3s;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.3);
}

.nav-toggle {
    display: none;
    background: #f1f5f9;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-secondary);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

/* Mobile Nav Media Query moved to end of file for proper cascading */

/* Dropdown */
/* Mega Menu & Dropdown */
.site-header {
    position: relative;
    /* Ensure header serves as reference */
}

.has-dropdown {
    position: static;
    /* Allows mega menu to span full width of header/container */
}

.dropdown-toggle {
    gap: 6px;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.has-dropdown:hover .dropdown-toggle {
    color: var(--color-primary);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* Full width of the header/viewport context */
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

/* Mega Menu Structure */
.mega-menu-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Upper Section: Visual Links */
.mega-visual-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 30px;
    align-items: start;
    /* Anchor items to top of row */
}

.mega-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Ensure top-down flow consistency */
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-heading);
}

.mega-link-card:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}

.mega-link-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    object-position: center;
    /* Center icons to maintain a shared midline */
    margin-bottom: 16px;
}

.mega-link-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-secondary);
}

.mega-link-card span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400 !important;
    /* Match non-bold Our Team subtext */
}

.mega-link-card.unclickable {
    cursor: default;
    opacity: 1;
    /* User requested no fade */
    margin-top: -14px;
    /* Move Our Team up significantly to align with others due to shorter icon */
}

.mega-link-card.unclickable:hover {
    background: transparent;
    transform: none;
}

/* Lower Section: Subjects */
.mega-subjects-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mega-subjects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.subject-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-heading);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
    /* Fix "View All" wrapping */
}

.subject-link-item:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

.subject-link-item .icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Hero Section */
/* Hero Section - Split Layout */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    /* Clean, subtle gradient */
    overflow: hidden;
    display: flex;
    /* Centering for fallback */
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    text-align: left;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 32px;
    max-width: 90%;
    text-wrap: balance;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual & Animations */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-img-container {
    position: relative;
    display: inline-block;
}

.hero-img-container::before {
    display: none;
}

.hero-img-container::after {
    display: none;
}

.hero-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.hero-img-container:hover .hero-img-main {
    transform: perspective(1000px) rotateY(0deg) scale(1.03);
}

.est-badge {
    display: none;
}

.est-badge::before {
    content: '⭐';
    font-size: 1.2rem;
}

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

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-entrance {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

/* Responsive Hero */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        order: 2;
        /* Image on top for mobile? Or keep text on top? Let's keep text top for clarity */
        order: 1;
        padding-top: 20px;
    }

    .hero-visual {
        order: 2;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .hero .lead {
        margin: 0 auto 32px;
    }
}

/* Services - Premium Polish */
.services {
    padding: 100px 0;
    /* Standardized */
    background-color: #f8fafc;
    /* Even softer slate/white */
    position: relative;
}

.services h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 70px;
    color: var(--color-secondary);
    font-weight: 900;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(74, 144, 226, 0.2);
}

/* Image with Half-Border Accent */
.card-img-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 60px;
    height: 60px;
    border-top: 4px solid var(--color-primary);
    border-right: 4px solid var(--color-primary);
    border-radius: 0 12px 0 0;
    opacity: 0.3;
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: block;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--color-secondary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.card p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Features - Premium Redesign */
.features {
    padding: 100px 0 40px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    /* Softer, more professional navy slate */
    color: white;
    position: relative;
    overflow: hidden;
}

.features h2 {
    color: white;
    text-align: center;
    margin-bottom: 70px;
    font-size: 2.8rem;
    font-weight: 900;
}

.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .features-grid-premium {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.feature-card-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Slightly more defined */
    padding: 35px;
    border-radius: 20px;
    display: flex;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card-glass:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-card-glass .check-circle {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.feature-card-glass .check-circle::after {
    content: '✓';
    color: white;
    font-weight: 900;
    font-size: 1rem;
}

.feature-card-glass .card-content h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.feature-card-glass .card-content p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.feature-icon-mini {
    font-size: 1.4rem;
    margin-right: 12px;
}

/* Testimonials */
.testimonials {
    padding: 80px 20px;
    text-align: center;
}

blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-secondary);
    max-width: 800px;
    margin: 0 auto;
}

blockquote footer {
    margin-top: 20px;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-light);
    font-weight: 600;
}

/* Footer (Professional) */
.site-footer {
    background-color: #0f172a;
    /* Deeper, more modern navy */
    color: #94a3b8;
    padding: 100px 0 60px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 24px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Brand Column */
.footer-brand {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    color: white;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.slogan {
    font-family: 'Nunito', sans-serif;
    font-style: italic;
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-desc {
    max-width: 280px;
    line-height: 1.7;
    color: #cbd5e1;
}

/* Links */
.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #94a3b8;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.footer-links a:hover {
    color: white;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Serving Alberta Section - Integrated Style */
.location-feature {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-feature img {
    width: 80px;
    /* Increased size */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    display: block;
}

.location-feature p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

/* Contact Info */
.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.contact-info .icon {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.contact-info a {
    color: #e2e8f0;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: white;
}

.footer-btn {
    margin-top: 30px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 20px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-utility-links {
    display: flex;
    gap: 20px;
}

.footer-utility-links a,
.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
    transition: color 0.2s;
    margin: 0;
}

.footer-utility-links a:hover {
    color: white;
}

/* Bullet separator for desktop */
@media (min-width: 601px) {
    .footer-bottom-inner>*+*::before {
        content: "•";
        color: #475569;
        margin-right: 20px;
    }
}

@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-secondary);
}

.modal-content h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-desc {
        margin: 0 auto;
    }

    .contact-info li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
}

/* Premium Contact Form */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.form-header {
    margin-bottom: 40px;
}

/* Top Banner */
.top-cta-banner {
    background: var(--color-secondary);
    /* Reverted to brand dark blue */
    color: white;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 101;
    overflow: hidden;
    /* For marquee */
}

/* Info Hero Section */
.info-hero {
    position: relative;
    padding: 80px 0;
    background-color: white;
    /* Solid background */
}

/* Remove old overlay */
.info-hero::before {
    display: none;
}



.info-hero-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    /* Balanced split for un-compressed look */
    gap: 40px;
    /* Tightened for aggressive fix per user request */
    align-items: center;
}

.info-hero-text {
    text-align: left;
}

.info-hero h1 {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    line-height: 1.15;
}

@media (max-width: 900px) {
    .info-hero-grid {
        grid-template-columns: 1fr !important;
        text-align: left !important;
        justify-items: start !important;
    }

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

    .info-hero h1,
    .info-hero .subtitle,
    .info-hero .info-list,
    .info-hero .cta-text {
        text-align: left !important;
        margin-left: 0 !important;
    }

    .info-hero .info-list li {
        justify-content: flex-start !important;
    }

    .info-hero-text .hero-buttons {
        justify-content: flex-start !important;
    }
}

@media (min-width: 1025px) {
    .info-hero h1 {
        font-size: 3.6rem;
        /* Refined for strictly even two-line balance */
        line-height: 1.1;
        margin-bottom: 12px;
        /* Reduced from 24px for tighter vertical rhythm */
        letter-spacing: -0.01em;
    }
}

.info-hero .subtitle {
    font-size: 1.35rem;
    color: var(--text-heading);
    margin-bottom: 16px;
    /* Reduced from 32px per user request */
    font-weight: 600;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    /* Reduced from 40px */
}

.info-list li {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.info-list li::before {
    content: '✓';
    /* Changed to checkmark */
    color: white;
    background: var(--color-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 16px;
    flex-shrink: 0;
}

/* Serving Badge & Form Refinements */
.serving-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #eef7ff;
    /* Light sky blue */
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    /* Reduced from 20px */
    border: 1px solid rgba(74, 144, 226, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    width: auto;
    max-width: 100%;
    white-space: normal;
    /* Force wrap on mobile */
    text-align: center;
    line-height: 1.4;
}

.serving-badge::before {
    content: '📍';
    font-size: 1rem;
    flex-shrink: 0;
}

.form-privacy-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
    line-height: 1.4;
    text-align: center;
}

.cta-text {
    font-weight: 800;
    color: var(--color-gold);
    /* Changed accent */
    margin-bottom: 8px;
    /* Reduced from 16px */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.btn-cta-brand {
    background: var(--color-secondary);
    /* Brand Blue */
    color: white;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 50px;
    text-transform: capitalize;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-cta-brand:hover {
    background: #1a2533;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
}

.info-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Professional Corner Decoration (User Request) */
.hero-img-container {
    position: relative;
    display: inline-block;
}

.hero-img-container::after {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 80px;
    height: 80px;
    border-top: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
    opacity: 0.1;
    /* Fainter blue per user request */
    z-index: 10;
    pointer-events: none;
}



.hero-main-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1025px) {
    .hero-main-img {
        max-width: 950px;
        /* Widened aggressively for "all the way" fix */
        clip-path: inset(0 0 0 12%);
        /* Deeper crop to kill baked-in left fade */
        margin-left: -8%;
        /* Shifted further to balance the deep crop */
    }
}

/* Responsive */
/* Responsive */
@media (max-width: 900px) {
    .info-hero {
        padding: 40px 0;
        /* Reduce padding on mobile */
    }

    .info-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .info-hero-image {
        order: 1;
        /* Image after text */
        margin-top: 60px;
        /* Increased to prevent overlap with floating animation */
        padding: 0 20px;
        /* Prevent edge touching */
    }

    .info-hero-text {
        text-align: center;
        padding: 0 10px;
    }

    .info-hero h1 {
        font-size: 2.2rem;
        /* Smaller heading */
        line-height: 1.2;
        margin-bottom: 16px;
    }

    /* Fix "Success Starts with Plan A" - Remove Box, cleaner style */
    .info-hero .subtitle {
        font-size: 0.95rem;
        /* Slightly larger for legibility */
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--color-primary);
        font-weight: 700;
        background: transparent;
        /* Ensure no box */
        padding: 0;
        margin-bottom: 24px;
        display: inline-block;
        white-space: nowrap;
        /* Prevent "A" from wrapping alone */
        width: 100%;
        /* Ensure it takes full width of container for centering */
    }

    /* Fix List Indentation - Center Block, Left Align Text */
    .info-list {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        /* Left align items */
        text-align: left;
        margin: 0 auto 30px;
        /* Center container */
        width: auto;
        max-width: 100%;
    }

    .info-list li {
        justify-content: flex-start;
        /* Left align content */
        text-align: left;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 12px;
        padding-left: 0;
    }

    /* Spacing Fixes (User Request) */
    .features {
        padding: 40px 0 !important;
    }

    .features h2 {
        margin-bottom: 30px !important;
    }

    /* Fix "Transparent Pricing" massive gap */
    .features-page-header {
        padding-top: 20px !important;
        padding-bottom: 40px !important;
        /* Further reduced to minimize black space */
    }

    .features-section {
        padding-top: 80px !important;
        /* Moved boxes down for a cleaner spaced-out feel */
    }

    /* Ensure text column doesn't push down */
    .hero-split-layout .hero-text-col {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@keyframes float-spread {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* NUCLEAR FIX: Force Remove Image Fades/Decorations - Applies to ALL Mobile/Tablet */
@media (max-width: 1024px) {

    .hero-img-container::before,
    .hero-img-container::after,
    .est-badge,
    .info-hero-image::before,
    .info-hero-image::after,
    .decoration-container,
    .info-hero::before,
    .info-hero::after,
    .info-hero-grid::before,
    .info-hero-grid::after {
        display: none !important;
        content: none !important;
        background: none !important;
        background-image: none !important;
        mask: none !important;
        -webkit-mask: none !important;
        opacity: 0 !important;
        box-shadow: none !important;
        filter: none !important;
    }

    .hero-img-container,
    .info-hero-image,
    .info-hero,
    .info-hero-grid {
        mask: none !important;
        -webkit-mask: none !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        background: none !important;
        /* Ensure no background colors interfere */
        background-image: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        mix-blend-mode: normal !important;
        transform: none !important;
        border-radius: 0 !important;
        /* Remove radius to see if corner fade is issue */
        position: static !important;
        display: block !important;
    }

    /* NUCLEAR RESTORE: Show image but enforce crop & z-index to fix fade */
    .hero-main-img {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        width: 110% !important;
        /* Widen to compensate for crop */
        opacity: 1 !important;

        position: relative !important;
        z-index: 100 !important;
        /* Force on top of any background/fade */

        /* CROP LEFT SIDE HACK: Cut off baked-in fade (10%) */
        clip-path: inset(0 0 0 10%) !important;
        margin-left: -5% !important;

        object-fit: cover !important;
        object-position: right center !important;

        border-radius: 20px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
        /* Added professional shadow */

        /* Enable Float Animation as requested */
        animation: float 6s ease-in-out infinite !important;
    }

    .hero-img-container {
        display: block !important;
        height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
        /* Allow float animation to exceed bounds */
        background: transparent !important;

        position: relative !important;
        z-index: 100 !important;
    }

    /* Restore white background for text readability, but ensure no gradient */
    .info-hero {
        background-color: white !important;
    }
}

/* Specific Mobile Fixes (under 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
        /* Ensure generic container padding */
    }

    .subject-page-hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-links,
    .contact-info {
        align-items: center;
        /* Center list items if flex */
        text-align: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .site-footer {
        padding: 60px 0 100px;
        /* Extra bottom padding for floating widget */
    }
}


/* Google Widget */
.google-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.google-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gw-logo {
    font-family: 'Product Sans', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
}

.gw-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gw-rating {
    font-weight: bold;
    color: var(--text-heading);
}

.gw-stars {
    color: #F4B400;
}

.gw-reviews {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: underline;
}

/* Marquee Effect */
.marquee-container {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.top-cta-banner a {
    text-decoration: underline;
    color: var(--color-gold);
    /* Brand accent */
}

.sub-banner {
    background: var(--color-primary);
    /* Reverted to brand blue */
    text-align: center;
    color: white;
    padding: 10px 0;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .sub-banner {
        font-size: 1rem;
        /* Smaller on mobile */
        padding: 8px 0;
    }

    .top-cta-banner {
        font-size: 0.9rem;
    }
}

/* Revamped Hero */
/* Hero section styles moved to the end for consolidation */


.hero-text-content {
    text-align: center;
    margin-bottom: 40px;
}

.hero-text-content h1 {
    color: var(--color-secondary);
    /* Brand color */
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-text-content p {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Multi-Step Form */
.multi-step-form-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    /* Deeper shadow */
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 10;
}

.progress-bar-container {
    background: #f1f5f9;
    border-radius: 10px;
    height: 8px;
    /* Slightly thicker */
    margin: 8px 0 24px;
    /* More space below */
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #357abd 100%);
    width: 0%;
    transition: width 0.4s ease;
}

.step-counter {
    text-align: right;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0;
    font-weight: 700;
}

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

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

.form-group {
    margin-bottom: 24px;
    /* Increased spacing */
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-secondary);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    /* Larger padding */
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    transition: border-color 0.2s;
    box-sizing: border-box;
    /* Fix overlap issues */
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    background: white;
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 16px;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
    order: 2;
    /* Ensure Next is always on the right */
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.35);
}

.btn-prev {
    background: transparent;
    color: var(--text-light);
    border: 2px solid transparent;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    order: 1;
    /* Ensure Back is always on the left */
    text-decoration: underline;
}

.btn-prev:hover {
    color: var(--color-secondary);
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.hero-img-revamped {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 1025px) {
    .hero-img-revamped {
        margin-top: 40px;
        /* Lowered slightly for Desktop per user request */
    }
}

/* Reviews clickable */
.review-card-link {
    display: block;
    height: 100%;
}

.review-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-primary);
}

/* Responsive adjustments for new hero */
@media (max-width: 900px) {
    .hero-revamped-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-img-revamped {
        display: none;
        /* Hide image on mobile to focus on form */
    }

    .hero-text-content {
        margin-top: 20px;
    }
}


.form-header h2 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 8px;
    font-family: 'Nunito', sans-serif;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    font-size: 1rem;
    color: var(--text-heading);
    transition: all 0.3s ease;
    border-radius: 4px 4px 0 0;
    font-family: inherit;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    background: #f8fafc;
}

/* Floating Labels - isolated to premium form */
.premium-form .form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.premium-form .form-group input:focus+label,
.premium-form .form-group input:not(:placeholder-shown)+label,
.premium-form .form-group textarea:focus+label,
.premium-form .form-group textarea:not(:placeholder-shown)+label {
    top: -12px;
    left: 0;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Fix for select padding vs label */
.form-group select {
    padding-top: 16px;
}

/* Textarea specific */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Hidden elements with animation */
.form-group.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-group.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Centered Hero Layout (Features) - Global Default */
.hero-centered-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.hero-header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    order: 1;
}

.hero-description {
    order: 2;
    max-width: 750px;
    margin-bottom: 20px;
}

.hero-description .subtitle {
    font-size: 1.25rem;
    color: var(--text-heading);
    line-height: 1.6;
    margin: 0;
}

.hero-visual-group {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    margin: 20px 0;
}

.hero-actions {
    order: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-button-group {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-header-group h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0;
}

.glass-price-card {
    margin: 0 auto;
}

/* Centered Hero Layout (Features) - Desktop Split Layout Override */
@media (min-width: 1025px) {
    .hero-centered-layout {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        text-align: left !important;
        align-items: center !important;
        gap: 60px !important;
        /* Reverted to 60px as we now center the text col vertically */
        max-width: 1200px !important;
    }

    .hero-text-col {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 20px !important;
        /* Balanced vertical spacing between group items */
        order: 1 !important;
    }

    .hero-header-group {
        align-items: flex-start !important;
    }

    .hero-description {
        text-align: left !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
    }

    .hero-visual-group {
        order: 3 !important;
        grid-column: 2 !important;
        grid-row: 1 / span 3 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .glass-price-card {
        max-width: 550px !important;
        /* Increased from 480px per user request */
        transform: rotateY(-10deg) rotateX(5deg) scale(1.3) !important;
        /* Scaled up from 1.15 to 1.3 */
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    .hero-actions {
        justify-content: flex-start !important;
    }

    .hero-button-group {
        justify-content: flex-start !important;
        gap: 15px !important;
        /* Tighter button grouping */
    }

    .hero-header-group h1 {
        text-align: left !important;
    }
}

/* Mobile specific overrides for centered hero */
@media (max-width: 900px) {
    .hero-centered-layout {
        gap: 20px;
        padding: 10px 0;
    }

    .hero-header-group h1 {
        font-size: 2.2rem;
        white-space: normal;
    }

    .glass-price-card {
        transform: scale(0.9);
    }
}

/* Review Button Narrowing on Mobile */
@media (max-width: 600px) {
    .btn {
        width: auto !important;
        min-width: 220px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}



/* FAQ Styles */
.faq-hero {
    padding: 80px 0;
    text-align: center;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--color-primary);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-main);
    line-height: 1.6;
}


/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #357abd 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* Google Reviews Slider */
.testimonials {
    padding: 80px 0 100px;
    background: #f8fafc;
    /* Light gray background */
}

.reviews-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    /* Removing padding as it's moved to viewport */
}

.reviews-viewport {
    overflow: hidden;
    padding: 20px 10px 60px;
    /* Increase bottom padding to prevent shadow cutoff */
    margin: 0 -10px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
    /* We don't set width here, flex items will define the flow */
}

.review-slide {
    /* Responsive Sizing */
    flex: 0 0 100%;
    /* Default mobile: 1 item */
    padding: 0 15px;
    /* Gap between slides (total 30px visual gap) */
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .review-slide {
        flex: 0 0 50%;
        /* Tablet: 2 items */
    }
}

@media (min-width: 1024px) {
    .review-slide {
        flex: 0 0 33.333%;
        /* Desktop: 3 items */
    }
}

/* Review Card Styling */
.review-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 12px 24px rgba(0, 0, 0, 0.04);
    height: 100%;
    /* Equal height */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-initial {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.reviewer-meta {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1rem;
}

.review-time {
    font-size: 0.85rem;
    color: #94a3b8;
}

.google-icon {
    /* Optional: Placeholder for G icon if rendered */
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.review-stars {
    color: #fbbc04;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    /* Pushes content to fill height */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Back to 4 for better visual consistency before expansion */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Fallback for line-clamp */
    line-clamp: 4;
    transition: all 0.3s ease;
}

.review-text.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0;
    margin-top: 8px;
    cursor: pointer;
    display: none;
    /* Shown via JS if text is long */
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 6px 16px rgba(44, 82, 130, 0.3);
}

.slider-arrow.prev {
    left: -24px;
}

.slider-arrow.next {
    right: -24px;
}

@media (min-width: 1200px) {
    .slider-arrow.prev {
        left: -20px;
    }

    .slider-arrow.next {
        right: -20px;
    }
}

/* Trust Badges in Features/About */
.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 140px;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.trust-badge .badge-icon {
    font-size: 2.5rem;
}

.trust-badge span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
}

/* Image Polish & Transparency Fixes */
.multiply-blend {
    mix-blend-mode: multiply;
    /* Makes white backgrounds transparent on colored backgrounds */
}

.mega-link-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    mix-blend-mode: multiply;
    /* Fix for menu icons with white backgrounds */
}

/* Subject Page Layouts (Consolidated & Premium) */
.subjects-hero {
    background: linear-gradient(135deg, #f0f4f8 0%, #d4e0eb 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subjects-hero h1 {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 800;
}

.subject-icon-large {
    font-size: 5rem;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0 100px;
}

.subject-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
}

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

.subject-icon {
    width: 80px;
    height: 80px;
    background: #eef7ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.subject-card:hover .subject-icon {
    transform: scale(1.1) rotate(5deg);
}

.subject-card h3 {
    margin-bottom: 16px;
    font-size: 1.6rem;
    color: var(--color-secondary);
    font-weight: 800;
}

.subject-card p {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Dots Enhancements */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    /* Increased from 30px */
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
    /* Pill shape when active */
    width: 24px;
    border-radius: 10px;
}

/* Our Story Section */
.story-section {
    padding: 100px 0;
    background-color: #f8fafc;
    /* Light gray to separate from white sections */
    position: relative;
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Favor text weight slightly */
    gap: 60px;
    /* Balanced gap */
    align-items: center;
}

.story-img-wrapper {
    position: relative;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    max-width: 500px;
    /* Increased from 400px for more presence */
    margin: 0 auto;
}

/* Decorative Half Border for Story REMOVED */
.story-img-wrapper::before {
    display: none;
}

.story-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.story-img-wrapper:hover .story-img {
    transform: scale(1.03);
}

.story-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.story-content-col {
    text-align: left;
}

.story-title {
    font-family: 'Nunito', sans-serif;
    font-size: 3rem;
    color: var(--color-secondary);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.story-subtitle {
    display: none;
    /* Merged info title above */
}

.story-text p {
    font-size: 1.1rem;
    color: var(--text-heading);
    line-height: 1.8;
    margin-bottom: 24px;
}

.story-signature {
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem !important;
    color: var(--color-primary) !important;
    margin-top: 32px;
    font-weight: 800;
    display: block;
    letter-spacing: -0.2px;
}

/* Responsive Story */
@media (max-width: 900px) {
    .story-section {
        padding: 60px 0;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .story-content-col {
        text-align: center;
        padding: 0 20px;
    }

    .story-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .story-img-wrapper {
        max-width: 320px;
        margin: 0 auto;
        padding: 0;
        /* Remove padding to allow border-radius shadow to shine */
    }

    .story-signature {
        margin-top: 24px;
        font-size: 1.15rem !important;
    }
}

/* Decoration Elements */
/* Decoration Elements */
.decoration-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    /* Removed opacity/filter from parent so icons stay visible */
}

.decoration-line-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.05;
    filter: blur(1px);
}

.decoration-line-svg {
    width: 100%;
    height: 100%;
    position: absolute;
}

.decoration-path {
    animation: dash-flow 180s linear infinite;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Floating school icons - Enhanced */
.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    /* Slightly larger */
    opacity: 0.12;
    /* Subtle visibility */
    user-select: none;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    animation: float-around 25s ease-in-out infinite;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(30px, -40px) rotate(10deg) scale(1.1);
    }

    50% {
        transform: translate(-20px, 10px) rotate(-5deg) scale(0.95);
    }

    75% {
        transform: translate(15px, 50px) rotate(15deg) scale(1.05);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Specific positions for a balanced look */
.icon-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.icon-2 {
    top: 45%;
    left: 2%;
    animation-delay: 3s;
}

.icon-3 {
    top: 20%;
    right: 10%;
    animation-delay: -10s;
}

.icon-4 {
    top: 80%;
    right: 15%;
    animation-delay: -15s;
}

.icon-5 {
    top: 45%;
    left: 5%;
    animation-delay: -2s;
}

/* Ensure sections with decoration differ in z-index */
.hero-revamped,
.info-hero,
.testimonials-section {
    position: relative;
    /* Ensure content is above decoration */
}

.hero-revamped .container,
.info-hero .container,
.testimonials-section .container {
    position: relative;
    z-index: 2;
}

/* Modal Overhaul */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 36, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-heading);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    background: #e2e8f0;
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--color-secondary);
    font-family: 'Nunito', sans-serif;
    line-height: 1.2;
}

.modal-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
    text-wrap: balance;
}

.modal-body p {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.review-modal-content .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.review-modal-content .modal-body::-webkit-scrollbar {
    width: 6px;
}

.review-modal-content .modal-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.modal-cta-text {
    font-weight: 700;
    color: var(--color-secondary) !important;
    margin-top: 24px;
}

.btn-modal-action {
    background: linear-gradient(135deg, var(--color-primary) 0%, #357abd 100%);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    display: inline-block;
    width: 100%;
    max-width: 250px;
    margin-top: 10px;
}

.btn-modal-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Features Page Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    overflow: hidden;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-header {
    background: #5faaff;
    /* Lighter blue as per reference */
    padding: 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.feature-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.feature-body {
    padding: 30px;
}

.feature-body p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Pricing CTA */
.btn-pricing-cta {
    display: inline-block;
    background: linear-gradient(135deg, #e69c46 0%, #db8b2e 100%);
    /* Orange/Gold CTA */
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(230, 156, 70, 0.4);
    transition: all 0.3s;
}

.btn-pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 156, 70, 0.5);
    color: white;
}

/* --- Chatbot Styles --- */
.chatbot-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 85px;
    /* Wider, rounded-rectangle look */
    height: 60px;
    /* Radial gradient for that 3D sphere look */
    background: radial-gradient(circle at 30% 30%, #4a90e2, #2563eb);
    border-radius: 30px;
    /* Pill shape */
    border: none;
    /* Main shadow + Inner shadow for depth */
    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.chatbot-bubble svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.chatbot-bubble:hover {
    transform: scale(1.1);
    background-color: #1d4ed8;
    /* Darker blue on hover */
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.chatbot-bubble.hidden {
    transform: scale(0) rotate(180deg);
    opacity: 0;
    pointer-events: none;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1501;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-window.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.chat-header {
    background: #4a90e2;
    /* Solid color to match icon background */
    padding: 16px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.chat-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.chat-header h3 {
    color: white;
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 4px;
}

#chatbot-close {
    background: transparent;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
}

#chatbot-close svg {
    width: 24px;
    height: 24px;
}

#chatbot-close::before,
#chatbot-close::after {
    display: none !important;
    content: none !important;
}

#chatbot-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    line-height: 1.5;
    font-size: 0.95rem;
    position: relative;
    animation: fadeIn 0.3s;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message.user .message-content {
    background: var(--color-primary);
    color: white;
    border-radius: 12px 12px 0 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 5px rgba(74, 144, 226, 0.2);
}

.message.bot .message-content {
    background: white;
    color: var(--text-heading);
    border-radius: 12px 12px 12px 0;
    padding: 12px 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

#chat-input:focus {
    border-color: var(--color-primary);
}

#chat-send-btn {
    background: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

#chat-send-btn:hover {
    transform: scale(1.05);
    background: #357abd;
}

.chat-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    padding-bottom: 8px;
    background: white;
}

.chat-footer a {
    color: #94a3b8;
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Loading Dots */
.loading .message-content {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        bottom: 0px;
        right: 0px;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    #chatbot-close {
        /* Make exit explicitly button-like on mobile */
        font-size: 32px !important;
        width: 50px !important;
        /* Slightly larger for easier tapping */
        height: 50px !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: -5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .chatbot-bubble {
        bottom: 20px;
        right: 20px;
    }
}

/* --- Hero Revamped Layout Fixes --- */
.hero-revamped {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    /* Prevent horizontal scroll from internal elements */
}

.hero-revamped-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
    /* Aligned to top to match image level */
}

.hero-revamped {
    position: relative;
    padding: 160px 0 60px;
    /* Standardized with other sections, increased top for white space */
    scroll-margin-top: 120px;
    /* Increased for better sticky header clearance */
    /* Fixes auto-scroll landing position */
}


.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Reverted to centered alignment per user request */
    text-align: center;
    padding-left: 40px;
    /* Nudge slightly to the right for visual balance */
}

.hero-text-content {
    margin-bottom: 15px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centered vertically for balance */
    align-items: center;
    /* Force horizontal centering of items inside */
    padding: 10px 0;
    /* Slight padding for vertical balance */
}

.hero-text-content h2 {
    text-align: center;
    /* Ensure headline text is centered */
    font-size: 2.8rem;
    margin-bottom: 12px;
    /* Reduced from 24px for tighter look */
    /* Increased from 12px for breathing room */
    line-height: 1.25;
    /* Opened up slightly */
}

/* --- Multi-Step Form Logic (CRITICAL) --- */
.form-step {
    display: none;
    animation: fadeInForm 0.4s ease-out;
}

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

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.hero-text-content p {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.form-terms {
    font-size: 0.85rem;
    margin-top: 16px;
    color: var(--text-light);
}

.hero-visual {
    display: flex;
    /* Show on desktop */
    justify-content: center;
    position: relative;
}

.hero-img-revamped {
    max-width: 100%;
    /* Reduced from 110% to meet user's 'smaller' request */
    width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    border-radius: 20px;
    display: block;
}

.hero-revamped-footer {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
}

.serving-text {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Ensure form container doesn't overflow */
/* Ensure form container doesn't overflow */
.multi-step-form-container {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    z-index: 50;
    box-sizing: border-box;
    /* Fix for padding increasing width */
}

@media (max-width: 1024px) {
    .hero-revamped-grid {
        display: grid;
        /* Restore grid for mobile */
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .hero-left-col {
        padding-left: 0;
        /* Remove left padding on mobile to prevent shift */
        padding-right: 0;
    }

    .multi-step-form-container {
        padding: 25px;
        /* Reduce padding on mobile */
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
        /* Hide on mobile/tablet */
        order: 2;
    }

    /* Mobile Typography Fixes */
    .hero-text-content h2 {
        font-size: 1.6rem !important;
        /* Even smaller to be safe */
        word-break: break-word;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Typewriter Wrapper: Forces new line and maintains height */
    .typewriter-wrapper {
        display: block;
        min-height: 1.3em;
        /* Reserve height for text + cursor */
        margin-top: 5px;
    }

    /* Reset inner span to inline so cursor stays next to it */
    .hero-text-content h2 span#typewriter-text {
        display: inline;
        margin-top: 0;
    }

    .serving-badge {
        padding: 6px 16px;
        font-size: 0.7rem;
        margin-bottom: 15px;
    }

    .hero-img-revamped {
        max-width: 100% !important;
        width: auto !important;
    }

    .est-badge {
        bottom: 15px;
        left: 10px;
        /* Move inside on mobile to avoid overflow */
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .multi-step-form-container {
        padding: 20px;
        /* Even smaller padding for very narrow screens */
    }
}

/* --- NUCLEAR MOBILE FIX (Force Compliance) --- */
@media (max-width: 600px) {
    .multi-step-form-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .hero-left-col {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .hero-revamped {
        padding: 40px 0 !important;
        overflow: hidden !important;
    }

    .form-step input,
    .form-step select,
    .form-step textarea {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure specific problem elements don't overflow */
    .serving-badge {
        white-space: normal !important;
        max-width: 100% !important;
        width: auto !important;
    }
}

/* Typewriter Cursor */
.cursor-blink {
    font-weight: 300;
    color: var(--color-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- New "Cool" Features --- */

/* Impact Stats Section */
.stat-item {
    padding: 20px;
}

.stat-number {
    transition: color 0.3s;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: #357abd;
    /* Slightly different blue on hover */
}



/* 3D / Lift Card Hover Effect */
.card,
.feature-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    backface-visibility: hidden;
    /* Crisp rendering */
}

.card:hover,
.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    /* Deep, soft shadow */
}

/* Scroll Reveal Helper */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


/* Re-instating Glassmorphism Scrolled State */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

/* Pulse Effect for Consultation Box */
@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

.consultation-box-pulse {
    animation: softPulse 2s infinite;
}

/* De-clutter Form Header */
.form-header {
    padding-top: 25px;
    padding-bottom: 15px;
}

.form-header h3 {
    margin-bottom: 10px;
}

/* Migrated Inline Styles for Hero consolidated above */



.consultation-box-styled {
    background: #f0f7ff;
    padding: 16px;
    /* Reduced from 24px */
    border-radius: 12px;
    border-left: 6px solid var(--color-primary);
    width: 100%;
    max-width: 500px;
    /* Reduced width */
    box-sizing: border-box;
    margin: 0 auto 30px;
    display: block;
    min-height: 450px;
    /* Prevent layout shifts */
    transition: min-height 0.3s ease;
    position: relative;
    /* For absolute positioning of loaders/messages if needed */
}

/* Info Hero CTA Text - Muting from Gold to Professional Slate */
.cta-text {
    font-weight: 800;
    color: var(--color-secondary);
    /* Changed from gold/muted yellow */
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-size: 1rem;
}


.consultation-box-styled p.consultation-subtitle {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo {
    height: 54px;
    width: auto;
    mix-blend-mode: multiply;
    /* Removes white background from PNG */
    filter: brightness(1.1);
    /* Slight boost since multiply can darken slightly */
}





/* --- Info Hero Refinements (Polished) --- */
.info-hero {
    padding: 100px 0;
    /* More vertical breathing room */
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    /* Subtle premium depth */
    overflow: hidden;
    /* Prevent spillover */
}

/* Specific Grid layout for Info Hero */
.info-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Leveled split to give text more width for two-line fit */
    gap: 80px;
    /* Distinct gap between text and image */
    align-items: center;
}

/* Typography Improvements */
.info-hero-text h1 {
    font-size: 3.2rem;
    /* Slightly reduced to ensure two-line fit on desktop */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #1e293b;
    /* Dark slate for contrast */
    letter-spacing: -0.02em;
}

.info-hero-text .subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    padding: 6px 16px;
    background: #f1f5f9;
    /* Muted from aggressive blue */
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}


/* Premium List Styling */
.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.info-list li {
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-left: 40px;
    /* Space for icon */
    position: relative;
    color: #475569;
    /* Softer text color */
    font-weight: 500;
}

/* Custom Checkmark Icon */
.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: #1e293b;
    /* Muted from bright blue to professional navy */
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Image Styling */
.info-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-main-img {
    width: 100%;
    max-width: 650px;
    /* Increased from 550px */
    height: 600px;
    /* Increased height for consistent look */
    object-fit: cover;
    /* clean crop */
    border-radius: 30px;
    /* Defined modern radius */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Deep premium shadow */
    transition: transform 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 900px) {
    .info-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .info-hero-text h1 {
        font-size: 2.5rem;
    }

    .info-list {
        text-align: left;
        display: inline-block;
    }

    /* Mobile Fix: Uncrop Image */
    .hero-main-img {
        height: auto !important;
        max-width: 650px !important;
    }
}

/* Mobile Image Fix - Remove Fade (Robust) */
@media (max-width: 900px) {
    .hero-main-img {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        mask: none !important;
        background: transparent !important;
        opacity: 1 !important;
        mix-blend-mode: normal !important;
        filter: none !important;
    }
}


/* Modal Centering & Pricing Gap */
.modal-header,
.modal-body {
    text-align: center !important;
}

.tutor-action-group {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pricing-header h2 {
    margin-bottom: 0.5rem !important;
    /* Tighten gap below header */
}


.pricing-header p {
    margin-bottom: 1.5rem !important;
    /* Tighten gap below paragraph */
}


/* Fix Footer Contact List Visibility */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    /* Default text color */
}

.footer-contact-list a {
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: var(--color-primary) !important;
}

.footer-contact-list .icon {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Ensure Contact Column is visible */
.contact-col {
    display: flex !important;
    flex-direction: column;
}

/* Mobile specific override just in case */
@media (max-width: 768px) {
    .contact-col {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    /* FORCE REMOVE FADE/MASK from Homepage Mobile Hero */
    .info-hero-image,
    .hero-main-img,
    .info-hero-image img {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        background: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .info-hero-image::after,
    .info-hero-image::before {
        display: none !important;
        content: none !important;
    }

    /* Force Remove Blue Underlines from FAQ & Subjects on Mobile */
    .faq-container a,
    .faq-item a,
    .subjects-grid a,
    .subject-card a,
    .subject-link-item {
        text-decoration: none !important;
    }

    .faq-container a::after,
    .faq-item a::after,
    .subjects-grid a::after,
    .subject-card a::after,
    .subject-link-item::after {
        display: none !important;
        content: none !important;
    }
}


/* Fix Features & Pricing Page Vertical Spacing */
@media (max-width: 900px) {
    .features-page-header {
        padding: 100px 0 40px !important;
        /* Default was 130px 0 100px */
    }

    .features-grid-premium {
        padding: 30px 0 !important;
        /* Default was 60px 0 */
        gap: 25px !important;
    }

    .pricing-cta-premium {
        margin: 30px 0 50px !important;
        /* Default was 60px 0 100px */
        padding: 50px 20px !important;
        /* Default was 100px 20px */
    }

    .features-section {
        padding-bottom: 20px !important;
    }
}

/* --- Professional Footer Revamp --- */
.site-footer {
    background-color: #0f172a;
    /* Deep Navy */
    color: #cbd5e1;
    /* Soft white/gray text */
    padding: 80px 0 30px;
    font-size: 0.95rem;
    border-top: 4px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

/* Footer Columns */
.footer-col {
    min-width: 0;
    /* Prevent blowout */
}

.footer-brand {
    max-width: 350px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-brand .tagline {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.footer-brand p {
    line-height: 1.6;
    opacity: 0.8;
}

.site-footer h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '›';
    margin-right: 8px;
    color: var(--color-primary);
    font-weight: bold;
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.contact-info .icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: -2px;
}

/* Alberta Map Fix */
/* Alberta Map Fix - Refined */
.map-link-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.alberta-map-footer {
    width: 120px;
    /* larger width */
    height: auto;
    display: block;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.8rem;
    font-weight: 700;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .footer-top .container {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablet */
    }
}

@media (max-width: 768px) {
    .footer-top .container {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
        gap: 50px;
    }

    .site-footer {
        text-align: center;
    }

    .footer-links a:hover {
        transform: translateX(0);
        /* Disable shift on touch */
    }

    .footer-links li {
        display: flex;
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
        width: auto;
    }

    .contact-info li {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-brand {
        font-size: 2rem;
        justify-content: center;
    }

    .site-footer {
        padding-bottom: 100px;
        /* Space for widgets */
    }
}


/* --- Booking Page Makeover (Premium) --- */
.booking-section {
    padding: 0 0 100px;
    background: transparent;
    margin-top: -120px;
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
}

.booking-card-premium {
    background: white;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    /* Reshaped: Image slightly narrower */
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.booking-visual-panel {
    position: relative;
    background: #1e293b;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.booking-visual-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    /* Deep Navy */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
    color: white;
    height: 100%;
}

.booking-visual-gradient .visual-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-visual-gradient h3 {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 16px;
    color: white;
}

.booking-visual-gradient p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 80%;
}

.booking-visual-panel .main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: brightness(0.95);
    /* Slight darken for premium feel */
}

/* Gradient Overlay to blend transition */
.booking-visual-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.booking-glass-info {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    margin: 40px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.booking-glass-info h4 {
    margin: 0 0 10px;
    color: var(--color-secondary);
    font-size: 1.25rem;
    font-weight: 800;
}

.booking-glass-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.booking-form-panel {
    padding: 60px;
    background: white;
}

.booking-form-panel .badge {
    display: inline-block;
    color: var(--color-primary);
    background: rgba(74, 144, 226, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.booking-form-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--color-secondary);
    margin: 0 0 25px;
    line-height: 1.1;
}

.booking-form-panel .intro-text {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 45px;
    line-height: 1.7;
}

.tutorbird-widget-wrapper {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    min-height: 500px;
}

/* Booking Features List (Filler) */
/* Booking Features List (Filler) */
.booking-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 15px;
    /* Compact margin */
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Compact gap */
}

.booking-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    /* Lighter bg */
    padding: 10px 16px;
    /* Compact padding */
    border-radius: 12px;
}

.booking-feature-list .check {
    color: #4ade80;
    /* Green check */
    font-weight: 800;
    font-size: 1rem;
}

/* Booking Page Real Reviews */
.booking-reviews-container {
    flex-grow: 1;
    /* Fill all remaining space */
    margin-top: 25px;
    margin-bottom: 20px;
    /* Some breathing room at bottom */
    position: relative;
    width: 100%;
    min-height: 500px;
    /* Force enough height for 3 stacked reviews */
    display: flex;
    flex-direction: column;
}

.booking-review-slide {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;

    /* Flex column to stack the items */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /* Spread 3 evenly */
    gap: 12px;
    /* Close gap for 3 items */
}

.booking-review-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.booking-review-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 18px 22px;
    /* Compact box */
    border-radius: 14px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: block;
    /* Important for anchor tag */
    text-decoration: none;
    /* Remove underline */
    transition: all 0.3s ease;
    cursor: pointer;
}

.booking-review-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
    .booking-card-premium {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .booking-visual-panel {
        height: 350px;
    }

    .booking-form-panel {
        padding: 40px;
    }

    .booking-form-panel h2 {
        font-size: 2.5rem;
    }
}

/* --- Features & Pricing Page Premium Upgrade --- */
.features-page-header {
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 130px 0 20px;
    /* Reduced top padding for better balance, tightened bottom further */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.hero-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Column Styling */
.hero-text-col {
    text-align: left;
    /* Explicit left alignment */
}

.features-page-header h1 {
    font-size: 4.5rem;
    color: white !important;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Increased contrast and spacing */
.features-page-header .subtitle {
    font-size: 1.5rem;
    /* Larger text */
    color: #e2e8f0 !important;
    /* Brighter white/grey */
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 50px;
    /* More space before buttons */
    max-width: 90%;
    /* Better readability */
    margin-bottom: 25px !important;
    /* Tightened from 50px */
}

.hero-actions {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-top: 40px;
}

.btn-hero-primary {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
    background: #4a80ed;
}

.link-secondary {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.link-secondary:hover {
    border-bottom-color: white;
}

/* Right Column: Visual Card */
.hero-visual-col {
    position: relative;
    perspective: 1000px;
}

.glass-price-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 400px;
    margin: 0 auto;
}

.glass-price-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.glass-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    color: #e2e8f0;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.price.highlight {
    color: #4ade80;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.glass-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 4s ease-in-out infinite;
}

@media (max-width: 992px) {
    .hero-split-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0 !important;
    }

    .hero-text-col {
        text-align: center;
        margin-bottom: 0 !important;
    }

    .features-page-header h1 {
        font-size: 3rem;
    }

    .hero-visual-col {
        display: flex;
        justify-content: center;
    }

    .glass-price-card {
        transform: none;
    }
}

.pricing-notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter for visibility */
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    /* Lighter grey for better contrast */
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: fit-content;
    /* Ensure it doesn't stretch */
}

.pricing-notice-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.pricing-notice-tag span {
    background: var(--color-primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.features-page-header h1 {
    font-size: 4rem;
    color: white !important;
    /* Force white text */
    margin-bottom: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    max-width: 900px;
}

.features-page-header .subtitle {
    font-size: 1.4rem;
    color: #cbd5e1 !important;
    /* Lighter subtext */
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.6;
}

.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 10px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card-premium {
    background: white;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-align: left;
    /* Ensure text is left-aligned as requested */
}

/* Half-border accent */
.feature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 40%;
    background: var(--color-primary);
    border-radius: 0 0 100px 0;
    opacity: 0.8;
}

.feature-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
}

.feature-card-premium h3 {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-bottom: 16px;
    font-weight: 800;
}

.feature-card-premium p {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.pricing-cta-premium {
    background: #0f172a;
    padding: 100px 20px;
    text-align: center;
    color: white;
    border-radius: 40px;
    margin: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

.btn-pricing-cta-main {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.3);
}

.btn-pricing-cta-main:hover {
    transform: translateY(-4px);
    background: #5a9fff;
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.4);
}

/* Floating Icons Animation */
.decoration-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    /* Changed from 1 to 0. Text is z-index auto (stack level 0 positioned or block). Wait, if 0, it competes. Let's use pointer-events:none which is already there. VISUAL obstruction is result of z-index. I'll use z-index: 0 but set opacity lower maybe? No, z-index -1 is standard for backgrounds. I'll stick to Z-index 0 but rely on document order? No. 
    Actually, let's look at .feature-card-premium etc. they have white background. If decoration is z-index 1, it is on top. If z-index 0, it is still on top of non-positioned backgrounds?
    Let's just use z-index: 0. The white cards (like .booking-card-premium) have z-index: 10. So 0 is fine.
    The issue is likely the text directly on the section background.
    If text is z-index auto, and decoration is z-index 0.
    Positioned elements (decoration) are usually painted AFTER non-positioned blocks (text).
    So z-index 0 decoration is ON TOP of text.
    So I MUST use z-index: -1?
    OR I must position the text relative z-index 1.
    Changing all text to relative is hard.
    Changing decoration to -1 is easy.
    I will change it to z-index: 0 for now and check stacking? No, 1 to 0 doesn't solve "on top of text".
    The white cards have z-index 10. So icons (z-index 1 or 0) are BEHIND white cards.
    Wait, if icons are currently interfering with "text boxes", it implies they are ON TOP of the white cards (where text boxes are).
    So z-index: 1 is being higher than z-index: auto inputs?
    .booking-card-premium has z-index: 10.
    The section has z-index: auto.
    Child decoration (z-index 1) is 1 inside section.
    Child card (z-index 10) is 10 inside section.
    1 < 10. So icons should already be BEHIND the card?
    Why did user say "hard to read"?
    Maybe pointer events? "pointer-events: none" is set.
    Maybe the icons are in a container that is NOT sibling to card?
    Structure:
    Section
      Decoration (z-index 1)
      Container
         Card (z-index 10)
    
    If Section creates stacking context (it does, opacity/transform/z-index applied?), then 1 < 10 works.
    If Section does NOT create stacking context:
    Decoration z-index 1 is compared to Card z-index 10. 1 < 10.
    So icons SHOULD be behind the card.
    
    Maybe the inputs are transparent? No.
    Maybe the "text boxes things" refers to the HEADER text or "What's Next" text which is NOT in a card with z-index?
    "Whats Next" text is in .whats-next-section.
    It has no z-index.
    So z-index 1 icons > z-index auto text.
    So icons cover "What happens next?" text.
    
    Solution: Set decoration to z-index: 0.
    Positioned z-index 0 is still > Non-positioned text.
    So I DO need z-index: -1.
    
    So I will change z-index to -1.
    */
    z-index: -1;
}

.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    filter: grayscale(0.5);
    animation: float 6s ease-in-out infinite;
    user-select: none;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Specific Icon Positions per Container */
/* Using generic classes that can be reused in any relative container */
.icon-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    font-size: 3rem;
}

.icon-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
    font-size: 2rem;
}

.icon-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
    font-size: 2.5rem;
}

.icon-4 {
    bottom: 25%;
    right: 5%;
    animation-delay: 3s;
    font-size: 3.5rem;
}


.icon-5 {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
    font-size: 2.2rem;
    margin-left: -20%;
}

.icon-6 {
    top: 40%;
    left: 80%;
    animation-delay: 1.5s;
    font-size: 2.8rem;
}

.icon-7 {
    bottom: 40%;
    left: 10%;
    animation-delay: 3.5s;
    font-size: 2.4rem;
}

.icon-8 {
    top: 10%;
    left: 40%;
    animation-delay: 2.5s;
    font-size: 2.6rem;
}

/* Mobile Adjustments */
@media (min-width: 1025px) {
    .floating-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .floating-icon {
        opacity: 0.1;
        /* Lower opacity on mobile to avoid clutter */
        font-size: 2rem;
    }
}

/* Typewriter Effect - Restored */
.hero-typewriter-headline {
    font-size: 2.2rem;
    color: var(--color-secondary);
    margin: 0 0 24px;
    font-family: 'Nunito', sans-serif;
    min-height: 3.2rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    /* Fixed width to prevent layout shift */
    width: 600px;
    max-width: 100%;
    text-align: left;
}

.text-highlight {
    color: var(--color-primary);
    position: relative;
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--color-secondary);
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .hero-typewriter-headline {
        font-size: 1.6rem;
        /* Slightly smaller for mobile fit */
        min-height: 4rem;
        justify-content: center;
        white-space: normal;
        /* Allow wrap on mobile if absolutely necessary but try to avoid */
        min-width: auto;
    }
}

/* --- Our Story Section Professional Styles --- */
.story-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #fdfbfb, #f8fafc);
    position: relative;
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image-col {
    position: relative;
}

.story-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    border: 8px solid white;
}

.story-img-wrapper:hover {
    transform: rotate(0deg);
}

.story-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.story-img-wrapper:hover .story-img {
    transform: scale(1.05);
}

.story-content-col {
    padding-right: 20px;
}

.story-kicker {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 16px;
    display: block;
}

.story-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 32px;
    color: var(--color-secondary);
    font-weight: 800;
    /* Ensure bold */
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 24px;
}

.story-signature {
    font-family: 'Playfair Display', serif;
    /* Or script font if available */
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 32px;
    font-style: italic;
}

@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .story-content-col {
        padding-right: 0;
        order: 1;
    }

    .story-image-col {
        max-width: 500px;
        margin: 0 auto;
    }

    .story-title {
        font-size: 2.2rem;
        /* Scaled down further */
    }
}

/* Global Mobile Fixes for Sections */
@media (max-width: 768px) {

    .hero h1,
    .features-page-header h1 {
        font-size: 2.5rem !important;
    }

    .hero .lead,
    .features-page-header .subtitle {
        font-size: 1.1rem !important;
    }

    .impact-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .form-step {
        padding: 20px !important;
    }

    .form-header h2 {
        font-size: 1.8rem !important;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .container {
        padding: 0 20px;
    }

    /* Testimonials Mobile */
    .slider-dots {
        margin-top: 20px;
    }

    .top-cta-banner {
        font-size: 0.65rem !important;
        /* Smaller font to fit text */
        padding: 8px 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 2001;
        /* Above header */
        background: var(--color-secondary);
        /* Ensure red background matches desktop */
        color: white;
        text-align: center;
        height: auto !important;
        min-height: 30px;
    }

    .sub-banner {
        font-size: 0.70rem !important;
        padding: 6px 0 !important;
        display: block !important;
        background: var(--color-primary);
        color: white;
        text-align: center;
    }

    .header-inner {
        height: 70px !important;
    }

    .logo {
        width: 40px !important;
    }

    .brand {
        font-size: 1.25rem !important;
    }

    /* Half-border accents - make smaller on mobile */
    .card-img-wrapper::after,
    .feature-card-premium::before {
        width: 30px !important;
        height: 30px !important;
        border-width: 2px !important;
    }

    /* Hero Form & Text Mobile Optimization */
    .hero-revamped {
        padding: 80px 0 60px !important;
        /* Increased padding to fit form */
        overflow: visible !important;
        /* Ensure shadow/content isn't clipped */
    }

    .hero-text-content h2 {
        font-size: 2rem !important;
        /* Smaller headline */
        margin-bottom: 16px !important;
    }

    .multi-step-form-container {
        padding: 24px 20px !important;
        /* Balanced padding */
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 20px !important;
        margin-bottom: 30px !important;
        /* Ensure space before next section */
    }

    .hero-text-content p {
        font-size: 1rem !important;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Activity Toasts */
.activity-toast {
    position: fixed;
    bottom: 30px;
    left: 220px;
    /* Moved right to avoid Google Widget overlap */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1501;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.activity-toast.active-toast {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    background: var(--color-primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-heading);
}

@media (max-width: 600px) {
    .activity-toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}

/* --- Comprehensive Mobile Fixes (Features, About, Subjects) --- */
@media (max-width: 900px) {

    /* Features Page */
    .hero-split-layout {
        flex-direction: column;
        display: flex;
        /* Ensure flex behavior */
    }

    .hero-text-col,
    .hero-visual-col {
        width: 100%;
        max-width: 100%;
    }

    .features-grid-premium {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* About Page */
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .story-content-col {
        padding-right: 0;
    }
}

@media (max-width: 600px) {

    /* Features Page */
    .glass-price-card {
        margin-top: 20px;
    }

    .pricing-cta-premium h2 {
        font-size: 2rem !important;
    }

    .trust-badges {
        font-size: 2rem !important;
        gap: 15px !important;
    }

    /* About Page */
    .about-features {
        grid-template-columns: 1fr !important;
    }

    .story-title {
        font-size: 2.2rem;
    }

    /* Subject Pages */
    .subject-page-hero h1 {
        font-size: 2.5rem;
    }

    .subjects-list-grid {
        grid-template-columns: 1fr;
        /* Force 1 col for very small screens */
    }

    /* Services Section Mobile */
    .services .cards {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .services h2 {
        font-size: 2.5rem;
    }
}

/* --- Wow Factors (Glare) --- */
.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    /* Matches card radius */
    pointer-events: none;
    z-index: 2;
    /* On top of content */
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: overlay;
    /* Blends nicely with background */
}

/* Ensure cards handle 3D */
.feature-card-premium,
.glass-price-card,
.step-card,
.booking-card-premium {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Optimize rendering */
    will-change: transform;
}

/* --- MASTER MOBILE NAVIGATION & ALIGNMENT FIXES --- */

@media (max-width: 992px) {

    /* Mobile Menu Reconstruction - Centered Premium Version */
    .nav-toggle {
        display: flex !important;
        z-index: 3000 !important;
        background: transparent !important;
        color: var(--color-secondary) !important;
        /* Remove fixed positioning to let flexbox center it */
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-left: auto;
        /* Push to right if needed in flex container */
    }

    .nav-list.active~.nav-toggle {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    /* Old Header Removed - New HTML Header Used */
    .nav-list::before {
        display: none !important;
    }

    /* 2. Professional Mobile Menu Container */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100% !important;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        /* Stretch items to fill width */
        padding: 20px !important;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 2500 !important;
        visibility: hidden;
        overflow-y: auto !important;
        display: flex !important;
        text-align: left !important;
    }

    /* 3. New Mobile Menu Header */
    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 10px 30px !important;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100% !important;
    }

    .mobile-logo-container {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-logo {
        height: 50px !important;
        width: auto !important;
    }

    .mobile-brand-name {
        font-family: 'Nunito', sans-serif;
        font-weight: 800;
        font-size: 1.4rem;
        color: var(--color-secondary);
        letter-spacing: -0.5px;
    }

    .mobile-close-btn {
        background: #f1f5f9;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
    }

    .mobile-close-btn svg {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
    }

    .mobile-close-btn:hover {
        background: #e2e8f0;
        color: var(--color-danger);
    }

    .nav-list.active {
        right: 0 !important;
        visibility: visible !important;
    }

    .nav-list li {
        width: 100% !important;
        padding: 0 20px !important;
        /* Reduced from 40px for more content room */
        box-sizing: border-box !important;
    }

    .nav-list a,
    .dropdown-toggle {
        font-size: 1.2rem !important;
        width: 100% !important;
        padding: 16px 15px !important;
        justify-content: flex-start !important;
        /* Left alignment */
        color: var(--color-secondary) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        font-weight: 700 !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px;
        border-radius: 12px;
        transition: background 0.2s;
    }

    .nav-list a:active,
    .dropdown-toggle:active {
        background: #f8fafc;
    }

    .nav-icon {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
        display: inline-block;
    }

    .nav-list .contact-cta {
        margin: 20px 0 40px !important;
        background: var(--color-primary) !important;
        color: white !important;
        justify-content: center !important;
        border: none !important;
        border-radius: 16px !important;
        padding: 18px !important;
        box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4) !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 1.1rem !important;
    }

    /* Dropdown on Mobile - Premium Accordion Style */
    .dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border-radius: 16px !important;
        padding: 20px !important;
        margin: 10px 0 20px !important;
        width: 100% !important;
        transform: none !important;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown.active {
        display: block !important;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .mega-menu-content {
        padding: 0 !important;
        gap: 30px !important;
        align-items: center !important;
    }

    .mega-visual-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .mega-link-card {
        background: white !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 10px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
        gap: 8px !important;
    }

    .mega-link-card img {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
    }

    .mega-link-card h4 {
        font-size: 0.9rem !important;
        margin: 0 !important;
        color: var(--color-secondary) !important;
        text-align: center !important;
    }

    .mega-link-card span {
        text-align: center !important;
        width: 100% !important;
        font-weight: 400 !important;
        /* Ensure mobile links aren't bold */
    }

    /* Subjects List - Fixed 2-Column Grid */
    .mega-subjects-row {
        padding-top: 5px;
    }

    .mega-subjects-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        /* Increased spacing */
        width: 100% !important;
    }

    .subject-link-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px !important;
        background: transparent !important;
        border: none !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: var(--color-secondary) !important;
        height: auto !important;
        transition: transform 0.2s ease !important;
        text-align: center !important;
    }

    .subject-link-item .icon {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    /* Mobile Only Subjects Container */
    .mobile-subjects-container {
        display: block !important;
        width: 100% !important;
        padding: 20px 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 10px;
    }

    .mobile-menu-heading {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #64748b;
        margin: 25px 0 15px;
        font-weight: 700;
        text-align: center;
        opacity: 0.8;
    }

    /* V4 Redesign: Professional 2-Column App Grid */
    .mega-subjects-row {
        display: block !important;
        margin-top: 15px;
        padding: 30px 15px !important;
        background: #f1f5f9;
        border-radius: 24px;
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    .mobile-menu-heading {
        margin-top: 0 !important;
        margin-bottom: 25px !important;
    }

    .mega-subjects-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* 2 columns is much cleaner for words */
        gap: 15px !important;
        padding: 0 !important;
    }

    .subject-link-item {
        display: flex !important;
        flex-direction: row !important;
        /* Row look is more "app list" */
        align-items: center !important;
        background: white !important;
        border-radius: 16px !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: var(--color-secondary) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        text-align: left !important;
        gap: 12px !important;
        border: 1px solid rgba(0, 0, 0, 0.02) !important;
    }

    .subject-link-item .icon {
        width: 40px !important;
        height: 40px !important;
        background: #eef7ff !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.25rem !important;
        flex-shrink: 0;
        box-shadow: none !important;
        border: none !important;
    }

    .subject-link-item:active {
        transform: scale(0.95);
        background: #f8fafc !important;
    }
}

/* --- Mobile Alignment & Visual Polish Fixes --- */
@media (max-width: 768px) {

    /* 1. Fix "Success Starts with Plan A" List */
    .info-list li {
        display: flex !important;
        align-items: flex-start !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-indent: 0 !important;
        position: relative !important;
        width: 100% !important;
        /* Top align icon with multi-line text */
    }

    .info-list li::before {
        position: static !important;
        margin-right: 16px !important;
        margin-top: 4px !important;
        flex-shrink: 0 !important;
        /* Push icon down to match text baseline */
    }

    /* 2. Fix "Why Plan A" Cards */
    .feature-card-glass {
        padding: 24px !important;
        /* Reduce padding for mobile */
        align-items: flex-start !important;
        /* Align icon/check with text top */
        gap: 16px !important;
        /* Tighter gap */
    }

    /* 3. General Typography Tweaks for Mobile */
    .subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }

    /* 4. Fix Review Slider Arrows & Overlap on Mobile */
    .slider-arrow {
        width: 40px !important;
        height: 40px !important;
        background: white !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 20 !important;
    }

    .slider-arrow.prev {
        left: 20px !important;
    }

    .slider-arrow.next {
        right: 20px !important;
    }

    /* Add internal padding to review cards so text clears the arrows */
    .review-card {
        padding: 28px 45px !important;
        /* Extra side padding */
    }

    /* 5. Fix "Find Your Perfect Tutor" Alignment */
    .hero-typewriter-headline {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .typewriter-wrapper {
        display: inline-flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* 6. Improve Serving Badge Appearance */
    .serving-badge {
        background: #eef7ff !important;
        /* Light sky blue */
        color: var(--color-primary) !important;
        /* Bold blue text */
        border: 1px solid rgba(74, 144, 226, 0.3) !important;
        text-shadow: none !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
    }

    /* 7. Global Mobile Spacing Reduction */
    .info-hero {
        padding: 30px 0 !important;
    }

    .hero-revamped {
        padding: 30px 0 !important;
    }

    .features {
        padding: 30px 0 !important;
    }

    .story-section {
        padding: 40px 0 !important;
    }

    .testimonials {
        padding: 40px 0 !important;
    }

    .services {
        padding: 40px 0 !important;
    }

    .features .decoration-container,
    .info-hero .decoration-container {
        display: none !important;
    }

    /* 8. Move Notification Toast Below Header on Mobile */
    .activity-toast {
        bottom: auto !important;
        top: 90px !important;
        /* Position below header */
        left: 20px !important;
        right: 20px !important;
        transform: translateY(-20px);
        opacity: 0;
        max-width: none !important;
        z-index: 10002 !important;
        /* Above everything but maybe below some overlays */
    }

    /* 9. Homepage Info-Hero Typography Polish */
    .info-hero-text {
        text-align: center !important;
        /* Center all elements on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-hero h1 {
        font-size: 2.1rem !important;
        /* Slightly smaller to fit better */
        max-width: 95% !important;
        /* Allow it to be wider */
        margin-left: auto !important;
        margin-right: auto !important;
        line-height: 1.2 !important;
        /* Better 2-line spacing */
    }

    .info-hero .subtitle {
        font-size: 1.15rem !important;
        max-width: none !important;
        /* Force the wrap I added in HTML */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .info-list {
        text-align: left !important;
        /* Keep list items left-aligned */
        width: 100%;
        max-width: 320px;
    }
}

/* Hide mobile container on desktop */
@media (min-width: 993px) {
    .mobile-subjects-container {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* Master Alignment Fixes */
    .site-footer {
        padding: 60px 20px 100px !important;
        text-align: center !important;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        grid-template-columns: 1fr !important;
    }

    .footer-col {
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .footer-brand {
        font-size: 2.2rem !important;
        justify-content: center !important;
        margin-bottom: 20px !important;
    }

    .footer-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 440px;
        margin: 0 auto;
        justify-items: stretch !important;
    }

    .footer-links li {
        width: 100% !important;
        display: flex !important;
    }

    .footer-links a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 14px 10px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        min-height: 52px !important;
        line-height: 1.2 !important;
    }

    .footer-links a:active {
        background: rgba(255, 255, 255, 0.1) !important;
        transform: scale(0.98);
    }

    .footer-links a::before {
        display: none !important;
    }

    .contact-info {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .contact-info li {
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Side-by-side Map on Mobile - Premium Glass Card */
    .location-feature {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        text-align: left !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        padding: 20px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(5px);
        margin: 10px 0;
    }

    .location-feature img {
        width: 70px !important;
        height: auto !important;
        flex-shrink: 0 !important;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    }

    .location-feature p {
        margin: 0 !important;
        flex: 1;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .footer-btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 10px;
    }

    /* Hero & Form Optimization */
    .hero-text-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .multi-step-form-container {
        padding: 24px 16px !important;
        width: calc(100% - 32px) !important;
        margin: 0 auto !important;
    }

    .form-header h2 {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 768px) {
    .subjects-hero {
        padding: 40px 0 !important;
    }

    .subjects-hero h1 {
        font-size: 2.2rem !important;
    }

    .subject-icon-large {
        font-size: 3.5rem !important;
    }

    .subjects-grid {
        gap: 20px !important;
        margin-top: 30px !important;
        margin-bottom: 40px !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Hide floating decorations on mobile to prevent vertical gaps */
    .decoration-container {
        display: none !important;
    }

    /* Reduce vertical gap between Hero Form and Reviews - AGGRESSIVE FIX */
    .hero-revamped {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero-revamped .container,
    .hero-revamped-grid,
    .hero-left-col {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        gap: 0 !important;
    }

    .testimonials {
        padding-top: 20px !important;
        /* Small buffer */
        margin-top: 0 !important;
        position: relative;
        z-index: 5;
        /* Ensure it sits on top */
    }

    .testimonials h2 {
        margin-top: 0 !important;
    }

    .subject-card {
        padding: 30px 20px !important;
        border-radius: 20px !important;
    }

    .faq-section,
    .cta-section,
    .contact-section {
        padding: 40px 20px !important;
    }

    .site-footer {
        padding-top: 40px !important;
    }

    section[style*='padding: 60px'],
    section[style*='padding: 80px'],
    section[style*='padding: 100px'] {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

/* Fix: Prevent chatbot from overlapping mobile menu */
@media (max-width: 768px) {

    .nav-list.active~#plan-a-chatbot,
    .nav-list.active #plan-a-chatbot {
        display: none !important;
    }
}

/* Global Fix: If navigation is expanded, hide chatbot bubble */
body:has(#nav-toggle[aria-expanded="true"]) #plan-a-chatbot {
    display: none !important;
}

/* Mobile Fixes for Features Page & Google Widget */
@media (max-width: 768px) {
    .features-page-header {
        padding: 40px 0 50px !important;
        /* Balanced spacing to prevent badge cutoff */
    }

    .google-widget {
        display: flex !important;
        z-index: 9999 !important;
        /* Ensure it sits above content but below menu */
        bottom: 15px !important;
        left: 15px !important;
        padding: 8px 12px !important;
        /* Compact on mobile */
    }

    .gw-stars {
        font-size: 0.9rem;
    }
}

/* --- MOBILE MENU OVERHAUL & REDESIGN (V2 - Emergency Fix) --- */
@media (max-width: 992px) {

    /* 1. Glassmorphism Container */
    .nav-list {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        padding: 20px !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        /* Enable scrolling */
        max-height: 100vh !important;
        padding-bottom: 120px !important;
        /* Prevent cutoff with extra space */
    }

    /* 2. Mobile Menu Header & Logo */
    .mobile-menu-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        order: -2 !important;
        /* Keep at absolute top */
    }

    .mobile-brand-name {
        font-family: 'Nunito', sans-serif !important;
        font-weight: 800 !important;
        font-size: 1.5rem !important;
        color: var(--color-secondary) !important;
    }

    /* 3. Close Button (SVG) */
    .mobile-close-btn {
        background: #f1f5f9 !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #64748b !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
    }

    .mobile-close-btn:hover {
        background: #e2e8f0 !important;
        color: #ef4444 !important;
        /* Red on hover */
    }

    /* 4. Navigation Links */
    .nav-list li {
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        /* Increased opacity from 0.03 for visibility */
        padding: 0 !important;
    }

    .nav-list a,
    .dropdown-toggle {
        font-family: 'Nunito', sans-serif !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        padding: 16px 10px !important;
        color: var(--color-secondary) !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: transparent !important;
        text-align: left !important;
    }

    .nav-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        margin-right: 12px !important;
        color: var(--color-primary) !important;
    }

    .nav-icon svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
    }

    /* 5. Dropdown Accordion */
    .dropdown {
        position: static !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border-radius: 16px !important;
        padding: 10px 15px !important;
        margin: 5px 0 15px !important;
        display: none !important;
        /* Hidden by default */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
    }

    .dropdown.active {
        display: block !important;
        animation: slideDownMobile 0.3s ease-out !important;
    }

    @keyframes slideDownMobile {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    /* 5b. Mega Menu Subjects Grid Fix */
    .mega-subjects-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    /* 5c. Layout Tightening (User Request) */
    .mega-menu-content {
        gap: 15px !important;
        /* Reduced from 30px */
        padding: 10px !important;
        /* Reduced from 30px */
    }

    .mega-visual-row {
        padding-bottom: 10px !important;
        /* Reduced from 30px */
        gap: 15px !important;
        /* Reduced from 20px */
    }

    .subject-link-item {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
        position: relative;
    }

    .subject-link-item::after {
        content: none !important;
    }

    /* 6. Primary CTA Styling */
    .nav-item-cta {
        order: 99 !important;
        /* Revert to bottom */
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }

    /* Fallback for files not yet updated with the class */
    .nav-list li:has(.contact-cta) {
        /* order: 99 !important; REMOVED CONFLICT */
        border-bottom: none !important;
    }

    .nav-list .contact-cta {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        /* Standard spacing */
        background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%) !important;
        color: white !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 50px !important;
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3) !important;
        border: none !important;
        width: 100% !important;
        padding: 16px !important;
    }
}

/* Footer Contact List Fix */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.footer-contact-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: var(--color-primary);
}

/* Utility to lock scrolling - Strict Mobile Lock (HTML & Body) */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    position: relative !important;
    touch-action: none;
    -webkit-overflow-scrolling: none;
    /* iOS fix */
}

/* Hide Google Widget and Activity Toast when scrolling is locked (Mobile Menu Open) */
body.no-scroll .google-widget,
body.no-scroll .activity-toast {
    display: none !important;
}

/* FINAL FORCE REMOVE FADE/MASK FROM HOMEPAGE MOBILE HERO */
@media (max-width: 768px) {

    .info-hero-image,
    .hero-main-img,
    .info-hero-image img {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        background: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .info-hero-image::after,
    .info-hero-image::before {
        display: none !important;
        content: none !important;
    }
}

/* FINAL AGGRESSIVE MOBILE SPACING FIX */
@media (max-width: 900px) {
    .hero-revamped {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero-revamped .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .hero-revamped-grid {
        gap: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .hero-left-col,
    .hero-right-col {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Pull the form container tight */
    .multi-step-form-container {
        margin-bottom: 60px !important;
        /* Increased buffer before reviews */
    }

    .testimonials {
        padding-top: 40px !important;
        margin-top: 0 !important;
        /* Restored natural spacing */
    }

    .testimonials h2 {
        margin-top: 0 !important;
        /* Title spacing handles itself */
    }

    /* Mobile Slider Arrows - Professional "Side" Layout (Non-Cramped) */
    .reviews-slider {
        position: relative;
        padding-bottom: 40px !important;
        /* Reduced bottom space */
    }

    /* Add buffer to the card content so text doesn't touch arrows */
    .review-card {
        padding-left: 54px !important;
        padding-right: 54px !important;
        box-sizing: border-box !important;
    }

    .slider-arrow {
        position: absolute !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        background: white !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        color: var(--color-primary) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1rem !important;
        z-index: 25 !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        margin: 0 !important;
    }

    .slider-arrow.prev {
        left: 10px !important;
        /* Moved in from edge */
    }

    .slider-arrow.next {
        right: 10px !important;
        /* Moved in from edge */
        left: auto !important;
    }

    /* Dots at bottom */
    .slider-dots {
        bottom: 0 !important;
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 !important;
        z-index: 20 !important;
    }
}