/* ============================================
   CLINIMINDS AI - LMS & AI-NATIVE DESIGN SYSTEM
   Medical-Grade · Premium · Dark Only v3.0
   Mobile-first: base styles for small screens;
   enhance with min-width media queries (576px, 768px, 992px, 1200px).
   ============================================ */

/* =================== CSS VARIABLES =================== */
:root {
    /* Primary – Electric AI Blue #0096FF */
    --cm-blue-primary: #0096FF;
    --cm-blue-dark: #0077CC;
    --cm-blue-darker: #005FA3;
    --cm-blue-darkest: #004080;
    --cm-blue-light: #33ABFF;
    --cm-blue-lighter: #66C0FF;
    --cm-blue-glow: rgba(0, 150, 255, 0.4);
    --cm-blue-subtle: rgba(0, 150, 255, 0.08);
    /* Support – Live / Active (Green) */
    --cm-green-live: #10b981;
    --cm-green-live-dark: #059669;
    --cm-green-glow: rgba(16, 185, 129, 0.35);
    /* Support – Coming Soon / Future (Purple shimmer) */
    --cm-purple-coming: #8b5cf6;
    --cm-purple-coming-light: #a78bfa;
    --cm-purple-glow: rgba(139, 92, 246, 0.3);
    /* Backgrounds – Deep black / Graphite grey */
    --cm-bg-primary: #000000;
    --cm-bg-secondary: #0a0a0a;
    --cm-bg-tertiary: #111111;
    --cm-bg-graphite: #1a1a1a;
    --cm-bg-card: rgba(15, 15, 18, 0.85);
    --cm-bg-card-hover: rgba(26, 26, 32, 0.9);
    --cm-bg-elevated: #141414;
    --cm-bg-glass: rgba(10, 10, 14, 0.75);
    /* Text */
    --cm-text-primary: #ffffff;
    --cm-text-secondary: #b0b0b0;
    --cm-text-muted: #808080;
    --cm-text-dim: #505050;
    /* Borders */
    --cm-border-dark: rgba(255, 255, 255, 0.05);
    --cm-border-light: rgba(255, 255, 255, 0.08);
    --cm-border-blue: rgba(0, 150, 255, 0.25);
    --cm-border-glow: rgba(0, 150, 255, 0.4);
    /* Depth – Shadows, blur, overlays */
    --cm-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.5);
    --cm-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --cm-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --cm-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.75);
    --cm-shadow-glow: 0 0 32px rgba(0, 150, 255, 0.25);
    --cm-shadow-glow-strong: 0 0 48px rgba(0, 150, 255, 0.35);
    --cm-blur-sm: 12px;
    --cm-blur-md: 20px;
    --cm-blur-lg: 32px;
    /* Radius */
    --cm-radius-sm: 8px;
    --cm-radius-md: 12px;
    --cm-radius-lg: 16px;
    --cm-radius-xl: 24px;
    --cm-radius-full: 100px;
    /* Motion – calm, purposeful */
    --cm-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --cm-transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --cm-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Soft gradient hover – blue to black, smooth motion */
    --cm-gradient-hover: linear-gradient(90deg, rgba(0, 150, 255, 0.18) 0%, rgba(0, 150, 255, 0.08) 40%, rgba(0, 0, 0, 0.55) 100%);
    --cm-gradient-hover-strong: linear-gradient(90deg, rgba(0, 150, 255, 0.25) 0%, rgba(0, 150, 255, 0.1) 50%, rgba(0, 0, 0, 0.65) 100%);
    --cm-transition-gradient: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Typography */
    --cm-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cm-font-heading: 'Poppins', var(--cm-font-primary);
}

/* Reduced motion – respect user preference */
@media (prefers-reduced-motion: reduce) {
    :root {
        --cm-transition-fast: 0.01ms;
        --cm-transition-normal: 0.01ms;
        --cm-transition-slow: 0.01ms;
    }
}

/* =================== BASE STYLES =================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--cm-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cm-text-secondary);
    background-color: var(--cm-bg-primary);
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(0, 150, 255, 0.15);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive images – prevent overflow on small screens */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Safe area for notched devices (when viewport-fit=cover is set) */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .navbar-cliniminds .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

::selection {
    background: var(--cm-blue-primary);
    color: white;
}

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--cm-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cm-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--cm-blue-light) 0%, var(--cm-blue-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--cm-text-muted);
    max-width: 600px;
}

/* =================== LMS-AWARE HEADER (Professional, minimal) =================== */
.navbar-cliniminds {
    background: rgba(8, 8, 12, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
    transition: background 0.25s ease, border-color 0.25s ease;
    position: sticky;
    top: 0;
    z-index: 1030;
}

    .navbar-cliniminds .navbar-collapse {
        flex-wrap: nowrap;
    }

    .navbar-cliniminds::after {
        display: none;
    }

    .navbar-cliniminds.scrolled {
        background: rgba(6, 6, 10, 0.97);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

/* Auth buttons container – single line, no wrap */
.navbar-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Login – outline + glow (AI / user / neural style) */
.btn-nav-login-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.125rem;
    border-radius: var(--cm-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cm-blue-primary);
    background: transparent;
    border: 1px solid var(--cm-border-blue);
    text-decoration: none;
    transition: border-color var(--cm-transition-fast), box-shadow var(--cm-transition-fast), color var(--cm-transition-fast);
    position: relative;
}

    .btn-nav-login-outline:hover {
        border-color: var(--cm-blue-primary);
        box-shadow: 0 0 20px var(--cm-blue-glow);
        color: var(--cm-blue-light);
    }

    .btn-nav-login-outline i {
        font-size: 1rem;
        opacity: 0.9;
    }

/* Register – filled blue gradient CTA */
.btn-nav-register {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--cm-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    background: linear-gradient(135deg, var(--cm-blue-primary) 0%, var(--cm-blue-dark) 100%);
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.35);
    transition: transform var(--cm-transition-fast), box-shadow var(--cm-transition-fast);
    position: relative;
    overflow: hidden;
}

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

    .btn-nav-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0, 150, 255, 0.45);
    }

        .btn-nav-register:hover::before {
            left: 100%;
        }

    .btn-nav-register i {
        font-size: 1rem;
    }

/* Legacy single CTA (map to Register) */
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--cm-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    background: linear-gradient(135deg, var(--cm-blue-primary) 0%, var(--cm-blue-dark) 100%);
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.35);
    transition: transform var(--cm-transition-fast), box-shadow var(--cm-transition-fast);
}

    .btn-nav-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0, 150, 255, 0.45);
        color: #fff;
    }

.navbar-brand-cm {
    font-family: var(--cm-font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--cm-text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    transition: var(--cm-transition-fast);
}

    .navbar-brand-cm:hover {
        transform: scale(1.02);
    }

    .navbar-brand-cm .brand-icon {
        width: 38px;
        height: 38px;
        background: linear-gradient(135deg, #0096FF 0%, #0066CC 100%);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.1rem;
        box-shadow: 0 0 20px rgba(0, 150, 255, 0.4);
        transition: var(--cm-transition-normal);
        position: relative;
    }

        .navbar-brand-cm .brand-icon::before {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(0, 150, 255, 0.5), transparent);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

    .navbar-brand-cm:hover .brand-icon::before {
        opacity: 1;
    }

    .navbar-brand-cm:hover .brand-icon {
        box-shadow: 0 0 35px rgba(0, 150, 255, 0.6);
        transform: rotate(-5deg);
    }

    .navbar-brand-cm .brand-ai {
        color: var(--cm-blue-primary);
        font-weight: 900;
    }

/* Center nav items – single line, no wrap */
.navbar-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: nowrap;
}

@media (max-width: 991px) {
    .navbar-nav-center {
        position: static;
        transform: none;
    }
}

/* Top-level professional nav – clean, no overlap, no gimmicks, single line */
.nav-link-cm {
    font-weight: 500;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease, border-color 0.2s ease;
    position: relative;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

    /* Underline: only on hover – minimal, professional */
    .nav-link-cm::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 1px;
        background: var(--cm-blue-primary);
        transition: width 0.25s ease;
        transform: translateX(-50%);
    }

    .nav-link-cm:hover,
    .nav-link-cm:focus {
        color: #fff !important;
    }

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

    /* Courses: text + chevron with clear spacing – no overlap */
    .nav-link-cm.dropdown-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 0.5rem;
    }

        .nav-link-cm.dropdown-toggle::after {
            content: '';
            position: relative;
            left: auto;
            bottom: auto;
            width: 0;
            height: 0;
            margin-left: 0;
            transform: none;
            background: none !important;
            border: none;
            border-top: 0.3em solid currentColor;
            border-right: 0.28em solid transparent;
            border-left: 0.28em solid transparent;
            border-bottom: 0;
            flex-shrink: 0;
            opacity: 0.85;
            transition: opacity 0.2s ease;
        }

        .nav-link-cm.dropdown-toggle:hover::after {
            opacity: 1;
        }

        .nav-link-cm.dropdown-toggle.show::after {
            border-top: 0;
            border-bottom: 0.3em solid currentColor;
            border-right: 0.28em solid transparent;
            border-left: 0.28em solid transparent;
        }

