/**
 * NAU Radiant Center - Design System
 * --------------------------------------
 * Implements strict adherence to NAU Brand Guidelines.
 * Architecture: Mobile-First, Utility-Enhanced Component pattern.
 */
/**
 * Global Design Tokens (CSS Variables)
 * Centralizes all color, spacing, and typography to ensure consistency.
 * Theme updates should be applied here to cascade globally.
 */
:root {
    /* Official NAU Colors */
    --nau-blue: #002454;
    --nau-blue-dark: #001838;
    --nau-blue-light: #003a85;
    --nau-gold: #FAC01A;
    --nau-gold-dark: #dbb400;
    --nau-gold-light: #fdd054;
    --nau-green: #007a33;
    --nau-red: #bb0000;
    --nau-monsoon: #C3B8B2;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;

    /* Thematic Variables */
    --bg-body: var(--white);
    --text-main: var(--nau-blue);
    --text-muted: var(--gray-600);
    --border-light: var(--gray-300);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-display: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* UI Elements - SOFTER EDGES */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    /* For pill shapes */

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.12);

    /* Transitions - APPLE/GOOGLE FEEL */
    --trans-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --trans-med: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --trans-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --trans-bouncy: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    /* Native smooth scroll for anchor links */
    font-size: 16px;
    /* Base 1rem = 16px. Ensure user preference is respected. */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    color: var(--text-main);
    /* MODERN FLUID BACKGROUND */
    background-color: var(--gray-50);
    background-image: none;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--gray-300);
    color: var(--nau-blue);
}

::-moz-selection {
    background: var(--gray-300);
    color: var(--nau-blue);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

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

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

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
    max-width: 70ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/**
 * Utility Classes
 * --------------------------------------
 * Functional class primitives for overriding component styles or handling layout micro-adjustments.
 * Use these sparingly to maintain clean HTML.
 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 2;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 2;
}

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

.text-right {
    text-align: right;
}

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

.text-blue {
    color: var(--nau-blue);
}

.text-white {
    color: #fff;
}

.bg-blue {
    background-color: var(--nau-blue);
    color: #fff;
}

.bg-gold {
    background-color: var(--nau-gold);
    color: var(--nau-blue);
}

.bg-dark {
    background-color: var(--black);
    color: #fff;
}

.bg-gray {
    background-color: var(--gray-100);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.d-flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.gap-xl {
    gap: var(--space-xl);
}

.grid {
    display: grid;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.section-padding {
    padding: var(--space-4xl) 0;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.hidden {
    display: none;
}

/**
 * Component Layer: Buttons & Interactives
 * --------------------------------------
 * Reusable UI components. Buttons use the 'btn' base class with modifiers (e.g., .btn-primary)
 * for variant control.
 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--trans-med);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: var(--radius-full);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--nau-gold);
    color: var(--nau-blue);
    border-color: var(--nau-gold);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--nau-blue);
    border-color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--nau-blue);
}

.btn-secondary {
    background-color: var(--nau-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--nau-blue-light);
}

.section-header {
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: var(--space-sm);
}

.section-header h2 {
    margin-bottom: 0;
    color: var(--nau-blue);
    font-size: 2.2rem;
    font-weight: 700;
}

.section-header .see-all {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--nau-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    /* Mobile: center "Meet The Team" + make link feel like a button */
    .carousel-section .section-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .carousel-section .section-header h2 {
        width: 100%;
        text-align: center;
    }

    .carousel-section .section-header .see-all {
        display: none;
        justify-content: center;
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid color-mix(in srgb, var(--nau-gold) 45%, rgba(255, 255, 255, 0.35));
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--nau-gold) 18%, transparent),
            0 10px 22px rgba(0, 0, 0, 0.12);
    }
}

.sub-section-header {

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: var(--space-sm);
}

.sub-section-header h2,
.sub-section-header h3 {
    margin-bottom: 0;
    color: var(--nau-blue);
    font-size: 2.2rem;
    font-weight: 700;
}

.sub-section-header .see-all {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--nau-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

/**
 * Contact Gateway Page
 * --------------------------------------
 * Styles for the interactive category selection grid.
 */
.gateway-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gateway-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--nau-blue);
}

.gateway-card.selected {
    border-color: var(--nau-gold);
    background-color: #fdfdfd;
    box-shadow: 0 0 0 2px var(--nau-gold);
}

.gateway-card i {
    font-size: 2.5rem;
    /* ~text-4xl */
    color: var(--nau-blue);
    margin-bottom: var(--space-md);
    transition: color 0.3s;
}

.gateway-card:hover i,
.gateway-card.selected i {
    color: var(--nau-gold);
}

.gateway-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.gateway-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Dynamic Form Container */
#formContainer {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--nau-gold);
    overflow: hidden;
    margin-top: var(--space-2xl);
    scroll-margin-top: 100px;
    /* For smooth scrolling offset */
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.required::after {
    content: " *";
    color: var(--nau-red);
}

/**
 * Form & Layout Utility Classes
 * Extracted from Contact_Us.html inline styles
 */
.page-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-wrapper {
    margin-top: 40px;
    padding: 40px;
}

.form-header-line {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
}

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

/* New Utilities */
.pt-20 {
    padding-top: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.col-span-2 {
    grid-column: span 2;
}

/* Card Styles */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--trans-med), box-shadow var(--trans-med);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.card-img-top {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    background-color: var(--gray-200);
}

.card-img-top img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

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

.card-body {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--nau-blue);
    font-weight: 700;
}

.card-text {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

/**
 * Navigation Component (SiteHeader)
 * --------------------------------------
 * Sticky header implementation with glassmorphism backdrop.
 * Handles extensive state changes via '.scrolled' class.
 */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    /* Premium White Glass */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* box-shadow provided separation, but now we add a gradient border */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
}

/* Aesthetic Gradient Outline */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--nau-blue) 35%,
            var(--nau-gold) 50%,
            var(--nau-blue) 65%,
            transparent 100%);
    opacity: 0.8;
    z-index: 1001;
}


.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    /* More opaque on scroll */
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

.brand-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    gap: 16px;
}

.header-logo {
    height: 44px;
    width: auto;
    /* FILTER REMOVED: Displays original logo colors */
    transition: height 0.3s ease;
}

.site-header.scrolled .header-logo {
    height: 40px;
}

.brand-divider {
    display: block;
    height: 32px;
    width: 1px;
    background-color: var(--gray-300);
    /* Darker divider for contrast */
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.0rem;
}

.brand-text .dept {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.28rem;
    color: var(--nau-blue);
    /* Dark Text */
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--nau-blue);
    /* Dark Text */
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--nau-gold);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--nau-gold);
}

/* Header Buttons */
.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 50px;
    /* Pill Shape */
    letter-spacing: 0.3px;
}

