/* Build v9 2025-08-11-1919 — Fix hero background image; Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Publications Page Overrides */
.publications-page .operations-section .operations-grid.horizontal-cards {
    margin-top: 2rem; /* keep grid spacing consistent */
}

/* Ensure card body content is left-aligned and not width-constrained */
.publications-page .operations-section .operation-card .card-body p {
    text-align: left;
    max-width: none;
    margin: 0 0 0.5rem;
    line-height: 1.6;
}

/* Space for the new CTA button */
.publications-page .view-publication-btn {
    margin-top: 0.75rem; /* per standards guide */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.home .nav-logo .logo {
    height: 42px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background-color: #f1f5f9;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* Search and Social */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #2563eb;
}

.search-btn {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #1d4ed8;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    color: #64748b;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #2563eb;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hamburger active (X animation) */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive header & nav */
@media (max-width: 1024px) {
    .nav-container {
        gap: 0.75rem;
    }

    /* Hide non-essentials on tablet/mobile */
    .nav-search,
    .social-links {
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Collapse menu */
    .nav-menu {
        position: fixed;
        top: 72px; /* approx header height */
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        max-height: 80vh; /* reveal menu when active */
    }

    .nav-item { width: 100%; }
    .nav-link {
        display: block;
        padding: 0.875rem 0.5rem;
        border-radius: 6px;
    }

    /* Make dropdowns readable on mobile (expanded list) */
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0.5rem 0.75rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu a {
        padding: 0.5rem 0.25rem;
    }
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

/* Hero Background Carousel */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 1.5s ease-in-out, transform 5s ease-out;
    will-change: opacity, transform;
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Specific positioning for people photos to show faces */
.hero-bg-slide.people-photo {
    background-position: center 20%;
    background-size: cover;
}

/* Facility photos can use standard centering */
.hero-bg-slide.facility-photo {
    background-position: center center;
    background-size: cover;
}

/* Hero overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8);
    z-index: 1;
}

/* Home: modern SVG art under the blue tint */
.home .hero::before {
    /* Use full background to override the base 0.8 tint; no static art here for more image visibility */
    background: linear-gradient(rgba(30, 58, 138, 0.30), rgba(30, 58, 138, 0.30));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
}

/* Brand logo light overlay on hero (white, masked by logo) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* below .hero-content (z-index: 2), above bg slides */
    opacity: 0.22; /* intensity of the white mark */
    /* Fallback: draw the PNG itself and turn it white via filter */
    background-image: url('../images/numeri_logo.png');
    background-repeat: no-repeat;
    background-size: clamp(420px, 45vw, 780px) auto;
    background-position: right 2% center;
    filter: grayscale(1) brightness(10) invert(1);
    mix-blend-mode: screen;
}

/* Use CSS masks when supported to paint the logo shape in white */
@supports (mask-image: linear-gradient(#000 0 0)) or (-webkit-mask-image: linear-gradient(#000 0 0)) {
    .hero::after {
        background: #ffffff; /* the visible color of the mark */
        background-image: none; /* override fallback */
        filter: none; /* override fallback */
        -webkit-mask-image: url('../images/numeri_logo.png');
        mask-image: url('../images/numeri_logo.png');
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: clamp(420px, 45vw, 780px) auto;
        mask-size: clamp(420px, 45vw, 780px) auto;
        -webkit-mask-position: right 2% center;
        mask-position: right 2% center;
        mix-blend-mode: screen; /* subtle lift over blue overlay */
    }
}

/* Optional placement helpers if needed on some pages */
.hero.brand-left::after {
    -webkit-mask-position: left 2% center;
    mask-position: left 2% center;
    background-position: left 2% center;
}

@media (max-width: 768px) {
    .hero::after {
        opacity: 0.18; /* soften on small screens */
    }
}

/* Modern hero light sweeps (Home only) */
.home .hero::after {
    /* override any watermark/mask */
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
    background-image: url('../images/hero/home-hero-art.svg');
    background-repeat: no-repeat;
    background-size: 125% 125%;
    background-position: 50% 52%;
    mix-blend-mode: soft-light;
    opacity: 0.09;
    animation: hero-pan 26s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
    .home .hero::after {
        opacity: 0.08;
    }
}

/* Improve hero text readability with lighter tint */
.home .hero .hero-content h1,
.home .hero .hero-content p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@keyframes hero-pan {
    0% { background-position: 46% 54%; }
    100% { background-position: 54% 46%; }
}



    .hero-content {
    position: relative;
    z-index: 3; /* above .hero-overlay */
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 60vh;
}

/* Hero overlay swoosh (animated gradient that slides in above bg, below text) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2; /* above ::before/::after art, below .hero-content */
    pointer-events: none;
    /* Subtle blue tint that simply fades in */
    background: linear-gradient(180deg,
        rgba(30,58,138,0.00) 0%,
        rgba(30,58,138,0.22) 40%,
        rgba(30,58,138,0.35) 100%
    );
    transform: none;
    opacity: 0;
}

.hero-overlay.animate {
    animation: heroOverlayFade 1800ms ease-in-out forwards;
}

@keyframes heroOverlayFade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* Hero Text Carousel */
.hero-carousel {
    max-width: 900px;
}

.hero-carousel .slide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
    position: absolute;
    will-change: opacity, transform;
}

.hero-carousel .slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Dissolve-out: fade without downward movement when exiting */
.hero-carousel .slide.dissolve-out {
    opacity: 0 !important;
    transform: none !important;
    transition: opacity 700ms ease !important;
}

.hero-carousel h1,
.hero-carousel p {
    color: #ffffff;
}

.hero-carousel h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-carousel .subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .hero-carousel h1 {
        font-size: 2rem;
    }
    .hero-content { min-height: 50vh; }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.hero-achievements {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.hero-achievements li {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    padding-left: 0;
    position: static;
}

/* Remove checkmark bullets - clean style like aim-list */

.hero-video {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.video-overlay h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Responsive video wrapper inside hero or sections */
.video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 1rem auto 0;
    aspect-ratio: 16 / 9;
}
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    display: block;
}

/* Vision Section */
.vision-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-text h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.vision-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #64748b;
}

.vision-points {
    margin-bottom: 2rem;
}

.vision-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.check-icon {
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.vision-highlight {
    background: #e0f2fe;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
    margin-bottom: 2rem;
}

.vision-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Home: constrain the large Vision logo so it doesn't overpower layout */
.vision-image .site-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto 0.75rem;
    border-radius: 0; /* keep logo crisp */
}

/* Vision grid responsive stacking */
@media (max-width: 900px) {
    .vision-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2563eb;
}

.cta-button:hover {
    background: transparent;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

/* Pill variant for CTAs (used site-wide including home cards) */
.btn-pill {
    display: inline-block;
    background: #1e3a8a; /* primary blue */
    color: #ffffff;
    padding: 0.7rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 2px solid #1e3a8a;
    box-shadow: 0 6px 16px rgba(30,58,138,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-pill:hover {
    background: #2563eb; /* slightly lighter */
    border-color: #2563eb;
    box-shadow: 0 10px 28px rgba(37,99,235,0.28);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-pill:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(30,58,138,0.25); }

/* Shimmer sweep on hover */
.btn-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.btn-pill:hover::after {
    transform: translateX(120%);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-pill, .btn-pill::after,
    .fade-only { transition: none !important; }
}

/* Spacing for hero CTAs under headings/subtitles */
.hero-carousel .cta-button,
.hero-carousel .btn-pill { margin-top: 0.75rem; }

/* Ensure pill buttons have good contrast on blue backgrounds */
.section-blue .btn-pill {
    background: transparent;
    color: #bfdbfe;
    border-color: #bfdbfe;
    box-shadow: none;
}
.section-blue .btn-pill:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Hero: prefer brighter blue for pill to stand out over tint */
.hero .btn-pill {
    background: #2563eb;
    border-color: #2563eb;
}

/* Aim section uses blue bg but not .section-blue utility; mirror contrast rules */
.aim-section .btn-pill {
    background: transparent;
    color: #bfdbfe;
    border-color: #bfdbfe;
    box-shadow: none;
}
.aim-section .btn-pill:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.aim-text .btn-pill { margin-top: 0.75rem; }

/* Spacing on operation cards */
.operation-card .btn-pill { margin-top: 0.75rem; }

/* Aim Section */
.aim-section {
    padding: 6rem 0;
    background: #1e3a8a;
    color: white;
}

.aim-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.aim-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.aim-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.aim-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.aim-list {
    list-style: none;
    margin-bottom: 2rem;
}

.aim-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.aim-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Operations Section */
.operations-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.operation-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #2563eb;
}

.operation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.operation-card h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.operation-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learn-more-btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Align CTAs at bottom on standard (non-horizontal) operations grid */
.operations-section .operations-grid:not(.horizontal-cards) .operation-card {
    display: flex;
    flex-direction: column;
}
.operations-section .operations-grid:not(.horizontal-cards) .operation-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.operations-section .operations-grid:not(.horizontal-cards) .operation-card .btn-pill,
.operations-section .operations-grid:not(.horizontal-cards) .operation-card .learn-more-btn,
.operations-section .operations-grid:not(.horizontal-cards) .operation-card .cta-button {
    margin-top: auto; /* push CTA to the bottom edge inside padded card */
    align-self: flex-start; /* keep left alignment */
}

/* Normalize vertical spacing inside operation cards to match home page */
.operations-section .operation-card {
    gap: 0.75rem; /* consistent inner spacing between blocks */
}
.operations-section .operation-card h3,
.operations-section .operation-card h4 {
    margin-bottom: 0.5rem; /* tighter heading spacing like home */
}
.operations-section .operation-card p {
    margin: 0 0 0.75rem; /* consistent paragraph spacing */
    line-height: 1.6;
}
.operations-section .operation-card ul {
    margin: 0 0 0.75rem 1.25rem; /* standard list spacing and indent */
    padding: 0;
}
.operations-section .operation-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
/* Overview page image block alignment (match .card-img-top spacing) */
.operations-section .operation-card .operation-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 1rem;
}
/* CTA spacing consistent with home cards */
.operations-section .operation-card .btn-pill,
.operations-section .operation-card .learn-more-btn,
.operations-section .operation-card .cta-button {
    margin-top: 0.75rem;
}

/* Standardize operation card images and headings */
.operation-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin-bottom: 1rem;
}

/* Uniform card heights with expandable content */
.operations-grid .operation-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px; /* Consistent minimum height */
}