/* =================== MEGA MENU FOR COURSES (Dark, life-science, Coming Soon badges) =================== */
.dropdown-mega {
    position: static !important;
}

/* Life-science / pharma background – subtle molecular lattice behind course names */
.dropdown-menu-mega {
    position: relative;
    background: rgba(4, 4, 12, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.05), 0 0 48px rgba(0, 150, 255, 0.06);
    padding: 1.75rem 2rem;
    margin-top: 0.5rem !important;
    width: min(960px, 98vw);
    min-width: min(960px, 98vw);
    left: 50% !important;
    transform: translateX(-50%) !important;
    animation: megaFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

    /* Medical / pharma / life-science background – visible and thematic */
    .dropdown-menu-mega::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230096FF' stroke-width='0.4' opacity='0.09'%3E%3Cpath d='M60 20v20M50 30h20'/%3E%3Cellipse cx='90' cy='35' rx='8' ry='4'/%3E%3Cpath d='M82 35h16'/%3E%3Cpath d='M25 70q5-8 10 0t10 0t10 0' stroke-width='0.35'/%3E%3Crect x='55' cy='75' width='10' height='14' rx='2'/%3E%3Cpath d='M60 75v-6'/%3E%3C/g%3E%3Cg fill='%230096FF' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='25' r='6'/%3E%3Ccircle cx='95' cy='85' r='5'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230096FF' stroke-width='0.2' opacity='0.07'%3E%3Cpath d='M40 15v12M34 21h12'/%3E%3Cellipse cx='65' cy='22' rx='5' ry='2.5'/%3E%3Cpath d='M60 22h10'/%3E%3Cpath d='M15 55q3-5 6 0t6 0t6 0' stroke-width='0.15'/%3E%3C/svg%3E");
        background-size: 120px 120px, 80px 80px;
        background-position: 0 0, 40px 40px;
        background-repeat: repeat;
        pointer-events: none;
        z-index: 0;
    }

    .dropdown-menu-mega .mega-menu-header,
    .dropdown-menu-mega .mega-menu-grid {
        position: relative;
        z-index: 1;
    }

@keyframes megaFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Title: centered "Explore Our Programs" – heading style, no bullet */
.mega-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
    margin-bottom: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-align: center;
    display: block;
    margin: 0;
    line-height: 1.3;
    text-transform: none;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}

/* Each row: icon + full label + badge on one line – no truncation, width increased as needed */
.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: background 0.25s ease, color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.8125rem;
    font-weight: 500;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
}

    .mega-menu-item span:first-of-type {
        flex: 0 1 auto;
        min-width: 0;
    }

    .mega-menu-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 0;
        width: 2px;
        background: var(--cm-blue-primary);
        border-radius: 0 2px 2px 0;
        opacity: 0;
        transition: height 0.25s ease, opacity 0.25s ease;
    }

    .mega-menu-item:hover {
        background: rgba(0, 150, 255, 0.06);
        color: #ffffff;
        border-color: rgba(0, 150, 255, 0.12);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 150, 255, 0.06);
    }

        .mega-menu-item:hover::before {
            height: 50%;
            opacity: 1;
        }

    .mega-menu-item i {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 150, 255, 0.08);
        border-radius: 8px;
        color: rgba(0, 150, 255, 0.9);
        font-size: 0.8rem;
        transition: background 0.25s ease, color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
        flex-shrink: 0;
    }

    .mega-menu-item:hover i {
        background: rgba(0, 150, 255, 0.2);
        color: #0096FF;
        transform: scale(1.05);
        box-shadow: 0 0 14px rgba(0, 150, 255, 0.2);
    }

    /* Live badge – hidden (PV has no Live badge per design) */
    .mega-menu-item .item-badge.popular {
        display: none !important;
    }

    /* Coming Soon badge – clean blue theme to match site */
    .mega-menu-item .item-badge.coming-soon {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.32rem 0.75rem;
        border-radius: 100px;
        font-size: 0.625rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.95);
        background: rgba(0, 150, 255, 0.12);
        border: 1px solid rgba(0, 150, 255, 0.25);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
        position: relative;
    }

        .mega-menu-item .item-badge.coming-soon::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 50%;
            border-radius: 0 2px 2px 0;
            background: var(--cm-blue-primary);
            opacity: 0.9;
            transition: height 0.25s ease, opacity 0.25s ease;
        }

    .mega-menu-item:hover .item-badge.coming-soon {
        color: #ffffff;
        background: rgba(0, 150, 255, 0.22);
        border-color: rgba(0, 150, 255, 0.4);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25), 0 0 16px rgba(0, 150, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transform: scale(1.02);
    }

        .mega-menu-item:hover .item-badge.coming-soon::before {
            height: 65%;
            opacity: 1;
        }

/* Legacy dropdown */
.dropdown-menu-cm {
    background: rgba(8, 8, 12, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 150, 255, 0.15);
    border-radius: var(--cm-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 0.75rem;
    margin-top: 0.75rem;
    animation: dropdownFade 0.2s ease;
}

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

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

.dropdown-item-cm {
    padding: 0.75rem 1rem;
    border-radius: var(--cm-radius-sm);
    font-weight: 500;
    color: var(--cm-text-secondary);
    transition: var(--cm-transition-fast);
}

    .dropdown-item-cm:hover {
        background: rgba(0, 150, 255, 0.1);
        color: var(--cm-blue-light);
    }

.navbar-toggler-cm {
    border: 2px solid var(--cm-blue-primary);
    border-radius: var(--cm-radius-sm);
    padding: 0.5rem;
    background: transparent;
}

    .navbar-toggler-cm .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 150, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

/* =================== HERO SECTION =================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cm-bg-primary);
    overflow: hidden;
}

/* Mouse-following cursor glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cm-blue-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    filter: blur(40px);
}

/* Grid Pattern */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0, 150, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 150, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Floating Orbs */
.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--cm-blue-primary);
    top: -200px;
    right: -200px;
    animation: orbPulse 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--cm-blue-dark);
    bottom: -100px;
    left: -100px;
    animation: orbPulse 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--cm-blue-light);
    top: 40%;
    left: 30%;
    animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.2;
    }

    33% {
        transform: translate(50px, -30px);
        opacity: 0.4;
    }

    66% {
        transform: translate(-30px, 50px);
        opacity: 0.3;
    }
}

/* Interactive Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cm-blue-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise 10s linear infinite;
}

@keyframes particleRise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Neural Network Animation */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.neural-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--cm-blue-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--cm-blue-glow);
}

.neural-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cm-blue-primary), transparent);
    opacity: 0.3;
    transform-origin: left center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--cm-bg-primary) 70%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(0, 150, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: var(--cm-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid var(--cm-border-blue);
    color: var(--cm-blue-light);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0, 150, 255, 0);
    }
}

.hero-badge i {
    font-size: 1rem;
    animation: starSpin 4s linear infinite;
}

@keyframes starSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

    .hero-title .highlight {
        color: var(--cm-blue-primary);
        position: relative;
    }

