/* ============================================
   Britain International Academy - Premium CSS
   Modern, Beautiful, Professional Design
   ============================================ */

/* ===== CSS VARIABLES & DESIGN TOKENS ===== */
:root {
    /* Primary Colors - Navy Blue & Red (matching head office) */
    --primary-navy: #021d3a;
    --primary-navy-light: #0a2f52;
    --primary-navy-dark: #010f1f;
    --accent-red: #d93939;
    --accent-red-light: #e35555;
    --accent-red-dark: #b82e2e;

    /* Secondary Colors */
    --secondary-blue: #1e40af;
    --secondary-gold: #f59e0b;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #021d3a 0%, #0a2f52 100%);
    --gradient-accent: linear-gradient(135deg, #d93939 0%, #e35555 100%);
    --gradient-hero: linear-gradient(135deg, rgba(2, 29, 58, 0.3) 0%, rgba(10, 47, 82, 0.2) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.marquee-content img {
    height: 60px;
    margin: 0 1.5rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-600);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-blue-light);
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-alt {
    background-color: var(--gray-50);
}

.bg-navy {
    background-color: var(--primary-navy);
    color: var(--white);
}

.bg-pattern {
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%239C92AC" fill-opacity="0.05" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
}

.text-gold {
    color: var(--secondary-gold) !important;
}

.border-left-gold {
    border-left: 4px solid var(--secondary-gold);
    padding-left: 1rem;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-navy);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    transition: color var(--transition-fast);
}

.top-bar a:hover {
    color: var(--accent-red);
}

.top-bar i {
    margin-right: 0.25rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    z-index: 1000;
    transition: all var(--transition-base);
    height: 80px;
    /* Fixed height for consistency */
    display: flex;
    /* Remove align-items: center here to allow children to stretch if needed,
       but we need centering for logo. Let's handle centering inside items. */
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 70px;
    /* Shrink on scroll */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* Fill header height */
    width: 100%;
    /* Remove padding to allow full edge-to-edge interaction for items */
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    /* Maintain padding */
    height: 100%;
}

.logo img {
    height: auto;
    max-height: 60px;
    /* Reverted to optimal 60px */
    width: auto;
    max-width: 200px;
    /* Constrain width just in case */
    transition: all var(--transition-base);
    object-fit: contain;
}

.header.scrolled .logo img {
    max-height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    /* Full height */
    align-items: stretch;
    /* Stretch items to full height */
    gap: 0;
    /* Remove gap, use padding inside items */
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

/* Allow Mega Menu to use full header width */
.nav-item.has-mega-menu {
    position: static !important;
}

.nav-link {
    color: var(--primary-navy);
    font-weight: 600;
    padding: 0.6rem 1rem;
    /* Visual padding for pill shape */
    border-radius: 30px;
    /* Pill shape */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    white-space: nowrap;
    /* Force Single Line */
    text-transform: capitalize;
    position: relative;
    /* No margin, centered by flex parent */
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover .nav-link {
    color: var(--primary-blue);
    background-color: rgba(30, 64, 175, 0.05);
}

.nav-link i {
    font-size: 0.75em;
    opacity: 0.5;
    margin-top: 1px;
    transition: transform 0.2s;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    /* EXACTLY at the bottom of the 80px header */
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 12px 12px;
    /* Square top to flush match header */
    min-width: 260px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: none;
    /* Seamless connection */
    margin-top: 0;
    display: block !important;
    pointer-events: none;
    z-index: 1000;
}

/* Redundant bridges removed - full height nav-item is the solution */
.dropdown-menu::before,
.nav-item::after {
    display: none !important;
}

/* Specific styling to ensure list items are tight */
.dropdown-menu li {
    margin: 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Move up to touch bridge */
    pointer-events: auto;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    /* Slightly tighter vertical padding */
    color: var(--gray-700);
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    /* Single line sub-items */
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-blue);
    padding-left: 1.75rem;
    /* Slide effect */
}

/* Mega Menu Override */
.nav-item.has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 80px;
    /* Match fixed header height exactly */
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    /* Reduced padding */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    display: block;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    margin-top: 0;

    /* SCROLL FIX: Enforce max-height and scrolling */
    max-height: calc(100vh - 90px);
    /* Leave space for header and a bit of bottom margin */
    overflow-y: auto;
    scrollbar-width: thin;
    /* Firefox */
}

/* Custom Scrollbar */
.mega-menu::-webkit-scrollbar {
    width: 6px;
}

.mega-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mega-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.header.scrolled~.mega-menu,
.header.scrolled .mega-menu {
    top: 70px;
    max-height: calc(100vh - 80px);
}

/* CLICK TO TOGGLE: Only show when parent has .show class */
.nav-item.show .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega Menu Content */
.mega-menu-grid {
    /* MASONRY-LIKE FLOW (Newspaper Style) - FIXES GAPS */
    display: block !important;
    column-count: 4;
    column-gap: 2rem;
    column-fill: auto;
    /* Fill height first */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 1200px) {
    .mega-menu-grid {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .mega-menu-grid {
        column-count: 2;
        /* Remove fixed height on mobile to allow scrolling */
        height: auto;
    }
}

.mega-menu-grid {
    /* Limit height to viewport to force column wrapping */
    height: calc(100vh - 180px);
    align-content: flex-start;
    flex-wrap: wrap;
}

/* Utilities for long lists */
.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.list-cols-2 {
    column-count: 2;
    column-gap: 2rem;
}

.list-cols-3 {
    column-count: 3;
    column-gap: 2rem;
}

.mega-menu-col {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 1.2rem;
    /* Tighter vertical spacing */
    width: 100%;
}

.mega-menu-col h4 {
    font-size: 0.95rem;
    /* Larger, clearer */
    text-transform: capitalize;
    /* "Adobe Courses" not "ADOBE COURSES" */
    color: var(--primary-navy);
    /* Blue */
    margin-bottom: 0.4rem;
    font-weight: 700;
    border-bottom: none;
    /* No separator line per screenshot */
    padding-bottom: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mega-menu-col h4 i {
    font-size: 0.7rem;
    color: var(--primary-navy);
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    padding-left: 0.5rem;
    /* Slight indentation */
}

.mega-menu-list li {
    margin-bottom: 0;
}

.mega-menu-list a {
    display: block;
    padding: 4px 0;
    /* MEDIUM PADDING (Balanced) */
    color: var(--primary-navy);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    line-height: 1.3;
    /* Tighter line height for multiline */
    white-space: normal;
    /* Allow wrapping */
    overflow: visible;
    /* Show all text */
}

.mega-menu-list a:hover {
    color: var(--accent-red);
    padding-left: 5px;
    transform: none;
    /* simple hover */
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--accent-red-dark);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--accent-red);
    box-shadow: var(--shadow-md);
}

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 130px;
    /* Account for top menu bar (40px) + main nav bar (70px) + padding */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--spacing-2xl) var(--spacing-md);
    display: none;
    /* Hidden by default */
    animation: none;
    /* Reset default animation */
}

