/* ==========================================================================
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1. CSS Variables & Color Palette
   2. Base Resets & Global Styles
   3. Site Header & Navigation
   4. Buttons (Primary, Secondary, Mentor, Apply, Black Pill, Outline)
   5. Hero Section
   6. Hero Image & Portrait Shape Styling
   7. Meet the Premium Mentor Section
   8. Main Program Section (3D Flip Cards & Interactive Elements)
   9. Featured Books Section & Slider
   10. Professional Call To Action (CTA) & Overlap Layouts
   11. Welcome Popup Modal
   12. Modal Dropdown Form
   13. Testimonials Section
   14. Comprehensive Mobile Responsiveness
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Color Palette
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --brand-navy: #000066;
    --brand-navy-dark: #000033;
    --brand-blue: #0099ff;
    --brand-blue-hover: #0077cc;
    --bg-main: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.98);
    --border-light: #e5e7eb;
    --text-navy: #000066;
    --text-primary: #111827;
    --text-slate: #4b5563;
    --text-muted: #94a3b8;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;

    /* Transitions */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s var(--ease-standard);
    --transition-normal: 0.3s var(--ease-standard);

    /* Elevation / Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 153, 255, 0.1), 0 2px 4px -1px rgba(0, 153, 255, 0.06);
    --shadow-md: 0 10px 25px rgba(0, 0, 102, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 102, 0.25);

    /* Z-Index Layers */
    --z-base: 1;
    --z-sticky: 1000;
    --z-modal: 9999;
}