.hero-description {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--cm-text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =================== BUTTONS =================== */
.btn-cm-primary {
    background: var(--cm-blue-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--cm-radius-full);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: var(--cm-transition-normal);
    border: none;
    box-shadow: var(--cm-shadow-glow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

    .btn-cm-primary:hover::before {
        left: 100%;
    }

    .btn-cm-primary:hover {
        background: var(--cm-blue-dark);
        transform: translateY(-3px);
        box-shadow: var(--cm-shadow-glow-strong);
        color: white;
    }

.btn-cm-secondary {
    background: transparent;
    color: var(--cm-text-primary);
    padding: 0.9375rem 2rem;
    border-radius: var(--cm-radius-full);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: var(--cm-transition-normal);
    border: 1px solid var(--cm-border-light);
    text-decoration: none;
}

    .btn-cm-secondary:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--cm-blue-primary);
        color: var(--cm-blue-light);
        transform: translateY(-3px);
    }

.btn-cm-outline {
    background: transparent;
    color: var(--cm-blue-primary);
    padding: 0.875rem 1.75rem;
    border-radius: var(--cm-radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--cm-transition-normal);
    border: 2px solid var(--cm-blue-primary);
    text-decoration: none;
}

    .btn-cm-outline:hover {
        background: var(--cm-blue-primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--cm-shadow-glow);
    }

/* =================== FEATURE CARDS =================== */
.feature-card {
    background: var(--cm-bg-card);
    border-radius: var(--cm-radius-lg);
    padding: 2rem;
    border: 1px solid var(--cm-border-dark);
    transition: var(--cm-transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--cm-blue-primary), transparent);
        opacity: 0;
        transition: var(--cm-transition-normal);
    }

    .feature-card:hover {
        transform: translateY(-8px);
        border-color: var(--cm-border-blue);
        box-shadow: var(--cm-shadow-lg), 0 0 40px rgba(0, 150, 255, 0.1);
    }

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--cm-blue-subtle);
    border-radius: var(--cm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cm-blue-primary);
    margin-bottom: 1.25rem;
    transition: var(--cm-transition-normal);
    border: 1px solid var(--cm-border-blue);
}

.feature-card:hover .feature-icon {
    background: var(--cm-blue-primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--cm-shadow-glow);
}

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

.feature-description {
    color: var(--cm-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* =================== CONNECTED LEARNING (Clean, centralized, no overlap) =================== */
.section-connected {
    background: #000000;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 5rem;
    text-align: center;
}

    .section-connected .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-connected .connected-section-header {
        text-align: center;
        margin-bottom: 2.5rem;
        width: 100%;
    }

    .section-connected .section-title {
        text-align: center;
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }

    .section-connected .section-subtitle {
        text-align: center;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.65;
        font-size: 1.125rem;
    }

    /* Reference: "Learning" in solid electric blue */
    .section-connected .text-gradient {
        color: var(--cm-blue-primary);
        background: none;
        -webkit-text-fill-color: initial;
        background-clip: unset;
    }

.connected-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(0, 150, 255, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

/* Reference: concentric glowing circles + infinite rounding (segment moving around circle) */
.infinite-rings-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 520px;
    max-height: 520px;
    pointer-events: none;
    z-index: 0;
}

    .infinite-rings-bg .round-svg {
        width: 100%;
        height: 100%;
        overflow: visible;
    }

    /* Visible circle in the background (Connected Learning) */
    .infinite-rings-bg .round-track {
        stroke: rgba(0, 150, 255, 0.38);
        fill: none;
        stroke-linecap: round;
        stroke-width: 2;
    }

    /* Running rounded: bright segment travels around the circle (r=230 → circumference ~1445) */
    .infinite-rings-bg .round-segment {
        fill: none;
        stroke: rgba(100, 220, 255, 1);
        stroke-width: 4;
        stroke-linecap: round;
        stroke-dasharray: 140 1305;
        animation: infinite-rounding-ring 3.4s linear infinite;
        filter: drop-shadow(0 0 14px rgba(0, 220, 255, 0.8)) drop-shadow(0 0 28px rgba(0, 150, 255, 0.4));
    }

@keyframes infinite-rounding-ring {
    to {
        stroke-dashoffset: -1445;
    }
}

.infinite-rings-bg .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(0, 150, 255, 0.15);
    pointer-events: none;
}

.infinite-rings-bg .ring-1 {
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.08);
}

.infinite-rings-bg .ring-2 {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
    border-color: rgba(0, 150, 255, 0.12);
    box-shadow: 0 0 40px rgba(0, 150, 255, 0.06);
}

.infinite-rings-bg .ring-3 {
    width: 480px;
    height: 480px;
    margin: -240px 0 0 -240px;
    border-color: rgba(0, 150, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 150, 255, 0.1);
}

.infinite-rings-bg .ring-rotate {
    animation: infinite-ring-spin 35s linear infinite;
}

@keyframes infinite-ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pill-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--cm-radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Reference: thin blue border, white text */
.pill-badge-outline {
    color: #fff;
    border: 1px solid var(--cm-blue-primary);
    background: transparent;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.15);
}

.pill-badge-gradient {
    color: #fff;
    background: linear-gradient(135deg, var(--cm-blue-primary) 0%, var(--cm-blue-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.connected-hub {
    position: relative;
    width: 100%;
    max-width: 1000px;
    min-height: 680px;
    height: 720px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Staggered reveal: center → lines → nodes */
    .connected-hub .connected-center {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.88);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        transition-delay: 0s;
    }

    .connected-hub .connected-lines {
        opacity: 0;
        transition: opacity 0.6s ease 0.12s;
    }

    .connected-hub .connected-node {
        opacity: 0;
        transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .connected-hub .connected-node-top {
        transition-delay: 0.28s;
        transform: translate(-50%, 12px);
    }

    .connected-hub .connected-node-right {
        transition-delay: 0.36s;
        transform: translate(12px, -50%);
    }

    .connected-hub .connected-node-bottom {
        transition-delay: 0.44s;
        transform: translate(-50%, -12px);
    }

    .connected-hub .connected-node-left {
        transition-delay: 0.52s;
        transform: translate(-12px, -50%);
    }

    .connected-hub.reveal.active .connected-center {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .connected-hub.reveal.active .connected-lines {
        opacity: 1;
    }

    .connected-hub.reveal.active .connected-node {
        opacity: 1;
    }

    .connected-hub.reveal.active .connected-node-top {
        transform: translate(-50%, 0);
    }

    .connected-hub.reveal.active .connected-node-right {
        transform: translate(0, -50%);
    }

    .connected-hub.reveal.active .connected-node-bottom {
        transform: translate(-50%, 0);
    }

    .connected-hub.reveal.active .connected-node-left {
        transform: translate(0, -50%);
    }

/* Center + pulse: both centralized; pulse is background, behind the icon */
.connected-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}

/* Pulse rings: background only – behind the center icon, centralized */
.connected-center-pulse {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 150, 255, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: connected-pulse-ring 2.8s ease-out infinite;
}

.connected-center-pulse-1 {
    width: 96px;
    height: 96px;
    box-shadow: 0 0 32px rgba(0, 150, 255, 0.2);
    animation-delay: 0s;
}

.connected-center-pulse-2 {
    width: 96px;
    height: 96px;
    box-shadow: 0 0 32px rgba(0, 150, 255, 0.2);
    animation-delay: 0.6s;
}

.connected-center-pulse-3 {
    width: 96px;
    height: 96px;
    box-shadow: 0 0 32px rgba(0, 150, 255, 0.2);
    animation-delay: 1.2s;
}

@keyframes connected-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.8;
        border-color: rgba(0, 150, 255, 0.4);
    }

    100% {
        transform: translate(-50%, -50%) scale(2.6);
        opacity: 0;
        border-color: rgba(0, 150, 255, 0.06);
    }
}

/* Center icon: same center as pulse, in front – pulse is bg for this icon */
.connected-center-icon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cm-blue-primary) 0%, var(--cm-blue-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 0 44px rgba(0, 150, 255, 0.45), 0 0 88px rgba(0, 150, 255, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: connected-center-glow 2.4s ease-in-out infinite;
}

@keyframes connected-center-glow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(0, 150, 255, 0.45), 0 0 80px rgba(0, 150, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 52px rgba(0, 150, 255, 0.55), 0 0 100px rgba(0, 150, 255, 0.2);
    }
}

.connected-hub:hover .connected-center-icon {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 56px rgba(0, 150, 255, 0.55), 0 0 110px rgba(0, 150, 255, 0.22);
}

.connected-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
}

    /* Static track lines – visible connection from center to nodes */
    .connected-lines .line-track {
        stroke: rgba(185, 224, 253, 0.103);
        stroke-width: 1;
        fill: none;
        stroke-linecap: round;
    }

    /* Reference: luminous flow along lines – infinite data flow / continuous connection */
    .connected-lines .line-flow {
        fill: none;
        stroke: rgb(0 102 255 / 55%);
        stroke-width: 1;
        stroke-linecap: round;
        stroke-dasharray: 7 120;
        animation: connected-line-flow 1.6s linear infinite;
        filter: drop-shadow(0 0 6px rgba(0, 220, 255, 0.7));
    }

    .connected-lines .line-flow-right {
        animation-delay: 0.2s;
    }

    .connected-lines .line-flow-bottom {
        animation-delay: 0.4s;
    }

    .connected-lines .line-flow-left {
        animation-delay: 0.6s;
    }

@keyframes connected-line-flow {
    to {
        stroke-dashoffset: -120;
    }
}

/* Connected nodes: refined, clean, bigger – icon on line, text with clear gap */
.connected-node {
    position: absolute;
    z-index: 1;
    max-width: 260px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
}