.btn-gold {
    background-color: var(--nau-gold);
    color: var(--nau-blue);
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.btn-gold:hover {
    background-color: var(--nau-blue);
    /* Blue hover for nice contrast */
    color: var(--nau-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.donate-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--nau-blue);
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .main-nav-container {
        position: relative;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        padding: 20px;
        background: var(--nau-blue);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        box-shadow: 0 18px 55px rgba(0, 0, 0, 0.30);
        max-height: min(55vh, 420px);
        overflow: auto;
        z-index: 1000;
    }

    .nav-menu.open {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-toggle {
        display: block;
    }

    .brand-divider {
        display: none;
    }

    .brand-text .dept {
        font-size: 0.9rem;
    }

    .nav-menu .nav-link {
        color: var(--white);
    }

    .nav-menu .donate-nav-link {
        width: 100%;
    }
}

/* Phone: NAU logo only (hide title + nav) */
@media (max-width: 680px) {
    .site-header {
        padding: 10px 0;
    }

    .main-nav-container {
        justify-content: center;
        position: relative;
    }

    .brand-logo {
        justify-content: center;
        gap: 0;
    }

    .header-logo {
        height: 44px;
    }

    .brand-text,
    .brand-divider {
        display: none !important;
    }

    /* Hamburger button: top-left */
    .mobile-toggle {
        display: grid !important;
        place-items: center;
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    }

    /* Tile-style mobile menu (JS toggles display) */
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;
        width: auto;
        padding: 14px;
        background: rgba(0, 36, 84, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        box-shadow: 0 18px 55px rgba(0, 0, 0, 0.30);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        max-height: min(42vh, 320px);
        overflow: auto;
    }

    .nav-menu.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        animation: mobileMenuDrop 160ms ease-out;
    }

    .nav-menu .nav-item {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid color-mix(in srgb, var(--nau-gold) 35%, rgba(255, 255, 255, 0.18));
        border-radius: 16px;
        overflow: hidden;
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--nau-gold) 14%, transparent),
            0 12px 30px rgba(0, 0, 0, 0.18);
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 12px;
        width: 100%;
        color: var(--white);
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .nav-menu .nav-item-donate {
        grid-column: 1 / -1;
    }

    .nav-menu .donate-nav-link {
        display: flex;
        width: 100%;
        min-height: 100%;
        padding: 14px 12px;
        border-radius: 16px;
    }

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

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

/**
 * Hero Slider
 * --------------------------------------
 * Full-screen immersive slider.
 * Uses absolute positioning for stacking context and opacity transitions for performance.
 */
.hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background-color: var(--black);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg-picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(to top, rgba(0, 36, 84, 0.9) 0%, rgba(0, 36, 84, 0.3) 60%, rgba(0, 36, 84, 0.1) 100%);*/
    z-index: 1;
}

.hero-social {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 36, 84, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: 0 0 auto;
}

.hero-social-link:hover,
.hero-social-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(0, 36, 84, 0.74);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-social-link-donate {
    display: none;
    background: var(--nau-gold);
    border-color: color-mix(in srgb, var(--nau-gold) 78%, var(--white));
    color: var(--nau-blue);
}

.hero-social-link-donate:hover,
.hero-social-link-donate:focus-visible {
    background: color-mix(in srgb, var(--nau-gold) 86%, var(--white));
    border-color: color-mix(in srgb, var(--nau-gold) 90%, var(--white));
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--space-4xl);
    z-index: 2;
}

.slide-content .container {
    position: relative;
}

.hero-copy {
    display: inline-block;
    width: min(100%, 560px);
    max-width: min(560px, calc(100% - 32px));
    padding: 14px 18px 18px;
    border-radius: 20px;
    background: rgba(0, 36, 84, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.hero-copy .slide-title {
    max-width: 14ch;
    text-wrap: balance;
}

.hero-copy .slide-desc {
    max-width: 38ch;
}

.slide-tag {
    background-color: var(--nau-gold);
    color: var(--nau-blue);
    display: inline-block;
    padding: 6px 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-full);
}

.slide-tag span {
    display: block;
}

.slide-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.slide-desc {
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
}

.slide.active .slide-desc {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

@media (max-width: 1024px) {
    .hero {
        height: 72vh;
        min-height: 560px;
    }

    .slide-content {
        justify-content: flex-start;
        padding-top: 64px;
        padding-bottom: 110px;
    }

    .hero-social {
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        flex-wrap: wrap;
        justify-content: center;
        max-width: calc(100% - 32px);
    }

    .slide-content .container {
        display: flex;
        justify-content: center;
    }

    .hero-copy {
        display: block;
        width: min(88vw, 720px);
        max-width: calc(100% - 32px);
        padding: 14px 20px 18px;
        border-radius: 24px;
        background: rgba(0, 36, 84, 0.52);
        text-align: center;
    }

    .hero-copy .slide-title {
        max-width: 16ch;
        margin-inline: auto;
    }

    .hero-copy .slide-desc {
        max-width: 50ch;
        margin-inline: auto;
    }

    .slide-title {
        font-size: clamp(2.15rem, 5.2vw, 3.3rem);
        margin-bottom: 12px;
    }

    .slide-desc {
        font-size: 1.05rem;
        line-height: 1.5;
        margin-bottom: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-copy .btn {
        padding: 10px 24px;
        font-size: 0.98rem;
    }

    .slider-controls {
        bottom: 24px;
    }
}

@media (max-width: 680px) {
    .hero {
        height: 68svh;
        min-height: 500px;
    }

    .slide-content {
        padding-top: 60px;
        padding-bottom: 82px;
    }

    .hero-social {
        top: 10px;
        gap: 8px;
        width: calc(100% - 16px);
        justify-content: flex-start;
        flex-wrap: wrap;
        left: 8px;
        transform: none;
    }

    .hero-social-link {
        padding: 7px 10px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .hero-social-link-donate {
        display: inline-flex;
    }

    .hero-social-link svg {
        width: 14px;
        height: 14px;
    }

    .slide-content .container {
        justify-content: center;
    }

    .hero-copy {
        width: calc(100% - 16px);
        max-width: none;
        padding: 10px 16px 12px;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(0, 36, 84, 0.76) 0%, rgba(0, 36, 84, 0.58) 100%);
        text-align: left;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
    }

    .hero-copy .slide-title {
        max-width: none;
        margin-inline: 0;
    }

    .slide-tag {
        padding: 4px 11px;
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .slide-title {
        font-size: clamp(1.78rem, 6.7vw, 2.3rem);
        line-height: 1.05;
        margin-bottom: 10px;
    }

    .slide-desc {
        display: none;
    }

    .hero-copy .btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .slider-controls {
        bottom: 18px;
        gap: 10px;
    }

    .slider-btn {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 430px) {
    .slide-content {
        padding-top: 76px;
    }

    .hero-social {
        gap: 6px;
    }
}

.slider-controls {
    position: absolute;
    bottom: var(--space-lg);
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.slider-btn {
    background: rgba(0, 36, 84, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.slider-btn:hover {
    background: var(--nau-gold);
    color: var(--nau-blue);
    border-color: var(--nau-gold);
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(0, 36, 84, 0.55);
    cursor: pointer;
    padding: 0;
    transition: transform var(--trans-fast), background var(--trans-fast), border-color var(--trans-fast);
}

.slider-dot:hover {
    transform: scale(1.15);
    background: rgba(0, 36, 84, 0.74);
}

.slider-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nau-gold) 75%, transparent);
    outline-offset: 4px;
}

.slider-dot.active {
    background: var(--nau-gold);
    border-color: var(--nau-gold);
}

.slider-dot:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nau-gold) 70%, transparent);
    outline-offset: 4px;
}

/**
 * Quick Actions Bar
 * --------------------------------------
 * High-priority user entry points. Flex/Grid hybrid layout for responsive adaptation.
 */
.quick-actions {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2rem, 4.5vw, var(--space-3xl)) 0;
    background:
        radial-gradient(95% 70% at 50% 0%, color-mix(in srgb, var(--nau-gold) 14%, transparent) 0%, transparent 55%),
        radial-gradient(65% 45% at 100% 100%, color-mix(in srgb, var(--nau-gold) 8%, transparent) 0%, transparent 42%),
        /* Stay in NAU blue family (#003a85 → #002454 → #001838) — no near-black mix */
        linear-gradient(185deg, var(--nau-blue-light) 0%, var(--nau-blue) 58%, var(--nau-blue-dark) 100%);
    border-bottom: none;
}

/* Soft top sheen */
.quick-actions::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 22%,
        transparent 48%
    );
    pointer-events: none;
    z-index: 0;
}

/* Ease into the light about section — replaces a hard 1px rule */
.quick-actions::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.45));
    pointer-events: none;
    z-index: 1;
}

.quick-actions .container {
    position: relative;
    z-index: 2;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2.2vw, 28px);
    max-width: 1320px;
    margin: 0 auto;
}

@media (max-width: 1180px) {
    .action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 720px;
    }
}

@media (max-width: 520px) {
    .action-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

.action-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.05) 38%,
        color-mix(in srgb, var(--nau-blue) 38%, transparent) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--nau-gold) 28%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 14px 36px rgba(0, 0, 0, 0.22);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition:
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.35s ease,
        border-color 0.25s ease,
        background 0.35s ease;
    cursor: pointer;
    height: 100%;
    min-height: 150px;
    border-radius: calc(var(--radius-md) + 2px);
    text-decoration: none;
}