/* --------------------------------------------------------------------------
   2. Base Resets & Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.site-main {
    min-height: calc(100vh - 80px);
}

/* Global Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(0, 0, 51, 0.96);
    box-shadow: 0 8px 30px rgba(0, 0, 51, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 153, 255, 0.28);
}

.header-topbar {
    background: var(--brand-blue);
    color: #ffffff;
}

.mobile-header-topbar {
    display: none;
}

.header-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 2rem;
    font-size: 0.75rem;
}

.header-topbar-description {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.header-topbar-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    text-align: right;
}

.header-topbar-contact a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.header-topbar-contact span {
    color: rgba(255, 255, 255, 0.9);
}

.header-menu>.header-topbar {
    width: 100%;
}

.header-menu .header-topbar-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    gap: 2rem;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.brand-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
}

.brand-logo img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-logo:hover {
    color: var(--brand-blue);
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.header-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    margin-left: auto;
    min-width: 0;
}

.header-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.site-nav a:hover {
    color: var(--brand-blue);
}

.brands-menu-item {
    position: relative;
}

.brands-menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.84);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    gap: 0.4rem;
    padding: 0;
    transition: color var(--transition-fast);
}

.brands-menu-toggle:hover,
.brands-menu-toggle[aria-expanded="true"] {
    color: var(--brand-blue);
}

.brands-menu-toggle:focus-visible {
    border-radius: 2px;
    outline: 2px solid #8fd6ff;
    outline-offset: 5px;
}

.brands-menu-chevron {
    height: 14px;
    transition: transform var(--transition-fast);
    width: 14px;
}

.brands-menu-toggle[aria-expanded="true"] .brands-menu-chevron {
    transform: rotate(180deg);
}

.site-nav .brands-submenu[hidden] {
    display: none;
}

.site-nav .brands-submenu {
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(0, 0, 51, 0.18);
    display: block;
    left: -1rem;
    min-width: 220px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: calc(100% + 0.8rem);
    z-index: calc(var(--z-sticky) + 1);
}

.site-nav .brands-submenu li {
    list-style: none;
    transition: background-color var(--transition-fast);
}

.site-nav .brands-submenu li + li {
    border-top: 1px solid #e8edf3;
}

.site-nav .brands-submenu li:hover {
    background: #f1f8fe;
}

.site-nav .brands-submenu li a {
    align-items: center;
    color: #24344b;
    display: flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.7rem;
    line-height: 1.4;
    min-height: 44px;
    padding: 0.65rem 1rem;
    text-decoration: none;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    white-space: nowrap;
}

.site-nav .brands-submenu li a::before {
    color: var(--brand-blue);
    content: '\2192';
    font-size: 0.85rem;
    line-height: 1;
}

.site-nav .brands-submenu li:hover a,
.site-nav .brands-submenu li a:focus-visible {
    color: var(--brand-navy-dark);
    padding-left: 1.15rem;
}

.site-nav .brands-submenu li a:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: -3px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.header-cta .btn-link,
.header-cta .btn-primary {
    min-height: 42px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.header-cta .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 153, 255, 0.7);
    color: #ffffff;
    background: transparent;
}

.header-cta .btn-link:hover {
    color: #ffffff;
    background: var(--brand-blue);
}

.header-cta .btn-primary {
    background: var(--brand-blue);
    box-shadow: 0 8px 18px rgba(0, 153, 255, 0.24);
}

.header-cta .btn-primary:hover {
    background: var(--brand-blue-hover);
    box-shadow: 0 10px 22px rgba(0, 153, 255, 0.34);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0.65rem;
    border: 1px solid rgba(0, 153, 255, 0.55);
    border-radius: var(--radius-sm);
    background: rgba(0, 153, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: color var(--transition-fast);
}

.btn-link:hover {
    color: var(--brand-blue);
}

.btn-primary {
    background-color: var(--brand-blue);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    box-shadow: 0 10px 15px -3px rgba(0, 153, 255, 0.2), 0 4px 6px -2px rgba(0, 153, 255, 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-navy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--text-navy);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.btn-secondary .arrow {
    transition: transform var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background-color: rgba(0, 153, 255, 0.02);
}

.btn-secondary:hover .arrow {
    transform: translateX(4px);
}

.btn-mentor {
    background-color: var(--brand-navy);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 102, 0.15);
    transition: all var(--transition-normal);
}

.btn-mentor:hover {
    background-color: var(--brand-blue);
    box-shadow: 0 6px 18px rgba(0, 153, 255, 0.25);
    transform: translateY(-2px);
}

.btn-mentor .arrow {
    transition: transform var(--transition-fast);
}

.btn-mentor:hover .arrow {
    transform: translateX(4px);
}

.btn-apply {
    display: inline-block;
    padding: 0.75rem 2.25rem;
    border: 1px solid #ffffff;
    border-radius: var(--radius-pill);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 20;
    cursor: pointer;
}

.btn-apply:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-black-pill {
    background-color: #111827;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-black-pill:hover {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.btn-black-pill .arrow {
    transition: transform var(--transition-fast);
}

.btn-black-pill:hover .arrow {
    transform: translateX(4px);
}

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    color: var(--text-navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background: #ffffff;
    transition: all var(--transition-normal);
}

.btn-outline-pill:hover {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: #ffffff;
}

.btn-outline-pill .arrow {
    transition: transform var(--transition-fast);
}

.btn-outline-pill:hover .arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 7rem 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.hero-content {
    flex: 1;
    max-width: 620px;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 153, 255, 0.2);
    color: var(--brand-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand-blue);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--brand-blue);
}

.hero-content h1 {
    font-size: 3.75rem;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--text-navy);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-content .highlight {
    color: var(--brand-blue);
}

.hero-content .description {
    font-size: 1.25rem;
    color: var(--text-slate);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

/* --------------------------------------------------------------------------
   6. Hero Image & Portrait Shape Styling
   -------------------------------------------------------------------------- */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 480px;
}

.hero-image-shape {
    position: absolute;
    width: 85%;
    height: 90%;
    background: linear-gradient(145deg, var(--brand-navy), var(--brand-navy-dark));
    border-radius: 24px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
    transform: translateY(-8%);
}

/* --------------------------------------------------------------------------
   7. Meet the Premium Mentor Section
   -------------------------------------------------------------------------- */
.mentor-section {
    background: #eef3f8;
    overflow: hidden;
    padding: 5rem 0;
}