.operation-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.operation-card .card-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.operation-card .card-content.collapsed {
    max-height: 200px; /* Limit height when collapsed */
}

.operation-card .card-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0px;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.operation-card .expand-btn {
    margin-top: auto;
    padding-top: 0.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
}

.operation-card .expand-btn .cta-button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.operation-card .expand-btn .cta-button:hover {
    background: #1e40af;
}

.operation-card h4 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.operation-card .card-body ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.operation-card .card-body ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Highlight card spans full width above other tiles */
.operations-grid .highlight-card {
    grid-column: 1 / -1;
}

/* Section title row inside operations grid (e.g., Highlights) */
.operations-grid .operation-card-section-title {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center; /* center the title block within the grid */
}
.operations-grid .operation-card-section-title .card-title {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin: 0.25rem 0 0.25rem;
    font-weight: 700;
}

/* Utility: center content for specific operation cards only */
.operation-card.center-content .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.operation-card.center-content .cta-button,
.operation-card.center-content .btn-primary {
    align-self: center;
}

/* Override global left alignment for CTAs when card is center-content */
.operations-section .operations-grid:not(.horizontal-cards) .operation-card.center-content .cta-button,
.operations-section .operations-grid:not(.horizontal-cards) .operation-card.center-content .btn-primary {
    align-self: center;
}