.action-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, var(--nau-gold) 50%, transparent 95%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.action-item:hover {
    transform: translateY(-6px);
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.08) 45%,
        color-mix(in srgb, var(--nau-blue) 22%, transparent) 100%
    );
    border-color: color-mix(in srgb, var(--nau-gold) 55%, rgba(255, 255, 255, 0.35));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--nau-gold) 52%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 22px 48px rgba(0, 0, 0, 0.28),
        0 0 44px color-mix(in srgb, var(--nau-gold) 16%, transparent);
}

.action-item:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nau-gold) 85%, white);
    outline-offset: 4px;
}

.action-icon {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-sm);
    fill: var(--nau-gold);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.action-item:hover .action-icon {
    transform: scale(1.07);
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.action-text {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
    .quick-actions {
        padding: var(--space-xl) 0;
    }

    .action-grid {
        gap: 16px;
    }

    .action-item {
        min-height: 128px;
        padding: 18px 14px;
    }

    .action-icon {
        width: 44px;
        height: 44px;
    }

    .action-text {
        font-size: 1rem;
    }
}

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

    .action-item {
        min-height: 102px;
        padding: 14px 8px;
        border-radius: 14px;
    }

    .action-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 6px;
    }

    .action-text {
        font-size: 0.9rem;
        line-height: 1.15;
    }
}

@media (max-width: 430px) {
    .hero {
        min-height: 470px;
    }

    .slide-content {
        padding-bottom: 72px;
    }

    .slide-content .container {
        justify-content: center;
    }

    .hero-copy {
        width: calc(100% - 12px);
        max-width: none;
        padding: 8px 14px 10px;
        border-radius: 16px;
    }

    .hero-copy .slide-title {
        max-width: none;
        margin-inline: 0;
    }

    .slide-tag {
        padding: 4px 10px;
        font-size: 0.76rem;
        margin-bottom: 6px;
    }

    .slide-title {
        font-size: clamp(1.52rem, 8.1vw, 1.95rem);
        line-height: 1.03;
        margin-bottom: 8px;
    }

    .hero-copy .btn {
        padding: 8px 16px;
        font-size: 0.86rem;
    }

    .slider-controls {
        bottom: 14px;
        gap: 8px;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
    }

    .slider-dot {
        width: 9px;
        height: 9px;
    }

    .quick-actions {
        padding: 18px 0;
    }

    .action-grid {
        gap: 8px;
    }

    .action-item {
        min-height: 92px;
        padding: 12px 6px;
        border-radius: 12px;
    }

    .action-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }

    .action-text {
        font-size: 0.82rem;
        line-height: 1.1;
    }
}

/* * ==========================================
 * ABOUT / MISSION SECTION 
 * ========================================== 
 */
.about-section {
    position: relative;
    isolation: isolate;
    padding: clamp(3rem, 6vw, var(--space-4xl)) 0;
    /* Single flat field — grid lives in ::before */
    background-color: #f2f5f9;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--nau-blue) 5.5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--nau-blue) 5.5%, transparent) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
}

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

/**
 * Carousel / Equipment Section
 * --------------------------------------
 * Horizontal scrolling container with snap points.
 * Uses CSS Scroll Snap API for native-like touch interaction.
 */
.carousel-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.25rem, 4vw, 3.5rem) 0;
    /* Viewport-locked canvas — continuous across Leadership / Core Researchers / … */
    background-color: #f0f4fa;
    background-image:
        radial-gradient(125% 90% at 50% -18%, color-mix(in srgb, var(--nau-blue) 11%, transparent) 0%, transparent 58%),
        radial-gradient(78% 52% at 104% 102%, color-mix(in srgb, var(--nau-gold) 7%, transparent) 0%, transparent 52%),
        linear-gradient(
            180deg,
            #e6eaf3 0%,
            #e9eff7 16%,
            #eef3fa 38%,
            #f2f5fb 56%,
            #f5f8fc 74%,
            #f8fafc 100%
        );
    background-size: auto, auto, 100% min(300vh, 2800px);
    background-position: center -12vh, center center, center top;
    background-repeat: no-repeat;
    background-attachment: fixed, fixed, fixed;
}

@supports not (background-attachment: fixed) {
    .carousel-section {
        background-attachment: scroll, scroll, scroll;
        background-size: auto, auto, 100% 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-section {
        background-attachment: scroll, scroll, scroll;
        background-size: auto, auto, 100% 100%;
    }

    .carousel-section::before {
        background-attachment: scroll;
    }
}

.stats-section + .carousel-section {
    padding-top: clamp(0.75rem, 1.75vw, 1.15rem);
}

.stats-section + .carousel-section .section-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom-color: color-mix(in srgb, var(--nau-blue) 9%, var(--gray-200));
}

/* Meet the Team: viewport-locked lab grid (stats uses its own pattern — see .stats-section) */
.carousel-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--nau-blue) 5.5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--nau-blue) 5.5%, transparent) 1px, transparent 1px);
    background-size: 52px 52px;
    background-attachment: fixed;
    mask-image: radial-gradient(ellipse 88% 72% at 50% 48%, #000 14%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 48%, #000 14%, transparent 76%);
    opacity: 0.34;
    pointer-events: none;
    z-index: 0;
}

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

.carousel-section .section-header {
    border-bottom-color: color-mix(in srgb, var(--nau-blue) 7%, var(--gray-200));
}

.carousel-section + .carousel-section {
    /* Intentional band between Leadership / Core Researchers / Staff / … */
    padding-top: clamp(1.85rem, 3.2vw, 2.75rem);
    border-top: 1px solid color-mix(in srgb, var(--nau-blue) 9%, rgba(255, 255, 255, 0.55));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 -18px 36px -28px rgba(0, 36, 84, 0.05);
}

/* Soft top wash so the divider reads designed, not like a CSS glitch */
.carousel-section + .carousel-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--nau-blue) 5%, rgba(255, 255, 255, 0.38)) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.carousel-wrapper {
    position: relative;
    padding: 0 5px;
}

.carousel-section .carousel-wrapper {
    padding: 0 clamp(6px, 1.5vw, 18px);
}

.card-wrapper {

    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0 40px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  /* Mobile: stack cards vertically */
  @media (max-width: 768px) {
    .card-wrapper {
      /* Mobile: one-card-at-a-time carousel */
      flex-direction: row;
      align-items: stretch;
      gap: 14px;
      padding: 8px 18px 22px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding: 18px;
    }

    .card-wrapper > .profile-card {
      flex: 0 0 100%;
      min-width: 100%;
      max-width: 100%;
      scroll-snap-align: center;
    }
  }

.card-wrapper::-webkit-scrollbar {
    display: none;
}

.card-wrapper-leadership {
    display: flex;
    justify-content: center;
  
    /* dynamic spacing */
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(12px, 3vw, 32px) 0;
  
    /* no horizontal scrolling */
    overflow-x: visible;
    scroll-snap-type: none;
  }
  
  /* Leadership becomes a true carousel as soon as cards no longer fit comfortably */
  @media (max-width: 1280px) {
    .card-wrapper-leadership {
      /* Tablet/mobile: horizontal carousel */
      justify-content: flex-start;
      flex-direction: row;
      align-items: stretch;
      gap: 14px;
      padding: 8px 18px 22px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding: 18px;
    }

    .card-wrapper-leadership > .profile-card {
      flex: 0 0 min(300px, calc(100vw - 72px));
      min-width: min(300px, calc(100vw - 72px));
      max-width: min(300px, calc(100vw - 72px));
      scroll-snap-align: center;
    }
  }

  @media (max-width: 768px) {
    .card-wrapper-leadership > .profile-card {
      flex: 0 0 100%;
      min-width: 100%;
      max-width: 100%;
    }
  }

.profile-card {
    height:auto;
    background:
        radial-gradient(1200px 820px at 0% 0%,
            color-mix(in srgb, var(--nau-blue) 22%, transparent) 0%,
            transparent 64%),
        radial-gradient(1200px 820px at 100% 100%,
            color-mix(in srgb, var(--nau-gold) 22%, transparent) 0%,
            transparent 64%),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--nau-blue) 10%, var(--white)) 0%,
            var(--white) 52%,
            color-mix(in srgb, var(--nau-gold) 12%, var(--white)) 100%
        );
    min-width: 300px;
    max-width: 300px;
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: center;
    transition: all var(--trans-med);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--nau-gold);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--nau-gold) 55%, transparent),
        0 18px 50px rgba(0, 36, 84, 0.14),
        0 0 34px rgba(250, 192, 26, 0.28);
    filter: saturate(1.03);
}