.connected-node-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.connected-node-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 50%;
    background: var(--cm-blue-primary);
    border: 1px solid rgba(0, 150, 255, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 0 28px rgba(0, 150, 255, 0.35);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.connected-node:hover .connected-node-icon {
    box-shadow: 0 0 28px rgba(0, 150, 255, 0.5);
}

.connected-node-label {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem 0;
}

.connected-node-desc {
    font-size: 0.875rem;
    color: var(--cm-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Top: [icon] [content] – icon on line (center), text on opposite side (right). Same style as bottom. */
.connected-node-top {
    flex-direction: row;
    justify-content: center;
}

    .connected-node-top .connected-node-icon {
        margin-right: 0.5rem;
    }

    .connected-node-top .connected-node-content {
        text-align: left;
        align-items: flex-start;
        margin-left: 0;
    }

/* Right: refined like top/bottom – clear gap from line, no overlap, continuous line. */
.connected-node-right {
    flex-direction: row;
    justify-content: flex-end;
    gap: 1.5rem;
}

    .connected-node-right .connected-node-content {
        text-align: right;
        align-items: flex-end;
        margin-right: 0.75rem;
        max-width: 100%;
    }

/* Bottom: [icon] [content] – icon on line (center), text right. Unchanged. */
.connected-node-bottom {
    flex-direction: row;
    justify-content: center;
}

    .connected-node-bottom .connected-node-content {
        text-align: left;
        align-items: flex-start;
        margin-left: 0.5rem;
    }

/* Left: refined like top/bottom – clear gap from line, no overlap, continuous line. */
.connected-node-left {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
}

    .connected-node-left .connected-node-content {
        text-align: left;
        align-items: flex-start;
        margin-left: 0.75rem;
        max-width: 100%;
    }

/* Four items: up, right, down, left – clear alignment */
.connected-node-top {
    top: 0;
    left: 50%;
}

.connected-node-right {
    top: 50%;
    right: 0;
}

.connected-node-bottom {
    bottom: 0;
    left: 50%;
}

.connected-node-left {
    top: 50%;
    left: 0;
}

@media (max-width: 767.98px) {
    .connected-hub {
        max-width: 380px;
        min-height: 360px;
        height: 380px;
        padding: 1.25rem;
    }

    .connected-center-icon {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
    }

    .connected-center-pulse-1, .connected-center-pulse-2, .connected-center-pulse-3 {
        width: 72px;
        height: 72px;
    }

    .connected-node {
        max-width: 160px;
        gap: 0.8rem;
    }

    .connected-node-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .connected-node-label {
        font-size: 0.95rem;
    }

    .connected-node-desc {
        font-size: 0.8rem;
        display: block;
    }
    @media (max-width:991px) {
        .connected-node-desc {
            display: none;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .connected-hub .connected-center,
    .connected-hub .connected-lines {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .connected-hub .connected-node {
        opacity: 1;
        transition: none;
    }

    .connected-hub .connected-node-top {
        transform: translate(-50%, 0);
    }

    .connected-hub .connected-node-right {
        transform: translate(0, -50%);
    }

    .connected-hub .connected-node-bottom {
        transform: translate(-50%, 0);
    }

    .connected-hub .connected-node-left {
        transform: translate(0, -50%);
    }

    .connected-center-pulse {
        animation: none;
        opacity: 0.25;
    }

    .connected-center-icon {
        animation: none;
    }

    .connected-lines .line-flow {
        animation: none;
        stroke-dasharray: none;
        stroke: rgba(100, 220, 255, 0.5);
    }
}

/* =================== NEVER MISS A LEARNING MOMENT (Cards + Tags) =================== */
.section-opportunity {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.opportunity-glow {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 150, 255, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

/* Circle in the background + bright segment running around it = infinite rounding (per design) */
.infinite-arc-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1000px;
    max-height: 560px;
    pointer-events: none;
    z-index: 0;
}

    .infinite-arc-bg .arc-svg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        height: 95%;
        max-width: 580px;
        max-height: 580px;
        overflow: visible;
    }

    .infinite-arc-bg .arc-svg-1 {
        width: 100%;
        height: 100%;
        max-width: 600px;
        max-height: 600px;
    }

    .infinite-arc-bg .arc-svg-2 {
        width: 78%;
        height: 78%;
        max-width: 460px;
        max-height: 460px;
    }

    /* Visible circle in the background – clear ring so you see the circle */
    .infinite-arc-bg .arc-track {
        stroke: rgba(0, 150, 255, 0.42);
        fill: none;
        stroke-linecap: round;
        stroke-width: 2.5;
    }

    .infinite-arc-bg .arc-track-2 {
        stroke: rgba(139, 92, 246, 0.32);
        stroke-width: 2;
    }

    /* Bright streak running around the circle = running rounded */
    .infinite-arc-bg .arc-segment {
        fill: none;
        stroke-linecap: round;
        stroke-dasharray: 160 1348;
        animation: infinite-rounding-offset 3.8s linear infinite;
    }

    .infinite-arc-bg .arc-segment-blue {
        stroke: rgba(100, 220, 255, 1);
        stroke-width: 6;
        filter: drop-shadow(0 0 16px rgba(0, 220, 255, 0.9)) drop-shadow(0 0 32px rgba(0, 150, 255, 0.6)) drop-shadow(0 0 48px rgba(0, 150, 255, 0.35));
    }

    .infinite-arc-bg .arc-segment-purple {
        stroke: rgba(180, 160, 255, 1);
        stroke-width: 5;
        stroke-dasharray: 120 1137;
        animation: infinite-rounding-offset-purple 3.2s linear infinite reverse;
        filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.8)) drop-shadow(0 0 28px rgba(139, 92, 246, 0.4));
    }

@keyframes infinite-rounding-offset {
    to {
        stroke-dashoffset: -1508;
    }
}

@keyframes infinite-rounding-offset-purple {
    to {
        stroke-dashoffset: -1257;
    }
}

@media (prefers-reduced-motion: reduce) {
    .infinite-rings-bg .round-segment,
    .infinite-arc-bg .arc-segment {
        animation: none;
    }
}

.opportunity-card {
    background: rgba(18, 18, 24, 0.9);
    border-radius: var(--cm-radius-lg);
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    height: 100%;
}

    .opportunity-card:hover {
        border-color: rgba(0, 150, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 150, 255, 0.08);
        transform: translateY(-4px);
    }

/* Reference: white icon on dark gray card */
.opportunity-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--cm-radius-md);
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid rgba(0, 150, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.opportunity-card:hover .opportunity-card-icon {
    background: rgba(0, 150, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.25);
}

.opportunity-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.opportunity-card-desc {
    font-size: 0.875rem;
    color: var(--cm-text-muted);
    line-height: 1.55;
}

/* Restored: labels with icons, borders, separators – full design */
.opportunity-labels {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    margin-top: 2rem;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.opportunity-label-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--cm-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease;
}

    .opportunity-label-item:hover {
        border-color: rgba(0, 150, 255, 0.2);
        background: rgba(0, 150, 255, 0.06);
    }

.opportunity-label-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.opportunity-label-item:hover .opportunity-label-icon {
    color: rgba(100, 220, 255, 0.9);
}

.opportunity-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
}

.opportunity-label-sep {
    width: 1px;
    height: 1.125rem;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    border-radius: 1px;
}

/* Reference: "Opportunity" in electric blue */
.section-opportunity .text-gradient {
    color: var(--cm-blue-primary);
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: unset;
}

/* =================== COURSE CARDS =================== */
.course-card {
    background: var(--cm-bg-card);
    border-radius: var(--cm-radius-lg);
    overflow: hidden;
    border: 1px solid var(--cm-border-dark);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .course-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: var(--cm-radius-lg);
        box-shadow: var(--cm-shadow-glow-strong);
        opacity: 0;
        transition: var(--cm-transition-normal);
        pointer-events: none;
    }

    .course-card:hover {
        transform: translateY(-12px) scale(1.02);
        border-color: var(--cm-blue-primary);
    }

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

.course-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

    .course-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--cm-transition-slow);
    }

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

.course-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--cm-bg-card) 0%, transparent 100%);
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--cm-blue-primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--cm-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: var(--cm-shadow-glow);
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--cm-text-primary);
    line-height: 1.4;
    transition: var(--cm-transition-fast);
}

.course-card:hover .course-title {
    color: var(--cm-blue-light);
}

.course-description {
    color: var(--cm-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--cm-border-dark);
    margin-bottom: 1rem;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--cm-text-muted);
}

    .course-meta-item i {
        color: var(--cm-blue-primary);
    }

