@import url('https://fonts.googleapis.com/css2?family=Roboto:wght=400;700&family=Montserrat:wght=400;700&display=swap');

@font-face {
    font-family: 'Tiempos Headline';
    src: url('fonts/tiempos-headline-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Base resets & Layouts */
html, body {
    margin: 0;
    padding: 0; /* Removed page-level padding to fix the banner image gap */
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    font-size: 16px;
}

.container-fluid {
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.main-content-wrap {
    padding-top: 80px; /* Clears the fixed navigation bar safely on non-banner pages */
    padding-bottom: 2rem;
}

/* 1) Top Black Navigation Bar */
.globalnav {
    background: #000;
    color: #fff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    min-height: 50px;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-brand a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}









.nav-links.open {
    display: flex;
}



.nav-links a[aria-current="page"], 

.search-container {
    display: none;
    align-items: center;
    position: relative;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.search-container.mobile-visible {
    display: flex;
}

.nav-search-form {
    width: 100%;
    transition: all 0.3s ease;
}

.nav-search-form input {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

.search-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    position: absolute;
    right: 5px;
}

@media(min-width: 880px) {
    
    
    .nav-container { flex-wrap: nowrap; }

    

    
    
    
    
    
    

    .search-container {
        display: flex;
        margin-top: 0;
        margin-bottom: 0;
        position: relative;
    }
    
    
    
    

    .nav-search-form input {
        background: #1a1a1a;
        border: 1px solid #333;
        padding: 6px 35px 6px 12px;
    }
    
    .search-btn {
        position: relative;
        right: auto;
        background: #111;
        border: 1px solid #333;
        border-radius: 4px;
        margin-left: -5px;
        transition: background 0.2s;
    }
    
    .search-container.expanded .search-btn {
        position: absolute;
        right: 0;
        background: transparent;
        border: none;
        margin-left: 0;
    }
}

/* 2) Hero Banner Container */
.hero-image-container {
    width: 100%;
    background-color: #000;
    display: block;
}

.parallax-banner {
    margin-top: 0; /* Extends image all the way to the top under the navbar to prevent any gaps */
    padding-top: 70px; /* Ensures inner banner content shifts below the navbar safely */
    height: 55vh; 
    min-height: 400px;
    background-image: url('images/Banner/EIS.avif');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-banner1 {
    margin-top: 0; /* Extends image all the way to the top under the navbar to prevent any gaps */
    padding-top: 70px; /* Ensures inner banner content shifts below the navbar safely */
    height: 55vh; 
    min-height: 400px;
    background-image: url('images/Banner/EIS222.avif');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 3) Crimson Bar */
.gradient-brandbar {
    background: linear-gradient(90deg, #A6192E, #D41736);
    color: #fff;
    width: 100%;
    padding: 1.5rem 0;
    /* NEW STICKY RULES */
    position: sticky;
    top: 50px; /* Aggressive overlap behind the black bar to absolutely kill any gap */
    z-index: 998; /* Keeps it under the black nav but over page content */
}

.gradient-brandbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.ptl-logo-banner {
    height: 76px;
    width: auto;
    display: block;
}

.main-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 880px) {
    .brand-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .main-title { font-size: 1.8rem; }
}

/* Structural Sections Layout */
.section {
    padding: 30px 0;
    margin-bottom: 20px;
    width: 100%;
}

.flat-section {
    background: transparent;
    border: none;
    box-shadow: none;
}

.research-topics-list {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* Full Width Adaptive Grid Cards */
.card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

/* ========== IMAGE OVERFLOW & SIZING FIX ========== */
.card img {
    max-width: 100%;
    height: auto !important; 
    border-radius: 6px;
    margin: 0 auto 1rem auto;
    display: block;
    object-fit: cover;
}

/* UNIFORM HEADSHOT SIZING - UPDATED TO CATCH ALL EDGECASES */
/* We look for Capital 'People', lowercase 'people', AND the 'placeholder' images */
.card img[src*="People"],
.card img[src*="people"],
.card img[src*="placeholder"] {
    width: 240px !important;    /* Fixed width */
    height: 300px !important;   /* Fixed height */
    max-width: 100%;            /* Ensure it shrinks gracefully on tiny screens */
    object-fit: cover;          /* Crops nicely without squashing faces */
    object-position: center top; 
    border-radius: 8px;
    margin: 0 auto 1.5rem auto; /* Centers the image perfectly in the card */
}

/* Center the text under the headshots to match the centered image */
.card:has(img[src*="People"]),
.card:has(img[src*="people"]),
.card:has(img[src*="placeholder"]) {
    text-align: center;
}
/* ── Research Highlights Slideshow ──────────────────────── */
.research-slideshow {
    position: relative;
    width: 100%;
    margin: 1.75rem 0 1.75rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    /* subtle border to frame it inside the card */
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.slideshow-track {
    position: relative;
    width: 100%;
    /* height driven by the image aspect ratio — images are wide, so cap height */
    max-height: 480px;
    overflow: hidden;
}

.slideshow-slide {
    display: none;
    width: 100%;
}
.slideshow-slide.active {
    display: block;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;   /* show full image, no cropping */
    object-position: center;
    display: block;
    background: #f8f8f8;
}

/* Prev / Next arrow buttons */
.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}
.slideshow-btn:hover {
    background: rgba(166,25,46,0.85);
}
.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

/* Dot indicators */
.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}
.slideshow-dot.active {
    background: #A6192E;
    border-color: #A6192E;
}
/* ────────────────────────────────────────────────────────── */

/* ======================================================= */

.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    width: 100%;
}

.full-width-research-box {
    width: 100%;
    margin-top: 2.5rem;
}

/* Books Section Grid — 4 books per row on desktop */
.facility-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

/* Responsive book grid: 2 columns on tablets, 1 on phones */
@media (max-width: 1100px) {
    .facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.facility-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.facility-card img {
    max-width: 100%;
    height: 220px !important;
    object-fit: contain;
    border-radius: .5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: block;
    margin: 0 auto 1rem auto;
}

/* Adaptive Sponsors Section */
.sponsors-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: center;
    width: 100%;
}

.sponsors-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem;
    height: 120px;
    transition: border-color 0.3s ease;
}

.sponsors-grid a:hover {
    border-color: #D41736;
}

.sponsors-grid img {
    max-width: 100%;
    max-height: 100px;
    height: auto !important;
    object-fit: contain;
}

/* Interactive CTA Link Buttons */
.cta {
    display: inline-block;
    padding: 10px 20px;
    background-color: #A6192E;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    text-align: center;
}

.cta:hover {
    background-color: #D41736;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Structures */
.site-footer {
    background: #f3f4f6;
    margin-top: 4rem;
    padding: 0;
    width: 100%;
}

.footer-sdsu-bar {
    background: linear-gradient(90deg, #A6192E, #D41736);
    padding: 1.2rem 0;
    width: 100%;
}

.footer-sdsu-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sdsu-logo-footer {
    height: 52px;
    width: auto;
    background: #fff;
    border-radius: .35rem;
    padding: .25rem .5rem;
    border: 1px solid #e5e7eb;
    display: block;
}

.footer-content {
    padding: 20px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .container-fluid { padding: 0 1rem; }
    .section { padding: 20px 0; }
    h2 { font-size: 1.8rem; }
    
    .parallax-banner {
        background-attachment: scroll;
        min-height: 250px;
        height: 35vh;
    }
}

/* ======================================================= */
/* PEOPLE PAGE ANCHOR BUTTONS (Role Navigation) */
/* ======================================================= */
.role-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0 2.5rem 0;
    justify-content: center;
}

.role-chip {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background-color: #fff;
    color: #A6192E;
    border: 2px solid #A6192E;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.role-chip:hover, .role-chip:focus {
    background-color: #A6192E;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* ======================================================= */
/* BACK TO TOP BUTTON */
/* ======================================================= */
.back-to-top-wrap {
    text-align: right;
    margin-top: 1.5rem;
    width: 100%;
}

.back-to-top {
    color: #A6192E;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.5rem;
}

.back-to-top:hover {
    color: #D41736;
    text-decoration: underline;
}

/* ======================================================= */
/* CONTACT PAGE SPECIFIC LAYOUT */
/* ======================================================= */
.linkedin-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.linkedin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 300px; /* Slightly larger box */
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.linkedin-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #0077b5; /* LinkedIn Blue */
    transform: translateY(-2px);
}

.linkedin-card img {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 1rem;
    object-fit: contain;
    border-radius: 0; /* Override any round headshot borders if applied */
}

.linkedin-card span {
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ======================================================= */
/*  ARCHIVE IMAGE ROW LAYOUT */
/* ======================================================= */
.news-photo-row {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: flex-start; /* Aligns them nicely at the top of the row */
    width: 100%;
}

.news-photo-item {
    flex: 1;
    min-width: 150px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.news-photo-item img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Scales images down fully so NOTHING is cut or cropped */
    border-radius: 4px;
    display: block;
}

@media (max-width: 768px) {
    .news-photo-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .news-photo-item {
        flex: 1 1 calc(50% - 1rem); /* Clean 2-column layout on tablets/phones */
    }
}

/* ======================================================= */
/* LOCAL SEARCH RESULTS BLOCK */
/* ======================================================= */
.search-results-wrapper {
    display: none;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.search-results-title {
    color: #A6192E;
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.search-result-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e5e7eb;
}

.search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.search-result-link {
    color: #A6192E;
    font-weight: bold;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result-link:hover {
    text-decoration: underline;
    color: #7d1222;
}

.search-result-desc {
    margin: 0.3rem 0 0 0;
    color: #555;
    font-size: 0.95rem;
}

.search-clear-btn {
    padding: 0.6rem 1.25rem;
    background: #333333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-clear-btn:hover {
    background: #111111;
}

/* Minimalist Clean Search Toggle Button styling */
.search-toggle {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}
.search-toggle:hover {
    color: #A6192E !important; /* Matches your brand accent tone on hover */
    transform: scale(1.05);
}

/* Sharp vector adjustment for the new minimalist search SVG icon */
.search-btn svg {
    transition: transform 0.2s ease, stroke 0.2s ease;
}
.search-btn:hover svg {
    stroke: #A6192E; /* Highlights to scarlet crimson when hovered over */
    transform: scale(1.1);
}

/* Contextual adjustment for page layouts with or without banners */
.parallax-banner + .main-content-wrap, 
.ptl-logo-banner + .main-content-wrap {
    padding-top: 1.5rem; /* Keeps normal padding if a banner is already present above the content */
}

/* ======================================================= */

/* ======================================================= */
/* SDSU-STYLE FULL-WIDTH SEARCH OVERLAY */
/* ======================================================= */
.search-container {
    position: static; /* Remove relative positioning so the dropdown can span the entire screen */
}

.nav-search-form {
    position: absolute;
    top: 100%; /* Drops exactly beneath the black navigation bar */
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    
    /* Smooth slide-down animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    
    display: flex;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
}

.search-container.expanded .nav-search-form {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 2rem 2rem;
}

.nav-search-form input {
    width: 100%;
    max-width: 800px;
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    border: 2px solid #ccc;
    border-radius: 50px; /* Modern rounded pill-shape input like many university sites */
    color: #333;
    background: #f9f9f9;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.nav-search-form input:focus {
    border-color: #A6192E; /* SDSU Scarlet Accent */
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.1);
}

@media (max-width: 768px) {
    .nav-search-form {
        position: relative;
        top: 0;
        box-shadow: none;
        border-top: none;
        padding: 0;
        margin-top: 10px;
        display: none;
    }
    .search-container.expanded .nav-search-form {
        display: block;
        padding: 0;
        background: transparent;
    }
    .nav-search-form input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
}


/* Fix sticky constraint by stripping the header wrapper's physical box */
.site-header {
    display: contents;
}

/* ======================================================= */
/* MINIMALIST SDSU-STYLE SIDEBAR NAVIGATION */
/* ======================================================= */

.nav-container {
    display: flex;
    justify-content: flex-end; /* Push controls to the right */
    align-items: center;
    padding: 0.5rem 2rem;
    min-height: 50px;
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between search and menu */
}

/* Make sure the search toggle fits cleanly */
.search-container {
    position: static;
    display: flex;
    align-items: center;
}

/* The new Menu Toggle Button */
/* ── Menu toggle button in navbar ── */
.menu-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.menu-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* ── Sidebar overlay (dims the page) ── */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.55);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ── Sidebar panel — dark, SDSU-style ── */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -380px;
    width: 340px;
    height: 100vh;
    /* Dark charcoal — same family as SDSU's nav panel */
    background: #1a1a1a;
    border-left: 3px solid #A6192E;
    z-index: 1010;
    box-shadow: -6px 0 24px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    transition: right 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}
.sidebar-menu.open {
    right: 0;
}

/* ── Sidebar header: PTL label + close button ── */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* "PTL" label in header — mirrors SDSU's "SDSU" label */
.sidebar-header::before {
    content: "PTL";
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-left: 3px solid #A6192E;
    padding-left: 10px;
}

.close-menu-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}
.close-menu-btn:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

/* ── Navigation links ── */
#siteNavLinks,
.nav-links.sidebar-links {
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-links li,
#siteNavLinks li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-links a,
#siteNavLinks a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.9rem 1.75rem;
    transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
    border-left: 3px solid transparent;
}

.sidebar-links a:hover,
#siteNavLinks a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    padding-left: 2.25rem;
    border-left-color: #A6192E;
}

/* Active page */
.sidebar-links a[aria-current="page"],
#siteNavLinks a[aria-current="page"] {
    color: #ffffff;
    font-weight: 700;
    background: rgba(166,25,46,0.18);
    border-left-color: #A6192E;
}

/* ── Latest News Vertical Ticker ────────────────────────── */
.news-card {
    display: flex;
    flex-direction: column;
}

.news-ticker-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 1rem 0 1.25rem 0;
    /* height set dynamically by JS based on ITEM_H * VISIBLE */
    cursor: default;
}

/* Subtle top/bottom fade so items dissolve in and out cleanly */
.news-ticker-wrap::before,
.news-ticker-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 2;
    pointer-events: none;
}
.news-ticker-wrap::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff, transparent);
}
.news-ticker-wrap::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff, transparent);
}