/**
 * Meet The Team (homepage carousels only)
 * --------------------------------------
 * .carousel-section is only used for team blocks on index.html.
 */
.carousel-section .profile-card {
    background: linear-gradient(158deg, #ffffff 0%, #fbfcfe 45%, #f1f5fb 100%);
    border: 1px solid color-mix(in srgb, var(--nau-blue) 12%, var(--gray-200));
    border-radius: calc(var(--radius-md) + 2px);
    padding: 16px 16px 14px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 20px 44px -18px rgba(0, 36, 84, 0.18),
        0 6px 16px rgba(0, 36, 84, 0.07);
}

.carousel-section .profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: calc(var(--radius-md) + 2px) calc(var(--radius-md) + 2px) 0 0;
    background: linear-gradient(90deg, var(--nau-blue) 0%, var(--nau-blue-light) 42%, var(--nau-gold) 100%);
    pointer-events: none;
    z-index: 1;
}

.carousel-section .profile-card > * {
    position: relative;
    z-index: 2;
}

.carousel-section .profile-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--nau-gold) 50%, var(--nau-blue));
    filter: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 0 0 1px color-mix(in srgb, var(--nau-gold) 42%, transparent),
        0 30px 60px -20px rgba(0, 36, 84, 0.24),
        0 0 52px color-mix(in srgb, var(--nau-gold) 16%, transparent);
}

.carousel-section .profile-image {
    border: none;
    border-radius: 18px;
    outline: 2px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--nau-blue) 20%, var(--gray-300)),
        0 12px 32px rgba(0, 36, 84, 0.15);
}

.carousel-section .image-container {
    padding: 18px 0 16px;
}

.carousel-section .card-title {
    font-size: clamp(1.12rem, 2.1vw, 1.38rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.carousel-section .card-role {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.carousel-section .about-btn {
    background: linear-gradient(180deg, #ffffff 0%, #f0f3f9 100%);
    border: 1px solid color-mix(in srgb, var(--nau-blue) 16%, var(--gray-300));
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.78rem;
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 6px 14px rgba(0, 36, 84, 0.08);
}

.carousel-section .about-btn:hover {
    background: var(--nau-blue);
    color: var(--white);
    border-color: var(--nau-blue-dark);
    box-shadow: 0 10px 26px rgba(0, 36, 84, 0.28);
}

.carousel-section .card-wrapper {
    scroll-padding-inline: 24px;
    padding: 16px 4px 48px;
    mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}

.carousel-section .sub-section-header {
    margin-bottom: var(--space-lg);
    padding: 12px 18px 14px 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(
        175deg,
        rgba(255, 255, 255, 0.58) 0%,
        rgba(255, 255, 255, 0.22) 100%
    );
    border: 1px solid color-mix(in srgb, var(--nau-blue) 9%, rgba(255, 255, 255, 0.55));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 22px rgba(0, 36, 84, 0.06);
}

.carousel-section .sub-section-header h3 {
    font-size: clamp(1.32rem, 2.5vw, 1.88rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.carousel-section .sub-section-header h3::before {
    content: "";
    width: 5px;
    align-self: stretch;
    min-height: 1.05em;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--nau-gold-light), var(--nau-gold) 55%, var(--nau-gold-dark));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--nau-blue) 18%, transparent),
        0 4px 12px color-mix(in srgb, var(--nau-gold) 35%, transparent);
}

.carousel-section .section-header {
    border-bottom-color: color-mix(in srgb, var(--nau-blue) 14%, var(--gray-300));
}

.carousel-section .section-header h2 {
    letter-spacing: -0.03em;
}

.carousel-section .nav-btn {
    background: linear-gradient(168deg, #ffffff 0%, #e8edf5 100%);
    border: 1px solid color-mix(in srgb, var(--nau-blue) 14%, rgba(0, 0, 0, 0.06));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 20px rgba(0, 36, 84, 0.12);
}

.carousel-section .nav-btn:hover {
    background: var(--nau-blue);
    color: var(--nau-gold);
    border-color: var(--nau-blue-dark);
    box-shadow: 0 12px 28px rgba(0, 36, 84, 0.28);
}

@media (max-width: 768px) {
    .carousel-section .card-wrapper {
        mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
        padding: 12px 12px 36px;
    }

    .carousel-section .sub-section-header {
        padding: 10px 14px 12px 12px;
    }
}

/* Tags & Badges */
.tag {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--nau-blue);
    background-color: var(--nau-gold);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    letter-spacing: 0.3px;
}

.tag.blue {
    background-color: var(--nau-blue);
    color: var(--white);
}

.tag.grey {
    background-color: var(--gray-600);
    color: var(--white);
}

.tag.green {
    background-color: var(--nau-green);
    color: var(--white);
}

.tag.red {
    background-color: var(--nau-red);
    color: var(--white);
}

.status-badge {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.status-badge.available {
    background-color: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.status-badge.limited {
    background-color: #fef9c3;
    color: #854d0e;
    border-color: #fde047;
}

.status-badge.maintenance {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Card Elements */
.image-container {
    flex-grow: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.headshot-picture,
.image-container picture {
    display: block;
}

.profile-image {
    width: 160px;
    height: 200px;
    border-radius: 14px;
    object-fit: cover;
    object-position: 50% 20%;   
    display: block;
    border: 1px solid var(--gray-300);
    background: var(--gray-50);
}

.profile-image.is-low-res {
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 200px;
    object-fit: contain;
    object-position: center;
}

.specs {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Center the role/department line on cards */
.profile-card .specs {
    text-align: center;
}

/* Meet The Team card details (title, type, school) - below image */
/* Meet The Team: center name and details */
.carousel-section .profile-card > div:first-child,
.carousel-section .card-details {
    text-align: center;
}

.card-details {
    margin-bottom: 12px;
}

.card-role {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nau-blue);
    margin-bottom: 4px;
}

.card-type {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.card-school {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.35;
}

.card-school + .card-school {
    margin-top: 2px;
}

.specs .small {
    color: var(--gray-600);
    font-size: 13px;
    display: block;
    margin-top: 2px;
    font-weight: 400;
}

.action-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.action-btn {
    font-family: var(--font-display);
    border: none;
    padding: 4px 0;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.book-btn {
    background-color: var(--nau-blue);
    color: var(--white);
}

.book-btn:hover {
    background-color: var(--nau-blue-light);
}

.about-btn {
    background-color: var(--gray-50);
    color: var(--nau-blue);
    border: 1px solid var(--gray-400);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 36, 84, 0.06);
    padding: 8px 0;
}

.about-btn:hover {
    background-color: var(--white);
    border-color: color-mix(in srgb, var(--nau-blue) 30%, var(--gray-400));
    transform: translateY(-1px);
}

.about-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nau-gold) 70%, transparent);
    outline-offset: 3px;
}

.book-btn.disabled {
    background-color: var(--gray-200);
    color: var(--gray-500);
    cursor: default;
    pointer-events: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    color: var(--nau-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex: 0 0 auto;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.nav-btn.left {
    left: -15px;
}

.nav-btn.right {
    right: -15px;
}

@media (max-width: 768px) {
    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-btn.left {
        left: 6px;
    }

    .nav-btn.right {
        right: 6px;
    }
}

/**
 * Dashboard & Metrics Visualization
 * --------------------------------------
 * Statistical overview section.
 * Implements a parallax-like background effect via 'background-attachment: fixed'.
 */
/**
 * Radiant’s Impact — deliberate “intersection” band between About and Meet the Team.
 * Patterned slab (not the same viewport canvas as carousels) so edges read intentional.
 */
.stats-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, var(--space-4xl)) 0 clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid color-mix(in srgb, var(--nau-gold) 42%, rgba(255, 255, 255, 0.35));
    background-color: #d0dce8;
    background-image:
        radial-gradient(95% 75% at 50% -35%, rgba(255, 255, 255, 0.42) 0%, transparent 52%),
        radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--nau-blue) 16%, transparent) 1px, transparent 0),
        repeating-linear-gradient(
            122deg,
            color-mix(in srgb, var(--nau-blue) 9%, transparent) 0 1px,
            transparent 1px 20px
        ),
        repeating-linear-gradient(
            -122deg,
            color-mix(in srgb, var(--nau-blue) 7%, transparent) 0 1px,
            transparent 1px 24px
        ),
        linear-gradient(188deg, #c5d3e4 0%, #d4e0ed 42%, #dfeaf5 100%);
    background-size: auto, 20px 20px, auto, auto, 100% 100%;
    background-position: center, 0 0, center, center, center;
}

.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 90% at 50% 40%, transparent 20%, rgba(0, 36, 84, 0.07) 100%);
    pointer-events: none;
    z-index: 0;
}