/* Utility: center a single tile across the grid */
.operation-card.span-center {
    grid-column: 1 / -1; /* take full row */
    justify-self: center; /* center within the full row */
    width: 100%;
    max-width: 460px; /* keep a nice readable width */
}

/* Single-column vertical cards layout (formerly horizontal) */
.operations-grid.horizontal-cards {
    grid-template-columns: 1fr; /* single column stack of horizontal tiles */
    gap: 1.5rem;
}

/* Footer address: optional dark link for special cases */
.footer-address a.link-dark {
    color: #0f172a; /* slate-900 (near black) */
}
.footer-address a.link-dark:hover,
.footer-address a.link-dark:focus {
    color: #0b1324;
}

/* Footer: make all links white for contrast on blue background */
.footer a,
.footer .footer-address a,
.footer .footer-links a {
    color: #ffffff;
}
.footer a:hover,
.footer a:focus {
    color: #e0f2fe;
}

.operations-grid.horizontal-cards .operation-card:not(.highlight-card) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.operations-grid.horizontal-cards .operation-card.highlight-card {
    min-height: auto;
    height: fit-content;
}

/* Apply to all highlight cards, not just horizontal layouts */
.operation-card.highlight-card {
    min-height: auto;
    height: fit-content;
}

.operations-grid.horizontal-cards .operation-card:not(.highlight-card) .card-img-top {
    width: 100%;
    height: 220px;
    margin-bottom: 1rem; /* vertical spacing for stacked layout */
    border-radius: 10px;
}