/* The scrolling list */
.news-ticker {
    list-style: none;
    margin: 0;
    padding: 0;
    will-change: transform;
}

/* Each news item */
.news-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-sizing: border-box;
    justify-content: center;
}

.news-item .news-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: #A6192E;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.news-item .news-text {
    font-size: 0.92rem;
    color: #222;
    line-height: 1.5;
}

/* Pause indicator on hover */
.news-ticker-wrap:hover .news-item {
    color: #000;
}
/* ────────────────────────────────────────────────────────── */

/* ── Recent Publications Ticker ─────────────────────────── */
.pub-card {
    display: flex;
    flex-direction: column;
}

.pub-ticker-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 1rem 0 1.25rem 0;
    cursor: default;
}

/* Fade edges */
.pub-ticker-wrap::before,
.pub-ticker-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 2;
    pointer-events: none;
}
.pub-ticker-wrap::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff, transparent);
}
.pub-ticker-wrap::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff, transparent);
}

.pub-ticker {
    list-style: none;
    margin: 0;
    padding: 0;
    will-change: transform;
}

/* Each publication row — height measured dynamically by JS */
.pub-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-sizing: border-box;
    justify-content: center;
}

.pub-authors {
    font-size: 0.78rem;
    font-weight: 700;
    color: #A6192E;
    line-height: 1.3;
}