.stats-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 4%, var(--nau-gold) 50%, transparent 96%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 3;
}

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

.stats-section .section-header {
    border-bottom-color: color-mix(in srgb, var(--nau-blue) 14%, var(--gray-300));
}

.stats-section .section-header h2 {
    letter-spacing: -0.03em;
}

.dashboard-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

.metrics-panel {
    position: relative;
    overflow: hidden;
    /* True NAU ramp: light brand → #002454 → darker brand — avoid charcoal #001428 */
    background: linear-gradient(
        168deg,
        var(--nau-blue-light) 0%,
        var(--nau-blue) 42%,
        var(--nau-blue-dark) 100%
    );
    padding: clamp(1.35rem, 3vw, var(--space-xl)) clamp(1.15rem, 2.5vw, var(--space-xl));
    border-radius: calc(var(--radius-md) + 4px);
    border: 1px solid color-mix(in srgb, var(--nau-gold) 42%, transparent);
    /* Softer lift — heavy shadow read as a hard “shelf” above Meet the Team */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 14px 36px -12px rgba(0, 36, 84, 0.14),
        0 32px 64px -24px rgba(0, 36, 84, 0.08);
}

.metrics-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nau-blue-light) 0%, var(--nau-gold) 100%);
    z-index: 1;
}

.metrics-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 85% at 12% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 48%);
    pointer-events: none;
    z-index: 0;
}

.metrics-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
    transition:
        transform var(--trans-fast),
        border-color var(--trans-fast),
        background var(--trans-fast),
        box-shadow var(--trans-fast);
}

.metric-box:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--nau-gold) 75%, rgba(255, 255, 255, 0.5));
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16) inset,
        0 14px 32px rgba(0, 0, 0, 0.28);
}

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.metric-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 6px 0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.metric-sub {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: var(--space-md);
    }

    .metrics-panel {
        padding: var(--space-lg);
    }

    .metric-box {
        padding: 12px 8px;
    }

    .metric-value {
        font-size: clamp(1.55rem, 6.4vw, 2.1rem);
    }

    .metric-label {
        font-size: 0.86rem;
        line-height: 1.15;
        margin: 5px 0 0;
    }
}

.upcoming-matches-panel {
    background: var(--white);
    color: var(--black);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.matches-header {
    background: var(--nau-blue);
    padding: var(--space-md);
    font-family: var(--font-display);
    font-weight: 600;
    text-align: left;
    font-size: 1.1rem;
    color: var(--white);
}

.match-list {
    padding: 0;
}

.match-item {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.match-date {
    background: var(--gray-100);
    color: var(--nau-blue);
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 8px;
    padding: 5px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.match-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.match-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.match-info {
    flex-grow: 1;
}

.match-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
    color: var(--nau-blue);
}

.match-meta {
    font-size: 0.8rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 5px;
}

/**
 * News & Multimedia
 * --------------------------------------
 */
/* News Section - Transparent */
.news-section {
    background-color: transparent;
    padding: var(--space-4xl) 0;
    margin: var(--space-xl) 0;
}

/* --- NANO NEWS FIXES START --- */
.featured-story {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--gray-200);
    transition: transform var(--trans-med), box-shadow var(--trans-med);
}

.featured-story:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.featured-img {
    flex: 1.5;
    min-height: 350px;
    position: relative;
    background-color: var(--gray-200);
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.featured-content {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.featured-tag {
    display: inline-block;
    background: var(--nau-gold);
    color: var(--nau-blue);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--nau-blue);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    font-weight: 700;
}

.featured-excerpt {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .featured-story {
        flex-direction: column;
    }

    .featured-img {
        min-height: 250px;
        flex: auto;
        height: 250px;
    }
}

/* --- NANO NEWS FIXES END --- */

/* Glass Card Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 36, 84, 0.05);
}

@media (max-width: 768px) {
    .about-section {
        /* Image is hidden on mobile; reduce dead space */
        padding: var(--space-2xl) 0 var(--space-xl);
    }
}

/* Partner Grid */
.partner-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.partner-card:hover {
    border-color: var(--nau-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    width: auto;
    max-width: 100%;
    height: 65px;
    /* Fixed height for perfect alignment */
    object-fit: contain;
    margin-bottom: 0px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.roster-section {
    background-color: var(--nau-blue);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1532619675605-1ede6c2ed2b0?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.roster-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 36, 84, 0.9);
    z-index: 1;
}

.roster-section .section-header h2 {
    color: var(--white);
}

.roster-section .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.roster-section .section-header .see-all {
    color: var(--nau-gold);
}

.player-card {
    background: transparent;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

.player-inner {
    background: var(--white);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    border-radius: var(--radius-md);
}

.player-card:hover .player-inner {
    transform: translateY(-8px);
}

.player-img-container {
    height: 320px;
    background: linear-gradient(to bottom, #f0f0f0, #d9d9d9);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s;
}

.player-card:hover .player-img {
    transform: scale(1.03);
}

.player-info {
    padding: var(--space-md);
    background: var(--white);
    position: relative;
    z-index: 2;
}

.player-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
}

.player-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--nau-blue);
    line-height: 1.2;
    margin-bottom: 4px;
    font-weight: 700;
}

.player-position {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 400;
}

.multimedia-section {
    background: var(--black);
    padding: 0;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.media-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 550px;
    position: relative;
    z-index: 2;
}

.main-video-stage {
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    z-index: 2;
    pointer-events: none;
}

.play-btn-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.play-btn-large:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--white);
}

.play-btn-large svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
    margin-left: 4px;
}

.play-btn-large:hover svg {
    fill: var(--nau-blue);
}

