/* --- Global Styles & Fonts --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed header */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.branded-font,
.foundation-name {
    animation-name: fadeInUp;
    animation-duration: 1.2s;
    animation-fill-mode: both;
}

.branded-font {
    animation-delay: 0.2s;
}

.foundation-name {
    animation-delay: 0.6s;
}

* {
    -webkit-tap-highlight-color: transparent;
    /* Remove blue highlight on mobile tap */
}

@font-face {
    font-family: 'Roxborough CF';
    src: url('fonts/RoxboroughCF.otf') format('opentype'),
        url('fonts/RoxboroughCF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Improve loading performance */
}

/* Professional Selection Color */
::selection {
    background: rgba(139, 158, 255, 0.3);
    color: #FFFFFF;
}

/* Custom Scrollbar for Desktop */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #070726;
}

::-webkit-scrollbar-thumb {
    background: #252545;
    border-radius: 5px;
    border: 2px solid #070726;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B9EFF;
}

body {
    margin: 0;
    padding: 0;
    /* Account for Notches on iPhones/Androids */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #070726;
    color: #C9CCFF;
    /* Robust Text Wrapping for all Devices */
    overflow-wrap: break-word;
    /* Essential for Android/iOS text fitting */
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-x: hidden;
    /* Prevent horizontal scrollbar */
    transition: background-color 0.4s ease, color 0.4s ease;

    /* SECURITY: Prevent text selection and copying */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body.menu-open {
    overflow: hidden;
}

/* SECURITY: Prevent image dragging and saving by dragging */
img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Allow text selection in forms so users can type */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Responsive Utilities */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* --- Light Mode Styles (User Image Palette) --- */
body.light-mode {
    background-color: #FFFCF2;
    /* Cream/Off-White Background */
    color: #4A4A4A;
    /* Dark Grey Text */
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
    color: #607D8B;
    /* Slate Blue Headings */
}

body.light-mode .text-muted {
    color: #78909C;
    /* Lighter Slate */
}

body.light-mode .highlight-blue {
    color: #607D8B;
    /* Slate Blue */
}

body.light-mode a {
    color: #607D8B;
}

body.light-mode a:hover {
    color: #455A64;
    /* Darker Slate */
}

/* Light mode header (Preserved as requested) */
body.light-mode .main-header {
    background-color: transparent;
    box-shadow: none;
    border-bottom: none;
}

body.light-mode .main-header.scrolled {
    background-color: #0F172A;
    /* Deep Navy */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links a {
    color: #FFFFFF;
    font-weight: 400;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
    color: #2563EB;
    /* Royal Blue Accent */
}

body.light-mode .menu-toggle {
    color: #FFFFFF;
}

/* Light mode dropdown */
body.light-mode .dropdown-menu {
    background: #0F172A;
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

body.light-mode .dropdown-menu a {
    color: #FFFFFF;
}

body.light-mode .dropdown-menu a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

/* Hero Sections */
/* Video Hero Overlay */
body.light-mode .video-overlay {
    background-color: transparent;
    /* Clear view of video */
    backdrop-filter: none;
}

body.light-mode .landing-content {
    color: #FFFFFF;
    /* Pure White */
    text-shadow: none;
}

body.light-mode .landing-content h1 {
    color: #FFFFFF;
}

body.light-mode .scroll-down-indicator {
    color: #FFFFFF;
}

body.light-mode .foundation-name {
    color: #FFFFFF;
    font-weight: 500;
}

/* Page Hero (About, Services, etc) */
body.light-mode .page-hero,
body.light-mode .about-hero,
body.light-mode .services-hero,
body.light-mode .contact-hero {
    color: #FFFFFF;
}

body.light-mode .page-hero h1,
body.light-mode .about-hero h1,
body.light-mode .services-hero h1,
body.light-mode .contact-hero h1 {
    color: #FFFFFF;
}

body.light-mode .page-hero p,
body.light-mode .about-hero p,
body.light-mode .services-hero p,
body.light-mode .contact-hero p {
    color: #E2E8F0;
}


/* Form Components (Global Light Mode) */
body.light-mode .contact-form-card {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
    /* Light Grey Border */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
}

body.light-mode .form-group label {
    color: #4A4A4A;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .form-group select {
    background: #F0F2F5;
    /* Very Light Grey */
    border: 1px solid #CFD8DC;
    color: #4A4A4A;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus,
body.light-mode .form-group select:focus {
    border-color: #607D8B;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(96, 125, 139, 0.1);
}

/* Light mode sections */
body.light-mode .wrapper {
    background: #FFFCF2;
    /* Cream Match */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #CFD8DC;
    border-bottom: 1px solid #CFD8DC;
}

/* Ticker Info */
body.light-mode .text-ticker-wrapper {
    background: #607D8B;
    color: #FFFFFF;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .ticker-badge {
    background: #FFFFFF;
    color: #607D8B;
}

body.light-mode .ticker-cta {
    color: #FFD700 !important;
    text-decoration: underline;
    font-weight: bold;
}

body.light-mode .ticker-cta:hover {
    color: #FFFFFF !important;
}

/* Ensure links or icons in ticker pop */
body.light-mode .text-ticker-wrapper img {
    filter: none;
}

/* Intro Showcase */
body.light-mode .intro-showcase {
    background-color: #FFFCF2;
    /* Cream */
    color: #4A4A4A;
}

body.light-mode .intro-video {
    border-color: rgba(96, 125, 139, 0.3);
}

body.light-mode .intro-video:hover {
    box-shadow: 0 20px 60px rgba(96, 125, 139, 0.2);
    border-color: rgba(96, 125, 139, 0.5);
}

body.light-mode .intro-content h4 {
    color: #607D8B;
    font-weight: 600;
}

body.light-mode .intro-content h1 {
    color: #37474F;
    /* Darker Slate */
}

body.light-mode .intro-content p {
    color: #546E7A;
}

/* Highlight Banner */
body.light-mode .highlight-banner {
    background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
    /* Slate Gradients */
    color: #FFFFFF;
    border: none;
}

body.light-mode .highlight-banner h2,
body.light-mode .highlight-banner p {
    color: #FFFFFF;
}

body.light-mode .highlight-banner .join-btn {
    background: #FFFFFF;
    color: #607D8B;
    border: none;
}

body.light-mode .highlight-banner .join-btn:hover {
    background: #ECEFF1;
    color: #455A64;
}


/* Inspiration / Mentor Cards */
body.light-mode .inspiration-section {
    background-color: #FFFFFF;
    /* White break */
    color: #4A4A4A;
    border-top: 1px solid #CFD8DC;
}

body.light-mode .inspiration-section h1 {
    color: #37474F;
}

body.light-mode .inspiration-card,
body.light-mode .founder-card {
    background: #F9FAFB;
    /* Light Grey Card */
    border: 1px solid #E0E0E0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .inspiration-card:hover,
body.light-mode .founder-card:hover {
    background: #FFFFFF;
    border-color: #607D8B;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(96, 125, 139, 0.15);
}

body.light-mode .inspiration-card h4 {
    color: #607D8B;
}

body.light-mode .inspiration-card h5,
body.light-mode .founder-card h4 {
    color: #37474F;
    border-bottom: 1px solid #CFD8DC;
}

body.light-mode .inspiration-card .person-name,
body.light-mode .founder-card h5 {
    color: #607D8B;
}

body.light-mode .inspiration-card .person-role,
body.light-mode .founder-card p {
    color: #78909C;
}

body.light-mode .inspiration-card .person-desc {
    color: #78909C;
}

body.light-mode .profile-image,
body.light-mode .founder-img {
    background: #ECEFF1;
    border: 3px solid #607D8B;
    box-shadow: 0 4px 6px -1px rgba(96, 125, 139, 0.2);
}


/* Feature Cards */
body.light-mode .why-choose-us {
    background-color: #FFFCF2;
    /* Cream */
    color: #4A4A4A;
}

body.light-mode .why-choose-us h1 {
    color: #37474F;
}

body.light-mode .feature-card {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .feature-card:hover {
    background: #ECEFF1;
    border-color: #607D8B;
}

body.light-mode .feature-card h3 {
    color: #37474F;
}

body.light-mode .feature-card p {
    color: #546E7A;
}

/* Service Cards */
body.light-mode .service-card {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
    border-top: 4px solid #607D8B;
    /* Slate Highlight */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.light-mode .service-card h3 {
    color: #37474F;
}

body.light-mode .service-card p {
    color: #546E7A;
}

body.light-mode .service-features li {
    color: #546E7A;
    border-bottom: 1px solid #CFD8DC;
}

body.light-mode .card-btn {
    border: 2px solid #607D8B;
    color: #607D8B;
    background: transparent;
}

body.light-mode .card-btn:hover {
    background: #607D8B;
    color: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(96, 125, 139, 0.3);
}

/* Info Glass Card (Contact) */
body.light-mode .contact-info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(207, 216, 220, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .info-icon {
    background: #607D8B;
    color: #FFFFFF;
}

body.light-mode .contact-info-card h2 {
    color: #37474F;
}

body.light-mode .info-text h4 {
    color: #607D8B;
}

body.light-mode .info-text p,
body.light-mode .info-text a {
    color: #546E7A;
}


/* Upcoming Events Section */
body.light-mode .upcoming-events {
    background: #ECEFF1;
    /* Light Grey section */
    color: #4A4A4A;
    border-top: 1px solid #CFD8DC;
}

body.light-mode .upcoming-events h1 {
    color: #37474F;
}

body.light-mode .event-card {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body.light-mode .event-card:hover {
    border-color: #8B9EFF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Footer (Light Theme) */
body.light-mode .site-footer {
    background: #CFD8DC;
    /* Light Grey Footer */
    color: #455A64;
    border-top: 1px solid #B0BEC5;
}

body.light-mode .footer-column h3 {
    color: #37474F;
}

body.light-mode .footer-address,
body.light-mode .footer-contact {
    color: #455A64;
}

body.light-mode .footer-contact strong {
    color: #263238;
}

body.light-mode .footer-contact a {
    color: #455A64;
}

body.light-mode .footer-contact a:hover {
    color: #607D8B;
}

body.light-mode .footer-links a {
    color: #455A64;
}

body.light-mode .footer-links a:hover {
    color: #607D8B;
    transform: translateX(3px);
}

body.light-mode .footer-bottom p {
    color: #546E7A;
}

/* Submit Buttons (Global) */
body.light-mode .submit-btn {
    background: #607D8B;
    color: #FFFFFF;
}

body.light-mode .submit-btn:hover {
    background: #455A64;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Theme Toggle */
body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

body.light-mode .theme-toggle:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: #2563EB;
}

body.light-mode .theme-toggle svg {
    color: #FFFFFF;
}

/* Section Title Decorative Line */
body.light-mode .section-title div,
body.light-mode .initiatives-header .line {
    background: linear-gradient(to right, #2563EB, #0EA5E9);
}

/* Book Page / About Specifics */
body.light-mode .book-page {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light-mode .book-page::before {
    background: linear-gradient(90deg, #2563EB, #0F172A, #2563EB);
}

body.light-mode .book-header {
    border-bottom: 1px solid #E2E8F0;
}

body.light-mode .mentor-portrait img {
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: #FFF;
}

body.light-mode .book-title {
    color: #0F172A;
}

body.light-mode .book-subtitle {
    color: #2563EB;
}

body.light-mode .honorific {
    color: #64748B;
    border-left: 3px solid #2563EB;
}

body.light-mode .summary {
    color: #334155;
}

body.light-mode .book-chapter h4 {
    color: #2563EB;
}

body.light-mode .book-chapter h4::after {
    background: #2563EB;
}

body.light-mode .book-chapter p {
    color: #334155;
}

body.light-mode .initiatives-list li::before {
    color: #2563EB;
}

body.light-mode .initiatives-list li strong {
    color: #0F172A;
}

body.light-mode .initiatives-list li span {
    color: #334155;
}


h1,
h2,
h3 {
    color: #FFFFFF;
    /* Main Heading: #FFFFFF */
}

.text-muted {
    color: #9A9ECC;
    /* Muted / Small text: #9A9ECC */
}

.highlight-blue {
    color: #8B9EFF;
    /* Accent Heading / Highlight word: #8B9EFF */
}

/* --- Header & Navigation --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: transparent;
    /* Fully transparent at top */
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.main-header.scrolled {
    background-color: rgba(7, 7, 38, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.site-logo {
    height: 80px;
    /* Adjust size as needed */
    max-width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    /* Prevent wrapping on smaller desktop screens */
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #8B9EFF;
    /* Accent Color */
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #070726;
    border: 1px solid rgba(139, 158, 255, 0.3);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 220px;
    margin-top: 10px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown:hover .dropdown-menu,
.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    font-size: 0.95rem;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(139, 158, 255, 0.1);
    color: #8B9EFF;
    padding-left: 30px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(139, 158, 255, 0.1);
    margin: 8px 0;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.dropdown:hover .dropdown-arrow,
.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.menu-toggle {
    display: none;
    /* Hide hamburger menu on desktop */
    font-size: 30px;
    cursor: pointer;
}

/* --- Theme Toggle Button --- */
/* --- Theme Toggle Button (Professional Pill Style) --- */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    /* Pill shape */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 158, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-left: 20px;
    backdrop-filter: blur(4px);
}

.theme-toggle:hover {
    background: rgba(139, 158, 255, 0.1);
    border-color: #8B9EFF;
    box-shadow: 0 0 10px rgba(139, 158, 255, 0.2);
    transform: translateY(-1px);
}

.theme-toggle svg {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #FFFFFF;
}

.sun-icon {
    opacity: 0;
    transform: translateY(20px) rotate(-90deg);
}

.moon-icon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Light mode active state */
body.light-mode .sun-icon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    color: #F59E0B;
    /* Warm sun color */
}

body.light-mode .moon-icon {
    opacity: 0;
    transform: translateY(-20px) rotate(90deg);
}

/* Update Light Mode Toggle Container */
body.light-mode .theme-toggle {
    background: #E2E8F0;
    border-color: #CBD5E1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.light-mode .theme-toggle:hover {
    background: #CBD5E1;
    border-color: #94A3B8;
}


/* --- Full Screen Video Background --- */
.video-background {
    height: 100vh;
    height: 100dvh;
    /* Use dynamic viewport height for iOS */
    width: 100%;
    /* Changed from 100vw to prevent scrollbar */
    position: relative;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: transparent;
    /* Removed overlay for clear video */
    z-index: -1;
}

/* --- Landing Page Center Content --- */
.landing-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: #FFFFFF;
    width: 90%;
    /* Ensure text doesn't touch edges on mobile */
    max-width: 1000px;
    /* Prevent it from being too wide on giant screens */
}

.branded-font {
    font-family: "Roxborough CF", serif;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 10px 0;
    /* Add vertical breathing room for long letters */
    font-size: 5rem;
    line-height: 1.2;
}

.dm-serif-display-regular-italic {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: italic;
}




.foundation-name {
    font-size: 1.5rem;
    /* Default for desktop */
    margin-top: 15px;
    letter-spacing: 2px;
    /* Professional, premium look */
    text-transform: uppercase;
    font-weight: 300;
    color: #FFFFFF;
    /* White text */
}

/* Hero CTA Button */
.cta-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    animation: cta-blink 2s infinite ease-in-out;
}

@keyframes cta-blink {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 15px rgba(139, 158, 255, 0.5);
        border-color: rgba(139, 158, 255, 0.8);
        transform: scale(1.03);
    }
}

.cta-button:hover {
    background: #FFFFFF;
    color: #070726;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Down Indicator --- */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    z-index: 20;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-down-indicator p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    opacity: 0.8;
}

.arrow-down {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    position: relative;
    /* overflow: hidden; */
    /* Removed hidden to allow arrow tip to show */
}

.arrow-down::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid white;
}

.arrow-down {
    overflow: visible;
    /* Ensure tip is visible */
}

.arrow-line-mask {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.arrow-line-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    animation: scrollLine 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes bounceIndicator {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

.scroll-down-indicator {
    animation: bounceIndicator 2s infinite ease-in-out;
}

/* --- Content Section (After Landing) --- */
.content-section {
    min-height: 100vh;
    padding: 50px 5%;
    z-index: 5;
    position: relative;
}

/* --- Responsiveness (Mobile First) --- */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 5%;
        padding-top: calc(10px + env(safe-area-inset-top));
    }

    button,
    .cta-button,
    .nav-links a,
    .card-btn,
    .submit-btn {
        min-height: 44px;
        /* Standard touch target for mobile */
        touch-action: manipulation;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
        /* Balanced text size */
        width: auto;
        min-width: 160px;
        /* Prevent it from being too small */
        max-width: 80%;
        margin-top: 25px;
        white-space: nowrap;
    }

    button:active,
    .cta-button:active,
    .nav-links a:active,
    .card-btn:active,
    .submit-btn:active {
        transform: scale(0.96) !important;
        opacity: 0.8;
    }

    .video-background video {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .landing-content,
    .branded-font,
    .foundation-name {
        will-change: transform, opacity;
    }

    /* Fix Dropdown on Mobile (Push items down instead of overlap) */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(139, 158, 255, 0.05);
        border: none;
        padding: 0;
        margin: 0;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        /* Smooth slide down */
    }

    .dropdown.show .dropdown-menu {
        display: block;
        max-height: 500px;
        /* Allow expansion */
        border-top: 1px solid rgba(139, 158, 255, 0.1);
        border-bottom: 1px solid rgba(139, 158, 255, 0.1);
        margin: 5px 0;
    }

    .dropdown-menu a {
        padding: 12px 0 12px 40px !important;
        font-size: 0.95rem !important;
        opacity: 0.8;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 92%;
        /* Compressed width */
        max-width: 400px;
        /* Limit max width */
        text-align: center;
        position: absolute;
        top: calc(100% + 15px);
        /* Floating offset */
        right: 4%;
        /* Align near the toggle */
        background-color: rgba(10, 10, 46, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 10px 0;
        border-radius: 20px;
        /* Pro-panel look */
        border: 1px solid rgba(139, 158, 255, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        /* Better entry animation */
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        pointer-events: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        z-index: 1000;

        /* Enable scrolling if menu is too long */
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .nav-links>li:last-child {
        border-bottom: none;
    }

    .nav-links>li>a {
        display: block;
        padding: 12px 0;
        /* Compressed padding */
        font-size: 1rem;
        /* Professional standard size */
        color: #C9CCFF;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
    }

    .nav-links>li>a:active,
    .nav-links>li>a:hover {
        background: rgba(139, 158, 255, 0.08);
        color: #FFFFFF;
        padding-left: 0;
        /* Removed movement for a cleaner feel */
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        color: #FFFFFF;
        cursor: pointer;
        padding: 5px;
    }

    .theme-toggle {
        width: 52px;
        height: 28px;
        margin-left: 15px;
        border-radius: 14px;
        /* Maintain pill shape on mobile */
    }

    /* Ensure the mobile theme toggle container is visible and spaced */
    .nav-links .mobile-only {
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 15px 0;
        width: 100%;
        margin-top: 10px !important;
        /* Force margin */
    }

    /* Override inline margin if necessary and ensure centering */
    .nav-links .mobile-only .theme-toggle {
        margin: 0 !important;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }


    .branded-font {
        font-size: min(10vw, 40px);
        /* Adjusted for smaller screens */
        line-height: 1.3;
        /* Improved line height */
        padding: 10px 0;
        /* More breathing room */
        width: 100%;
        /* Ensure it takes full width */
        word-wrap: break-word;
    }

    .foundation-name {
        font-size: 1rem;
        /* Standard readable size for mobile */
        margin-top: 5px;
        letter-spacing: 1px;
    }
}

.wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #070726;
    border-radius: 1px;
    padding: 10px 0;
    /* Remove horizontal padding to avoid offsetting the track */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    /* Ensure images stay in one line */
}

/* Remove Marquee styles, replace with CSS Animation */
.images {
    display: flex;
    align-items: center;
    width: max-content;
    /* Allow container to be as wide as needed */
    /* Animation: slide left for 30 seconds linearly and infinitely */
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.images:hover {
    animation-play-state: paused;
}

.images img {
    width: 260px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    /* Use margin-right instead of gap to ensure identical spacing after the last cloned item */
    margin-right: 50px;
}

/* Keyframes for moving exactly 50% (the width of one set of images) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.images img:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* --- Horizontal Scrolling Text Ticker --- */
.text-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #070726 0%, #0c0c45 50%, #070726 100%);
    color: #FFFFFF;
    padding: 15px 0;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(139, 158, 255, 0.2);
    border-bottom: 1px solid rgba(139, 158, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.text-ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-horizontal 20s linear infinite;
    will-change: transform;
    /* Boost performance on mobile */
}

.text-ticker-wrapper:hover .text-ticker {
    animation-play-state: paused;
}

.text-ticker p {
    display: inline-flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0;
    padding-right: 100px;
    letter-spacing: 0.5px;
}

.ticker-badge {
    background: #8B9EFF;
    color: #070726;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(139, 158, 255, 0.3);
}

.ticker-event {
    font-family: 'Roxborough CF', serif;
    font-size: 1.45rem;
    color: #FFFFFF;
    margin-right: 20px;
}

.ticker-divider {
    color: rgba(139, 158, 255, 0.4);
    margin: 0 20px;
    font-weight: 300;
}

.ticker-cta {
    color: #8B9EFF !important;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.ticker-cta:hover {
    border-bottom-color: #8B9EFF;
    text-shadow: 0 0 10px rgba(139, 158, 255, 0.5);
}

.ticker-icon {
    height: 30px;
    /* Constrain height */
    width: auto;
    margin-right: 15px;
    /* Space between icon and text */
}

@keyframes ticker-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Intro Showcase Section --- */
.intro-showcase {
    padding: 80px 8%;
    /* Increased side padding for safe containment */
    background-color: #070726;
    color: #FFFFFF;
    position: relative;
    z-index: 5;
    overflow: hidden;
    /* Contain float issues */
}

.intro-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.intro-video {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(139, 158, 255, 0.2);
    transition: all 0.4s ease;
}

.intro-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(139, 158, 255, 0.3);
    border-color: rgba(139, 158, 255, 0.4);
}

.intro-video video,
.intro-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
}

.intro-content {
    flex: 1;
    text-align: left;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.intro-content h4 {
    color: #8B9EFF;
    /* Accent Heading: #8B9EFF */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.intro-content h1 {
    font-family: 'Roxborough CF', serif;
    font-size: 3.5rem;
    margin: 0 0 30px 0;
    font-weight: 300;
    line-height: 1.2;
    /* Slightly increased for better fitting */
    color: #FFFFFF;
    overflow-wrap: break-word;
    word-break: break-word;
}

.intro-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #C9CCFF;
    /* Paragraph: #C9CCFF */
    font-weight: 300;
}

/* Responsive adjustments for showcase */
@media (max-width: 1024px) {
    .intro-container {
        gap: 40px;
    }

    .intro-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .intro-showcase {
        padding: 50px 5%;
    }

    .intro-container {
        flex-direction: column;
        gap: 40px;
    }

    .intro-video {
        width: 100%;
        max-height: 400px;
    }

    .intro-content {
        text-align: center;
    }

    .intro-content h1 {
        font-size: 2.5rem;
    }

    .intro-content p {
        font-size: 1rem;
    }
}

/* --- Inspiration Section --- */
.inspiration-section {
    padding: 80px 10%;
    background-color: #070726;
    color: #FFFFFF;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separation */
}

.inspiration-section h1 {
    font-family: 'Roxborough CF', serif;
    font-size: 3.5rem;
    margin-bottom: 60px;
    font-weight: 300;
    color: #FFFFFF;
}

.inspiration-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    /* Stack on smaller screens */
}

.inspiration-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    /* Limit width */
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle card effect */
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(139, 158, 255, 0.1);
    /* Soft border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inspiration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(139, 158, 255, 0.3);
}

.inspiration-card h4 {
    color: #8B9EFF;
    /* Accent Color */
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 600;
}

.inspiration-card h5 {
    font-family: 'Roxborough CF', serif;
    font-size: 1.8rem;
    margin: 10px 0 20px 0;
    color: #FFFFFF;
    font-weight: 300;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    display: inline-block;
}

.inspiration-card .person-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #C9CCFF;
    margin: 10px 0 5px 0;
}

.inspiration-card .person-role {
    font-size: 0.9rem;
    color: #9A9ECC;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0 20px 0;
    font-weight: 400;
}

.inspiration-card .person-desc {
    font-size: 1.1rem;
    font-style: italic;
    color: #C9CCFF;
    line-height: 1.6;
}

.profile-image {
    width: 250px;
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 12px;
    border: 3px solid #8B9EFF;
    padding: 5px;
    background: transparent;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(139, 158, 255, 0.2);
    transition: transform 0.3s ease;
}

.inspiration-card:hover .profile-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .inspiration-section {
        padding: 50px 5%;
    }

    .inspiration-section h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

}

/* --- Why Choose Us Section --- */
.why-choose-us {
    padding: 80px 10%;
    background-color: #05051a;
    /* Slightly darker than inspiration section */
    color: #FFFFFF;
    text-align: center;
}

.why-choose-us h1 {
    font-family: 'Roxborough CF', serif;
    font-size: 3.5rem;
    margin-bottom: 60px;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: stretch;
    margin: 0 auto;
    max-width: 1400px;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    /* Lighter background */
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: #8B9EFF;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    height: 80px;
    width: auto;
    margin-bottom: 25px;
    /* Optional: add filter if you want to unify icon colors, 
       e.g., brightness(0) invert(1) for white icons if they aren't already */
}

.feature-card h3 {
    color: #8B9EFF;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
    font-family: 'Roxborough CF', serif;
}

.feature-card p {
    color: #C9CCFF;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .why-choose-us {
        padding: 50px 6%;
    }

    .why-choose-us h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* --- Upcoming Events Section (High-End Showcase) --- */
.upcoming-events {
    padding: 120px 5%;
    background: radial-gradient(circle at 50% 0%, #0c0c45 0%, #070726 100%);
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.upcoming-events h1 {
    font-family: 'Roxborough CF', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 60px;
    font-weight: 300;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    /* Fixed aggressive negative tracking */
    line-height: 1.2;
    position: relative;
}

.upcoming-events h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8B9EFF, #FFFFFF);
    margin: 30px auto 0;
    border-radius: 2px;
}

.retreat-gallery {
    padding: 100px 5%;
    background: rgba(139, 158, 255, 0.02);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}



.event-card {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: #16213e;
    border: 1px solid rgba(139, 158, 255, 0.2);
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: #8B9EFF;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(7, 7, 38, 0.95));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.event-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.card-category {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8B9EFF;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-overlay h3 {
    font-family: 'Roxborough CF', serif;
    font-size: 1.6rem;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .upcoming-events {
        padding: 80px 4%;
    }

    .upcoming-events h1 {
        font-size: 2.8rem;
        margin-bottom: 40px;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 40px 2%;
    }

    .event-card {
        height: 200px;
    }
}

/* --- Footer Section --- */
.site-footer {
    background: linear-gradient(135deg, #0a0a2e 0%, #16213e 100%);
    color: #C9CCFF;
    padding: 60px 5% 20px 5%;
    border-top: 2px solid rgba(139, 158, 255, 0.2);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.footer-column h3 {
    color: #8B9EFF;
    font-family: 'Roxborough CF', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-address {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #C9CCFF;
}

.footer-contact {
    margin-bottom: 10px;
    color: #C9CCFF;
}

.footer-contact strong {
    color: #FFFFFF;
    margin-right: 5px;
}

.footer-contact a {
    color: #8B9EFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #C9CCFF;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #8B9EFF;
    transform: translateX(5px);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #C9CCFF;
    opacity: 0.8;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.15);
    color: #8B9EFF;
    opacity: 1;
}

body.light-mode .social-icon {
    color: #607D8B;
    opacity: 0.7;
}

body.light-mode .social-icon:hover {
    color: #37474F;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #9A9ECC;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 5% 20px 5%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-links a:hover {
        transform: none;
    }
}

/* --- Mentors Page Styles --- */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
    background-color: #070726;
}

.page-hero {
    text-align: center;
    padding: 80px 10% 40px;
    background: linear-gradient(180deg, #0f0f2e 0%, #070726 100%);
}

.page-hero h1 {
    font-family: 'Roxborough CF', serif;
    font-size: 4.5rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.3;
    /* Increased for pro-fit */
    overflow-wrap: break-word;
}

.page-hero p {
    font-size: 1.4rem;
    color: #C9CCFF;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.9;
}

.mentors-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 5% 100px;
}

.book-page {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 158, 255, 0.2);
    border-radius: 30px;
    padding: 80px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.book-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B9EFF, #FFFFFF, #8B9EFF);
    opacity: 0.5;
}

.book-header {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    border-bottom: 1px solid rgba(139, 158, 255, 0.1);
    padding-bottom: 60px;
}

.mentor-portrait {
    flex: 0 0 380px;
}

.mentor-portrait img {
    width: 350px;
    height: 350px;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid rgba(139, 158, 255, 0.3);
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mentor-intro {
    flex: 1;
}

.book-title {
    font-family: 'Roxborough CF', serif;
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 300;
}

.book-subtitle {
    font-size: 1.5rem;
    color: #8B9EFF;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 400;
}

.honorific {
    font-size: 1.1rem;
    color: #9A9ECC;
    margin-bottom: 25px;
    font-style: italic;
    border-left: 3px solid #8B9EFF;
    padding-left: 20px;
}

.summary {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #C9CCFF;
}

.book-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.book-chapter {
    margin-bottom: 40px;
}

.book-chapter h4 {
    font-family: 'Roxborough CF', serif;
    font-size: 1.8rem;
    color: #8B9EFF;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.book-chapter h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #8B9EFF;
}

.book-chapter p {
    font-size: 1.1rem;
    line-height: 2;
    color: #C9CCFF;
    text-align: justify;
    margin-bottom: 20px;
}

.initiatives-list {
    list-style: none;
    padding: 0;
}

.initiatives-list li {
    margin-bottom: 30px;
    padding-left: 25px;
    position: relative;
}

.initiatives-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8B9EFF;
    font-size: 1.5rem;
}

.initiatives-list li strong {
    display: block;
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.initiatives-list li span {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #9A9ECC;
    display: block;
}

@media (max-width: 1100px) {
    .book-header {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .mentor-portrait {
        flex: 0 0 auto;
        max-width: 350px;
    }

    .book-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .honorific {
        border-left: none;
        border-top: 1px solid rgba(139, 158, 255, 0.2);
        padding-left: 0;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .book-page {
        padding: 40px 20px;
    }

    .page-hero h1 {
        font-size: 2.4rem;
        /* Further compressed for small screens */
        line-height: 1.25;
    }

    .book-title {
        font-size: 2.2rem;
    }

    .book-chapter h4 {
        font-size: 1.4rem;
    }

    .book-chapter p {
        text-align: left;
        /* Stop justify on mobile to prevent cutting */
        font-size: 1rem;
        line-height: 1.7;
    }
}


.sunya-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    color: #C9CCFF;
    /* Light Lavender for Dark Mode readability */
    margin-bottom: 20px;
}

/* --- Light Mode Overrides for About Us Page --- */
body.light-mode .intro-content h2 {
    color: #37474F;
}

body.light-mode .intro-content p {
    color: #546E7A;
}

body.light-mode .sunya-desc {
    color: #4f53a4;
    /* User requested purple for Light Mode */
}

body.light-mode .vm-card {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .vm-card:hover {
    background: #F9FAFB;
    border-color: #607D8B;
}

body.light-mode .vm-card h2 {
    color: #607D8B;
}

body.light-mode .vm-card p {
    color: #546E7A;
}

body.light-mode .initiatives-header h2 {
    color: #37474F;
}

body.light-mode .initiative-item {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
}

body.light-mode .initiative-item:hover {
    background: #F9FAFB;
    border-color: #607D8B;
}

body.light-mode .initiative-item h3 {
    color: #37474F;
}

body.light-mode .initiative-item p {
    color: #546E7A;
}

body.light-mode .founders-section {
    background: #ECEFF1;
    /* Light grey background for section */
}

body.light-mode .founder-card {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .founder-card:hover {
    border-color: #607D8B;
    background: #FFFFFF;
}

body.light-mode .founder-card h4 {
    color: #37474F;
}

body.light-mode .founder-card h5 {
    color: #607D8B;
}

body.light-mode .founder-card p {
    color: #546E7A;
}

/* --- Light Mode Overrides for Sunya Spotlight Page --- */
body.light-mode .section-header h2 {
    color: #37474F;
    /* Slate Dark */
}

body.light-mode .spotlight-hero p {
    color: #E2E8F0;
    /* Hero subtext clear on dark bg */
}

/* Featured Story */
body.light-mode .featured-story {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .featured-content h3 {
    color: #37474F;
}

body.light-mode .featured-content p {
    color: #546E7A;
    /* Visible dark grey for paragraphs */
}

/* News Cards */
body.light-mode .news-card {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .news-card:hover {
    background: #F9FAFB;
    border-color: #607D8B;
}

body.light-mode .news-card h3 {
    color: #37474F;
}

body.light-mode .news-card p {
    color: #546E7A;
}

body.light-mode .news-date {
    color: #607D8B;
}

body.light-mode .read-more-btn {
    color: #607D8B;
}

body.light-mode .read-more-btn:hover {
    color: #455A64;
}

body.light-mode .load-more-btn {
    border-color: #607D8B;
    color: #607D8B;
}

body.light-mode .load-more-btn:hover {
    background: #607D8B;
    color: #FFFFFF;
}

/* Success Stories */
body.light-mode .story-card {
    background: #FFFFFF;
    border: 1px solid #CFD8DC;
}

body.light-mode .story-card:hover {
    background: #F9FAFB;
    border-color: #607D8B;
}

body.light-mode .quote-icon {
    color: rgba(96, 125, 139, 0.2);
}

body.light-mode .story-text {
    color: #546E7A;
    /* Dark grey text */
}

body.light-mode .author-info h4 {
    color: #37474F;
}

body.light-mode .author-info span {
    color: #607D8B;
}

/* --- Premium Event Showcase System (Pro Color Overhaul) --- */
.featured-event-banner {
    background: rgba(15, 15, 46, 0.7) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(139, 158, 255, 0.15) !important;
    border-radius: 40px !important;
    padding: 60px !important;
    margin: 0 auto 100px !important;
    max-width: 1300px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.mega-banner {
    background: linear-gradient(135deg, rgba(30, 8, 54, 0.9) 0%, rgba(10, 3, 22, 0.95) 100%) !important;
    border-color: rgba(142, 68, 173, 0.4) !important;
}

.shantiwan-banner {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(5, 12, 24, 0.95) 100%) !important;
    border-color: rgba(100, 255, 218, 0.2) !important;
}

.featured-event-banner .book-header {
    display: flex;
    gap: 60px;
    align-items: stretch;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    text-align: left;
}

.featured-event-banner .mentor-portrait {
    flex: 0 0 450px !important;
    height: 600px !important;
    /* Proper poster aspect ratio */
    border-radius: 20px !important;
    border: 1px solid rgba(139, 158, 255, 0.2) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    background: #05051a !important;
    overflow: hidden;
}

.featured-event-banner .mentor-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* Shows full poster professionally */
    background: #000;
}

.featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-tag {
    display: inline-block;
    padding: 8px 20px;
    background: #1e3a8a;
    color: #ffffff;
    border: 1px solid #3b82f6;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    align-self: flex-start;
    text-transform: uppercase;
}

.badge-purple {
    background: #581c87 !important;
    color: #ffffff !important;
    border-color: #a855f7 !important;
}

.featured-content h2.book-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
    font-weight: 300 !important;
    color: #FFFFFF !important;
    background: none !important;
    /* Removed buggy gradient text */
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

.event-meta {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 35px !important;
    flex-direction: row !important;
}

.event-meta span {
    font-size: 1rem !important;
    color: #8892B0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 12px 18px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
}

.event-meta span:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #CCD6F6 !important;
}

.summary {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    color: #A8B2D1 !important;
    margin-bottom: 40px !important;
    border-left: 4px solid #64FFDA !important;
    padding-left: 30px !important;
}

.mega-banner .summary {
    border-left-color: #A78BFA !important;
}

.why-join {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 25px !important;
    border-radius: 20px !important;
    margin-bottom: 40px !important;
}

.why-join h3 {
    font-size: 1rem !important;
    color: #8B9EFF !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
}

.why-join p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #9A9ECC !important;
}

.register-btn {
    align-self: flex-start !important;
    background: #FFFFFF !important;
    color: #070726 !important;
    padding: 10px 24px !important;
    /* Ultra-compact padding */
    border-radius: 50px !important;
    font-size: 0.8rem !important;
    /* Minimalist font size */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
}

.register-btn:hover {
    background: #8B9EFF !important;
    color: #FFFFFF !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(139, 158, 255, 0.3) !important;
}

/* Responsive Optimization */
@media (max-width: 1200px) {
    .featured-event-banner .book-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .featured-event-banner .mentor-portrait {
        width: 100% !important;
        max-width: 500px !important;
        height: 550px !important;
    }

    .event-tag,
    .summary,
    .register-btn {
        align-self: center !important;
    }

    .summary {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(139, 158, 255, 0.2) !important;
        padding-top: 25px !important;
    }
}

@media (max-width: 768px) {
    .featured-event-banner {
        padding: 30px 20px !important;
    }

    .featured-event-banner .mentor-portrait {
        height: 400px !important;
    }

    .featured-content h2.book-title {
        font-size: 2.2rem !important;
    }

    .event-meta {
        grid-template-columns: 1fr !important;
    }

    .register-btn {
        width: auto !important;
        /* Prevents button from being 'big' on mobile */
        padding: 10px 20px !important;
        margin: 0 auto !important;
        /* Centers it if needed */
    }
}

/* Light Mode Polish */
body.light-mode .featured-event-banner {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

body.light-mode .featured-event-banner .mentor-portrait {
    background: #F7FAFC !important;
    border-color: #E2E8F0 !important;
}

body.light-mode h2.book-title {
    color: #1a1a1a !important;
}

body.light-mode .summary,
body.light-mode .why-join p,
body.light-mode .event-meta span {
    color: #4A5568 !important;
}

body.light-mode .event-meta span {
    background: #F1F5F9 !important;
}

body.light-mode .why-join {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

body.light-mode .register-btn {
    background: #070726 !important;
    color: #FFFFFF !important;
}

/* --- Announcement Popup Styles --- */
.announcement-popup {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 280px;
    /* Ultra-compact width */
    background: rgba(7, 7, 38, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 158, 255, 0.25);
    border-radius: 14px;
    padding: 0;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(130%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    color: #FFFFFF;
    overflow: hidden;
}

.announcement-popup.show {
    transform: translateX(0);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
}

.pop-logo {
    height: 30px;
    width: auto;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-popup:hover {
    color: #FFFFFF;
}

.pop-image-container {
    width: 100%;
    height: 110px;
    /* Very compact image area */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pop-image {
    width: 90%;
    /* Leave some padding */
    height: 90%;
    object-fit: contain;
    /* Ensure the whole logo is visible */
    transition: transform 0.5s ease;
}

.announcement-popup:hover .pop-image {
    transform: scale(1.1);
}

.popup-content {
    padding: 20px;
}

.popup-badge {
    background: #FFD700;
    color: #000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-content h3 {
    font-family: 'Roxborough CF', serif;
    font-size: 1.05rem;
    /* Slightly reduced for better fit */
    margin: 8px 0 6px 0;
    line-height: 1.25;
}

.popup-content p {
    font-size: 0.85rem;
    color: #C9CCFF;
    margin-bottom: 20px;
}

.popup-cta {
    display: block;
    text-align: center;
    background: #FFD700;
    color: #070726;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Light Mode Support for Popup */
body.light-mode .announcement-popup {
    background: rgba(255, 255, 255, 0.98);
    border-color: #CFD8DC;
    color: #37474F;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-mode .popup-header {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .pop-image-container {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .popup-content p {
    color: #546E7A;
}

body.light-mode .close-popup {
    color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .announcement-popup {
        bottom: 20px;
        right: 20px;
        width: 260px;
        /* Ultra-slim mobile width */
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .popup-header {
        padding: 6px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .pop-image-container {
        display: flex;
        /* Restore image */
        height: 90px;
        /* Keep it compact */
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.02);
    }

    .popup-content {
        padding: 10px 12px 12px;
    }

    .popup-content h3 {
        font-size: 0.85rem;
        margin: 0 0 4px 0;
        line-height: 1.25;
    }

    .popup-content p {
        font-size: 0.7rem;
        margin-bottom: 10px;
        line-height: 1.4;
        display: block;
        /* Simpler block flow */
    }

    .popup-cta {
        padding: 6px 0;
        font-size: 0.75rem;
        width: 100%;
        border-radius: 6px;
    }

    .pop-logo {
        height: 14px;
    }

    .close-popup {
        top: 5px;
        right: 8px;
        font-size: 16px;
    }
}/* --- Retreat Audience Section --- */
.retreat-audience-section {
    padding: 80px 8%;
    background-color: #070726;
    color: #FFFFFF;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(139, 158, 255, 0.1);
}

.audience-container {
    display: flex;
    align-items: center;
    /* Vertically center */
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    /* Content on Left, Video on Right to alternate with Intro section */
    flex-direction: row;
}

.audience-content {
    flex: 1;
    text-align: left;
}

/* User specifically asked for h5, so we style it to look professional */
.audience-content h5 {
    color: #FFFFFF;
    font-family: 'Roxborough CF', serif;
    font-size: 2.5rem;
    /* Large and prominent */
    margin-bottom: 24px;
    font-weight: normal;
    line-height: 1.2;
}

.audience-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #C9CCFF;
    opacity: 0.9;
    font-weight: 300;
}

.audience-video {
    flex: 1;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 158, 255, 0.2);
    overflow: hidden;
    /* Aspect Ratio Container for proper sizing */
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
}

.audience-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
    .audience-container {
        flex-direction: column-reverse;
        /* Video on top or bottom? usually video top is better on mobile, but let's stick to content first for now or maybe video up. Let's do column-reverse to put video on top? Or column to put text on top. Intro section is usually text then video on mobile. let's do normal column. */
        flex-direction: column;
        gap: 40px;
    }

    .audience-content {
        text-align: center;
    }

    .audience-content h5 {
        font-size: 2rem;
    }
}

/* --- Light Mode Styles for Audience Section --- */
body.light-mode .retreat-audience-section {
    background-color: #FFFCF2;
    color: #4A4A4A;
    border-top: 1px solid #CFD8DC;
}

body.light-mode .audience-content h5 {
    color: #37474F;
}

body.light-mode .audience-content p {
    color: #546E7A;
}

body.light-mode .audience-video {
    box-shadow: 0 20px 60px rgba(96, 125, 139, 0.2);
    border-color: rgba(96, 125, 139, 0.3);
}