.pub-title {
    font-size: 0.9rem;
    color: #111;
    font-style: italic;
    line-height: 1.35;
}

.pub-journal {
    font-size: 0.78rem;
    color: #555;
    font-weight: 600;
}
/* ────────────────────────────────────────────────────────── */

/* ======================================================= */
/* PUBLICATIONS — Scopus CSV-driven list                   */
/* ======================================================= */
.publications-card {
    overflow: visible;
}

.publications-list {
    width: 100%;
}

.publications-list p {
    margin: 0 0 1rem 0;
}

.publications-list p:last-child {
    margin-bottom: 0;
}

.publications-list em {
    font-style: italic;
}

.pub-doi,
.pub-scopus-link {
    color: #A6192E;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pub-doi:hover,
.pub-doi:focus,
.pub-scopus-link:hover,
.pub-scopus-link:focus {
    color: #D41736;
    text-decoration: underline;
}

.publications-status {
    color: #555;
    font-style: italic;
}

.publications-error {
    color: #A6192E;
    font-style: normal;
    font-weight: 700;
}


/* Publications grouped by year */
.publication-year-group {
    width: 100%;
    margin: 0 0 2.25rem 0;
}

.publication-year-group:last-child {
    margin-bottom: 0;
}

.publication-year-heading {
    margin: 0 0 1.1rem 0;
    padding: 0 0 0.55rem 0;
    color: #A6192E;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    border-bottom: 2px solid #e5e7eb;
}

.publication-year-entries {
    width: 100%;
}

.publication-year-entries .publication-entry {
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.publication-year-entries .publication-entry:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* ======================================================= */
/* PUBLICATIONS LIVE-SITE COLOR OVERRIDES                  */
/* Forces Dreamweaver/local appearance on cached hosts.    */
/* ======================================================= */
#publications .publication-year-heading {
    color: #A6192E !important;
}

#publications a.pub-doi,
#publications a.pub-doi:link,
#publications a.pub-doi:visited,
#publications a.pub-scopus-link,
#publications a.pub-scopus-link:link,
#publications a.pub-scopus-link:visited {
    color: #A6192E !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

#publications a.pub-doi:hover,
#publications a.pub-doi:focus,
#publications a.pub-scopus-link:hover,
#publications a.pub-scopus-link:focus {
    color: #D41736 !important;
    text-decoration: underline !important;
}