.course-card-footer {
    display: flex;
    gap: 0.75rem;
}

.btn-course-primary {
    flex: 1;
    background: var(--cm-blue-primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--cm-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: var(--cm-transition-normal);
    border: none;
    text-decoration: none;
}

    .btn-course-primary:hover {
        background: var(--cm-blue-dark);
        box-shadow: var(--cm-shadow-glow);
        color: white;
        transform: translateY(-2px);
    }

.btn-course-secondary {
    flex: 1;
    background: transparent;
    color: var(--cm-blue-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--cm-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: var(--cm-transition-normal);
    border: 1px solid var(--cm-border-blue);
    text-decoration: none;
}

    .btn-course-secondary:hover {
        background: var(--cm-blue-subtle);
        color: var(--cm-blue-light);
        transform: translateY(-2px);
    }

/* =================== CATEGORY CARDS (Dark glass, AI-enhanced) =================== */
.category-card {
    background: var(--cm-bg-card);
    backdrop-filter: blur(var(--cm-blur-sm));
    -webkit-backdrop-filter: blur(var(--cm-blur-sm));
    border-radius: var(--cm-radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--cm-border-dark);
    transition: transform var(--cm-transition-normal), border-color var(--cm-transition-normal), box-shadow var(--cm-transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: var(--cm-blue-subtle);
        border-radius: 50%;
        transition: var(--cm-transition-slow);
        transform: translate(-50%, -50%);
    }

    .category-card:hover::before {
        width: 300%;
        height: 300%;
    }

    .category-card:hover {
        transform: translateY(-10px);
        border-color: var(--cm-blue-primary);
        box-shadow: var(--cm-shadow-lg), var(--cm-shadow-glow);
    }

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--cm-blue-subtle);
    border-radius: var(--cm-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cm-blue-primary);
    margin: 0 auto 1.25rem;
    transition: var(--cm-transition-normal);
    border: 1px solid var(--cm-border-blue);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    background: var(--cm-blue-primary);
    color: white;
    transform: rotate(-10deg) scale(1.1);
    box-shadow: var(--cm-shadow-glow);
}

.category-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--cm-text-primary);
    position: relative;
    z-index: 1;
}

.category-desc {
    font-size: 0.8125rem;
    color: var(--cm-text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Category status – Live / Coming Soon in place of course count (no overlap) */
.category-status {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--cm-radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .category-status.tag-live {
        background: linear-gradient(135deg, var(--cm-green-live) 0%, var(--cm-green-live-dark) 100%);
        color: #fff;
        box-shadow: 0 0 10px var(--cm-green-glow);
    }

    .category-status.tag-coming {
        background: rgba(0, 150, 255, 0.12);
        color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 150, 255, 0.25);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

/* =================== AI LEARNING EXPERIENCE SECTION =================== */
.section-ai-learning {
    position: relative;
    padding: clamp(4rem, 10vw, 6rem) 0;
    overflow: hidden;
    background: var(--cm-bg-secondary);
}

    .section-ai-learning .section-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--cm-border-blue), transparent);
        opacity: 0.5;
        margin: 3rem 0;
    }

.ai-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 767.98px) {
    .ai-learning-grid {
        grid-template-columns: 1fr;
    }
}

.ai-learning-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--cm-radius-lg);
    background: var(--cm-bg-card);
    border: 1px solid var(--cm-border-dark);
    transition: border-color var(--cm-transition-normal), box-shadow var(--cm-transition-normal), transform var(--cm-transition-normal);
}

    .ai-learning-item:hover {
        border-color: var(--cm-border-blue);
        box-shadow: var(--cm-shadow-glow);
        transform: translateY(-4px);
    }

    .ai-learning-item .ai-icon-wrap {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        border-radius: var(--cm-radius-md);
        background: var(--cm-blue-subtle);
        border: 1px solid var(--cm-border-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--cm-blue-primary);
        font-size: 1.25rem;
        transition: background var(--cm-transition-normal), color var(--cm-transition-normal);
    }

    .ai-learning-item:hover .ai-icon-wrap {
        background: var(--cm-blue-primary);
        color: #fff;
    }

    .ai-learning-item h4 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.35rem;
        color: var(--cm-text-primary);
    }

    .ai-learning-item p {
        font-size: 0.875rem;
        color: var(--cm-text-muted);
        line-height: 1.5;
        margin: 0;
    }

/* Neural / waveform background for AI section */
.ai-section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: linear-gradient(90deg, transparent 0%, var(--cm-blue-primary) 50%, transparent 100%);
    background-size: 200% 2px;
    background-repeat: repeat-y;
    animation: aiWave 8s linear infinite;
}

@keyframes aiWave {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-section-bg {
        animation: none;
    }
}

/* =================== DARK THEME ISOMETRIC-STYLE BLOCK (first reference: tilted cubes, dark) =================== */
.section-isometric-dark {
    background: #0a0a0f;
    padding: clamp(3rem, 8vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}

.isometric-dark-inner {
    max-width: 720px;
    margin: 0 auto;
}

.isometric-dark-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    justify-items: center;
    align-items: center;
    perspective: 800px;
}

.isometric-card {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transform: rotateX(12deg) rotateY(-8deg);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transition-delay: var(--iso-delay, 0);
}

    .isometric-card:hover {
        transform: rotateX(10deg) rotateY(-6deg) translateZ(12px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 150, 255, 0.12);
    }