.mentor-container {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 0;
    max-width: 1180px;
}

.mentor-content {
    align-self: stretch;
    animation: mentor-panel-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 5vw, 5rem);
    position: relative;
    z-index: 2;
}

.mentor-badge {
    animation: mentor-copy-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
    color: var(--brand-blue-hover);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.mentor-badge::before {
    background: var(--brand-blue);
    content: '';
    height: 2px;
    margin: 0.55em 0.75rem 0 0;
    width: 2.25rem;
}

.mentor-content::after {
    border-right: 1px solid rgba(0, 153, 255, 0.35);
    border-top: 1px solid rgba(0, 153, 255, 0.35);
    content: '';
    height: 5rem;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 5rem;
}

.mentor-content p,
.mentor-content .btn-mentor {
    animation: mentor-copy-reveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mentor-content p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.mentor-content p:nth-of-type(1) { animation-delay: 0.3s; }
.mentor-content p:nth-of-type(2) { animation-delay: 0.42s; }
.mentor-content .btn-mentor { animation-delay: 0.54s; }

.mentor-image-wrapper {
    align-items: flex-end;
    background: linear-gradient(145deg, var(--brand-navy), var(--brand-navy-dark));
    display: flex;
    justify-content: center;
    min-height: 560px;
    overflow: hidden;
    position: relative;
}

.mentor-image-wrapper::before {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.22), transparent 48%);
    content: '';
    inset: 0;
    position: absolute;
}

.mentor-image {
    animation: mentor-portrait-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.28));
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    transform-origin: bottom center;
    z-index: 1;
}

@keyframes mentor-panel-reveal {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes mentor-copy-reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mentor-portrait-reveal {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .mentor-content,
    .mentor-badge,
    .mentor-content p,
    .mentor-content .btn-mentor,
    .mentor-image {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   8. Work With Niyi Adesanya Section
   -------------------------------------------------------------------------- */
.work-with-section {
    background:
        radial-gradient(circle at top left, rgba(0, 153, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #04080d 0%, #0b1018 48%, #070c13 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    padding: 6rem 0;
    position: relative;
}

.work-with-section::before {
    background: linear-gradient(transparent 0%, rgba(255, 255, 255, 0.03) 100%);
    content: '';
    inset: 0;
    position: absolute;
    pointer-events: none;
}

.work-with-layout {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 3vw, 3rem);
    position: relative;
    z-index: 1;
}

.work-with-visual {
    background: #10161f;
    min-height: 640px;
    overflow: hidden;
    position: relative;
}

.work-with-visual::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.42));
    content: '';
    inset: 0;
    position: absolute;
    z-index: 1;
}

.work-with-image {
    display: block;
    filter: grayscale(100%) contrast(1.18);
    height: 100%;
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

.work-with-content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-with-content h2 {
    color: #fff;
    font-size: clamp(2.2rem, 3vw, 3.25rem);
    line-height: 1.08;
    margin: 0 0 1rem;
    letter-spacing: -0.04em;
}

.work-with-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.12rem;
    line-height: 1.7;
    margin: 0 0 2.2rem;
    max-width: 700px;
}

.work-with-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.work-with-card {
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
    color: #091120;
    min-height: 240px;
    padding: 1.8rem 1.5rem 1.4rem;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-with-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(0, 153, 255, 0.12);
}

.work-with-icon {
    align-items: center;
    border: 1.5px solid rgba(0, 153, 255, 0.28);
    border-radius: 50%;
    color: #d99b0b;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    margin-bottom: 1.1rem;
    width: 52px;
}

.work-with-icon svg {
    height: 24px;
    width: 24px;
}

.work-with-card h3 {
    color: #071421;
    font-size: clamp(1.7rem, 2vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 0.9rem;
    letter-spacing: -0.03em;
}

.work-with-card p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .work-with-layout {
        grid-template-columns: 1fr;
    }

    .work-with-visual {
        min-height: 440px;
    }
}

@media (max-width: 640px) {
    .work-with-section {
        padding: 4rem 0;
    }

    .work-with-grid {
        grid-template-columns: 1fr;
    }

    .work-with-card {
        min-height: 200px;
    }
}

/* --------------------------------------------------------------------------
   9. Main Program Section (3D Flip Cards)
   -------------------------------------------------------------------------- */
.programs-section {
    background: linear-gradient(180deg, #f6f9fc 0%, #eef4fb 100%);
    padding: 6.5rem 0;
    position: relative;
}

.programs-section::before {
    background: radial-gradient(circle at top, rgba(0, 153, 255, 0.14), transparent 48%);
    content: '';
    inset: 0;
    position: absolute;
    pointer-events: none;
}

.section-title {
    margin-bottom: 3.5rem;
    position: relative;
    text-align: center;
    z-index: 1;
}

.section-title h2 {
    color: var(--text-primary);
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.section-title .italic-text {
    color: var(--brand-blue);
    display: inline-block;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 0.15rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    position: relative;
    z-index: 1;
}

#program-carousel .programs-slider-wrapper {
    padding: 0.5rem 0 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

#program-carousel .programs-slider-container {
    overflow: hidden;
    padding: 10px 0 6px;
}

#program-carousel .programs-slider-container:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 4px;
}

#program-carousel .programs-grid {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-card {
    height: 520px;
    perspective: 1100px;
    -webkit-perspective: 1100px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

#program-carousel .program-card {
    flex: 0 0 calc(33.333% - 19px);
}

