:root {
    --primary: #0ea5e9;
    /* Clinical Blue */
    --primary-dark: #0369a1;
    --primary-glow: rgba(14, 165, 233, 0.2);
    --bg-light: #ffffff;
    /* Clean White */
    --bg-page: #f8fafc;
    /* Soft Off-White */
    --bg-card: #ffffff;
    --text-main: #1e293b;
    /* Deep Slate Text */
    --text-sub: #64748b;
    --glass-border: rgba(14, 165, 233, 0.15);
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --font-main: 'Barlow', system-ui, -apple-system, sans-serif;
    --font-tech: 'Courier New', 'Roboto Mono', monospace;
    --container-width: 1200px;
    --gold: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 1.125rem;
    /* Base 18px for readability and technical audiences */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Layout Options */
.full-width .container {
    max-width: 100%;
    padding: 0 5%;
}

.section-full {
    width: 100%;
    padding: 120px 0;
}

/* Typography Refinements */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #0f172a;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

p {
    color: var(--text-sub);
    font-weight: 400;
    max-width: 65ch;
}

.eyebrow {
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 40px 0;
    /* More breathing room at top */
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.95);
    /* Dark background for visibility */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
    position: relative;
    display: inline-block;
    z-index: 5;
}

/* Glass overlay for logos: allows link context menu (Right Click -> Open in New Window) 
   but blocks "Save Image As" because the right-click hits the overlay, not the image. */
.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    /* Faded white for links */
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

.benefits-list {
    text-align: left;
    list-style: none;
    padding: 0;
}

/* btn-nav is now just a marker or removed, so we'll style it as a standard link 
   if it still exists in the HTML, ensuring it doesn't have button styles */
.btn-nav,
.btn-nav:hover {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    font-weight: 600 !important;
}

.nav-invest {
    color: var(--gold) !important;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    padding: 2px 0;
    transition: var(--transition);
    font-weight: 700 !important;
}

.nav-invest:hover {
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Force Dark Navbar on Article and Admin Pages */
.article-page .navbar,
.admin-page .navbar {
    background: rgba(15, 23, 42, 0.95);
    padding: 16px 0;
    backdrop-filter: blur(12px);
}

.pub-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list a {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 4px;
    font-size: 1.125rem;
    transition: color 0.2s;
}

.pub-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.pub-meta {
    display: block;
    font-size: 1.125rem;
    color: var(--text-sub);
    font-family: var(--font-main);
}

/* No Photo Modal (Advisors) */
.modal-variant-white.no-photo-modal .modal-image-col {
    display: none;
}

.modal-variant-white.no-photo-modal .modal-content-col {
    width: 100%;
    /* Full width */
}

.modal-variant-white.no-photo-modal .modal-fixed-header {
    padding: 50px 60px 0 60px;
    /* Balanced top padding */
}

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

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* Scrolled Toggle Color */
.navbar.scrolled .menu-toggle span {
    background: #fff;
}

/* Hero Section */
.hero {
    height: 85vh;
    /* Balanced height */
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent;
    /* Remove dark fallback that was covering the video */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Added to mask zoomed video */
    background: #000;
    /* Reverted to pure black to mask loop flicker effectively */
    z-index: 1;
    /* Bring forward */
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    /* Less aggressive crop */
    transform: scale(1.1);
    /* Minimal zoom to hide edges without distortion */
    filter: brightness(0.7) contrast(1.1);
    /* Restored original contrast/brightness balance */
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: scale(1.0);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient to enhance text legibility */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2));
    z-index: 2;
}

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



.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    /* Widened for single line */
    text-align: center;
    /* Center everything as per screenshot */
}

.hero-content .eyebrow {
    color: var(--primary);
    margin-bottom: 32px;
    font-size: 1.25rem;
    letter-spacing: 0.25em;
    font-weight: 800;
}

.hero-content h1 {
    font-size: 4.5rem;
    /* Larger as per screenshot */
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 800;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    margin-inline: auto;
    max-width: 900px;
    line-height: 1.5;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
    min-width: 260px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 4px;
    /* Matching corner style */
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-gold {
    color: var(--gold) !important;
    border-color: var(--gold) !important;
}

.btn-gold:hover {
    background: rgba(200, 155, 44, 0.1) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

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

.btn-outline-dark-blue {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-dark-blue:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Sections */
/* Sections */
.section {
    padding: 80px 0;
}

#core-platform {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
}

#performance {
    padding-top: 40px !important;
}

#readiness {
    padding-bottom: 90px !important;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    color: #0f172a;
}

.lead {
    font-size: 1.125rem;
    /* Match body size */
    color: var(--text-sub);
    margin-bottom: 3rem;
    max-width: 65ch;
    line-height: 1.6;
}

/* List Normalization */
.feature-list li {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.performance-item ul li {
    margin-bottom: 8px;
    padding-left: 0;
    list-style-type: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.25rem;
        /* Reduced from 2.5rem for better fit */
    }

    h2,
    .section-title {
        font-size: 1.75rem;
        /* Reduced from 1.8rem */
    }

    h3 {
        font-size: 1.25rem;
        /* Reduced from 1.3rem */
    }

    .section {
        padding: 60px 0;
        /* Standardized to 60px */
    }

    .container {
        padding: 0 24px;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 32px;
        /* Reduced from 40px */
    }

    .split-section.reverse {
        direction: ltr;
        /* Ensure correct stacking order */
    }

    .split-image {
        order: -1;
        /* Image first on mobile usually looks better */
    }

    .split-section.reverse .split-image {
        order: -1;
    }

    p.lead {
        font-size: 1rem !important;
        margin-bottom: 24px !important;
        /* Reduced from 32px */
    }

    /* Specific section adjustments */
    #core-platform {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    #performance {
        padding-top: 30px !important;
    }

    #readiness {
        padding-bottom: 60px !important;
    }
}