.isometric-card-face {
    width: 100%;
    height: 100%;
    max-width: 120px;
    max-height: 120px;
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid rgba(0, 150, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

    .isometric-card-face i {
        font-size: 2rem;
        color: rgba(0, 150, 255, 0.85);
    }

.isometric-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 576px) {
    .isometric-dark-cards {
        gap: 2rem;
    }

    .isometric-card {
        max-width: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .isometric-card {
        transform: none;
        transition: none;
    }

        .isometric-card:hover {
            transform: none;
        }
}

/* =================== LMS ACCESS & AUTHENTICATION SECTION =================== */
.section-lms-gateway {
    position: relative;
    padding: clamp(4rem, 10vw, 6rem) 0;
    background: var(--cm-bg-primary);
    border-top: 1px solid var(--cm-border-dark);
}

.lms-gateway-card {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: var(--cm-radius-xl);
    background: var(--cm-bg-card);
    border: 1px solid var(--cm-border-dark);
    text-align: center;
    box-shadow: var(--cm-shadow-lg);
}

    .lms-gateway-card h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .lms-gateway-card .section-subtitle {
        margin-bottom: 1.5rem;
    }

.lms-gateway-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-lms {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--cm-radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform var(--cm-transition-fast), box-shadow var(--cm-transition-fast);
}

.btn-lms-login {
    background: transparent;
    color: var(--cm-blue-primary);
    border: 1px solid var(--cm-border-blue);
}

    .btn-lms-login:hover {
        box-shadow: 0 0 24px var(--cm-blue-glow);
        transform: translateY(-2px);
        color: var(--cm-blue-light);
    }

.btn-lms-register {
    background: linear-gradient(135deg, var(--cm-blue-primary) 0%, var(--cm-blue-dark) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.35);
}

    .btn-lms-register:hover {
        box-shadow: 0 8px 32px rgba(0, 150, 255, 0.45);
        transform: translateY(-2px);
        color: #fff;
    }

/* =================== TRUST, LEGACY & AUTHORITY SECTION =================== */
.section-trust-legacy {
    position: relative;
    padding: clamp(4rem, 10vw, 6rem) 0;
    background: var(--cm-bg-secondary);
    overflow: hidden;
}

.trust-legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-stat {
    padding: 1rem;
}

    .trust-stat .stat-value {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
        font-weight: 800;
        line-height: 1;
        color: var(--cm-text-primary);
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, #fff 0%, var(--cm-blue-light) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .trust-stat .stat-label {
        font-size: 0.875rem;
        color: var(--cm-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .trust-stat .stat-sublabel {
        font-size: 0.75rem;
        color: var(--cm-text-dim);
        margin-top: 0.25rem;
    }

    /* Animated counter (JS will update) */
    .trust-stat .stat-value[data-count] {
        display: inline-block;
    }

/* =================== STATS SECTION =================== */
.stats-section {
    background: var(--cm-bg-secondary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--cm-border-dark);
    border-bottom: 1px solid var(--cm-border-dark);
}

    .stats-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 50%, var(--cm-blue-subtle) 0%, transparent 50%);
    }

.stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    border-radius: var(--cm-radius-xl);
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

    .stat-item:hover {
        background: linear-gradient(90deg, rgba(0, 150, 255, 0.18) 0%, rgba(0, 150, 255, 0.08) 40%, rgba(0, 0, 0, 0.6) 100%);
        border-color: rgba(0, 150, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 150, 255, 0.08);
        transform: translateY(-2px);
    }

        .stat-item:hover .stat-number {
            color: #ffffff;
        }

        .stat-item:hover .stat-label {
            color: rgba(255, 255, 255, 0.85);
        }

        .stat-item:hover .stat-icon {
            background: rgba(0, 150, 255, 0.25);
            border-color: rgba(0, 150, 255, 0.4);
            box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
        }

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--cm-blue-subtle);
    border-radius: var(--cm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    color: var(--cm-blue-primary);
    border: 1px solid var(--cm-border-blue);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.stat-number {
    font-family: var(--cm-font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--cm-text-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--cm-text-muted);
    font-weight: 500;
}

/* =================== TESTIMONIALS (restored: blockquote style, no cards, mobile-first) =================== */
.testimonial-quotes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .testimonial-quotes {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .testimonial-quotes {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .testimonial-block-featured {
        grid-column: 1;
        grid-row: 1 / -1;
    }
}

/* Mobile – keep radial layout but scale and refine */
@media (max-width: 767.98px) {
    .connected-hub {
        position: relative;
        max-width: 360px;
        margin: 0 auto 2rem;
        transform: scale(0.8);
        transform-origin: center top;
    }

    .connected-center-pulse-1,
    .connected-center-pulse-2,
    .connected-center-pulse-3 {
        width: 60px;
        height: 60px;
    }

    .connected-center-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }

    .connected-node {
        max-width: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Mobile: ensure hub connects visually to the icon first */
    .connected-node-top,
    .connected-node-right {
        /* text on the outer side, icon closer to the hub */
        flex-direction: column-reverse;
    }

    .connected-node-label {
        font-size: 0.85rem;
    }

    .connected-node-desc {
        font-size: 0.78rem;
    }
}

.testimonial-block {
    margin: 0;
    padding: 1.25rem 0;
    border: none;
    border-left: 3px solid rgba(0, 150, 255, 0.4);
    padding-left: 1.25rem;
    background: transparent;
    transition: border-color 0.25s ease;
}

    .testimonial-block:hover {
        border-left-color: var(--cm-blue-primary);
    }

.testimonial-quote-text {
    font-size: clamp(0.9375rem, 2vw, 1rem);
    color: var(--cm-text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 1rem;
}

.testimonial-block-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.testimonial-block-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cm-blue-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.testimonial-block-author {
    font-style: normal;
    font-weight: 600;
    color: var(--cm-text-primary);
    font-size: 0.9375rem;
}

.testimonial-block-role {
    font-weight: 400;
    color: var(--cm-text-muted);
    font-size: 0.8125rem;
}

.testimonial-block-featured .testimonial-quote-text {
    font-size: clamp(1rem, 2.2vw, 1.0625rem);
}

.testimonial-stars {
    color: rgba(255, 193, 7, 0.95);
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
}

/* Legacy card classes kept for any other pages; section uses block style above */
.testimonial-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    height: auto;
}

    .testimonial-card:hover {
        border-color: transparent;
        transform: none;
    }

.testimonial-quote {
    font-size: 1rem;
    color: var(--cm-text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cm-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.testimonial-name {
    font-weight: 700;
    color: var(--cm-text-primary);
    font-size: 1rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--cm-text-muted);
}

/* =================== TESTIMONIALS SECTION (Refined, mobile-first, gradient hover) =================== */
.section-testimonials {
    background: var(--cm-bg-secondary);
    border-top: 1px solid var(--cm-border-dark);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

    .section-testimonials .container {
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
    }

.testimonials-header {
    text-align: center;
}

    .testimonials-header .section-subtitle {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

.testimonial-stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.testimonial-stat-number {
    font-family: var(--cm-font-heading);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.testimonial-stat-label {
    font-size: clamp(0.75rem, 2vw, 0.8125rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Featured testimonial uses .testimonial-block-featured (blockquote style) */
.testimonial-stars {
    color: rgba(255, 193, 7, 0.95);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin-bottom: 0.875rem;
    letter-spacing: 0.08em;
}

/* Blockquote testimonials – no cards */

.btn-more-testimonials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--cm-radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    background: transparent;
    border: 1px solid rgba(0, 150, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
    transition: background var(--cm-transition-gradient), border-color var(--cm-transition-gradient), box-shadow var(--cm-transition-gradient), transform var(--cm-transition-gradient);
}

    .btn-more-testimonials:hover {
        background: var(--cm-gradient-hover-strong);
        border-color: rgba(0, 150, 255, 0.4);
        color: #ffffff;
        box-shadow: 0 8px 28px rgba(0, 150, 255, 0.15);
        transform: translateY(-2px);
    }

/* =================== FAQ SECTION (Refined, gradient hover, mobile-first) =================== */
.section-faq {
    background: var(--cm-bg-primary);
    border-top: 1px solid var(--cm-border-dark);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

    .section-faq .container {
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
    }

.accordion-faq-cm .accordion-item {
    background: var(--cm-bg-card);
    border: 1px solid var(--cm-border-dark);
    border-radius: var(--cm-radius-md) !important;
    margin-bottom: 0.625rem;
    overflow: hidden;
    transition: background var(--cm-transition-gradient), border-color var(--cm-transition-gradient), box-shadow var(--cm-transition-gradient);
}

    .accordion-faq-cm .accordion-item:hover {
        background: var(--cm-gradient-hover);
        border-color: rgba(0, 150, 255, 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .accordion-faq-cm .accordion-item:has(.accordion-button:not(.collapsed)) {
        background: var(--cm-gradient-hover);
        border-color: rgba(0, 150, 255, 0.25);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    }

.accordion-faq-cm .accordion-button {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: clamp(0.9375rem, 2vw, 1rem);
    padding: clamp(0.875rem, 3vw, 1rem) clamp(1rem, 4vw, 1.25rem);
    border: none !important;
    box-shadow: none !important;
    transition: color var(--cm-transition-gradient);
}

    .accordion-faq-cm .accordion-button::after {
        filter: brightness(0) invert(1);
        opacity: 0.8;
        transition: transform var(--cm-transition-gradient);
    }

    .accordion-faq-cm .accordion-button:not(.collapsed) {
        color: var(--cm-blue-primary) !important;
    }

.accordion-faq-cm .accordion-body {
    background: rgba(0, 0, 0, 0.2);
    color: var(--cm-text-secondary);
    padding: 0.25rem 1.25rem 1.25rem;
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    line-height: 1.7;
}

    .accordion-faq-cm .accordion-body a {
        color: var(--cm-blue-primary);
        text-decoration: none;
    }

        .accordion-faq-cm .accordion-body a:hover {
            text-decoration: underline;
        }

/* =================== SECURE PAYMENTS & SUPPORT (Refined, gradient hover, mobile-first) =================== */
.section-payment-support {
    background: var(--cm-bg-secondary);
    border-top: 1px solid var(--cm-border-dark);
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

    .section-payment-support .container {
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
    }

    .section-payment-support::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 8px);
        pointer-events: none;
    }

.payment-support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.5rem);
    align-items: center;
}

@media (min-width: 768px) {
    .payment-support-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.payment-support-content {
    text-align: center;
}

@media (min-width: 768px) {
    .payment-support-content {
        text-align: left;
    }
}

.payment-support-content .section-title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
}

.payment-support-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1rem);
    color: var(--cm-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 100%;
}

@media (min-width: 768px) {
    .payment-support-subtitle {
        max-width: 420px;
    }
}

.payment-support-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

    .payment-support-list li {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: var(--cm-text-secondary);
        font-size: clamp(0.875rem, 2vw, 0.9375rem);
        margin-bottom: 0.5rem;
    }

@media (min-width: 768px) {
    .payment-support-list li {
        justify-content: flex-start;
    }
}

.payment-support-list li i {
    color: var(--cm-blue-primary);
    flex-shrink: 0;
}

.btn-support-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    transition: background var(--cm-transition-gradient), border-color var(--cm-transition-gradient), box-shadow var(--cm-transition-gradient), transform var(--cm-transition-gradient);
}

    .btn-support-cta:hover {
        background: var(--cm-gradient-hover-strong) !important;
        border-color: rgba(0, 150, 255, 0.4) !important;
        box-shadow: 0 6px 24px rgba(0, 150, 255, 0.12);
        transform: translateY(-2px);
    }

.payment-support-logos {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1rem);
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .payment-support-logos {
        justify-content: flex-end;
    }
}

/* Payment gateway cluster – two logos only (PayPal & CC Avenue), reference-style layout */
.payment-gateway-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .payment-gateway-cluster {
        justify-content: flex-end;
        gap: 1.5rem;
    }

        .payment-gateway-cluster .payment-logo-item:first-child {
            transform: translateY(-8px);
        }

        .payment-gateway-cluster .payment-logo-item:last-child {
            transform: translateY(8px);
        }

        .payment-gateway-cluster .payment-logo-item:hover:first-child {
            transform: translateY(-12px);
        }

        .payment-gateway-cluster .payment-logo-item:hover:last-child {
            transform: translateY(12px);
        }
}

.payment-gateway-cluster .payment-logo-item {
    width: 100px;
    height: 100px;
    padding: 0.5rem;
    font-size: 0;
    letter-spacing: 0.04em;
    box-sizing: border-box;
}

    .payment-gateway-cluster .payment-logo-item i {
        font-size: 1.5rem;
    }

/* Official logo containers: perfect circles, crisp border */
.payment-logo-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    padding: 0.5rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Official PayPal / CC Avenue logo images */
.payment-logo-img {
    display: block;
    width: auto;
    height: 44px;
    max-width: 80%;
    max-height: 52px;
    object-fit: contain;
    object-position: center;
}

.payment-logo-img-wide {
    height: 28px;
    max-height: 32px;
    max-width: 90%;
}

/* CC Avenue: official logo in bordered rounded rectangle */
.payment-logo-item-wide {
    width: 120px;
    height: 72px;
    min-width: 120px;
    min-height: 72px;
    border-radius: 12px;
}

.payment-gateway-cluster .payment-logo-item-wide {
    width: 120px;
    height: 72px;
}

/* Bordered container for CC Avenue (rectangle with clear border) */
.payment-logo-bordered,
.payment-logo-item.payment-logo-bordered {
    border: 2px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
}

    .payment-logo-bordered:hover,
    .payment-logo-item.payment-logo-bordered:hover {
        border-color: rgba(0, 150, 255, 0.4) !important;
    }

.payment-logo-name {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
}

.payment-logo-item i {
    font-size: 1.375rem;
    color: var(--cm-blue-primary);
    transition: color 0.3s ease;
}

.payment-logo-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 150, 255, 0.35);
    box-shadow: 0 6px 24px rgba(0, 150, 255, 0.12);
    transform: translateY(-3px);
}

    .payment-logo-item:hover i {
        color: rgba(100, 220, 255, 0.95);
    }

/* Circular payment logos: no background by default, gradient border; blue/black gradient bg on hover only */
.payment-logo-circle-gradient {
    border: 1px solid #04213b !important;
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.3s ease;
}

    .payment-logo-circle-gradient:hover {
        background: linear-gradient(135deg, #0096FF 0%, #0066aa 30%, #0a0a0a 70%, #000000 100%) padding-box, linear-gradient(135deg, #0096FF, #6366f1, #0096FF) border-box !important;
        background-origin: padding-box, border-box;
        background-clip: padding-box, border-box;
        box-shadow: 0 8px 28px rgba(0, 150, 255, 0.25), 0 0 0 1px rgba(0, 150, 255, 0.2);
        transform: translateY(-3px);
    }

/* Contact page: official payment logos (smaller) */
.contact-payment-logos {
    margin-top: 0.5rem;
}

.contact-payment-logo {
    height: 36px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.25s ease;
}

    .contact-payment-logo:hover {
        opacity: 1;
    }

.contact-payment-logo-wide {
    height: 24px;
    max-height: 28px;
    max-width: 100px;
}

/* CC Avenue on Contact page: bordered rectangle around logo */
.contact-payment-logo-bordered {
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    display: inline-block;
}

/* =================== GET IN TOUCH + CONTACT FORM (two columns: contact + payment subsection | form) =================== */
.section-get-in-touch {
    background: var(--cm-bg-secondary);
    border-top: 1px solid var(--cm-border-dark);
    padding: clamp(3rem, 7vw, 4.5rem) 0;
}

    .section-get-in-touch .section-title {
        font-size: clamp(1.35rem, 4vw, 1.75rem);
        margin-bottom: 0.5rem;
    }

.get-in-touch-desc {
    font-size: clamp(0.9375rem, 2vw, 1rem);
    color: var(--cm-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 420px;
}

/* Why reach us: now inside payment subsection (see .get-in-touch-why-reach-us below) */
.get-in-touch-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 1.5rem;
}

@media (min-width: 576px) {
    .get-in-touch-features {
        grid-template-columns: 1fr 1fr;
    }
}

.get-in-touch-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--cm-text-secondary);
    margin-bottom: 0;
}

    .get-in-touch-features li i {
        color: var(--cm-blue-primary);
        flex-shrink: 0;
    }

/* Column 1 wrapper: contact details + payment subsection in one column */
.get-in-touch-col1 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

    /* Get in touch pill badge: content width only, not full width */
    .get-in-touch-col1 .pill-badge {
        align-self: flex-start;
        width: auto;
        max-width: 100%;
    }

.get-in-touch-contact-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cm-blue-primary);
    margin-bottom: 0.5rem;
}