#program-carousel .program-nav-btn {
    display: flex;
}

@media (max-width: 1024px) {
    #program-carousel .program-card {
        flex-basis: calc(50% - 14px);
    }
}

@media (max-width: 768px) {
    #program-carousel .program-card {
        flex-basis: 100%;
    }

    #program-carousel .program-nav-btn {
        height: 40px;
        width: 40px;
    }

    #program-carousel .program-nav-btn.prev-btn {
        left: 8px;
    }

    #program-carousel .program-nav-btn.next-btn {
        right: 8px;
    }
}

.program-card:hover {
    transform: translateY(-8px);
}

.program-card-inner {
    border-radius: 26px;
    height: 100%;
    position: relative;
    text-align: left;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.program-card:hover .program-card-inner,
.program-card:focus-within .program-card-inner {
    transform: rotateY(180deg);
}

.program-card-front,
.program-card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 26px;
    height: 100%;
    inset: 0;
    overflow: hidden;
    position: absolute;
    transform: translateZ(0);
    width: 100%;
}

.program-card-front {
    align-items: flex-end;
    background: #0c1725;
    box-shadow: 0 18px 40px rgba(10, 22, 38, 0.13);
    cursor: pointer;
    display: flex;
}

.program-card-front::before {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.22), rgba(12, 23, 37, 0.12));
    content: '';
    inset: 0;
    position: absolute;
    z-index: 1;
}

.program-card-bg {
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    width: 100%;
    transform: scale(1.04);
    transition: transform 0.7s ease;
}

.program-card:hover .program-card-bg {
    transform: scale(1.1);
}

.program-card-overlay {
    background: linear-gradient(180deg, rgba(7, 18, 31, 0.25) 0%, rgba(7, 18, 31, 0.78) 68%, rgba(7, 18, 31, 0.92) 100%);
    inset: 0;
    position: absolute;
    z-index: 2;
}

.program-card-content {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 2rem 1.75rem 1.8rem;
    position: relative;
    width: 100%;
    z-index: 3;
}