.operations-grid.horizontal-cards .operation-card:not(.highlight-card) .card-body {
    padding: 0; /* use card padding; no extra inner padding needed */
}

/* Slide-in from the left for these tiles using existing fade-in/visible JS hooks */
.operations-grid.horizontal-cards .operation-card.fade-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.operations-grid.horizontal-cards .operation-card.fade-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Desktop: horizontal layout with image left, text right */
@media (min-width: 901px) {
    .operations-grid.horizontal-cards .operation-card:not(.highlight-card) {
        flex-direction: row;
        align-items: stretch;
        gap: 2rem;
    }
    .operations-grid.horizontal-cards .operation-card:not(.highlight-card) .card-img-top {
        width: 300px;
        height: 200px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .operations-grid.horizontal-cards .operation-card:not(.highlight-card) .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Animated Atom Logo Styles */
:root {
    --atom-stroke: #1e3a8a; /* NuMeRI primary blue */
    --atom-dot-fill: #1e3a8a;
    --atom-stroke-width: 3.2;
    --atom-size: 200px;
    --atom-speed-1: 14s;
    --atom-speed-2: 18s;
    --atom-speed-3: 22s;
    --atom-speed-4: 26s;
}

.atom-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 10px;
    padding: 20px;
}

.logo-wrap {
    width: var(--atom-size);
    aspect-ratio: 1/1;
    display: inline-block;
}

.logo-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.orbit {
    fill: none;
    stroke: var(--atom-stroke);
    stroke-width: var(--atom-stroke-width);
    stroke-linecap: round;
}

.dot {
    fill: var(--atom-dot-fill);
}

/* Pause all SMIL animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    svg * { 
        animation: none !important;
    }
}

/* Responsive: stack image above text on smaller screens */
@media (max-width: 900px) {
    .operations-grid.horizontal-cards .operation-card:not(.highlight-card) {
        flex-direction: column;
        align-items: stretch;
    }
    .operations-grid.horizontal-cards .operation-card:not(.highlight-card) .card-img-top {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
}

/* Page Header */
.page-header {
    background: #1e3a8a !important; /* site primary blue */
    background-color: #1e3a8a !important;
    background-image: none !important; /* remove gradients/images */
    color: #e2e8f0;      /* light slate for body text */
}
.page-header { position: relative; }
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #1e3a8a !important; /* enforce solid blue */
    background-image: none !important;
    opacity: 1 !important; /* fully cover any background image */
    z-index: 0;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1, .page-header h2, .page-header h3 { color: #ffffff; }
.page-header p, .page-header li { color: #e2e8f0; }
.page-header a { color: #bfdbfe; }
.page-header a:hover { color: #e0f2fe; }

/* About Section */
.about-section {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.facility-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Section background utilities for uniform alternation */
.section-blue {
    background: #1e3a8a;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.section-white {
    background: #ffffff;
    color: #0f172a;
}

/* Vision Section About */
.vision-section-about {
    padding: 6rem 0;
    text-align: left; /* headers left-aligned across site */
}

.vision-content-about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.vision-content-about p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1rem; /* slightly tighter under text */
    line-height: 1.7;
}

/* Adjust paragraph contrast by background */
.section-blue .vision-content-about p { color: #e2e8f0; }
.section-white .vision-content-about p { color: #0f172a; }

/* Heading color consistency like home page */
.section-white .vision-content-about h2 { color: #1e3a8a; }
.section-blue .vision-content-about h2 { color: #ffffff; }

/* Spacing tweaks when Vision and Mission are consecutive */
.vision-section-about + .vision-section-about {
    padding-top: 0.5rem; /* tight gap between Vision and Mission */
}

/* Center CTA inside combined Vision/Mission */
.cta-row { text-align: center; }
.cta-row .cta-button { margin-top: 0.75rem; }

/* CTA section following Vision/Mission */
.cta-section {
    background: #1e3a8a; /* matches blue section */
    color: white;
    text-align: center;
    padding: 1.5rem 0 4rem; /* tighter above, comfortable below */
}

/* Section background utilities */
.section-blue {
    background: #1e3a8a;
    color: #ffffff;
}
.section-blue h2,
.section-blue h3 { color: #ffffff; }
.section-blue p,
.section-blue li { color: #e2e8f0; }
.section-blue a { color: #bfdbfe; }
.section-blue a:hover { color: #e0f2fe; }

 /* Subtle watermark for blue sections */
 .section-blue::after {
     content: "";
     position: absolute;
     inset: 0;
     pointer-events: none;
     background-image: url('../images/BG_Logo.png');
     background-repeat: no-repeat;
     background-size: clamp(420px, 42vw, 720px) auto;
     background-position: right -80px center;
     opacity: 0.06; /* keep subtle to preserve readability */
     z-index: 0;
 }

 /* Ensure content sits above the watermark */
 .section-blue > *, .section-blue .container {
     position: relative;
     z-index: 1;
 }

 @media (max-width: 900px) {
     .section-blue::after {
         background-size: clamp(300px, 60vw, 520px) auto;
         background-position: right -120px center;
         opacity: 0.05;
     }
 }

.section-white {
    background: #ffffff;
    color: #0f172a;
}
.section-white h2 { color: #1e3a8a; }
.section-white h3 { color: #64748b; }
.section-white p,
.section-white li { color: #0f172a; }

/* Global: thin white spacer above footer on all pages */
.footer { position: relative; }
.footer::before {
    content: "";
    display: block;
    height: 16px; /* thin spacer */
    background: #ffffff;
}

/* Page hero/header standardization: enforce blue background + accessible text */
.page-header {
    background: #1e3a8a !important; /* site primary blue */
    background-color: #1e3a8a !important;
    background-image: none !important; /* remove gradients/images */
    color: #e2e8f0;      /* light slate for body text */
}
.page-header { position: relative; }
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #1e3a8a !important; /* enforce solid blue */
    background-image: none !important;
    opacity: 1 !important; /* fully cover any background image */
    z-index: 0;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1, .page-header h2, .page-header h3 { color: #ffffff; }
.page-header p, .page-header li { color: #e2e8f0; }
.page-header a { color: #bfdbfe; }
.page-header a:hover { color: #e0f2fe; }
.hero .hero-achievements li { color: #e2e8f0 !important; }
.hero a, .page-header a { color: #bfdbfe; }
.hero a:hover, .page-header a:hover { color: #e0f2fe; }

 /* Consistent page header spacing (all subpages) */
 .page-header {
     padding: 6rem 0 3rem;
     margin-bottom: 3rem;
 }
 @media (max-width: 768px) {
     .page-header {
         padding: 4.5rem 0 2rem;
         margin-bottom: 2rem;
     }
 }

.cta-section .vision-content-about {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section .cta-button {
    margin-top: 0.5rem;
}

/* CTA spacing when inside Vision container */
.vision-content-about .cta-button {
    margin-top: 0.75rem; /* closer to Vision line */
}

/* Campus Section */
.campus-section {
    padding: 6rem 0;
}

/* Campus colors adapt to background utility */
.campus-section.section-blue {
    background: #1e3a8a;
    color: #fff;
}

.campus-section.section-white {
    background: #ffffff;
    color: #0f172a;
}

.campus-section h2,
.campus-section p,
.campus-section li {
    color: #fff;
}

.campus-section.section-blue a {
    color: #bfdbfe; /* light blue for links on dark bg */
}

.campus-section.section-blue a:hover {
    color: #e0f2fe;
}

/* Core Values Section */
.core-values-section {
    padding: 6rem 0; /* align with other sections */
}

.core-values-section.section-white {
    background: #ffffff;
    color: #0f172a; /* slate-900 */
}

.core-values-section.section-blue {
    background: #1e3a8a;
    color: #ffffff;
}

.core-values-section .core-values-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Core Values header mirrors Campus header layout */
.core-values-header {
    text-align: left; /* all headers aligned left */
    margin-bottom: 4rem;
}

.core-values-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 700;
}

.core-values-section.section-white .core-values-header h2 { color: #1e3a8a; }
.core-values-section.section-blue .core-values-header h2 { color: #ffffff; }

.core-values-header h3 {
    font-size: 1.25rem; /* match campus subheading size */
    margin-top: 0.5rem;
}

.core-values-section.section-white .core-values-header h3 { color: #64748b; }
.core-values-section.section-blue .core-values-header h3 { color: #bfdbfe; }

.core-values-section h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.core-values-section .values-list {
    list-style: disc;
    padding-left: 1.25rem; /* indent bullets */
    margin: 0;
}

.core-values-section .values-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Ensure Core Values text contrasts on blue */
.core-values-section.section-blue .core-values-content,
.core-values-section.section-blue .core-values-content p,
.core-values-section.section-blue .core-values-content li { color: #e2e8f0; }

.core-values-section.section-blue a { color: #bfdbfe; }
.core-values-section.section-blue a:hover { color: #e0f2fe; }

/* List-check now uses clean style - no bullets */

/* Shared list style matching Aim section */
.aim-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.aim-list li {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    padding-left: 2rem;
    position: relative;
}

.aim-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.2rem;
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Ensure readability on dark backgrounds */
.vision-section-about .aim-list li,
.campus-section .aim-list li {
    color: #e2e8f0;
}

/* Clean list style to match aim-list */
.list-check {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.list-check li {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    padding-left: 0;
    position: static;
}

/* Remove checkmark bullets - clean style consistent across site */

.campus-header {
    text-align: left; /* all headers aligned left */
    margin-bottom: 4rem;
}

.campus-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.campus-section.section-blue .campus-header h2 { color: #ffffff; }
.campus-section.section-white .campus-header h2 { color: #1e3a8a; }

.campus-header h3 { font-size: 1.25rem; }
.campus-section.section-blue .campus-header h3 { color: #bfdbfe; }
.campus-section.section-white .campus-header h3 { color: #64748b; }

.campus-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.campus-text h3 {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.campus-text p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
}

/* Adapt Campus inner content colors to background */
.campus-section.section-blue .campus-text h3 { color: #ffffff; }
.campus-section.section-white .campus-text h3 { color: #1e3a8a; }
.campus-section.section-blue .campus-text p { color: #e2e8f0; }
.campus-section.section-white .campus-text p { color: #64748b; }

.campus-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.campus-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* News Section */
.news-section {
    padding: 6rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.news-content {
    padding: 2rem;
}

.news-content h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.read-more-btn {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #1d4ed8;
}

/* Team Section */
.featured-team-section {
    padding: 6rem 0;
    text-align: center;
}

.featured-team-section h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-weight: 700;
}

.featured-member {
    max-width: 400px;
    margin: 0 auto;
}

.member-photo {
    margin-bottom: 2rem;
}

.member-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2563eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-info h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.member-title {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-email {
    color: #64748b;
    font-size: 0.875rem;
}

/* Leadership and Departments */
.leadership-section,
.departments-section {
    padding: 4rem 0;
}

.department {
    margin-bottom: 4rem;
}

.department h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
}

/* Ensure consistent card width */
.team-grid .team-member-card {
    flex: 0 0 300px;
    max-width: 300px;
}

/* Special case for exactly 1 item - keep centered */
.team-grid .team-member-card:only-child {
    margin: 0 auto;
}

/* Special case for exactly 2 items - space them apart */
.team-grid .team-member-card:nth-child(2):last-child:not(:only-child) {
    margin-left: auto;
}

.team-grid .team-member-card:nth-child(1):nth-last-child(2) {
    margin-right: auto;
}

/* Team Member Card Styling */
.team-member-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.member-photo-gradient {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1262ab 0%, #2a80c8 100%);
    padding: 4px;
}

.member-photo-gradient img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.team-member-card h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member-card .member-title {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.team-member-card .member-email {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.team-member-card.slide-in-left {
    transform: translateX(-50px);
}

.team-member-card.slide-in-right {
    transform: translateX(50px);
}

.team-member-card.slide-in-top {
    transform: translateY(-50px);
}

.team-member-card.slide-in-bottom {
    transform: translateY(50px);
}

.team-member-card.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.team-member {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #2563eb;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.team-member h3 {
    font-size: 1.125rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-member .member-title {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Experience Section */
.experience-section {
    padding: 6rem 0;
    background: #f8fafc;
    text-align: center;
}

.experience-section h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.experience-section p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Contact Form */
.contact-form h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Collaboration Section */
.collaboration-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.collaboration-section h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.collaboration-section > p {
    font-size: 1.125rem;
    color: #64748b;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.collaboration-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.collaboration-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.collaboration-item h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.collaboration-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1e3a8a;
    color: white;
}

.footer-top {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.footer-logo-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-address h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-address p {
    color: #e2e8f0;
    line-height: 1.6;
}

.footer-main {
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-search {
    margin-bottom: 1.5rem;
}

.footer-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.footer-search-input::placeholder {
    color: #cbd5e1;
}

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

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

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #cbd5e1;
    font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .vision-content,
    .aim-content,
    .about-content,
    .campus-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .operations-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    .hamburger span {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-container {
        position: relative;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1rem;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        display: block;
        padding: 0.75rem 0;
    }
    .nav-search,
    .social-links {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .vision-text h2,
    .aim-text h2 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logos {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .operations-grid,
    .news-grid,
    .collaboration-grid {
        grid-template-columns: 1fr;
    }
    
    .campus-images {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Fade-only animation (no slide) */
.fade-only {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-only.visible {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Slide-in from bottom (used for PCIF images) */
.slide-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

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



/* Team Member Photos Styles */
.team-grid-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member-photo {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid #2563eb;
}

.team-member-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.member-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member-photo:hover .member-photo-circle img {
    transform: scale(1.1);
}

.team-member-photo h3 {
    font-size: 1.125rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-member-photo .member-title {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Operation Card Image Carousel */
.operation-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.team-member-photo .member-email {
    color: #64748b;
    font-size: 0.875rem;
    font-style: italic;
}

/* Department Head Styling */
.department-head {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.featured-dept-head {
    max-width: 350px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-top: 4px solid #10b981;
}

.featured-dept-head h3 {
    color: white;
}

.featured-dept-head .member-title {
    color: #e2e8f0;
}

.featured-dept-head .member-email {
    color: #cbd5e1;
}

.featured-dept-head .member-photo-circle {
    border-color: #10b981;
}

/* Enhanced Leadership Section */
.leadership-section h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-weight: 700;
    text-align: center;
}

/* Department Sections */
.department {
    margin-bottom: 5rem;
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.department:last-child {
    border-bottom: none;
}

.department h2 {
    font-size: 2.25rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.department h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    border-radius: 2px;
}

/* Responsive Design for Team Photos */
@media (max-width: 768px) {
    .team-grid-photos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .member-photo-circle {
        width: 120px;
        height: 120px;
    }
    
    .team-member-photo {
        padding: 1.5rem;
    }
    
    .featured-dept-head {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .member-photo-circle {
        width: 100px;
        height: 100px;
    }
    
    .team-member-photo h3 {
        font-size: 1rem;
    }
    
    .team-member-photo .member-title {
        font-size: 0.8rem;
    }
}

/* Operations Section Styles */
.operations-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.operations-section h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.operations-section p {
    font-size: 1.25rem;
    color: #64748b;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.operation-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #2563eb;
}

.operation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.operation-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.operation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.operation-content {
    padding: 2rem;
}

.operation-content h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.operation-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.operation-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.operation-link:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

.operation-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.operation-link:hover::after {
    transform: translateX(3px);
}

/* Responsive Design for Operations */
@media (max-width: 1024px) {
    .operations-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .operation-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .operations-section {
        padding: 4rem 0;
    }
    
    .operations-section h2 {
        font-size: 2rem;
    }
    
    .operations-section p {
        font-size: 1.125rem;
        margin-bottom: 3rem;
    }
    
    .operations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .operation-content {
        padding: 1.5rem;
    }
    
    .operation-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .operations-section {
        padding: 3rem 0;
    }
    
    .operations-section h2 {
        font-size: 1.75rem;
    }
    
    .operation-image {
        height: 200px;
    }
    
    .operation-content {
        padding: 1.25rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-in-out;
}

.modal-header {
    background-color: #1e3a8a;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
    line-height: 1.6;
}

.modal-body h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-body h4 {
    color: #1e3a8a;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #374151;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .close {
        font-size: 1.75rem;
    }
}

/* Academic Placeholder Styles */
.academic-placeholder {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.academic-icon {
    text-align: center;
    color: white;
}

.graduation-cap {
    position: relative;
    margin: 0 auto 1rem;
    width: 60px;
    height: 40px;
}

.cap-top {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cap-base {
    width: 80px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 4px;
    position: absolute;
    top: 20px;
    left: -10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tassel {
    width: 2px;
    height: 25px;
    background-color: #fbbf24;
    position: absolute;
    top: 15px;
    right: 5px;
    border-radius: 1px;
}

.tassel::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #fbbf24;
    border-radius: 50%;
    position: absolute;
    bottom: -4px;
    left: -3px;
}

.academic-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.operation-card:hover .academic-placeholder {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