/* Contact us: email and phone placed side-by-side (meaningful grouping) */
.get-in-touch-contact {
    margin-bottom: 0;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--cm-border-dark);
}

.get-in-touch-contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .get-in-touch-contact-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}

.get-in-touch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cm-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

    .get-in-touch-link:hover {
        color: var(--cm-blue-primary);
    }

    .get-in-touch-link i {
        color: var(--cm-blue-primary);
        flex-shrink: 0;
    }

.get-in-touch-form-card {
    background: var(--cm-bg-card);
    border: 1px solid var(--cm-border-dark);
    border-radius: var(--cm-radius-lg);
    padding: clamp(1.75rem, 4vw, 2.25rem);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

    .get-in-touch-form-card:hover {
        border-color: rgba(0, 150, 255, 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    }

.get-in-touch-form-intro {
    font-size: 0.9375rem;
    color: var(--cm-text-muted);
    margin-bottom: 1.5rem;
}

/* Secure payments: distinct sub-section card – blue gradient shadow & scale always visible (aesthetic) */
.get-in-touch-payment-subsection {
    margin-top: 1.75rem;
    padding: 1.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 150, 255, 0.25);
    border-left: 3px solid var(--cm-blue-primary);
    border-radius: var(--cm-radius-md);
    box-shadow: 0 0 0 1px rgba(0, 150, 255, 0.2), 0 8px 32px rgba(0, 150, 255, 0.2), 0 0 50px rgba(0, 150, 255, 0.25), 0 0 90px rgba(0, 150, 255, 0.15), 0 0 120px rgba(99, 102, 241, 0.1);
    transform: scale(1.03);
    transform-origin: center center;
}

    .get-in-touch-payment-subsection .get-in-touch-payment-label {
        font-size: 0.8125rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--cm-blue-primary);
        margin-bottom: 1rem;
    }

/* Two columns: one side Why reach us + list, other side payment logos in circles */
.get-in-touch-payment-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .get-in-touch-payment-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}

/* Why reach us block – left side */
.get-in-touch-payment-subsection .get-in-touch-why-reach-us {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.get-in-touch-why-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.get-in-touch-features-inside li {
    font-size: 0.875rem;
}

.get-in-touch-features-inside {
    gap: 0.35rem 1.25rem;
}

/* Payment logos – right side, circles only (no text label for CC Avenue) */
.get-in-touch-payment-subsection .get-in-touch-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.payment-logo-no-label .payment-logo-name {
    display: none;
}
/* CC Avenue logo: same circle size as PayPal, larger image so it fills the circle */
.get-in-touch-logos .payment-logo-no-label .payment-logo-img {
    height: 52px;
    max-height: 56px;
    max-width: 88%;
}

.form-label-cm {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.form-input-cm,
.form-textarea-cm,
.form-select-cm {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--cm-radius-sm);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-select-cm {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230096FF'%3e%3cpath d='M8 11L3 6h10l-5 5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
}

    .form-select-cm option {
        background: #1a1a1a;
        color: #ffffff;
    }

.form-input-cm::placeholder,
.form-textarea-cm::placeholder {
    color: var(--cm-text-muted);
}

.form-input-cm:focus,
.form-textarea-cm:focus,
.form-select-cm:focus {
    outline: none;
    border-color: rgba(0, 150, 255, 0.35);
    background: rgba(0, 0, 0, 0.45);
}

.form-textarea-cm {
    min-height: 100px;
    resize: vertical;
}

.btn-get-in-touch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: max-content;
    min-width: 0;
    min-height: 38px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(0, 150, 255, 0.9) 0%, rgba(0, 120, 200, 0.85) 100%);
    border: none;
    border-radius: var(--cm-radius-sm);
    text-decoration: none;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}