.hero-content.active {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.card-text {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

/* Glass Card Effect */
.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== GRID SYSTEM ===== */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== FEATURES SECTION ===== */
.feature-box {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

select.form-control {
    cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-navy);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

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

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

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

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--gray-500);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

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

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

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--accent-gold);
    color: var(--white);
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== RESPONSIVE DESIGN ===== */

/* Global Image Reset for Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Tablet / Small Desktop (1024px and down) */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .container {
        max-width: 960px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* Medium Devices (991px and down) */
@media (max-width: 991px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* Mobile Devices (768px and down) */
@media (max-width: 768px) {

    /* Top Bar & Header */
    .top-bar {
        display: none;
    }

    .hero {
        margin-top: 70px;
        min-height: 400px;
    }

    /* Reduced min-height for mobile */

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: var(--spacing-xs);
        padding-left: 1rem;
        border-left: 2px solid var(--border);
        display: none;
        /* JS toggles this */
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Grids to Single Column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Typography Scaling */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .newsletter-box {
        padding: 2rem 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .feature-box {
        padding: 1.5rem;
    }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

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

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card-img {
        height: 180px;
    }
}

/* ===== LOADING & ALERTS ===== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== INTERNAL HEADER ===== */
.internal-header {
    margin-top: 130px;
    padding: 10rem 0 5rem;
    color: var(--white);
    text-align: center;
    position: relative;
    background-color: var(--primary-navy);
}

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

.internal-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.internal-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span {
    color: var(--white);
    font-weight: 600;
}


/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid var(--gray-100);
    transition: transform 0.3s ease;
}

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

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-red);
}

.client-details h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-navy);
}

.client-details span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== PARTNER MARQUEE ===== */
.marquee-container {
    overflow: hidden;
    padding: 2rem 0;
    background: white;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.marquee-content img {
    height: 60px;
    margin: 0 1.5rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-content img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== NEWSLETTER ===== */
.newsletter-box {
    background: var(--primary-navy);
    padding: 4rem;
    border-radius: 1.5rem;
    color: white;
    text-align: center;
    background-image: url('/images/pattern.png');
    /* Optional pattern */
    background-size: cover;
    box-shadow: 0 20px 50px rgba(2, 29, 58, 0.3);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-form button:hover {
    background: #c53030;
    transform: translateY(-2px);
}