/* Harmonized Card Sections (Challenge & Markets) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.harmonized-card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

/* Match team-card hover animation exactly */
a.harmonized-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.harmonized-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
    object-fit: contain;
}

/* Compensate for visual weight differences */
.icon-boost {
    transform: scale(1.18);
}

.harmonized-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* Harmonized Image+Text Sections (Breakthrough & Momentum) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-section.reverse {
    direction: ltr;
    /* Ensure text flows correctly */
}

.split-image img,
.split-image video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.img-shadow {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
    border-radius: 12px;
    margin-bottom: 12px;
    /* Space for caption */
}

.image-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: var(--text-main);
    margin-top: 16px;
    display: block;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
}

/* For images in split sections, align captions naturally */
.split-image .image-caption {
    text-align: center;
}

.split-content h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.highlight-blue {
    background: var(--primary-dark);
    color: #fff;
}

.highlight-blue h2,
.highlight-blue p,
.highlight-blue .eyebrow {
    color: #fff;
}

/* Legal Pages Styling */
.legal-page-header {
    /* Kept for backward compatibility if needed, but templates now use section-dark */
    display: none;
}

.legal-content {
    max-width: 1000px;
    margin: 60px auto 100px;
    /* Reduced top margin slightly */
    /* Card style removed */
}

.legal-content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #0f172a;
    /* Dark Slate Blue */
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    line-height: 1.2;
}

/* First H3 needs less margin to sit closer to header */
.legal-content h3:first-of-type {
    margin-top: 0;
}