/* Keep Get In Touch button from stretching full width */
.get-in-touch-form-card .row .col-12:last-child {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

    .get-in-touch-form-card .row .col-12:last-child .btn-get-in-touch {
        flex-shrink: 0;
    }

.btn-get-in-touch:hover {
    background: linear-gradient(90deg, rgba(0, 150, 255, 1) 0%, rgba(0, 120, 200, 0.95) 100%);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 150, 255, 0.3);
    transform: translateY(-2px);
}

/* =================== FOOTER =================== */
.footer-section {
    position: relative;
    background: var(--cm-bg-primary);
    color: white;
    padding-top: 5rem;
    border-top: 1px solid var(--cm-border-dark);
    overflow: hidden;
}

/* Watermark "CLINIMINDS" – light white-to-blue gradient, low opacity; hover = smooth brightness only */
.footer-watermark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 18vw, 12rem);
    line-height: 0.85;
    letter-spacing: 0.10em;
    word-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(150, 210, 255, 0.1) 50%, rgba(0, 150, 255, 0.08) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
    overflow: visible;
    transition: filter 0.4s ease;
}

.footer-section:hover .footer-watermark {
    filter: brightness(1.35);
}

.footer-section .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-family: var(--cm-font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--cm-text-primary);
}

    .footer-brand span {
        color: var(--cm-blue-primary);
    }

.footer-description {
    color: var(--cm-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--cm-text-primary);
}

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

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

    .footer-links a {
        color: var(--cm-text-muted);
        text-decoration: none;
        font-size: 0.9375rem;
        transition: var(--cm-transition-fast);
    }

        .footer-links a:hover {
            color: var(--cm-blue-primary);
            padding-left: 0.5rem;
        }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--cm-text-muted);
    font-size: 0.9375rem;
}

    .footer-contact-item i {
        color: var(--cm-blue-primary);
        margin-top: 0.25rem;
    }

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        background: var(--cm-bg-card);
        border-radius: var(--cm-radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--cm-text-secondary);
        transition: var(--cm-transition-normal);
        border: 1px solid var(--cm-border-dark);
    }

        .footer-social a:hover {
            background: var(--cm-blue-primary);
            color: white;
            transform: translateY(-3px);
            box-shadow: var(--cm-shadow-glow);
        }

.footer-contact-item a {
    color: var(--cm-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-contact-item a:hover {
        color: var(--cm-blue-primary);
    }

.footer-bottom {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--cm-border-dark);
    text-align: center;
    color: var(--cm-text-dim);
    font-size: 0.875rem;
}

.footer-bottom-link {
    color: var(--cm-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-bottom-link:hover {
        color: var(--cm-blue-primary);
    }

/* =================== PAGE HEADERS =================== */
.page-header {
    background: var(--cm-bg-secondary);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 0%, var(--cm-blue-subtle) 0%, transparent 50%);
    }

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--cm-text-muted);
    position: relative;
    z-index: 1;
}

    .page-breadcrumb a {
        color: var(--cm-text-secondary);
        text-decoration: none;
        transition: var(--cm-transition-fast);
    }

        .page-breadcrumb a:hover {
            color: var(--cm-blue-primary);
        }

/* =================== SECTION SPACING =================== */
.section-padding {
    padding: 6rem 0;
    background: #000000;
    position: relative;
    z-index: 1;
}

.section-padding-sm {
    padding: 4rem 0;
}

.section-padding-lg {
    padding: 8rem 0;
}

.bg-darker {
    background: #0a0a0a !important;
}

/* Section titles visibility */
.section-title {
    color: #ffffff;
}

.section-subtitle {
    color: #b0b0b0;
}

.brand-label {
    color: #0096FF;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

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

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

.delay-4 {
    animation-delay: 0.4s;
}

/* =================== RESPONSIVE – FULLY MOBILE FRIENDLY =================== */

/* Tablet and below */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--cm-bg-card);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--cm-radius-md);
        border: 1px solid var(--cm-border-dark);
    }

    .nav-link-cm {
        padding: 0.75rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

        .nav-link-cm::after {
            display: none;
        }

        .nav-link-cm.dropdown-toggle::after {
            display: block;
        }

    .btn-nav-login, .btn-nav-register {
        min-height: 44px;
        padding: 0.6rem 1.25rem;
    }

    .btn-nav-login {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .navbar-toggler-cm {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
    }

    /* Mega menu – full width, scrollable, touch-friendly */
    .dropdown-menu-mega {
        position: static !important;
        transform: none !important;
        left: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: 65vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.5rem !important;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-item {
        padding: 0.875rem 1rem;
        min-height: 48px;
        white-space: normal;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

        .mega-menu-item span:first-of-type {
            white-space: normal;
            word-break: break-word;
        }

        .mega-menu-item .item-badge.coming-soon {
            margin-left: 0;
            margin-top: 0.25rem;
        }

    .mega-menu-header {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .mega-menu-title {
        font-size: 1.1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile – large phones and small tablets */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 5rem 0 3.5rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
    }

    .hero-description {
        font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-cm-primary, .btn-cm-secondary {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 0.75rem 1.25rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
    }

    .section-subtitle {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }

    /* Opportunity labels – wrap, smaller gap */
    .opportunity-labels {
        gap: 0.75rem 1rem;
        margin-top: 1.5rem;
        padding: 1rem 1rem;
    }

    .opportunity-label-item {
        padding: 0.3rem 0.6rem;
    }

    .opportunity-label, .opportunity-label-icon {
        font-size: 0.875rem;
    }

    /* Cards and grids */
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .opportunity-card, .course-card, .category-card, .testimonial-card {
        padding: 1.25rem;
    }

    .footer-section {
        padding-top: 3.5rem;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .footer-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-social a {
        min-width: 44px;
        min-height: 44px;
    }

    .page-header {
        padding: 5rem 0 2.5rem;
    }

    .testimonial-stats-row {
        gap: 1.5rem;
    }

    .testimonial-featured-card {
        padding: 1.25rem;
    }

    .section-testimonials .row.align-items-start {
        gap: 1.5rem;
    }

    .payment-support-content .section-title {
        font-size: 1.5rem;
    }

    /* Hero orbit – scale down on mobile */
    .orbit-container {
        width: 85% !important;
        max-width: 280px !important;
        right: 50% !important;
        transform: translate(50%, -50%) !important;
    }

    .hero-badge {
        font-size: 0.875rem;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 4.5rem 0 2.5rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.75rem;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }

    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .navbar-collapse {
        padding: 0.75rem;
    }

    .dropdown-menu-mega {
        padding: 0.75rem;
        max-height: 55vh;
    }

    .mega-menu-item {
        padding: 0.75rem;
    }

    .mega-menu-title {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .opportunity-labels {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .opportunity-label-sep {
        width: 60%;
        height: 1px;
        max-width: 120px;
    }

    .footer-section {
        padding-top: 2.5rem;
    }

    .footer-bottom {
        margin-top: 2.5rem;
        padding: 1.5rem 0.5rem;
        font-size: 0.8125rem;
    }

    .btn-cm-primary, .btn-cm-secondary {
        min-height: 44px;
        padding: 0.65rem 1rem;
    }

    .testimonial-stat-number {
        font-size: 1.75rem;
    }

    .payment-logo-item {
        width: 84px;
        height: 84px;
        min-width: 84px;
        min-height: 84px;
        padding: 0.4rem;
        font-size: 0.6rem;
    }

    .payment-logo-img {
        height: 36px;
        max-height: 44px;
    }

    .payment-logo-img-wide {
        height: 22px;
        max-height: 26px;
    }

    .payment-logo-item-wide {
        width: 100px;
        height: 58px;
        min-width: 100px;
        min-height: 58px;
    }

    .payment-logo-item i {
        font-size: 1.125rem;
    }

    .payment-gateway-cluster .payment-logo-item {
        width: 84px;
        height: 84px;
    }

    .payment-gateway-cluster .payment-logo-item-wide {
        width: 100px;
        height: 58px;
    }

    /* Hero orbit – hide on very small screens to prioritize content */
    .orbit-container {
        display: none !important;
    }

    .pill-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }
}

/* =================== ACCESSIBILITY =================== */
:focus-visible {
    outline: 3px solid var(--cm-blue-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =================== PRINT =================== */
@media print {
    .navbar-cliniminds, .footer-section {
        display: none;
    }

    body {
        color: black;
        background: white;
    }
}