.program-card-meta {
    color: rgba(255, 255, 255, 0.75);
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.program-card-title {
    color: #ffffff;
    font-size: clamp(1.7rem, 1.8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0;
}

.program-arrow-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    color: #091426;
    display: flex;
    flex-shrink: 0;
    height: 54px;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    width: 54px;
}

.program-card:hover .program-arrow-btn,
.program-card:focus-within .program-arrow-btn {
    background-color: var(--brand-blue);
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
}

.program-card-back {
    align-items: center;
    background: linear-gradient(135deg, rgba(5, 12, 22, 0.98), rgba(0, 32, 64, 0.94));
    color: #ffffff;
    display: flex;
    justify-content: center;
    padding: 2.2rem 1.8rem;
    transform: rotateY(180deg);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.program-back-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 12;
}

.program-back-tag {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    text-transform: uppercase;
}

.program-back-title {
    color: #ffffff;
    font-size: clamp(1.5rem, 1.8vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 8px;
}

.program-back-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   9. Featured Books Section & Slider
   -------------------------------------------------------------------------- */
.featured-books-section,
.featured-books-slider {
    background: linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%);
    border-top: 1px solid rgba(0, 0, 102, 0.06);
    padding: 6.5rem 0;
    position: relative;
}

.featured-books-slider::before {
    background: radial-gradient(circle at top left, rgba(0, 153, 255, 0.12), transparent 36%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.books-header {
    align-items: end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.books-heading-copy {
    max-width: 670px;
}

.books-eyebrow {
    color: var(--brand-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.books-title {
    color: var(--text-navy);
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.books-title .italic-text {
    color: var(--brand-blue);
    display: inline-block;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.books-introduction {
    color: var(--text-slate);
    font-size: 1.06rem;
    line-height: 1.75;
    margin-top: 1.3rem;
    max-width: 560px;
}

.book-featured-card {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.book-image-wrapper {
    flex: 0 0 380px;
    max-width: 380px;
}

.book-cover-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 102, 0.15), 0 6px 16px rgba(0, 0, 102, 0.08);
}

.book-details-content {
    flex: 1;
}

.book-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.author-tag {
    display: block;
    font-size: 1.15rem;
    color: var(--text-slate);
    font-weight: 500;
    margin-top: 0.25rem;
}

.book-description {
    color: var(--text-slate);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.shifts-list {
    margin: 0 0 2rem 1.25rem;
    color: var(--text-slate);
    font-size: 1.05rem;
    line-height: 1.85;
}

.shifts-list li {
    margin-bottom: 0.5rem;
}

.shifts-list strong {
    color: var(--text-navy);
    font-weight: 700;
}

.book-action {
    margin-top: 2rem;
}

.books-slider-wrapper {
    padding: 0.5rem 0 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

.books-slider-container {
    overflow: hidden;
    padding: 10px 0 6px;
}

.books-slider-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-slide-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.96) 100%);
    border: 1px solid rgba(0, 0, 102, 0.06);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    display: flex;
    flex: 0 0 calc(33.333% - 19px);
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.book-slide-card:hover {
    border-color: rgba(0, 153, 255, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 102, 0.12);
    transform: translateY(-8px);
}

.book-cover {
    background: #eaf5ff;
    height: 330px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.book-cover::after {
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 51, 0.18));
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.book-cover img {
    height: 100%;
    object-fit: cover;
    position: relative;
    transition: transform 0.45s ease;
    width: 100%;
    z-index: 0;
}

.book-slide-card:hover .book-cover img {
    transform: scale(1.04);
}

.book-tag {
    background: linear-gradient(135deg, #0099ff 0%, #006dcc 100%);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 153, 255, 0.25);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    left: 18px;
    letter-spacing: 0.08em;
    padding: 7px 12px;
    position: absolute;
    text-transform: uppercase;
    top: 18px;
    z-index: 2;
}

.book-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.6rem 1.4rem 1.5rem;
}

.book-category {
    color: #0099ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.book-details h3 {
    color: #101827;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.book-details p {
    color: #4b5563;
    flex-grow: 1;
    font-size: 0.94rem;
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.book-nav-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(0, 0, 102, 0.1);
    color: #000066;
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    transition: all 0.25s ease;
    width: 48px;
    z-index: 10;
}

.book-nav-btn:hover {
    background: #000066;
    border-color: #000066;
    color: #ffffff;
    transform: translateY(-50%) scale(1.04);
}

.prev-btn {
    left: -18px;
}

.next-btn {
    right: -18px;
}

.books-dots {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin-top: 28px;
}

.books-dots .b-dot {
    background: rgba(0, 0, 102, 0.15);
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    transition: all 0.25s ease;
    width: 10px;
}

.books-dots .b-dot.active {
    background: #0099ff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 153, 255, 0.18);
    width: 28px;
}

/* --------------------------------------------------------------------------
   10. Call To Action (CTA) & Overlap Layout Support
   -------------------------------------------------------------------------- */
.cta-section,
.cta-overlap-section {
    padding: 7rem 0;
    background: #0099ff;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: var(--z-base);
}

.cta-overlap-section {
    padding: 4rem 0 7rem;
}

.cta-section::before,
.cta-overlap-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.cta-section::after,
.cta-overlap-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.25) 0%, rgba(0, 0, 102, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.cta-container,
.cta-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.03);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 4.5rem 4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.cta-container::before,
.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--brand-blue) 50%, transparent 100%);
    opacity: 0.8;
}

.cta-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 450px;
}

.cta-overlap-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 153, 255, 0.12);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #38bdf8;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 12px rgba(0, 153, 255, 0.2);
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.cta-title .highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.cta-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    margin-top: 0.75rem;
}