.legal-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.legal-content p {
    margin-bottom: 1.5rem;
    max-width: 100%;
    color: var(--text-main);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Response Adjustments */
@media (max-width: 768px) {
    .legal-content {
        margin-top: 40px;
        margin-bottom: 60px;
    }

    .legal-content h3 {
        font-size: 1.3rem;
        padding-left: 16px;
    }
}

/* Markets Section Centering - (Handled globally by .harmonized-card now) */
.momentum-list {
    list-style: none;
    margin-top: 32px;
}

.momentum-list li {
    background: rgba(255, 255, 255, 0.08);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove old specific section styles */

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Footer (Dark Theme Restored) */
/* Footer (Redesigned) */
.footer {
    background: #0f172a;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* Old Grid Removed */
.footer-grid {
    display: none;
}

/* Top Section: Flex Header */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 30px;
}


.footer-brand img {
    height: 60px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Horizontal Nav */
.footer-nav-horizontal {
    display: flex;
    gap: 40px;
    /* Consistent with Header gap */
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .footer-nav-horizontal {
        justify-content: center;
        gap: 20px 30px;
        text-align: center;
    }
}

.footer-nav-horizontal a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.footer-nav-horizontal a:hover {
    color: var(--primary);
}

.footer-nav-horizontal .text-gold {
    color: var(--gold) !important;
}

.footer-nav-horizontal .text-gold:hover {
    color: #eab308 !important;
    /* Lighter gold on hover */
}

/* Footer Active State */
.footer-nav-horizontal a.active {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Divider Line */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    /* Subtle line */
    width: 100%;
    margin-bottom: 40px;
}

/* Middle Section: Contact & Social */
.footer-contact-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    /* Space before copyright */
    font-size: 1.1rem;
}

.footer-email {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-email:hover {
    color: #fff;
}

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

.footer-social a {
    color: #fff;
    font-size: 1.4rem;
    transition: transform 0.3s, color 0.3s;
}

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

.separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

/* Bottom Section */
.footer-bottom {
    padding-top: 0;
    /* Removed top padding as divider handles spacing */
    border-top: none;
    /* Removed old border */
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.legal-links a {
    text-decoration: none;
    color: #64748b;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #fff;
}

.legal-links a.active {
    color: #fff !important;
    font-weight: 700;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav-horizontal {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-nav-horizontal {
        flex-direction: column;
        gap: 15px;
    }

    .footer-contact-social {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        /* Copyright at bottom */
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .separator {
        display: none;
        /* Hide pipes on mobile vertical stack */
    }

    .footer-contact-social .separator {
        display: none;
    }

    .legal-links .separator {
        display: inline;
        /* Keep for legal links if side by side, or hide if desired */
    }
}

/* Responsive Media Queries */

@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
    }

    .section {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

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

    .split-section {
        gap: 40px;
    }

    .split-content h2 {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    @media (max-width: 480px) {
        .container {
            padding: 0 16px;
            /* More space for content on small screens */
        }
    }

    .navbar {
        padding: 20px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Changed from 80% to 100% for full mobile cover */
        height: 100vh;
        background: #0f172a;
        padding: 120px 40px 60px;
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center links vertically in drawer */
        text-align: center;
    }

    @media (min-width: 480px) {
        .nav-menu {
            width: 320px;
            /* Fixed width for tablet drawer */
            text-align: left;
            justify-content: flex-start;
        }
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
        /* Centered for mobile */
        gap: 30px;
    }

    @media (min-width: 480px) {
        .nav-links {
            align-items: flex-start;
        }
    }

    .nav-links a {
        font-size: 1.5rem;
        color: #fff;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 120px 0 80px;
    }

    .hero-bg video {
        transform: scale(1.6);
        /* More aggressive zoom for vertical screens */
        object-position: center 20%;
        /* Push the bottom (timer) further down */
    }

    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.1;
        margin-bottom: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-content h2 {
        font-size: 0.95rem;
        /* Slightly smaller for mobile flow */
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .hide-mobile {
        display: none !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .hero-timer {
        bottom: 30px;
        right: 50%;
        transform: translateX(50%);
        font-size: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .harmonized-card {
        padding: 32px 24px;
    }

    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .split-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .split-content .eyebrow,
    .split-content .section-title,
    .split-content .lead {
        margin-inline: auto;
    }

    /* Standardized List Centering in Split Content */
    .split-content ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin-inline: auto;
    }

    .split-content ul li {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        text-align: center;
    }

    /* Technology Page Mobile Centering */
    .technology-page .feature-list li {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        width: 100%;
        gap: 12px !important;
    }

    .technology-page .feature-list li>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .technology-page .performance-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .technology-page .performance-item h3 {
        justify-content: center !important;
        width: 100%;
    }

    .technology-page .performance-item ul {
        text-align: center;
        width: 100%;
    }

    .split-image {
        order: -1 !important;
    }

    .section-title {
        font-size: 1.85rem;
        line-height: 1.2;
        word-wrap: break-word;
    }

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

    .footer-brand {
        margin-bottom: 40px;
    }

    .footer-brand img {
        margin-inline: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    /* Burger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* =========================================
   NEWS / BLOG STYLES
   ========================================= */

/* Page Headers */
.page-header {
    background: #0f172a;
    color: #fff;
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
}

/* 2-Column Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.news-card-image {
    height: 250px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 1.125rem;
    text-transform: uppercase;
    color: var(--text-sub);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.news-card h3 a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-card p {
    font-size: 1.125rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}


.filter-header {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.filter-header span {
    color: var(--primary);
}

.filter-clear {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-sub);
    text-decoration: none;
    margin-left: 10px;
}

.filter-clear:hover {
    color: var(--danger);
    /* Assuming danger exists or red */
    text-decoration: underline;
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 32px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.widget h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.category-list,
.recent-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    text-decoration: none;
    color: var(--text-sub);
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary);
}

.recent-post-item {
    margin-bottom: 20px;
}

.recent-post-item a {
    text-decoration: none;
    display: block;
}

.recent-title {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 4px;
    transition: var(--transition);
}

.recent-post-item a:hover .recent-title {
    color: var(--primary);
}

.recent-date {
    font-size: 1.125rem;
    color: #94a3b8;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item,
.tag {
    background: #f1f5f9;
    color: var(--text-sub);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag-cloud-item:hover {
    background: var(--primary);
    color: #fff;
}

/* Single Article */
.article-header {
    margin-bottom: 32px;
}

.article-meta {
    display: block;
    font-size: 1rem;
    color: var(--text-sub);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    /* Center the image */
    display: flex;
    justify-content: center;
    background: #f8fafc;
}

.article-featured-image img {
    width: 100%;
    max-width: 700px;
    max-height: 700px;
    object-fit: cover;
    display: block;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 60px;
}

.article-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}



.article-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.tags-list strong {
    margin-right: 8px;
}

.btn-back {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
}

/* =========================================
   ADMIN DASHBOARD STYLES
   ========================================= */

.admin-page {
    background: #f1f5f9;
    padding-top: 100px;
    /* Space for navbar */
    min-height: 100vh;
}

.admin-user {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
}

.admin-container {
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 0 40px;
    height: calc(100vh - 180px);
    /* Fill screen minus header */
}

/* Sidebar */
.admin-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.admin-post-list {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
}

.post-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.post-item:hover {
    background: #f8fafc;
}

.post-item.active {
    background: #e0f2fe;
    /* Light blue */
    border-left: 4px solid var(--primary);
}

.post-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.post-item-date {
    font-size: 1.125rem;
    color: var(--text-sub);
}

/* Editor Area */
.admin-editor {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.editor-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="email"],
textarea,
select {
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    /* Ensure inputs take full width */
    background: #f8fafc;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #fff;
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.contact-right {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info-block {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-heading {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 4px;
}

.info-item div {
    font-size: 1.1rem;
    color: var(--text-sub);
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.info-item a:hover {
    color: var(--primary-dark);
}

.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    height: 100%;
    min-height: 350px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
    /* Img shadow class handles shadow */
}

/* File Upload Styles */
.file-upload-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.file-limit-text {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.file-remove {
    cursor: pointer;
    color: #ef4444;
    padding: 4px;
    transition: color 0.2s;
}

.file-remove:hover {
    color: #dc2626;
}

.mt-large {
    margin-top: 32px;
    /* Increased from 24px per user request for more space */
}

.btn-submit-contact {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 16px 24px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit-contact:hover {
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.form-message {
    padding: 16px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Contact */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .map-container {
        min-height: 400px;
    }
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

small {
    color: var(--text-sub);
    font-size: 0.8rem;
}

/* Buttons */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-success {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-danger:hover {
    background: #dc2626;
}

.admin-footer-actions {
    margin-top: 40px;
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.admin-footer-actions h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.admin-footer-actions p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: var(--text-sub);
}

.tags-list strong {
    margin-right: 8px;
}

.btn-back {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

/* =========================================
   NEWS INTEGRATION STYLES (Mockup)
   ========================================= */

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: var(--text-sub);
    padding: 8px 20px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* Publications Section */
.publications-library {
    padding: 80px 0;
}

.publications-library.bg-white {
    background-color: #ffffff;
}

.publications-library.border-top {
    border-top: 1px solid #e2e8f0;
}

.mb-large {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: var(--text-main);
}

.section-intro {
    font-size: 1.125rem;
    max-width: 800px;
}

/* Accordion Styles */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
    transition: var(--transition);
}

.pub-accordion[open] {
    background: #fff;
    border-color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pub-summary {
    list-style: none;
    /* Hide default triangle */
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.pub-summary::-webkit-details-marker {
    display: none;
}

/* Custom Icon */
.pub-summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.pub-accordion[open] .pub-summary::after {
    transform: rotate(45deg);
    color: var(--primary-dark);
}

.pub-content {
    padding: 0 24px 24px 24px;
    animation: fadeIn 0.4s ease;
}

.pub-list {
    list-style: none;
}

/* Duplicate list styles - ensuring they are here */
.pub-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    /* Darker border for visibility */
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list a {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 4px;
    font-size: 1.125rem;
    transition: color 0.2s;
}

.pub-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.pub-meta {
    font-size: 1.125rem;
    color: var(--text-sub);
    display: block;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
}

.page-btn,
.page-number {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover,
.page-number:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-number.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Scroll Anchor Offset for Sticky Header */
#news-section,
#press-releases,
#publications {
    scroll-margin-top: 120px;
}

/* Video Frame Styles for Single Article */
.video-frame-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
    /* Aspect Ratio Hack for Iframe */
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.video-embed-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Ensure grid image link is clickable */
.news-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* Video Frame Styles for Single Article */
.video-frame-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-link-frame {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-link-frame:hover .video-thumbnail {
    opacity: 0.6;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-link-frame:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff0000;
}

.play-icon {
    color: #fff;
    font-size: 40px;
    padding-left: 5px;
}

.video-caption {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

.pub-meta {
    display: block;
    font-size: 1.125rem;
    color: var(--text-sub);
    font-family: var(--font-main);
    font-style: italic;
}

/* About Page Specifics */
.about-page .page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 120px 0 80px;
    margin-bottom: 0;
}

.about-page .page-header h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .about-page .page-header {
        padding: 140px 0 60px;
        /* More padding top for nav, less bottom */
    }

    .about-page .page-header h1 {
        font-size: 2.5rem;
        /* Smaller on mobile */
    }

    .about-page .page-header .lead {
        font-size: 1.1rem;
        padding: 0 16px;
        /* Prevent edge touching */
    }
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        /* Slightly tighter gap on tablet */
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        /* Restore gap for vertical stack */
    }
}

/* Team Card Styles */
.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* No-Photo Variant (Mentors) */
.team-card-no-photo {
    padding: 30px;
    justify-content: center;
    /* Center content vertically */
    min-height: 180px;
    /* Ensure uniform height for text cards */
    border: 1px solid #e2e8f0;
    /* Subtle border since no image */
}

.team-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: filter 0.4s ease, transform 0.4s ease;
    filter: grayscale(0%);
    /* Starts Color */
}

/* Hover Effect: Turn Black & White */
.team-card:hover .team-photo img {
    filter: grayscale(100%);
    transform: scale(1.03);
    /* Subtle zoom */
}

.team-info {
    padding: 24px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    /* Center alignment */
}

.team-info h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.team-title {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modal Styles */
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

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

.modal-content {
    background: #0f172a;
    /* Dark background for content */
    width: 100%;
    max-width: 1000px;
    height: 750px;
    /* Taller fixed height */
    max-height: 90vh;
    border-radius: 12px;
    /* Sharper corners -> Softer 12px */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Micro-border */
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FF5A5F;
    /* Red background like screenshot */
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #ff333a;
}

.modal-body {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent body scroll, allow columns to handle it */
}

/* Left Column: Image */
.modal-image-col {
    width: 48%;
    /* Slightly wider for image */
    height: 100%;
    position: relative;
    background-color: #0f172a;
    /* Dark background matching modal */
    display: flex;
    align-items: flex-start;
    /* Align top */
    justify-content: center;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover is back */
    object-position: top center;
    /* Focus on face */
    display: block;
}

/* Right Column: Content */
.modal-content-col {
    width: 52%;
    /* padding: 60px 40px; MOVED TO SCROLL CONTAINER */
    color: #fff;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0e4b50 0%, #063438 100%);
    /* overflow-y: auto; REMOVED */
    height: 100%;
    position: relative;
    /* Anchor for overlay */
}

.modal-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 60px 40px;
}

/* Default Overlay (Hidden) */
.modal-overlay-indicator {
    display: none;
}

.eyebrow-accent {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.5rem;
}

.modal-content-col h2 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.1;
}

.modal-content-col h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
}

.social-icon-btn:hover {
    background: #fff;
    color: #004d4d;
    /* Match bg */
    border-color: #fff;
}

.social-icon-btn.linkedin:hover {
    color: #0077b5;
}

.social-icon-btn.facebook:hover {
    color: #1877f2;
}

.social-icon-btn.instagram:hover {
    color: #e4405f;
}

.social-icon-btn.youtube:hover {
    color: #ff0000;
}

#modal-bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.8;
}

#modal-bio p {
    margin-bottom: 1.5em;
    color: inherit;
}

#modal-bio p:last-child {
    margin-bottom: 0;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-image-col {
        width: 100%;
        height: 350px;
    }

    .modal-content-col {
        width: 100%;
        padding: 40px 30px;
    }

    .modal-content-col h2 {
        font-size: 2.2rem;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }
}

/* White Variant (Thinh Tran) - Slim & Elegant */
.modal-variant-white {
    background: #fff !important;
    max-width: 1400px !important;
    /* Much Wider */
    height: 550px !important;
    /* Fixed "Slim" Height */
    max-height: 80vh !important;
    border-radius: 12px !important;
    /* Match main modal */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    /* Subtle dark border for white bg */
}

.modal-variant-white .modal-image-col {
    width: 30%;
    /* Narrower image col to emphasize wide aspect */
    background: #fff;
    padding: 30px;
    align-items: center;
}

.modal-variant-white .modal-image-col img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-variant-white .modal-content-col {
    width: 70%;
    background: #fff;
    color: #334155;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Stack header and bio */
}

.modal-variant-white .modal-fixed-header {
    padding: 40px 30px 0 40px;
    /* Reduced padding for balanced design (was 30/60/0/60) */
    flex-shrink: 0;
}

.modal-variant-white .modal-bio-scroll {
    padding: 20px 30px 80px 40px;
    /* Reduced padding for balanced design (was 20/60/80/60) */
    overflow-y: auto;
    flex-grow: 1;
    /* Take remaining space */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Chrome/Safari: Hide scrollbar in bio container */
.modal-variant-white .modal-bio-scroll::-webkit-scrollbar {
    display: none;
}

.modal-variant-white .modal-overlay-indicator {
    display: flex;
    /* Show for white variant */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Gradient height */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 60%);
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    pointer-events: none;
    /* Let clicks pass through if needed */
    z-index: 10;
    opacity: 0;
    /* Hidden by default, JS toggles it */
    transition: opacity 0.3s ease;
}

.modal-variant-white .modal-overlay-indicator span {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1;
    opacity: 0.5;
}

.modal-variant-white #modal-bio {
    color: #334155;
    /* Optional: Elegant cursor to hint at interaction, though 'text' or 'default' is standard.
       User asked for 'hand', implying 'grab' or 'pointer'. */
    cursor: default;
}

.modal-variant-white h2 {
    color: var(--primary-dark);
    /* Updated to match subheadings/brand */
    font-size: 2.5rem;
    /* Smaller, balanced type */
    margin-bottom: 0.5rem;
}

.modal-variant-white h4 {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2rem;
}

.modal-variant-white .eyebrow-accent {
    display: none;
    /* User requested removal for cleaner look */
}

.modal-variant-white .social-icon-btn {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.modal-variant-white .social-icon-btn:hover {
    background: #0f172a;
    /* Strong hover */
    color: #fff;
    border-color: #0f172a;
}

.modal-variant-white .modal-close {
    background: #f1f5f9;
    color: #64748b;
}

.modal-variant-white .modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-variant-white #modal-bio p {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Fix for White Variant on Mobile */
@media (max-width: 900px) {
    .modal-variant-white {
        height: 90vh !important;
        /* Fixed height to force internal scrolling */
        max-height: 90vh !important;
        flex-direction: column !important;
        /* Stack children */
        display: flex !important;
    }

    .modal-variant-white .modal-body {
        flex-direction: column !important;
        overflow: hidden !important;
        /* PREVENT body scroll, force child scroll */
        flex-grow: 1;
        display: flex !important;
    }

    .modal-variant-white .modal-image-col {
        width: 25% !important;
        height: auto !important;
        margin: 24px auto 20px auto !important;
        /* Added bottom margin for shadow */
        flex-shrink: 0;
        padding: 0 !important;
        background: transparent !important;
        position: relative !important;
        z-index: 5 !important;
        /* Ensure shadow sits ON TOP of content below */
    }

    .modal-variant-white .modal-image-col img {
        border-radius: 8px !important;
        box-shadow:
            0 20px 40px -5px rgba(0, 0, 0, 0.4),
            0 10px 15px -5px rgba(0, 0, 0, 0.2) !important;
        /* Refined, natural shadow */
        object-fit: contain !important;
        /* Ensure full image is seen */
        object-position: center !important;
    }

    .modal-variant-white .modal-content-col {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        /* CRITICAL for flex scrolling */
        flex-grow: 1 !important;
        /* Take remaining space */
        padding: 0 !important;
        overflow: hidden !important;
        /* Trap content for scroll */
        display: flex !important;
        flex-direction: column !important;
        position: relative;
        /* Anchor for fade */
    }

    .modal-variant-white .modal-fixed-header {
        padding: 24px 24px 0 24px !important;
        flex-shrink: 0;
        text-align: center !important;
        /* Center text */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Center flex items (icons) */
    }

    .modal-variant-white .modal-bio-scroll {
        padding: 16px 24px 140px 24px !important;
        /* Increased bottom padding to clear fade indicator (140px) */
        overflow-y: auto !important;
        /* THIS IS THE SCROLL CONTAINER */
        flex-grow: 1;

        /* Hide Scrollbar */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .modal-variant-white .modal-bio-scroll::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .modal-variant-white h2 {
        font-size: 1.75rem !important;
        /* Slightly smaller for mobile */
        text-align: center !important;
    }

    .modal-variant-white h4 {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    .modal-variant-white .social-icons {
        justify-content: center !important;
    }

    .modal-variant-white .modal-overlay-indicator {
        /* Adjust indicator for mobile */
        height: 120px !important;
        /* Taller fade area to separate dots from text */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 50%) !important;
        /* Solid white earlier */
        z-index: 20;
        padding-bottom: 10px !important;
        /* Push dots slightly lower */
    }

    .modal-variant-white .modal-overlay-indicator span {
        font-size: 1.5rem !important;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fixes for Layout Regressions (Restored) */

.hero.small-hero {
    height: 60vh;
    min-height: 500px;
    position: relative;
    /* Ensure it contains absolute children */
}

/* Ensure Footer Logo is Visible (Not White) on Light Background */
.footer-brand .logo img {
    filter: none;
    opacity: 1;
}

/* Ensure Highlight Blue Section has correct background */
.highlight-blue {
    background-color: #0369a1;
    /* var(--primary-dark) */
    color: #fff;
}

.highlight-blue p,
.highlight-blue .lead,
.highlight-blue .eyebrow {
    color: rgba(255, 255, 255, 0.9) !important;
}

.highlight-blue .section-title {
    color: #fff !important;
}

/* Fix Investment Section Background */
.section-investment {
    background: linear-gradient(135deg, #0369a1 0%, #0f172a 100%);
    color: #fff;
}

/* Ensure hero-bg is consistent */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;

}

/* Restore .section-dark */
.section-dark {
    background-color: #0f172a;
    /* Dark Slate */
    color: #fff;
    position: relative;
    z-index: 1;
}

.section-dark h1,
.section-dark h2,
.section-dark p,
.section-dark .lead {
    color: #fff !important;
}

/* Ensure Hero has fallback for video */
.hero {
    background-color: #000;
    /* Fallback if video fails */
    /* background: transparent; - Removed to prevent white flash/invisible text */
}

/* FORCE OVERRIDES FOR BRANDING */
.footer {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

.footer-nav h4 {
    color: #fff !important;
}

.footer-nav a {
    color: #94a3b8 !important;
}

.footer-nav a:hover {
    color: #fff !important;
}

.logo img,
.footer-brand img {
    filter: none !important;
    opacity: 1 !important;
}



/* RESTORED BUTTON STYLES */
.btn-outline-dark {
    background: transparent;
    color: #0f172a;
    border: 2px solid #0f172a;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: #0f172a;
    color: #fff;
}

.btn-light {
    background: #fff;
    color: #0369a1;
    /* Primary Dark */
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-light:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Founders Grid (Flexbox for Centering) */
.founders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.founders-grid .team-card {
    flex: 0 1 350px;
    /* Base width close to grid columns */
    max-width: 100%;
}



/* Utility Classes */
.text-center {
    text-align: center !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Fix Founders Grid to be strictly 3 columns */
.founders-grid .team-card {
    flex: 0 1 calc(33.333% - 40px);
    /* Strictly 1/3 width minus gap */
    max-width: 400px;
    /* Prevent huge cards on large screens */
    min-width: 280px;
    /* Prevent squishing */
}

@media (max-width: 992px) {
    .founders-grid .team-card {
        flex: 0 1 calc(50% - 40px);
        /* 2 columns on tablet */
    }
}

@media (max-width: 768px) {
    .founders-grid .team-card {
        flex: 0 1 100%;
        /* 1 column on mobile */
    }
}



/* Video Zoom and Fade Support */
.hero-bg {
    background-color: #000;
    /* Ensure black background for fade/zoom */
}

.hero-bg video {
    transition: opacity 0.5s ease;
    /* Smooth fade */
    will-change: opacity, transform;
}

/* HERO V2 OVERRIDES (Vertical Center & Full Cover) */
.hero.small-hero {
    display: flex !important;
    align-items: flex-start !important;
    /* Top align */
    justify-content: center !important;
    flex-direction: column;
    padding-top: 125px;
    /* Moved up 5px from 130px as requested */
}

.hero-bg video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Restore original full cover */
    object-position: center 30% !important;
    /* Show more of top, hide bottom timer */
    transform: scale(1.25);
    /* Zoom to push timer out */
    top: 0;
}

/* About Page Alignment Fix */
.about-page .section-header .section-title {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* =========================================
   MARKETS PAGE STYLES
   ========================================= */

/* Markets Hero - Matches SVG 'One Core Technology' Section */
.markets-hero {
    background-color: #1E1E1E;
    /* Matches SVG rect fill */
    padding-top: 160px;
    padding-bottom: 120px;
    text-align: left;
    /* SVG text is left aligned */
}

.markets-hero .container {
    max-width: 1200px;
}

.markets-hero h1 {
    font-size: 3.5rem;
    /* ~54px in SVG */
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
}

.markets-hero .lead {
    font-size: 1.125rem;
    /* ~18px in SVG */
    color: #ffffff;
    max-width: 600px;
    margin-bottom: 3rem;
}

.markets-hero .eyebrow {
    color: #C89B2C;
    /* SVG Gold Color */
    margin-bottom: 1rem;
}

/* Button override for gold */
.btn-outline-gold {
    background: transparent;
    color: #ffffff;
    border: 2px solid #C89B2C;
    padding: 12px 28px;
    border-radius: 4px;
    /* SVG shows slight radius or square */
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: #C89B2C;
    color: #1E1E1E;
}

/* Platform Section */
.section-title {
    color: #0B2A4A;
    /* Brand Blue */
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0B2A4A;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Check Lists (Core Advantages) */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    /* Extra room for checkmark */
    margin-bottom: 12px;
    font-size: 1.125rem;
    /* Match global body size */
    color: var(--text-main);
    line-height: 1.6;
}

.check-list li::before {
    content: '\2713';
    /* Unicode checkmark */
    position: absolute;
    left: 0;
    color: var(--primary);
    /* Blue */
    font-weight: 700;
}

.check-list.light-mode li {
    color: #ffffff;
}

.check-list.light-mode li::before {
    color: #ffffff;
}

/* Placeholder Images (Bordered boxes in SVG) */
.placeholder-image {
    background-color: #EEF2F7;
    /* Light gray from SVG */
    border: 1px solid #D8DEE7;
    border-radius: 12px;
    /* Consistent with other rounded elements */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
    padding: 40px;
}

.placeholder-content strong {
    display: block;
    color: #94A3B8;
    /* Muted text */
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.placeholder-content p {
    color: #94A3B8;
    font-size: 1.125rem;
    margin: 0;
}

/* Highlight Title (Healthcare/Infra/Security sub-sub-titles) */
.highlight-title {
    font-size: 1.5rem;
    /* ~22px in SVG */
    font-weight: 700;
    color: #0A1322;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Outcome Box - The bold text at bottom of sections */
.outcome-box {
    margin-top: 2rem;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    font-size: 1.125rem;
    /* Match global body size */
    color: var(--text-main);
    font-weight: 500;
}

/* Strategic Impact Section */
#impact .lead {
    color: #cbd5e1 !important;
}

/* Responsive adjustments for Markets page */
@media (max-width: 768px) {
    .markets-hero h1 {
        font-size: 2.5rem;
    }

    .markets-hero {
        text-align: center;
        padding-top: 120px;
    }

    .markets-hero .lead {
        margin-inline: auto;
    }

    .placeholder-image {
        min-height: 240px;
    }
}

/* Markets Hero Override - Centering */
.markets-hero {
    text-align: center;
}

.markets-hero .lead {
    margin-inline: auto;
}


/* TibaRay Design System Overrides - Markets Page */



/* Headings Blue Color */
.subsection-title {
    color: var(--primary);
}

.highlight-title {
    color: var(--primary-dark);
}

/* Markets Hero Typography Match */
.markets-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
}

.markets-hero .lead {
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.9);
}


/* Markets Hero Override - Dark Blue Background */
.markets-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Markets Hero Typography - Smaller H1 */
.markets-hero h1 {
    font-size: 3.5rem !important;
    /* Matches .page-header h1 */
}


/* Typography Uniformity Check */
.section-title {
    font-size: 2.5rem;
    /* Standard H2 size */
}

/* Make highlight titles (H3) consistent with other H3s */
.highlight-title,
.subsection-title {
    font-size: 1.75rem;
    /* Increased from 1.5rem/1.25rem to match better */
    margin-bottom: 1.25rem;
}

/* Ensure lead text matches standard */
.lead {
    font-size: 1.125rem;
    line-height: 1.6;
}


/* GIF Container - High Quality Preservation */
.gif-frame {
    background-color: #19429A;
    /* Matches GIF background */
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    padding: 60px 40px;
    /* Vertical padding to increase height */
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    /* Force a taller aspect ratio */
}

.gif-frame img {
    width: 100%;
    height: auto;
    border-radius: 0;
    /* Let container handle corners */
    box-shadow: none;
    /* Remove shadow from img */
    max-width: 100%;
}


/* Markets Page Spacing Adjustment */
.split-content .check-list {
    margin-top: 2rem;
}


/* Mobile Optimizations for Markets Page */
@media (max-width: 768px) {

    /* Match About Page Hero padding */
    .markets-hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    /* Reduce GIF frame padding on mobile to save space */
    .gif-frame {
        padding: 30px 20px;
    }

    /* Adjust spacing */
    .split-content .check-list {
        margin-top: 1.5rem;
    }

    /* Ensure typography consistency */
    .markets-hero h1 {
        font-size: 2.5rem;
        /* Consistent with About */
        line-height: 1.2;
    }
}

/* Specific centering for mobile phones (< 480px) */
@media (max-width: 480px) {

    .split-section,
    .split-section.reverse,
    .split-content {
        text-align: center !important;
    }

    /* Force all block elements inside split-content to center their own containers if they have max-width */
    .split-content h2,
    .split-content h3,
    .split-content h4,
    .split-content p,
    .split-content .lead {
        margin-inline: auto !important;
        text-align: center !important;
    }

    .split-content .check-list {
        text-align: center !important;
        margin: 1.5rem 0 0 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    .check-list li {
        padding-left: 0 !important;
        margin-bottom: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .check-list li::before {
        position: static !important;
        display: block !important;
        margin: 0 0 8px 0 !important;
        font-size: 1.25rem !important;
        line-height: 1 !important;
    }

    /* Careers Page Benefits Centering */
    .benefits-list {
        text-align: center !important;
        padding: 0 !important;
        margin-top: 2rem !important;
    }

    .benefits-list li {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 24px !important;
        text-align: center !important;
    }
}


/* Manufacturing Grid Styles */
.manufacturing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.manufacturing-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hover removed per user request for static images */


/* Generic Image Lightbox */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2001;
    line-height: 1;
}

.image-modal-close:hover {
    color: #ffd700;
    /* Gold */
}

@media (max-width: 480px) {
    .manufacturing-grid {
        gap: 10px;
    }
}


/* Enforce rectangular aspect ratio for uniform grid */
.manufacturing-grid img {
    aspect-ratio: 4/3;
    object-fit: cover;
}


/* Manufacturing Combined Layout (3 Stack + 1 Tall) */
.manufacturing-combined {
    display: flex;
    gap: 16px;
    width: 100%;
}

.manufacturing-stack {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 16px;
}

.manufacturing-stack img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.manufacturing-tall {
    width: 50%;
    display: flex;
}

.manufacturing-tall img {
    width: 100%;
    height: 100%;
    /* Force height to match container (flex) */
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.manufacturing-stack img:hover,
.manufacturing-tall img:hover {
    /* Hover scale removed per user request */
    z-index: 2;
}

@media (max-width: 768px) {
    .manufacturing-combined {
        flex-direction: column;
    }

    .manufacturing-stack,
    .manufacturing-tall {
        width: 100%;
    }

    .manufacturing-tall img {
        height: auto;
        max-height: 600px;
    }
}


/* Fix Vertical Alignment for Readiness Section */
#readiness .split-section {
    align-items: center;
}

#readiness .split-content {
    align-self: center;
}


/* Mobile Optimization: 2x2 Grid for Manufacturing */
@media (max-width: 768px) {
    .manufacturing-combined {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .manufacturing-stack,
    .manufacturing-tall {
        display: contents;
        /* Flattens the structure */
        width: auto;
        /* Reset width */
    }

    .manufacturing-stack img,
    .manufacturing-tall img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        /* Enforce uniform rectangles */
        object-fit: cover;
        max-height: none;
        /* Reset max-height */
    }
}

@media (max-width: 480px) {
    .manufacturing-combined {
        grid-template-columns: 1fr;
    }
}


/* Center Filter Bar / Tabs */
.filter-bar {
    justify-content: center;
}


/* Adjust spacing for Readiness section to match previous spacing */
#readiness {
    padding-top: 160px;
}

@media (max-width: 768px) {
    #readiness {
        padding-top: 100px;
        /* Reduce on mobile */
    }
}

/* =========================================
   Active Navigation State
   ========================================= */
.nav-links a.active {
    color: var(--primary) !important;
    /* Clinical Blue to match Contact Button */
    font-weight: 700;
}

/* Specific for Scrolled/White Header */
header.scrolled .nav-links a.active {
    color: var(--primary) !important;
    /* Light Blue for consistency */
}

/* Ensure mobile menu links show active state too */
.nav-menu.active .nav-links li a.active {
    color: var(--primary) !important;
}

/* =========================================
   Legacy Hero Video Positioning Override
   ========================================= */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

.hero-bg video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    transform: scale(1.25) !important;
    top: 0;
    filter: brightness(0.7) contrast(1.1);
}

/* =========================================
   Index2 Hero Variant (Uncropped, No Timer)
   ========================================= */
.hero-bg.hero-bg-alt video {
    object-fit: cover !important;
    /* Fill the container */
    object-position: center bottom !important;
    /* Anchor to bottom to keep timer visible */
    transform: none !important;
    max-width: none;
    max-height: none;
    max-width: none;
    max-height: none;
    width: 100% !important;
    height: 100% !important;
}

/* =========================================
   Demo Links (Home 2 / Tech 2)
   ========================================= */
.nav-links a.demo-link {
    color: #90EE90 !important;
    /* Pale Green */
}

/* =========================================
   Technology Page Readiness Grid
   ========================================= */
#readiness .split-section {
    align-items: flex-start;
    /* Override center alignment */
}

.readiness-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
    width: 100%;
    min-height: 600px;
    /* Taller grid to match text column */
    margin-top: 50px;
    /* Push down to align visually with text */
}

.grid-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    justify-content: space-between;
}

.grid-stack img {
    width: 100%;
    height: calc(33.333% - 11px);
    /* Fill available height in stack */
    object-fit: cover;
    border-radius: 8px;
    /* aspect-ratio removed to allow stretch */
}

.grid-large {
    height: 100%;
}

.grid-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Consistent Shadow Class */
.img-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Only animate image shadow if on the About page */
.about-page .img-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Lightbox Modal (Generic) */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
}

.image-modal-close:hover {
    color: #ea580c;
    /* Orange Accent */
}

@media (max-width: 768px) {
    .readiness-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        /* Reset height for mobile stack */
    }

    .grid-stack {
        flex-direction: column;
        height: auto;
    }

    .grid-stack img {
        height: 200px;
        /* Fixed height for mobile stack items */
    }

    .grid-large {
        height: 300px;
    }
}

/* Back to Top Button (Modern Square) */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Readiness Flex Container & Rows */
.readiness-grid-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Gap between rows */
    width: 60%;
    /* Slight increase for balance */
    margin-left: 0;
    /* Align left to be closer to text */
    margin-right: auto;
}

/* Specific override for Readiness section gap */
#readiness .split-section {
    gap: 20px;
    /* Tighter gap between text and image columns */
}

.readiness-row {
    display: flex;
    gap: 20px;
    /* Gap between columns */
    width: 100%;
}

.readiness-row img {
    border-radius: 8px;
    flex: 1;
    /* Equal width */
    max-width: 100%;
    /* Prevent overflow */
    width: 100%;
    /* Ensure it tries to fill but respects max-width */
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}



@media (max-width: 768px) {
    .readiness-grid-container {
        width: 100%;
        gap: 16px;
    }

    .readiness-row {
        flex-direction: column;
        gap: 16px;
    }

    .readiness-row img {
        width: 100%;
    }
}



/* Ensure split image container centers the grid vertically */
.split-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================
   INTERNAL PAGE HERO STYLES (STATIC)
   ========================================= */

.hero.internal-hero {
    height: 60vh;
    min-height: 500px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    padding-top: 80px;
    /* Offset for navbar */
    background-color: #0f172a;
}

.internal-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.internal-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Center subject as requested */
}

.internal-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.internal-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.internal-hero h1 {
    color: #fff !important;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.internal-hero .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 800px;
    margin-inline: auto;
}

@media (max-width: 768px) {
    .hero.internal-hero {
        height: auto;
        min-height: 400px;
        padding: 140px 20px 80px;
    }

    .internal-hero h1 {
        font-size: 2.25rem;
    }
}

/* Technology & Careers Hero Overrides */
.technology-page .internal-hero .hero-overlay,
.careers-page .internal-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.25) 100%);
}

.technology-page .hero-bg video,
.careers-page .hero-bg video {
    filter: brightness(0.82) contrast(1.08);
    /* Softened to prevent highlight 'flashing' */
    transform: scale(1.15);
    /* Increased scale to 'push' clipping edges off-screen */
    object-position: center;
}

/* Mobile Hero Image Positioning */
@media (max-width: 768px) {

    /* Markets: Focus on Soldier (Left) */
    .markets-page .internal-hero .hero-bg img {
        object-position: 20% center;
    }

    /* News: Focus on Bill Loo (Left) */
    .news-page .internal-hero .hero-bg img {
        object-position: 15% center;
    }

    /* Terms of Use: Focus on Bill Loo (Right) */
    .legal-page .internal-hero .hero-bg img {
        object-position: 80% center;
    }

    /* Contact: Focus on Sami (Far Left) */
    .contact-page .internal-hero .hero-bg img {
        object-position: 5% center;
    }
}

/* ================================================================ */
/* ================================================================ */
/* VIDEO LIGHTBOX / MODAL SYSTEM                                  */
/* ================================================================ */

.zoom-video {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoom-video:hover {
    transform: scale(1.02);
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.98);
    /* Deep brand blue, nearly opaque */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

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

.video-modal-content {
    width: 90%;
    max-width: 1280px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
    line-height: 1;
}

.video-modal-close:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--gold);
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}