.playlist-sidebar {
    background: rgba(17, 24, 39, 0.95);
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: 600px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-title {
    color: var(--white);
    border-bottom: 1px solid var(--gray-700);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 500;
}

.playlist-item {
    display: flex;
    gap: 15px;
    margin-bottom: var(--space-md);
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-thumb {
    width: 100px;
    height: 60px;
    background: var(--gray-800);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-info h4 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
    font-family: var(--font-body);
    font-weight: 600;
}

.playlist-info span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

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

    .main-video-stage {
        min-height: 300px;
    }

    .playlist-sidebar {
        max-height: 400px;
    }
}

/**
 * Footer
 * --------------------------------------
 */
.site-footer {
    background-color: var(--nau-blue);
    color: var(--white);
    padding-top: var(--space-4xl);
    position: relative;
    border-top: 5px solid var(--nau-gold);
    /* University Branding Accent */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand img {
    width: 250px;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.footer-col h4 {
    color: var(--nau-gold);
    font-size: 1.05rem;
    /* Clean university type */
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    /* Subtler divider */
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-links a:hover {
    color: var(--nau-gold);
    /* Gold hover for standard */
    transform: translateX(4px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    padding: var(--space-lg) 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

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

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: var(--space-lg);
}

.social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
    /* Smoother border transition */
}

.social-icon:hover {
    background: var(--nau-gold);
    color: var(--nau-blue);
    border-color: var(--nau-gold);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

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

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

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

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

/**
 * Contact & Forms
 * --------------------------------------
 */
.page-header {
    background-color: var(--nau-blue);
    padding: var(--space-3xl) 0 var(--space-xl);
    color: var(--white);
    text-align: center;
}

.contact-grid {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.form-container {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--nau-blue);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--nau-gold);
    box-shadow: 0 0 0 3px rgba(250, 192, 26, 0.2);
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 24px;
    height: 24px;
    fill: var(--nau-gold);
    margin-bottom: var(--space-sm);
}

/**
 * Utility Classes
 * --------------------------------------
 */
.about-text-col {
    flex: 1;
}

.section-divider {
    width: 72px;
    height: 5px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--nau-gold-light) 0%, var(--nau-gold) 50%, var(--nau-gold-dark) 100%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--nau-blue) 14%, transparent),
        0 4px 16px color-mix(in srgb, var(--nau-gold) 38%, transparent);
    margin-bottom: 22px;
}

.about-title {
    font-size: clamp(2rem, 4vw, 2.65rem);
    color: var(--nau-blue);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.lead-text {
    font-size: clamp(1.05rem, 1.8vw, 1.15rem);
    color: var(--gray-700);
    margin-bottom: var(--space-md);
    font-weight: 600;
    line-height: 1.45;
}

.about-desc {
    color: var(--gray-700);
    line-height: 1.72;
    max-width: 52ch;
}

.about-image-col {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .about-image-col {
        display: none;
    }
}

.about-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--nau-gold);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--nau-gold) 55%, transparent),
        0 18px 50px rgba(0, 36, 84, 0.14),
        0 0 34px rgba(250, 192, 26, 0.28);
    filter: saturate(1.03);
    display: block;
}

.stat-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--nau-gold);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-weight: 700;
    color: var(--nau-blue);
    font-size: 2rem;
}

.stat-unit {
    font-size: 1rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--nau-blue);
    font-weight: 600;
}

.panel-date {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.card-border-blue {
    border-top: 4px solid var(--nau-blue);
}

.card-border-gold {
    border-top: 4px solid var(--nau-gold);
}

.mb-sm {
    margin-bottom: 12px;
}

.feature-list {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    list-style: none;
    padding-left: 0;
}

.feature-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-icon {
    width: 16px;
    height: 16px;
    fill: var(--nau-green);
}

.btn-outline-blue {
    color: var(--nau-blue);
    border-color: var(--nau-blue);
    margin-top: auto;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--nau-blue) 0%, var(--nau-blue-dark) 100%);
}