.cta-input-group {
    position: relative;
    flex: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cta-input {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 0.975rem;
    outline: none;
    transition: all var(--transition-normal);
}

.cta-input::placeholder {
    color: #64748b;
}

.cta-input:focus {
    background: rgba(15, 23, 42, 0.85);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.25), 0 0 20px rgba(0, 153, 255, 0.15);
}

.cta-form .btn-primary {
    background-color: var(--brand-navy-dark);
    padding: 0.95rem 2rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    font-size: 0.975rem;
    box-shadow: 0 4px 20px rgba(0, 153, 255, 0.35);
}

.cta-form .btn-primary:hover {
    background-color: var(--brand-navy);
    box-shadow: 0 6px 25px rgba(0, 153, 255, 0.5);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   About-style CTA
   -------------------------------------------------------------------------- */
.about-cta {
    background: var(--brand-navy);
    color: #ffffff;
    padding: 5rem 0;
}

.about-cta-inner {
    align-items: center;
    display: flex;
    gap: 3rem;
    justify-content: space-between;
}

.about-cta .about-eyebrow {
    color: #60bfff;
}

.about-cta h2 {
    color: #ffffff;
    max-width: 650px;
}

.about-cta-button {
    align-items: center;
    background: var(--brand-blue);
    border: 1px solid var(--brand-blue);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 24px rgba(0, 0, 51, 0.2);
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
    padding: 1rem 1.35rem;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.about-cta-button span {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
}

.about-cta-button:hover {
    background: var(--brand-blue-hover);
    box-shadow: 0 16px 28px rgba(0, 0, 51, 0.28);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .about-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

.cta-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.cta-avatars {
    display: flex;
    align-items: center;
}

.cta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #000022;
    margin-left: -10px;
    object-fit: cover;
}

.cta-avatar:first-child {
    margin-left: 0;
}

.cta-meta-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-meta-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Welcome Popup Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 50, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-standard);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: var(--bg-main);
    width: 90%;
    max-width: 750px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s var(--ease-standard);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-slate);
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--brand-blue);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    width: 100%;
}

.modal-image {
    flex: 1;
    background: linear-gradient(145deg, var(--brand-navy), var(--brand-navy-dark));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding-top: 3rem;
}

.modal-image img {
    width: 85%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
    transform: translateY(10px);
}

.modal-text {
    flex: 1;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h2 {
    color: var(--text-navy);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.modal-text p {
    color: var(--text-slate);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.modal-text .btn-primary {
    align-self: flex-start;
}

.upcoming-event-modal {
    max-height: 92vh;
    max-width: 900px;
    overflow-y: auto;
}

.upcoming-event-modal .modal-body {
    align-items: stretch;
    min-height: 460px;
}

.upcoming-event-modal .upcoming-event-image {
    align-items: center;
    background: #071b3b;
    flex: 0 0 48%;
    min-height: 460px;
    overflow: hidden;
    padding: 0;
}

.upcoming-event-modal .upcoming-event-image img {
    display: block;
    height: 100%;
    max-width: none;
    object-fit: contain;
    transform: none;
    width: 100%;
}

.upcoming-event-modal .upcoming-event-copy {
    align-items: flex-start;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.upcoming-event-eyebrow {
    color: var(--brand-blue-hover);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.upcoming-event-modal .upcoming-event-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.upcoming-event-modal .upcoming-event-copy p {
    margin-bottom: 1.5rem;
}

.upcoming-event-modal .upcoming-event-register {
    align-self: flex-start;
    display: inline-flex;
    gap: 0.6rem;
    justify-content: center;
    text-align: center;
}

.upcoming-event-more {
    color: var(--brand-navy);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   12. Modal Dropdown Form
   -------------------------------------------------------------------------- */
.email-dropdown-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-standard), opacity 0.4s var(--ease-standard), margin-top 0.4s var(--ease-standard);
}

.email-dropdown-container.open {
    max-height: 100px;
    opacity: 1;
    margin-top: 0.5rem;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.modal-email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.modal-email-input::placeholder {
    color: #9ca3af;
}

.modal-email-input:focus {
    background-color: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15);
}

/* --------------------------------------------------------------------------
   13. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-section {
    padding: 100px 0;
    background-color: #f8fafc;
    position: relative;
}

.testimonial-carousel-wrapper {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    margin-top: 2.5rem;
    position: relative;
}

.testimonial-carousel-viewport {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    flex: 0 0 calc(33.333% - 1rem);
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    padding: 2rem 1.7rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 102, 0.12);
    transform: translateY(-5px);
}

.testimonial-rating {
    color: #f59e0b;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-slate);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-author {
    align-items: center;
    border-top: 1px solid #edf2f7;
    display: flex;
    gap: 0.9rem;
    padding-top: 1.2rem;
}

.author-avatar {
    border-radius: 50%;
    flex-shrink: 0;
    height: 52px;
    overflow: hidden;
    width: 52px;
}

.author-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.author-meta h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px;
}

.author-meta p {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0;
}

.testimonial-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(0, 0, 102, 0.08);
    color: #000066;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.1rem;
    height: 48px;
    justify-content: center;
    transition: all 0.25s ease;
    width: 48px;
}

.testimonial-nav:hover {
    background: #000066;
    border-color: #000066;
    color: #ffffff;
    transform: scale(1.04);
}

.testimonial-dots {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.testimonial-dots .dot {
    background: rgba(0, 0, 102, 0.16);
    border-radius: 999px;
    cursor: pointer;
    height: 9px;
    transition: width 0.25s ease, background 0.25s ease;
    width: 9px;
}

.testimonial-dots .dot.active {
    background: #0099ff;
    width: 28px;
}

/* --------------------------------------------------------------------------
   14. Comprehensive Mobile Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-container,
    .mentor-container {
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-slide-card {
        flex: 0 0 calc(50% - 15px);
    }

    .prev-btn {
        left: -15px;
    }

    .next-btn {
        right: -15px;
    }
}

@media (max-width: 992px) {
    .site-header>.header-topbar {
        display: none;
    }

    .mobile-header-topbar {
        display: block;
    }

    .site-nav {
        display: block;
    }

    .header-inner {
        position: relative;
        min-height: 76px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        flex-shrink: 0;
    }

    .header-menu {
        align-items: stretch;
        background: var(--brand-navy-dark);
        border-right: 1px solid rgba(0, 153, 255, 0.42);
        box-shadow: 14px 0 40px rgba(0, 0, 51, 0.34);
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        height: 100vh;
        justify-content: flex-start;
        left: 0;
        max-width: 420px;
        opacity: 0;
        overflow-y: auto;
        padding: 1rem 1.25rem 2rem;
        pointer-events: none;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
        visibility: hidden;
        width: 70vw;
        z-index: calc(var(--z-sticky) + 2);
    }

    .header-menu.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        visibility: visible;
    }

    .header-actions-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .brands-menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .brands-menu-toggle {
        border-bottom: 0;
        display: flex;
        justify-content: space-between;
        padding: 0.85rem 0;
        text-align: left;
        width: 100%;
    }

    .brands-menu-toggle:focus-visible {
        outline-offset: -2px;
    }

    .site-nav .brands-submenu {
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0;
        box-shadow: none;
        margin: 0 0 0.75rem 0.35rem;
        min-width: 0;
        position: static;
    }

    .site-nav .brands-submenu li + li {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .site-nav .brands-submenu li:hover {
        background: rgba(0, 153, 255, 0.12);
    }

    .site-nav .brands-submenu li a {
        color: rgba(255, 255, 255, 0.78);
        min-height: 42px;
        padding: 0.6rem 0.9rem;
        white-space: normal;
    }

    .site-nav .brands-submenu li:hover a,
    .site-nav .brands-submenu li a:focus-visible {
        color: #ffffff;
        padding-left: 1.05rem;
    }

    .site-nav a {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.88);
        padding: 0.85rem 0;
    }

    .site-nav > ul > li:not(.brands-menu-item) > a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .site-nav a:hover {
        color: var(--brand-blue);
    }

    .header-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin-left: 0;
    }

    .header-cta .btn-link,
    .header-cta .btn-primary {
        width: 100%;
        text-align: center;
    }

    .header-cta .btn-link {
        border-color: rgba(0, 153, 255, 0.55);
    }

    .header-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .header-topbar-contact {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
        text-align: left;
    }

    .header-menu > .mobile-header-topbar {
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        margin: -1rem -1.25rem 0;
        padding: 1rem 1.25rem;
        width: calc(100% + 2.5rem);
    }

    .header-menu .header-topbar-description {
        color: var(--brand-blue);
    }

    .hero-section {
        padding: 5rem 0;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 4rem;
        padding-top: 1rem;
    }

    .mentor-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mentor-image-wrapper {
        min-height: 440px;
        order: -1;
    }

    .mentor-content {
        padding: 3rem 2rem;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image-shape {
        height: 85%;
    }

    .hero-image {
        transform: translateY(-5%);
        max-width: 90%;
    }

    .mentor-image-wrapper {
        width: 100%;
        max-width: 480px;
    }

    .book-featured-card {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .book-image-wrapper {
        max-width: 320px;
        flex: none;
    }

    .cta-container,
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 3.5rem 2rem;
    }

    .cta-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-form {
        justify-content: center;
    }

    .cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        display: none;
    }

    .modal-text {
        padding: 3rem 2rem;
        text-align: center;
    }

    .upcoming-event-modal .modal-body {
        flex-direction: column;
    }

    .upcoming-event-modal .upcoming-event-image {
        flex: 0 0 auto;
        min-height: 0;
        height: 210px;
    }

    .upcoming-event-modal .upcoming-event-copy {
        align-items: center;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .upcoming-event-modal .upcoming-event-register {
        align-self: stretch;
    }

    .modal-text .btn-primary {
        align-self: stretch;
    }

    .books-title {
        font-size: 2.5rem;
    }

    .book-slide-card {
        flex: 0 0 100%;
    }

    .book-nav-btn {
        display: none;
    }

    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }
}

@media (max-width: 640px) {
    .program-card {
        height: 460px;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .program-card-title {
        font-size: 1.5rem;
    }

    .books-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .btn-black-pill {
        width: 100%;
        justify-content: center;
    }

    .mentor-section,
    .featured-books-section,
    .featured-books-slider,
    .cta-section,
    .cta-overlap-section {
        padding: 4rem 0;
    }

    .email-form,
    .cta-form {
        flex-direction: column;
    }

    .email-form .btn-primary,
    .cta-form .btn-primary {
        width: 100%;
    }
}