.tag-gold-bold {
    background: var(--nau-gold);
    color: var(--nau-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.text-white-display {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    max-width: 90%;
}

.glass-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.text-white-sm {
    color: white;
    margin-bottom: 10px;
}

.text-white-xs {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.btn-full-gold {
    background-color: var(--nau-gold);
    border-color: var(--nau-gold);
    color: var(--nau-blue);
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.partners-box {
    background: transparent;
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: none;
    grid-column: 1 / -1;
}

.partners-title {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-gold {
    width: 20px;
    height: 20px;
    fill: var(--nau-gold);
}

.partners-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0px;
    display: none;
}

.partners-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    justify-content: center;
}

.partner-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    bottom: 0px;
    display: none;
}

.video-stage {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

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

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links-flex {
    display: flex;
    gap: 15px;
}

.footer-link-mute {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-link-mute:hover,
.footer-link-mute:focus-visible {
    color: var(--white);
    text-decoration: underline;
}

/**
 * Extractions (Part 2)
 * --------------------------------------
 */

.testimonial-card-gold {
    background: var(--gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--nau-gold);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.avatar-circle-blue {
    width: 50px;
    height: 50px;
    background: var(--nau-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-name {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--nau-blue);
}

.author-title {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.testimonial-card-blue {
    background: var(--gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--nau-blue);
}

.avatar-circle-gold {
    width: 50px;
    height: 50px;
    background: var(--nau-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nau-blue);
    font-weight: bold;
}

.bg-blue-dark {
    background-color: var(--nau-blue-dark);
}

.text-gold-display {
    color: var(--nau-gold);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.location-details {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.location-cta {
    font-weight: 700;
    margin-bottom: 15px;
}

.mb-10 {
    margin-bottom: 10px;
}

.btn-orange {
    background-color: #d45d00;
    border-color: #d45d00;
    color: white;
}

.location-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    padding-top: 20px;
}

.map-container {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.footer-logo-white {
    filter: brightness(0) invert(1);
}

/**
 * Utilities (Contact Page)
 * --------------------------------------
 */

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-0 {
    margin-bottom: 0;
}

.font-bold {
    font-weight: 700;
}

.info-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--nau-blue);
}

.link-blue-underline {
    color: var(--nau-blue);
    text-decoration: underline;
}

.map-container-sm {
    margin-top: 30px;
}

.map-frame {
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* New Utilities (Refactor) */
.separator-top {
    border-top: 1px solid var(--gray-200);
    padding-top: 25px;
    margin-bottom: 25px;
}

.btn-outline-gray {
    color: var(--gray-600);
    border-color: var(--gray-300);
    background: transparent;
}

.btn-outline-gray:hover {
    color: var(--gray-800);
    border-color: var(--gray-400);
    background: var(--gray-50);
}


/* --------------------------------------
   EQUIPMENT CATALOG STYLES
   -------------------------------------- */

/* 1. Sticky Filter Bar */
.filter-section {
    position: sticky;
    top: 80px; /* Adjusts for header height */
    z-index: 900;
    margin-top: -30px; 
    padding-bottom: 20px;
}

.filter-bar {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* FIX: Keeps search and buttons close together */
    justify-content: flex-start; 
    gap: 20px;
}

/* 2. Search Input - Fixed Width */
.search-wrapper {
    position: relative;
    width: 300px; /* Fixed width prevents squishing */
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 50px;
    border: 1px solid var(--gray-300);
    background: var(--gray-50); 
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--nau-gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(250, 192, 26, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* 3. Filter Buttons (Pills) */
.filter-groups {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    
    justify-content: flex-start;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    padding: 6px 18px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 1. ALL & METROLOGY -> GOLD */
.filter-btn:hover {
    border-color: var(--nau-blue);
    color: var(--nau-blue);
}

.filter-btn.active {
    background: var(--nau-blue);
    color: var(--white);
    border-color: var(--nau-blue);
    box-shadow: 0 4px 10px rgba(0, 36, 84, 0.2);
}

/* 4. Equipment Card Tweaks */
/* Ensures images in the catalog look uniform */
.eq-image-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    background: var(--gray-50);
    border-radius: 50%; 
    width: 180px;
    align-self: center; 
}

.eq-image-container img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-badge.available {
    background: #dcfce7;
    color: #166534;
}

.status-badge.maintenance {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.limited {
    background: #fef9c3;
    color: #854d0e;
}

/* 5. CAROUSEL WRAPPER (This replaces the Grid/Pagination styles) */
.catalog-wrapper {
    position: relative;
    padding: 0 50px; /* Adds space for the arrows */
}

.catalog-wrapper .card-wrapper {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hides scrollbar for clean look */
}

/* Hide scrollbar on Chrome/Safari */
.catalog-wrapper .card-wrapper::-webkit-scrollbar {
    display: none;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .search-wrapper {
        width: 100%;
        max-width: 100%;
    }
    .filter-groups {
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap; /* Allows scrolling buttons sideways */
    }
    .catalog-wrapper {
        padding: 0; /* Arrows disappear on mobile, so remove padding */
    }
}

/* --------------------------------------
   PAGE HEADER TWEAKS (CENTERED)
   -------------------------------------- */

.page-header .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* This centers the items horizontally */
    text-align: center;  /* This centers the text itself */
    width: 100%;
}

.page-header h1 {
    margin-bottom: 10px !important; 
    line-height: 1.1; 
}

.page-header p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    opacity: 0.9;
    max-width: 800px; 
}


/* --------------------------------------
   EQUIPMENT CATALOG VIEW CONTROLS & ANIMATIONS
   -------------------------------------- */

/* 1. View Toggle Buttons (Grid vs List) */
.view-controls {
    display: flex;
    gap: 5px;
    margin-left: auto; /* Pushes controls to the far right of the filter bar */
    padding-left: 20px;
    border-left: 1px solid var(--gray-300);
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--gray-500);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.view-btn.active, .view-btn:hover {
    color: var(--nau-blue);
    background: var(--gray-100);
}

/* 2. List View Layout Overrides
   These styles apply only when the 'list-view' class is added to the container via JS.
*/
.card-wrapper.list-view {
    display: flex;
    flex-direction: column; /* Stacks items vertically instead of horizontally */
    gap: 10px;
    overflow-x: hidden; /* Disables horizontal scroll */
    padding: 0;
}

.card-wrapper.list-view .profile-card {
    width: 100%;
    min-width: 100%;
    height: auto;
    flex-direction: row; /* Align card content horizontally */
    align-items: center;
    padding: 15px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Internal Card Adjustments for List View */
.card-wrapper.list-view .profile-card .d-flex.flex-col {
    flex-direction: row !important; /* Force row layout for inner content */
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.card-wrapper.list-view .image-container {
    width: 60px;
    height: 60px;
    margin: 0;
    flex-shrink: 0; /* Prevents image from shrinking */
}

.card-wrapper.list-view .card-title {
    font-size: 1.1rem;
    margin: 0;
    min-width: 200px; /* Ensures consistent alignment for text */
}

.card-wrapper.list-view .specs {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    flex-grow: 1; /* Pushes action buttons to the far right */
    text-align: left;
}

.card-wrapper.list-view .action-row {
    margin: 0;
    gap: 10px;
    min-width: 160px;
}

/* Hide tags in list view to reduce clutter */
.card-wrapper.list-view .tag {
    display: none;
}

/* 3. Status Indicator & Animation 
   Adds a pulsing dot next to the status text.
*/
.status-badge {
    position: relative;
    padding-left: 18px; /* Creates space for the indicator dot */
}

.status-badge::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor; /* Inherits text color (Green/Red) */
}

/* Pulse Animation Definition */
.status-badge.available::before {
    box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.7);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: translateY(-50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.7);
    }
    70% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 6px rgba(22, 101, 52, 0);
    }
    100% {
        transform: translateY(-50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 101, 52, 0);
    }
}

/* --------------------------------------
    LIST VIEW LAYOUT 
   -------------------------------------- */

/* 1. The Container */
.card-wrapper.list-view {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}

/* 2. The Card -> Turns into a 3-Column Grid */
.card-wrapper.list-view .profile-card {
    display: grid;
    /* Col 1: Image | Col 2: Title (Stretch) | Col 3: Right Side (Auto) */
    grid-template-columns: 80px 1fr auto; 
    grid-template-areas: "image title info";
    gap: 20px;
    align-items: center;
    
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0;
    box-shadow: none;
}

/* 3. Disable the old Flexbox structure inside the card */
.card-wrapper.list-view .profile-card .d-flex.flex-col {
    display: contents !important; /* This "unwraps" the divs so Grid works */
}

/* --- COLUMN 1: IMAGE --- */
.card-wrapper.list-view .image-container {
    grid-area: image;
    width: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-wrapper.list-view .profile-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Keeps aspect ratio perfectly */
}

/* --- COLUMN 2: TITLE --- */
/* We target the div containing the title/tags */
.card-wrapper.list-view .d-flex.flex-col > div:first-child {
    grid-area: title;
}

.card-wrapper.list-view .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

/* --- COLUMN 3: RIGHT SIDE (Room & Buttons) --- */
/* We target the div containing specs/buttons */
.card-wrapper.list-view .d-flex.flex-col > div:last-child {
    grid-area: info;
    display: flex;
    flex-direction: column; /* Stack Room on top of Buttons */
    align-items: flex-end;  /* Align right */
    justify-content: center;
}

.card-wrapper.list-view .specs {
    margin: 0 0 8px 0 !important;
    text-align: right;
    font-size: 0.9rem;
}

.card-wrapper.list-view .action-row {
    margin: 0 !important;
    display: flex;
    gap: 10px;
}

/* Hide tags to keep it clean */
.card-wrapper.list-view .tag { display: none; }

/* ==========================================================================
   PRODUCT / EQUIPMENT PAGE DESIGN (Updated Jan 2026)
   ========================================================================== */

/* 1. HERO SECTION */
.product-hero {
    background: linear-gradient(135deg, var(--nau-blue-dark) 0%, var(--nau-blue) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 20%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

/* Pulsing Status Dot (Standalone) */
.status-indicator-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.status-dot.pulse {
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    color: white;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta { display: flex; gap: 15px; }

.hero-image-wrapper {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-img { width: 100%; border-radius: 8px; display: block; }

/* 2. QUICK SPECS BAR */
.specs-bar {
    background: var(--nau-blue-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    color: white;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.spec-item:last-child { border-right: none; }
.spec-item i { font-size: 1.8rem; color: var(--nau-gold); }
.spec-item .label { display: block; font-size: 0.75rem; text-transform: uppercase; color: rgba(255,255,255,0.6); letter-spacing: 1px; }
.spec-item .value { display: block; font-size: 1.1rem; font-weight: 700; }

/* 3. LAYOUT & TYPOGRAPHY */
.layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.section-heading { font-size: 1.8rem; color: var(--nau-blue); margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); padding-bottom: 10px; }
.subsection-title { font-size: 1.4rem; color: var(--nau-blue); margin-top: 40px; margin-bottom: 20px; font-weight: 700; }
.info-block p { color: var(--gray-700); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }

/* 4. CARDS & WIDGETS */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card { background: white; padding: 25px; border-radius: 12px; border: 1px solid var(--gray-200); box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: transform 0.2s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--nau-gold); }
.icon-box { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 15px; }
.icon-box.blue { background: #e3f2fd; color: #1565c0; }
.icon-box.gold { background: #fff8e1; color: #f57f17; }
.icon-box.green { background: #e8f5e9; color: #2e7d32; }
.icon-box.purple { background: #f3e5f5; color: #7b1fa2; }
.feature-card h4 { margin: 0 0 10px 0; color: var(--nau-blue); font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; margin: 0; color: var(--gray-600); }

/* 5. TABLES */
/* Tech Specs Table */
.tech-specs-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.tech-specs-table th, .tech-specs-table td { padding: 12px 15px; border-bottom: 1px solid var(--gray-200); text-align: left; }
.tech-specs-table th { width: 40%; color: var(--gray-600); font-weight: 600; }
.tech-specs-table td { color: var(--nau-blue); font-weight: 700; }

/* Comparison Table (Blue/Gold) */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--gray-300); border-radius: 8px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--gray-200); }
/* Headers */
.col-feature { background-color: var(--nau-blue); color: white; width: 30%; }
.col-highlight { background-color: var(--nau-gold); color: var(--nau-blue); width: 35%; border-left: 1px solid rgba(0,0,0,0.1); border-right: 1px solid rgba(0,0,0,0.1); }
.col-standard { background-color: var(--nau-blue); color: white; width: 35%; }
/* Cells */
.comparison-table td { font-size: 0.95rem; }
.highlight-cell { background-color: #fffbe6; color: var(--nau-blue); font-weight: 700; border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); }
.standard-green { background-color: #f0fdf4; color: #15803d; font-weight: 600; }

/* 6. SAMPLE GALLERY */
.sample-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.sample-card { text-align: center; }
.sample-img-box { height: 120px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; margin-bottom: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s; }
.sample-card:hover .sample-img-box { transform: scale(1.05); }
.sample-card span { font-size: 0.85rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px; }

/* 7. SIDEBAR WIDGETS */
.sidebar-widget { background: var(--gray-50); border: 1px solid var(--gray-200); padding: 25px; border-radius: 12px; margin-bottom: 30px; }
.widget-title { font-size: 1.1rem; text-transform: uppercase; color: var(--nau-blue); border-bottom: 1px solid var(--gray-300); padding-bottom: 10px; margin-bottom: 15px; font-weight: 800; }

/* Tool Manager Card (High Visibility) */
.manager-card { background: white; border: 1px solid var(--nau-gold); box-shadow: 0 8px 20px rgba(0,0,0,0.08); padding: 0; overflow: hidden; }
.widget-header-primary { background: var(--nau-blue); color: white; padding: 15px 25px; font-weight: 700; font-family: var(--font-display); }
.manager-body { padding: 25px; }
.manager-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.manager-avatar { width: 50px; height: 50px; background: var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gray-600); font-size: 1.2rem; }
.manager-contact { font-size: 0.95rem; color: var(--gray-700); display: flex; flex-direction: column; gap: 8px; }
.contact-line i { width: 20px; color: var(--nau-gold); text-align: center; }
.contact-link { color: var(--nau-blue); text-decoration: none; font-weight: 600; }
.contact-link:hover { text-decoration: underline; }

/* Rates Table */
.rate-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--gray-300); }
.rate-row:last-child { border: none; }
.rate-label { font-size: 0.95rem; color: var(--gray-700); }
.rate-cost { font-weight: 700; color: var(--nau-blue); font-size: 1.1rem; }

/* Docs */
.doc-link { display: flex; align-items: center; gap: 15px; padding: 12px; background: white; border: 1px solid var(--gray-200); border-radius: 8px; margin-bottom: 10px; text-decoration: none; color: var(--gray-800); transition: all 0.2s; }
.doc-link:hover { border-color: var(--nau-blue); transform: translateX(5px); }
.doc-link i { font-size: 1.5rem; color: var(--nau-blue); }
.doc-link small { display: block; color: var(--gray-500); font-size: 0.8rem; margin-top: 2px; }

/* Mobile */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-badges { justify-content: center; }
    .hero-cta { justify-content: center; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .spec-item { border-right: none; }
    .layout-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .sidebar-col { order: 2; }
}

/* 
   EQUIPMENT CATALOG STYLES (Grid & List)
 */

/* --- 1. Filter & Search Bar --- */
.filter-section {
    background: #fff;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid transparent;
    font-size: 0.9rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--gray-100);
    color: var(--nau-blue);
}

.filter-btn.active {
    background: var(--nau-blue);
    color: white;
    border-color: var(--nau-blue);
    box-shadow: 0 2px 4px rgba(0,51,102,0.2);
}

/* View Switcher Buttons */
.view-switcher .btn {
    color: var(--gray-600); 
    border-color: var(--gray-300);
    background: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-switcher .btn:hover,
.view-switcher .btn.active {
    background: var(--nau-blue);
    color: white;
    border-color: var(--nau-blue);
}

/* --- 2. The Container --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- 3. The Tech Card (Shared Styles) --- */
.tech-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column; /* Default: Stack vertically */
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--nau-blue-light);
}

/* Header & Title */
.tech-card-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
}

.tech-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nau-blue);
    margin: 0;
    line-height: 1.3;
}

/* Tags / Badges */
.badge {
    font-size: 0.65rem; 
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}
.badge-blue   { background: #e3f2fd; color: #0d47a1; }
.badge-gold   { background: #fff8e1; color: #f57f17; }
.badge-purple { background: #f3e5f5; color: #7b1fa2; }
.badge-green  { background: #e8f5e9; color: #2e7d32; }

/* Status Dots (Reverted to Simple Circles) */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.available   { background-color: #22c55e; box-shadow: 0 0 0 2px #dcfce7; }
.status-dot.busy        { background-color: #ef4444; box-shadow: 0 0 0 2px #fee2e2; }
.status-dot.maintenance { background-color: #f59e0b; box-shadow: 0 0 0 2px #fef3c7; }

/* Image Area */
.tech-img-box {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.tech-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-img-box img {
    transform: scale(1.05);
}

/* Card Body */
.tech-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tech-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.tech-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-info i {
    color: var(--nau-gold);
    width: 16px;
    text-align: center;
}

/* Buttons */
.tech-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-tech {
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-tech-outline {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: transparent;
}
.btn-tech-outline:hover {
    border-color: var(--nau-blue);
    color: var(--nau-blue);
    background: #f0f7ff;
}

.btn-tech-fill {
    background: var(--nau-blue);
    color: white;
    border: 1px solid var(--nau-blue);
}
.btn-tech-fill:hover {
    background: var(--nau-gold);
    border-color: var(--nau-gold);
    color: var(--nau-blue);
}

/* --- 4. LIST VIEW TRANSFORMATIONS --- */

.list-layout .tech-card {
    display: grid;
    /* Column 1: Image (240px) | Column 2: Content */
    grid-template-columns: 240px 1fr;
    /* Row 1: Header (Title + Tags) | Row 2: Info & Buttons */
    grid-template-rows: auto 1fr;
    height: 160px;
    min-height: 160px;
}

/* 1. IMAGE: Left Column */
.list-layout .tech-img-box {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    border-right: 1px solid var(--gray-200);
    border-bottom: none;
}
.list-layout .tech-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2. HEADER: Top-Right Cell */
.list-layout .tech-card-header {
    grid-column: 2;
    grid-row: 1;
    border-bottom: none;
    /* Padding: Top=25px, Sides=30px, Bottom=10px */
    padding: 25px 30px 10px 30px; 
    display: flex;
    flex-direction: row;      /* Arrange items in a row */
    align-items: center;      /* Vertically center them */
    gap: 15px;                /* Space between Title and Badge */
}

/* Title First */
.list-layout .tech-title {
    font-size: 1.25rem;
    margin: 0;
    order: 1;                 /* Force Title to be First */
}

/* Status Dot Second */
.list-layout .status-dot {
    order: 2;                 /* Dot Second */
    margin-top: 2px;          /* Visual alignment fix */
}

/* Category Badge Third */
.list-layout .badge {
    order: 3;                 /* Badge Last */
    margin-left: 0;           /* Gap handles the spacing now */
}


/* 3. BODY: Bottom-Right Cell */
.list-layout .tech-body {
    grid-column: 2;
    grid-row: 2;
    padding: 5px 30px 25px 30px; 
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

/* Info (Left side of body) */
.list-layout .tech-info {
    flex-direction: row;
    gap: 25px;
    margin: 0;
    align-items: center;
    font-size: 0.95rem;
}

/* Buttons (Right side of body) */
.list-layout .tech-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.list-layout .btn-tech {
    padding: 10px 25px;
    font-size: 0.95rem;
    min-width: 100px;
}

/* --- MOBILE FIX (Stack vertically on phones) --- */
@media (max-width: 900px) {
    .list-layout .tech-card {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .list-layout .tech-img-box {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .list-layout .tech-card-header {
        width: 100%;
        padding: 20px;
        flex-wrap: wrap;      /* Allow title to wrap if long */
    }
    .list-layout .tech-body {
        width: 100%;
        padding: 0 20px 20px 20px;
        flex-direction: column;
        gap: 20px;
    }
    .list-layout .tech-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .list-layout .tech-actions {
        width: 100%;
        gap: 10px;
    }
    .list-layout .btn-tech {
        width: 100%;
    }
}

/* --------------------------------------
   APPLICATION LIST (Checklist Style) 
   -------------------------------------- */
.app-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.app-icon {
    font-size: 1.2rem;
    color: var(--nau-gold); /* Uses existing gold variable */
    margin-top: 3px;        /* Visual alignment with the text title */
    flex-shrink: 0;         /* Prevents icon from squishing on mobile */
}

.app-title {
    display: block;
    color: var(--nau-blue);
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.app-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}


/* --------------------------------------
   TOOL MANAGER CARD (Refined)
   -------------------------------------- */
.manager-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); /* Softer shadow */
    text-align: left;
}

.manager-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.manager-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-100); /* Subtle separator */
}

.manager-avatar {
    width: 55px;
    height: 55px;
    background: var(--nau-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 36, 84, 0.2);
}

.manager-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--nau-blue);
    font-weight: 700;
}

.manager-info span {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item i {
    color: var(--nau-gold);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Style for the blank/placeholder text */
.placeholder-text {
    color: var(--gray-400);
    font-style: italic;
    font-size: 0.9rem;
}