/* my custom styling for CCSU navigation bars */
/* ==========================================================================
   0. CSS CUSTOM PROPERTIES (CCSU Brand Colors)
   ========================================================================== */
:root {
    /* Primary Brand Colors */
    --ccsu-blue: #205998;
    --ccsu-dark-blue: #072141;
    --ccsu-gold: #ffc107;
    --ccsu-light-blue: #B6D3EC;

    /* Hover/Active States */
    --ccsu-blue-hover: #184a7e;
    --ccsu-blue-dark-hover: #184578;
    --ccsu-gold-hover: #ffda4a;

    /* Neutral Colors */
    --ccsu-white: #ffffff;
    --ccsu-light-gray: #f8f9fa;
    --ccsu-border-gray: #ced4da;
    --ccsu-text-dark: #212529;
    --ccsu-text-muted: #6c757d;

    /* Overlays */
    --ccsu-overlay-dark: rgba(7, 33, 65, 0.85);
    --ccsu-overlay-blue: rgba(24, 65, 113, 0.7);

    /* Component Sizing */
    --bracket-size: 28px;
    --bracket-offset: -4px;
    --bracket-size-compact: 12px;
    --bracket-offset-compact: -3px;
    --btn-padding-v: 14px;
    --btn-padding-h: 20px;
}

/* Prevent horizontal scroll caused by .alignfull width:100vw on pages with a
   vertical scrollbar. The scrollbar adds ~15px to 100vw, pushing alignfull
   elements past the viewport edge. overflow-x:hidden clips that silently. */
html,
body {
    overflow-x: hidden;
}

/* ==========================================================================
   1. BUTTONS (Bracketed Corner Style - All Bootstrap Buttons)
   ========================================================================== */

/* Base button styles - applies to all buttons, Bootstrap classes, and WordPress buttons */
button,
.btn,
.button-search,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-link,
input[type="button"],
input[type="submit"],
.wp-block-button__link,
.wp-block-search__button,
button.ccsu-search-submit {
    background-color: var(--ccsu-blue);
    color: var(--ccsu-white);
    padding: 14px 20px;
    border-radius: 0 !important; /* Square corners */
    position: relative;
    border: 0 !important;
    transition: all 0.2s ease;
    font-family: 'Roboto', "Montserrat", Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    white-space: nowrap;
    margin: 4px; /* Space for brackets */
    overflow: visible; /* Ensure brackets are visible */
}

/* Hover states */
button:hover,
.btn:hover,
.button-search:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover,
button.ccsu-search-submit:hover {
    background-color: var(--ccsu-light-blue);
    color: var(--ccsu-blue);
    border: 0 !important;
    text-decoration: none;
}

/* Focus states */
button:focus,
.btn:focus,
.button-search:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus,
.btn-danger:focus,
.btn-warning:focus,
.btn-info:focus,
.btn-light:focus,
.btn-dark:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
.wp-block-button__link:focus,
.wp-block-search__button:focus,
button.ccsu-search-submit:focus {
    background-color: var(--ccsu-light-blue);
    color: var(--ccsu-blue);
    border: 0 !important;
    outline: 2px solid var(--ccsu-blue);
    outline-offset: 2px;
}

/* Active states */
button:active,
.btn:active,
.button-search:active,
.btn-primary:active,
.btn-secondary:active,
.btn-success:active,
.btn-danger:active,
.btn-warning:active,
.btn-info:active,
.btn-light:active,
.btn-dark:active,
input[type="button"]:active,
input[type="submit"]:active,
.wp-block-button__link:active,
.wp-block-search__button:active,
button.ccsu-search-submit:active {
    background-color: var(--ccsu-blue-dark-hover);
    color: var(--ccsu-white);
    border: 0 !important;
}

/* Brackets: Upper Right - applies to all button types */
button::before,
.btn::before,
.btn-primary::before,
.btn-secondary::before,
.btn-success::before,
.btn-danger::before,
.btn-warning::before,
.btn-info::before,
.btn-light::before,
.btn-dark::before,
input[type="button"]::before,
input[type="submit"]::before,
.wp-block-button__link::before,
.wp-block-search__button::before,
button.ccsu-search-submit::before, .btn-compact::before {
    content: '';
    width: var(--bracket-size);
    height: var(--bracket-size);
    position: absolute;
    border: 2px solid var(--ccsu-blue);
    transition: border-color 0.2s ease;
    top: var(--bracket-offset);
    right: var(--bracket-offset);
    border-bottom: 0;
    border-left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Brackets: Lower Left - applies to all button types */
button::after,
.btn::after,
.btn-primary::after,
.btn-secondary::after,
.btn-success::after,
.btn-danger::after,
.btn-warning::after,
.btn-info::after,
.btn-light::after,
.btn-dark::after, .btn-compact::after,
input[type="button"]::after,
input[type="submit"]::after,
.wp-block-button__link::after,
.wp-block-search__button::after,
button.ccsu-search-submit::after {
    content: '';
    width: var(--bracket-size);
    height: var(--bracket-size);
    position: absolute;
    border: 2px solid var(--ccsu-blue);
    transition: border-color 0.2s ease;
    bottom: var(--bracket-offset);
    left: var(--bracket-offset);
    border-top: 0;
    border-right: 0;
    z-index: 1;
    pointer-events: none;
}

/* Hover bracket color change - applies to all button types */
button:hover::before,
button:hover::after,
.btn:hover::before,
.btn:hover::after,
.btn-primary:hover::before,
.btn-primary:hover::after,
.btn-secondary:hover::before,
.btn-secondary:hover::after,
.btn-success:hover::before,
.btn-success:hover::after,
.btn-danger:hover::before,
.btn-danger:hover::after,
.btn-warning:hover::before,
.btn-warning:hover::after,
.btn-info:hover::before,
.btn-info:hover::after,
.btn-light:hover::before,
.btn-light:hover::after,
.btn-dark:hover::before,
.btn-dark:hover::after,
input[type="button"]:hover::before,
input[type="button"]:hover::after,
input[type="submit"]:hover::before,
input[type="submit"]:hover::after,
.wp-block-button__link:hover::before,
.wp-block-button__link:hover::after,
.wp-block-search__button:hover::before,
.wp-block-search__button:hover::after,
button.ccsu-search-submit:hover::before,
button.ccsu-search-submit:hover::after, .btn-compact:hover::before, .btn-compact:hover::after {
    border-color: var(--ccsu-light-blue);
}

/* Button variants - override base colors if needed */
.btn-secondary, .btn-compact {
    background-color: var(--ccsu-dark-blue); /* CCSU Dark Blue */
}

.btn-secondary:hover,
.btn-secondary:focus, .btn-compact:hover, .btn-compact:focus {
    background-color: var(--ccsu-light-blue);
    color: var(--ccsu-dark-blue);
}

.btn-secondary::before,
.btn-secondary::after, .btn-compact::before, .btn-compact::after {
    border-color: var(--ccsu-dark-blue);
}

.btn-secondary:hover::before,
.btn-secondary:hover::after, .btn-compact:hover::before, .btn-compact:hover::after{
    border-color: var(--ccsu-light-blue);
}

/* ==========================================================================
   2. TOP UTILITY BAR (#topmostNav)
   Uses Bootstrap 5 .container for content width alignment with secondary nav
   Split background: light blue (left) / dark blue (right) with diagonal at viewport midpoint
   ========================================================================== */

#topmostNav {
    width: 100%;
    height: 40px;
    position: relative;
   /* z-index: 1040; makes additional padding on bottom it seems */
    /* Dark blue base background */
    background-color: var(--ccsu-dark-blue);
}

/* Light blue left half with diagonal - positioned at viewport midpoint */
#topmostNav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 40px;
    background-color: var(--ccsu-blue);
    /* Forward diagonal slant at the right edge (viewport midpoint) */
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    z-index: 0;
}

/* Container uses Bootstrap 5 responsive widths */
#topmostNav > .container {
    height: 40px;
    position: relative;
    z-index: 1;
}

/* Left zone: transparent (shows through to ::before light blue) */
#topmostNav .top-nav-left {
    height: 40px;
    padding: 0 1rem 0 0;
    position: relative;
    z-index: 2;
}

/* Right zone: transparent (shows through to dark blue background) */
#topmostNav .top-nav-right {
    height: 40px;
    padding-left: 1rem;
    padding-right: 0;
    z-index: 2;
}

/* LibHours styling */
#topmostNav #libhours {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 0.75rem;
}

#topmostNav #libhours a {
    color: var(--ccsu-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 40px;
}

#topmostNav #libhours a:hover {
    color: var(--ccsu-white);
}

/* Utility nav links */
#topmostNav .nav-link {
    color: var(--ccsu-white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0.75rem !important;
    height: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

#topmostNav .top-nav-left .nav-link:hover,
#topmostNav .top-nav-left .nav-link:focus {
    background-color: var(--ccsu-blue-hover);
    color: var(--ccsu-white);
}

#topmostNav .top-nav-right .nav-link:hover,
#topmostNav .top-nav-right .nav-link:focus {
    color: var(--ccsu-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

/* First item in left nav - gold highlight (e.g., "Pipeline") */
#topmostNav .top-nav-left .navbar-nav > li:first-child > .nav-link {
    background-color: var(--ccsu-gold);
    color: var(--ccsu-dark-blue) !important;
    font-weight: 700;
    padding: 0 1.25rem !important;
}

#topmostNav .top-nav-left .navbar-nav > li:first-child > .nav-link:hover {
    background-color: var(--ccsu-gold-hover);
    color: var(--ccsu-dark-blue) !important;
}

/* Sticky state */
#topmostNav.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    animation: slideDownUtility 0.4s ease-out forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideDownUtility {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Secondary Nav */
#secondNav {
    position: relative;
    z-index: 1030;
    background-color: var(--ccsu-white);
}

/* Mobile: Stack utility navs, remove diagonal */
@media (max-width: 991.98px) {
    #topmostNav {
        height: auto;
        background: var(--ccsu-dark-blue);
    }

    /* Hide the diagonal pseudo-element on mobile */
    #topmostNav::before {
        display: none;
    }

    #topmostNav > .container {
        height: auto;
        flex-wrap: wrap;
    }

    #topmostNav .top-nav-left {
        width: 100%;
        height: auto;
        padding: 0.5rem;
        justify-content: center;
        background-color: var(--ccsu-blue);
    }

    #topmostNav .top-nav-right {
        width: 100%;
        height: auto;
        padding: 0.5rem;
        justify-content: center;
    }
}

/* LibHours icon spacing */
#libhours i {
    margin-right: 0.5rem;
}
/* CUSTOMIZER BASED SECONDARY NAVBAR INSERTED SITE LOGO CSS **/
/* 1. Target the span container */
#library-logo {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* 2. Target the link inside the span */
#library-logo .custom-logo-link {
    display: block;
    max-height: 45px; /* Adjust this number to fit your nav bar height */
}

/* 3. Force the image to scale down */
#library-logo img.custom-logo {
    width: auto;      /* Overrides the 2560px attribute */
    height: auto;     /* Maintains aspect ratio */
    max-height: 45px; /* Ensures it never stretches the bar */
    display: block;
    object-fit: contain;
}
/* ==========================================================================
   3. SECONDARY NAV BAR (#secondNav)
   - White background, Mega Menu Parent
   ========================================================================== */

.secondary-nav-bar {
    width: 100%;
    background-color: var(--ccsu-white) !important;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1030 !important;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

/* Force Sticky ONLY when Mega Menu is open */
body.mega-menu-open #secondNav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2100;
}

.secondary-nav-bar .nav-link {
    font-family: 'Roboto', "Montserrat", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ccsu-blue) !important;
    text-transform: uppercase;
    padding: 1rem !important; /* Matches hover state to prevent layout shift */
}

/* Ensure buttons in secondary nav bar are also uppercase */
.secondary-nav-bar .btn,
.secondary-nav-bar button,
.secondary-nav-bar .navbar-toggler {
    font-family: 'Roboto', "Montserrat", Arial, sans-serif;
    text-transform: capitalize;
}

.secondary-nav-bar .nav-link:hover, .secondary-nav-bar .nav-link:focus,
.secondary-nav-bar .nav-link:active {
    color: var(--ccsu-gold) !important;
    border-bottom: 2px solid var(--ccsu-gold);
    background-color: var(--ccsu-dark-blue) !important;
    padding: 1rem;
}
/** style fixes for the secondary menu's nav links when the menu is hamburgered only */
/* Only apply these styles when the menu is in the hamburger state */
@media (max-width: 991.98px) {
    #secondNav .navbar-nav .nav-link {
        color: var(--ccsu-white) !important;
        padding-top: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Adds a subtle separator */
    }

    #secondNav .navbar-nav .nav-link:hover {
        color: var(--ccsu-gold);
    }

    /* This ensures the background of the expanded area is dark enough for white text */
    #secondaryNavbarCollapse {
        background-color: var(--ccsu-dark-blue); 
        padding: 15px;
        border-radius: 4px;
    }
}

/** MEGA MENU STYLING - FIND MOST SETTINGS IN THE CCSU-MEGA-MENU PLUGIN'S /ASSETS/CSS **/



/* ==========================================================================
   5. HERO SLIDESHOW
   ========================================================================== */

.header-slideshow {
    position: relative;
    min-height: 500px;
    background-color: var(--ccsu-blue);
    overflow: hidden;
}

/* Slideshow container - holds all slides */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind overlay and content */
}

/* Individual slide styling */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0; /* Hidden by default */
    animation-name: crossfade;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    z-index: 0;
}

/* Crossfade animation for slideshow */
@keyframes crossfade {
    0% { opacity: 0; }
    5% { opacity: 1; }  /* Fade in */
    95% { opacity: 1; } /* Stay visible */
    100% { opacity: 0; } /* Fade out */
}

/* Overlay - sits on top of slides but below content */
.header-slideshow::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(24, 65, 113, 0.4);
    z-index: 1; /* Above slides, below content */
}

/* Content container - sits on top of everything */
.page-subheader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    max-width: 1140px;
    background-color: rgba(24, 65, 113, 0.7);
    padding: 3rem;
    z-index: 1000; /* Above overlay and slides */
    color: var(--ccsu-white);
    text-align: center;
    overflow: visible; /* Allow button brackets to show */
}

/* Page scroller arrow */
.page-scroller {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ccsu-white);
    z-index: 10;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-scroller:hover {
    color: var(--ccsu-gold);
}

/* ==========================================================================
   5.5. PRIMO SEARCH FORM STYLING (Bootstrap 5 Compatible)
   ========================================================================== */

/* Form container - matches Bootstrap form styling */
form[name="searchForm"],
form#simple {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow: visible; /* Allow brackets to show outside button */
}

/* Input field - Bootstrap form-control style */
form[name="searchForm"] input[type="text"].input-field,
form#simple input[type="text"].input-field,
form[name="searchForm"] #primoQueryTemp,
form#simple #primoQueryTemp {
    display: inline-block;
    width: auto;
    flex: 1 1 auto;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ccsu-text-dark);
    background-color: var(--ccsu-white);
    background-clip: padding-box;
    border: 1px solid var(--ccsu-border-gray);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: 'Roboto', "Montserrat", Arial, sans-serif;
}

form[name="searchForm"] input[type="text"].input-field:focus,
form#simple input[type="text"].input-field:focus,
form[name="searchForm"] #primoQueryTemp:focus,
form#simple #primoQueryTemp:focus {
    color: var(--ccsu-text-dark);
    background-color: var(--ccsu-white);
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Select dropdown - Bootstrap form-select style */
form[name="searchForm"] select.input-field,
form#simple select.input-field,
form[name="searchForm"] #scopeChoice,
form#simple #scopeChoice {
    display: inline-block;
    width: auto;
    min-width: 200px;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ccsu-text-dark);
    background-color: var(--ccsu-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--ccsu-border-gray);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
    font-family: 'Roboto', "Montserrat", Arial, sans-serif;
}

form[name="searchForm"] select.input-field:focus,
form#simple select.input-field:focus,
form[name="searchForm"] #scopeChoice:focus,
form#simple #scopeChoice:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
/* Ensure consistent height for all search elements on mobile */
.cs-search-style .input-field,
.cs-search-style .btn-primary {
    height: 50px !important; /* Larger tap targets for mobile */
    margin-bottom: 5px;
}

/* Fix for the Search Button on mobile */
@media (max-width: 767px) {
    .cs-search-style #go {
        height: 55px !important; /* Slightly taller for emphasis */
        margin-top: 10px;
        width: 100%;
    }
    
    /* Improve spacing for the scope description */
    #scopeDescription {
        min-height: 3rem; 
        margin-bottom: 15px;
    }
}

/* Prevent the button from becoming too tall on tablet/foldable views */
.cs-search-style .row.align-items-start {
    align-items: stretch !important;
}

/* Link styling in form */
form[name="searchForm"] a,
form#simple a {
    color: var(--ccsu-white);
    text-decoration: underline;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    align-self: center;
    white-space: nowrap;
}

form[name="searchForm"] a:hover,
form#simple a:hover {
    color: var(--ccsu-gold); /* CCSU Gold on hover */
    text-decoration: none;
}

/* Inline flex container for input and select */
form[name="searchForm"] div[style*="inline-flex"],
form#simple div[style*="inline-flex"] {
    display: inline-flex !important;
    flex: 1 1 auto;
    gap: 0.5rem;
    align-items: stretch;
    min-width: 0;
}

/* Responsive adjustments for header slideshow */
.header-slideshow form[name="searchForm"],
.header-slideshow form#simple {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: visible; /* Allow button brackets to show */
}
/* ==========================================================================
SEARCH FORM BLOCK PATTERN IN CARDS - e.g., for Google Scholar
========================================================================== */
/* Update the global card input style */
/* Ensure the form container wraps its items on small screens */
/* Context: The Search Cards */
.ccsu-search-card-wrapper .ccsu-lib-search-form .ccsu-temp-input {
    flex: 1 1 100%;      /* Take up the full width on mobile so the button drops below */
    width: 100%;
    
    /* Remove the hard height ceiling to let padding create 'air' */
    height: auto; 
    max-height: none; 
    
    /* Spacious Font & Padding */
    font-size: 1.15rem;   /* Slightly dialed back from 1.25 for better balance */
    padding: 12px 15px;   /* Explicit vertical padding creates the height you want */
    line-height: 1.4;
    
    min-width: 0;
    border: 1px solid var(--ccsu-border-gray);
    border-radius: 4px;
}

/* Ensure the button also takes full width when stacked */
.ccsu-search-card-wrapper .ccsu-lib-search-form button {
    flex: 1 1 100%;
    margin-top: 5px; /* Spacing when stacked */
}

/* Responsive adjustment for very small screens */
@media screen and (max-width: 310px) {
    .ccsu-search-card-wrapper .ccsu-lib-search-form .ccsu-temp-input {
        font-size: 1rem;
        padding: 10px;
        text-align: left; /* Center-aligned text in tiny boxes often looks 'broken' */
    }
}

/* ==========================================================================
   RSS NEWS FEED - CONSOLIDATED STYLES
   ========================================================================== */

/* 1. Placeholder Backgrounds */
.ccsu-bg-blue { background-color: var(--ccsu-blue) !important; }
.ccsu-bg-gold { background-color: var(--ccsu-gold) !important; }
.ccsu-bg-dark { background-color:var(--ccsu-dark-blue) !important; }

/* 2. The Card Image Header (The Frame) */
.ccsu-card-img-wrapper {
    width: 100%;
    height: 180px; /* Consistent height for the grid */
    overflow: hidden;
    position: relative;
    display: flex; /* Required to center the icons */
    align-items: center;
    justify-content: center;
}

/* 3. Real Post Thumbnails (Full Bleed) */
.ccsu-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the 200px box perfectly */
}

/* 4. SVG Fallback Icons (The Scale Fix) */
.ccsu-svg-fallback {
    /* FIX: Set width as a percentage of the card so it's never 'tiny' */
    width: 45% !important; 
    height: auto !important;
    
    /* SAFETY: Ensure it never touches the top/bottom edges */
    max-height: 70% !important; 
    
    /* BEHAVIOR: Keep proportions and center */
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .ccsu-svg-fallback, .card:hover .ccsu-post-thumbnail {
    transform: scale(1.1);
}

/* 5. SVG Color Filters */
/* Turn black SVG into CCSU Gold */
.ccsu-icon-gold {
    filter: invert(85%) sepia(48%) saturate(3474%) hue-rotate(359deg) brightness(105%) contrast(106%) !important;
}

/* Turn black SVG into CCSU Dark Blue */
.ccsu-icon-blue {
    filter: invert(28%) sepia(54%) saturate(1028%) hue-rotate(183deg) brightness(93%) contrast(91%) !important;
}

/* 6. Date Badge Helper Classes (legacy naming convention) */
.ccsu-date-day {
    font-size: 1.5rem;
    font-weight: 900;
}

.ccsu-date-month {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Hover Effect for Card-to-Badge Interaction */
.card:hover .ccsu-date-badge {
    background-color: var(--ccsu-dark-blue);
    color: var(--ccsu-gold);
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* 7. Read More Button Styling - inherits from base button, uses standard 28px brackets */
.ccsu-theme-button {
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Card hover state for theme buttons */
.card:hover .ccsu-theme-button {
    background-color: var(--ccsu-light-blue) !important;
    color: var(--ccsu-blue) !important;
}

.card:hover .ccsu-theme-button::before,
.card:hover .ccsu-theme-button::after {
    border-color: var(--ccsu-light-blue);
}

/* ==========================================================================
   7.1 COMPACT BUTTON VARIANT (.btn-compact)
   Smaller button with 12px brackets for use in cards and tight spaces
   ========================================================================== */
.btn-compact,
.btn-card {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 2px; /* Smaller margin for compact spacing */
}

/* Compact button brackets - 12px */
.btn-compact::before,
.btn-card::before {
    width: var(--bracket-size-compact);
    height: var(--bracket-size-compact);
    top: var(--bracket-offset-compact);
    right: var(--bracket-offset-compact);
}

.btn-compact::after,
.btn-card::after {
    width: var(--bracket-size-compact);
    height: var(--bracket-size-compact);
    bottom: var(--bracket-offset-compact);
    left: var(--bracket-offset-compact);
}

/* Card hover state for compact buttons */
.card:hover .btn-compact,
.card:hover .btn-card {
    background-color: var(--ccsu-light-blue);
    color: var(--ccsu-blue);
}

.card:hover .btn-compact::before,
.card:hover .btn-compact::after,
.card:hover .btn-card::before,
.card:hover .btn-card::after {
    border-color: var(--ccsu-light-blue);
}
/** END RSS NEWS FEED PATTERN STYLING **/

/* Mobile responsive */
@media (max-width: 768px) {
    form[name="searchForm"],
    form#simple {
        flex-direction: column;
    }
    
    form[name="searchForm"] input[type="text"].input-field,
    form#simple input[type="text"].input-field,
    form[name="searchForm"] #primoQueryTemp,
    form#simple #primoQueryTemp,
    form[name="searchForm"] select.input-field,
    form#simple select.input-field,
    form[name="searchForm"] #scopeChoice,
    form#simple #scopeChoice {
        width: 100%;
        min-width: 100%;
    }
    
    form[name="searchForm"] div[style*="inline-flex"],
    form#simple div[style*="inline-flex"] {
        flex-direction: column;
        width: 100%;
    }
    
    form[name="searchForm"] input[type="button"]#go,
    form#simple input[type="button"]#go {
        width: 100%;
    }
    
    form[name="searchForm"] a,
    form#simple a {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   5b. AUTO BREADCRUMBS
   Bootstrap .breadcrumb component, styled to sit flush below the navbar.
   Rendered only on child pages (ccsu_breadcrumbs() is silent on top-level).
   ========================================================================== */

.ccsu-breadcrumb-nav {
    background-color: #f0f4f9;       /* light CCSU-blue tint */
    border-bottom: 1px solid #d6e0ec;
    font-size: 0.875rem;
}

.ccsu-breadcrumb-nav .breadcrumb {
    margin-bottom: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.ccsu-breadcrumb-nav .breadcrumb-item a {
    color: #205998;          /* CCSU primary blue */
    text-decoration: none;
}

.ccsu-breadcrumb-nav .breadcrumb-item a:hover,
.ccsu-breadcrumb-nav .breadcrumb-item a:focus {
    text-decoration: underline;
    color: #072141;          /* CCSU navy on hover */
}

.ccsu-breadcrumb-nav .breadcrumb-item.active {
    color: #495057;          /* Bootstrap muted text */
}


/* ==========================================================================
   5c. BOOTSTRAP 5 ACCORDION & TABS (ccsu_accordion / ccsu_tabs shortcodes)
   Minimal CCSU branding on top of Bootstrap defaults.
   ========================================================================== */

/* Accordion — active button uses CCSU navy background */
.accordion-button:not(.collapsed) {
    background-color: #072141;
    color: #fff;
}

.accordion-button:not(.collapsed)::after {
    /* Bootstrap's default chevron SVG needs to be white when background is dark */
    filter: brightness( 0 ) invert( 1 );
}

/* Tabs — active tab indicator in CCSU blue */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #205998;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: #072141;
}

/* Pills — active pill in CCSU blue */
.nav-pills .nav-link.active {
    background-color: #205998;
}

/* Tab/accordion content inside .entry-content inherits body typography */
.accordion-body,
.tab-pane {
    font-size: inherit;
    line-height: inherit;
}


/* ==========================================================================
   5d. WORDPRESS DETAILS BLOCK — styled as Bootstrap 5 accordion
   Uses the native <details> / <summary> element (WordPress core/details block).
   Insert the Details block from the block editor — no plugin needed.

   Stacking: place multiple Details blocks adjacently; their borders collapse
   automatically into a single accordion-group appearance.

   Mutual exclusion (only one open at a time): in the block sidebar, set the
   same "HTML anchor name" on every Details block in the group — modern
   browsers handle the single-open behaviour natively, no JS required.

   Print: handled by print-expand.js (sets .open = true on every details
   element before the browser captures the print layout).
   ========================================================================== */

/* ── Item container ──────────────────────────────────────────────────────── */
.wp-block-details {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;   /* all corners rounded by default (standalone) */
    overflow: hidden;           /* clips summary bg colour to rounded corners */
    margin-bottom: 0;
}

/* When a Details block directly follows another: collapse the shared border
   and square off the corners that are now interior to the group */
.wp-block-details + .wp-block-details {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Any Details block that has a Details sibling immediately after it is NOT
   the last in the group — remove its bottom rounding */
.wp-block-details:has(+ .wp-block-details) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Breathing room below the last / only item in a group */
.wp-block-details:not(:has(+ .wp-block-details)) {
    margin-bottom: 1.5rem;
}

/* ── Summary (the clickable header) ─────────────────────────────────────── */
.wp-block-details > summary {
    position: relative;
    display: block;
    padding: 1rem 3.5rem 1rem 1.25rem; /* right: space for chevron */
    font-size: 1rem;
    font-weight: 500;
    color: #072141;           /* CCSU navy */
    background-color: #fff;
    cursor: pointer;
    list-style: none;
    transition: color 0.15s ease, background-color 0.15s ease;
    user-select: none;
}

/* Remove the default browser disclosure triangle in all engines */
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::marker { content: ''; }

/* Chevron arrow — navy when closed */
.wp-block-details > summary::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23072141'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem 1.25rem;
    background-position: center;
    transition: transform 0.2s ease-in-out;
}

/* Hover — closed state */
.wp-block-details:not([open]) > summary:hover {
    background-color: #f0f4f9;   /* light CCSU blue tint */
}

/* Focus ring (keyboard navigation) */
.wp-block-details > summary:focus-visible {
    outline: 3px solid #205998;
    outline-offset: -3px;
    position: relative;
    z-index: 1;
}

/* ── Open state ──────────────────────────────────────────────────────────── */
.wp-block-details[open] > summary {
    background-color: #072141;   /* CCSU navy header */
    color: #fff;
}

/* Chevron rotates 180° and turns white when open */
.wp-block-details[open] > summary::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: translateY(-50%) rotate(180deg);
}

/* Hover — open state */
.wp-block-details[open] > summary:hover {
    background-color: #1a4d84;   /* slightly lighter navy */
}

/* ── Content area ────────────────────────────────────────────────────────── */
/* Visual separator between header and first content block */
.wp-block-details > summary + * {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

/* Left/right padding on every non-summary child */
.wp-block-details > *:not(summary) {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Bottom padding on the last content block */
.wp-block-details > *:not(summary):last-child {
    padding-bottom: 1rem;
    margin-bottom: 0;
}

/* Remove double bottom margin inside content */
.wp-block-details > *:not(summary) > *:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   6. WORDPRESS / GUTENBERG ALIGNMENTS
   Uses Bootstrap 5 container max-widths:
   sm (≥576px): 540px | md (≥768px): 720px | lg (≥992px): 960px
   xl (≥1200px): 1140px | xxl (≥1400px): 1320px
   ========================================================================== */

/* Default content width - matches Bootstrap .container */
.entry-content > *:not(.alignfull):not(.alignwide):not(.entry-featured-image) {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

/* Bootstrap 5 breakpoints for content width */
@media (min-width: 576px) {
    .entry-content > *:not(.alignfull):not(.alignwide):not(.entry-featured-image) {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .entry-content > *:not(.alignfull):not(.alignwide):not(.entry-featured-image) {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .entry-content > *:not(.alignfull):not(.alignwide):not(.entry-featured-image) {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .entry-content > *:not(.alignfull):not(.alignwide):not(.entry-featured-image) {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .entry-content > *:not(.alignfull):not(.alignwide):not(.entry-featured-image) {
        max-width: 1320px;
    }
}

/* Entry content paragraph typography
   Modest increases over Bootstrap's 16px/1.5 defaults for readability
   of dense archival and academic content. */
.entry-content p {
    font-size: 1.0625rem; /* 17px — slightly easier to read at length    */
    line-height: 1.65;    /* ~28px — comfortable for long paragraphs      */
    margin-bottom: 1.25rem; /* 20px — more visual breathing room between ¶s */
}

/* Page featured image (floated right on md+)
   margin-right creates clearance from the fixed LibChat "Ask a Librarian"
   tab on the right edge of the viewport. */
.entry-featured-image {
    margin-right: 4.5rem; /* clears the fixed chat widget on the right     */
    max-width: 280px;     /* keeps portrait images from overwhelming text  */
}

/* Wide alignment - one breakpoint wider than content */
.alignwide {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .alignwide {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .alignwide {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .alignwide {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .alignwide {
        max-width: 1320px;
    }
}

/* Full width alignment - spans entire viewport */
.alignfull {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Inner container within alignfull - uses Bootstrap .container behavior */
.alignfull > .container,
.alignfull .wp-block-group.container {
    width: 100%;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .alignfull > .container,
    .alignfull .wp-block-group.container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .alignfull > .container,
    .alignfull .wp-block-group.container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .alignfull > .container,
    .alignfull .wp-block-group.container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .alignfull > .container,
    .alignfull .wp-block-group.container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .alignfull > .container,
    .alignfull .wp-block-group.container {
        max-width: 1320px;
    }
}


/* ==========================================================================
   7. MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 991.98px) {
    #secondNav .navbar-collapse.show {
        background-color: var(--ccsu-dark-blue);
        position: absolute;
        top: 100%;
        width: 100%;
        left: 0;
        padding: 1rem;
    }

    #diagonal-split {
        clip-path: none;
        width: 100%;
    }

    #diagonal-split::before { display: none; }
}

/* ==========================================================================
   8. DIAGONAL SECTION DIVIDERS
   Reusable classes for angled/diagonal section transitions
   ========================================================================== */

/* Base diagonal section - adds top diagonal edge */
.diagonal-top {
    position: relative;
    margin-top: 60px;
}

.diagonal-top::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: inherit;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Bottom diagonal edge */
.diagonal-bottom {
    position: relative;
    margin-bottom: 60px;
}

.diagonal-bottom::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Reverse diagonal directions */
.diagonal-top-reverse::before {
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.diagonal-bottom-reverse::after {
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

/* Full diagonal section (both top and bottom) */
.diagonal-section {
    position: relative;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 4rem 0;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: inherit;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.diagonal-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Pre-styled diagonal sections with CCSU colors */
.diagonal-section-blue {
    background-color: var(--ccsu-blue);
    color: var(--ccsu-white);
}

.diagonal-section-dark {
    background-color: var(--ccsu-dark-blue);
    color: var(--ccsu-white);
}

.diagonal-section-gold {
    background-color: var(--ccsu-gold);
    color: var(--ccsu-dark-blue);
}

.diagonal-section-light {
    background-color: #f5f5f5;
    color: var(--ccsu-text-dark);
}

/* Diagonal header bar (like Events section in screenshot) */
.diagonal-header {
    position: relative;
    background-color: var(--ccsu-blue);
    color: var(--ccsu-white);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.diagonal-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: -40px;
    width: 40px;
    height: 100%;
    background-color: var(--ccsu-blue);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.diagonal-header h2,
.diagonal-header h3 {
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

/* Diagonal overlay on images */
.diagonal-overlay {
    position: relative;
    overflow: hidden;
}

.diagonal-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top right, var(--ccsu-dark-blue) 50%, transparent 50%);
    pointer-events: none;
}

/* Mobile adjustments for diagonals */
@media (max-width: 768px) {
    .diagonal-top,
    .diagonal-section {
        margin-top: 40px;
    }

    .diagonal-bottom,
    .diagonal-section {
        margin-bottom: 40px;
    }

    .diagonal-top::before,
    .diagonal-section::before {
        top: -40px;
        height: 40px;
    }

    .diagonal-bottom::after,
    .diagonal-section::after {
        bottom: -40px;
        height: 40px;
    }
}

/* ==========================================================================
   9. CCSU CARD STYLES
   Matching the card styling from CCSU homepage
   ========================================================================== */

/* Base card styling */
.ccsu-card {
    background: var(--ccsu-white);
    border-radius: 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Required for button bracket decorations */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
    line-height: 1.6rem;
}

.ccsu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card image container */
.ccsu-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.ccsu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Blue overlay on card images */
.ccsu-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(7, 33, 65, 0.7) 100%);
    pointer-events: none;
}

/* Card body */
.ccsu-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ccsu-card-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ccsu-dark-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.ccsu-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ccsu-card-title a:hover {
    color: var(--ccsu-blue);
}

.ccsu-card-text {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.6rem;
    flex: 1;
}

.ccsu-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card footer/link */
.ccsu-card-link {
    margin-top: auto;
    padding-top: 1rem;
}

.ccsu-card-link a {
    color: var(--ccsu-blue);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.ccsu-card-link a:hover {
    color: var(--ccsu-gold);
}

.ccsu-card-link a::after {
    content: ' \2192';
    transition: margin-left 0.2s ease;
}

.ccsu-card-link a:hover::after {
    margin-left: 5px;
}

/* Event card with date badge */
.ccsu-event-card {
    position: relative;
}

.ccsu-event-card .ccsu-card-img {
    aspect-ratio: 16/9;
}

/* Event date badge */
.ccsu-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--ccsu-gold);
    color: var(--ccsu-dark-blue);
    padding: 0.5rem 0.75rem;
    text-align: center;
    min-width: 60px;
    z-index: 2;
}
.ccsu-date-badge {
    /* Position styling (ensure these match your layout) */
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    
    /* Visual styling */
    background: #ffffff;
    color: #102c4b; /* CCSU Blue */
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
    font-weight: bold;

    /* THE DRAMATIC SHADOW */
    /* Layer 1: Sharp dark core, Layer 2: Soft medium spread, Layer 3: Wide ambient glow */
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1), 
        0 10px 20px rgba(0, 0, 0, 0.15), 
        0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Optional: subtle border to define the edge against light colors */
    border: 1px solid rgba(0, 0, 0, 0.05);
    
    /* Smooth transition if you want it to lift on hover */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Optional: Hover effect to make it feel interactive */
.card:hover .ccsu-date-badge {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 8px rgba(0, 0, 0, 0.15), 
        0 15px 30px rgba(0, 0, 0, 0.2), 
        0 30px 60px rgba(0, 0, 0, 0.15);
}

.ccsu-date-badge-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ccsu-date-badge-day {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

/* News card variant */
.ccsu-news-card .ccsu-card-meta {
    color: var(--ccsu-blue);
    font-weight: 600;
}
.ccsu-news-section{
    font-size: 1.25rem;
    line-height: 1.6rem;
}
/* Featured/large card */
.ccsu-card-featured {
    flex-direction: row;
}

.ccsu-card-featured .ccsu-card-img {
    flex: 0 0 50%;
    aspect-ratio: auto;
}

.ccsu-card-featured .ccsu-card-body {
    padding: 2rem;
    justify-content: center;
}

.ccsu-card-featured .ccsu-card-title {
    font-size: 1.5rem;
}

/* Card on dark background */
.ccsu-card-dark {
    background: var(--ccsu-dark-blue);
    color: var(--ccsu-white);
}

.ccsu-card-dark .ccsu-card-title {
    color: var(--ccsu-white);
}

.ccsu-card-dark .ccsu-card-text {
    color: rgba(255, 255, 255, 0.8);
}

.ccsu-card-dark .ccsu-card-link a {
    color: var(--ccsu-gold);
}

/* Card grid layout */
.ccsu-card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

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

/** GEMINI HELP 1/12/26 **/
/* The outer block from your pattern */
.ccsu-section-academics.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: url('path/to/chevron.png') no-repeat left center;
}

/* The inner block from your pattern */
.ccsu-section-academics .container {
    max-width: 1140px; /* Match Bootstrap XL */
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}
/* library searches pattern styling - see the patterns/search- styles */
/* Standardize our search cards */
.ccsu-search-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: var(--ccsu-white);
    height: 100%;
    overflow: hidden; /* Clips icon banner to card's rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* Card body gets its own padding — icon banner sits flush to the card edge */
.ccsu-search-card .ccsu-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.ccsu-search-card h4,
.ccsu-search-card .ccsu-card-title {
    color: var(--ccsu-blue); /* #205998 — matches screenshot */
    margin-bottom: 0.5rem;
}

/* Ensure form elements align correctly */
.ccsu-lib-search-form .form-control {
    font-size: 1rem;
    height: 38px; /* Standard Bootstrap height */
}

.ccsu-lib-search-form .btn {
    white-space: nowrap;
}
/* Responsive Library Search Forms */
.ccsu-lib-search-form {
    display: flex;
    flex-wrap: wrap; /* Allows the button to drop to the next line */
    gap: 10px;       /* Adds space between input and button when stacked */
}

/* Search CARDS always stack: input on top, button below, both full width.
   Scoped to .ccsu-search-card so the hero CentralSearch is unaffected. */
.ccsu-search-card .ccsu-lib-search-form {
    flex-direction: column;
}
.ccsu-search-card .ccsu-lib-search-form .ccsu-temp-input,
.ccsu-search-card .ccsu-lib-search-form .ccsu-search-submit {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: block;
}
/* Hide bracket pseudo-elements on full-width stacked buttons — they look
   wrong at 100% width and are a desktop-only decorative detail. */
.ccsu-search-card .ccsu-lib-search-form .ccsu-search-submit::before,
.ccsu-search-card .ccsu-lib-search-form .ccsu-search-submit::after {
    display: none;
}

/* Make the input grow to fill available space (hero banner only) */
#subheader-banner .ccsu-lib-search-form .ccsu-temp-input {
    flex: 1 1 250px; /* Grow, Shrink, and a 250px base width for homepage slideshow search only*/
    min-width: 0;    /* Fixes a common flexbox overflow bug */
    height: 42px;    /* Slightly taller for better mobile touch target */
}

/* Note: .ccsu-lib-search-form .ccsu-search-submit is defined in Section 3 below */
/* Styling for the Selected Multisearch component */
.ccsu-multisearch-container .form-select {
    border-left: 4px solid #005bb7; /* CCSU Blue accent */
    background-color: var(--ccsu-light-gray);
    font-weight: 500;
}

.h-42 { 
    height: 42px; 
}

/* Hero CentralSearch: keep input + dropdown + button in a row on larger screens.
   The card searches are handled by .ccsu-search-card rules above. */
@media (max-width: 576px) {
    #subheader-banner .ccsu-lib-search-form {
        flex-direction: column;
    }
    #subheader-banner .ccsu-lib-search-form .ccsu-temp-input,
    #subheader-banner .ccsu-lib-search-form .btn {
        width: 100% !important;
        min-width: 0;
    }
}

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

    .ccsu-card-featured {
        flex-direction: column;
    }

    .ccsu-card-featured .ccsu-card-img {
        flex: none;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 575.98px) {
    .ccsu-card-grid,
    .ccsu-card-grid-3,
    .ccsu-card-grid-4 {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   LIBRARY SEARCH CARD BLOCK PATTERNS
   Consolidated to prevent style collisions and redundant overrides.
   ========================================================================== */

/* 1. Card Layout & Wrapper */
.ccsu-search-card-wrapper {
    max-width: 420px; /* Optimal width for vertical search cards */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Image Wrapper & Icon Styling */
.ccsu-card .ccsu-card-img-wrapper {
    width: 100%;
    height: 180px; /* Consistent baseline height */
    background-color: var(--ccsu-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px; /* Framing for icons */
    overflow: hidden;
}

/* Search card icon banner — dark navy background, centred gold icon */
.ccsu-search-card .ccsu-search-card-icon {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem 0.5rem 0 0; /* Rounded top corners to match card */
    overflow: hidden;
    /* background-color set by inline style (PHP default: #072141) */
}
.ccsu-search-card .ccsu-search-card-icon .bi {
    font-size: 4rem;
    line-height: 1;
    /* color set by inline style (PHP default: #ffc107) */
}

.ccsu-card .ccsu-card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Prevents cropping across all screen sizes */
    transition: transform 0.3s ease;
}

/* Force consistent icon sizing across all search cards */
.ccsu-card-img-wrapper {
    height: 200px; /* Adjust this to match your preferred 'Journal Finder' height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Light grey background like in your screenshot */
    margin-bottom: 1.5rem;
}

.ccsu-card-img-wrapper img {
    width: 140px;      /* Force a consistent width */
    height: auto;
    object-fit: contain;
}

/* Subtle zoom effect */
.ccsu-card:hover .ccsu-card-img-wrapper img {
    transform: scale(1.05);
}

/* 3. Search Form & Button Styling */
.ccsu-lib-search-form .ccsu-search-submit {
    /* Layout & Alignment */
    margin: 0 !important; /* Neutralize global 8px margin */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Dimensions & Spacing */
    height: 50px !important;
    min-height: 42px;
    padding: 0 20px !important;
    
    /* Typography */
    line-height: 1 !important; /* Prevents vertical text drift */
    
    /* Visual & Layering */
    position: relative;
    z-index: 1;
    overflow: visible; /* Required for decorative brackets */
}

/* 4. Decorative Bracket Positioning */
/* Consolidated to ensure brackets stay anchored to the 50px button height */
.ccsu-lib-search-form .ccsu-search-submit::before,
.ccsu-lib-search-form .ccsu-search-submit::after {
    transition: border-color 0.2s ease;
}

.ccsu-lib-search-form .ccsu-search-submit::before {
    top: -4px !important;
    right: -4px !important;
}

.ccsu-lib-search-form .ccsu-search-submit::after {
    bottom: -4px !important;
    left: -4px !important;
}

/* 5. Responsive Adjustments */
@media (max-width: 575.98px) {
    .ccsu-card .ccsu-card-img-wrapper {
        height: 140px; /* Shorter header for small mobile screens */
        padding: 15px;
    }
}

/* 6. Search Cards Grid Layout */
.ccsu-search-cards-section {
    background-color: var(--ccsu-light-gray);
}

/* Force Bootstrap grid on WordPress block groups */
.wp-block-group.row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.wp-block-group.col {
    flex: 0 0 auto;
}

/* When cards are inside a grid, remove max-width so they fill columns */
.row .ccsu-search-card-wrapper,
.ccsu-search-cards-section .ccsu-search-card-wrapper {
    max-width: none;
}

/* Ensure cards stretch to equal heights in grid */
.ccsu-search-cards-section .col {
    display: flex;
}

.ccsu-search-cards-section .ccsu-search-card-wrapper {
    flex: 1;
    display: flex;
}

.ccsu-search-cards-section .ccsu-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ccsu-search-cards-section .ccsu-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Push link to bottom of card */
.ccsu-search-cards-section .ccsu-card-link {
    margin-top: auto;
}

/* Responsive: Tablet - 2 columns */
@media (min-width: 576px) and (max-width: 991.98px) {
    .ccsu-search-cards-section .ccsu-card-img-wrapper {
        height: 150px;
    }
}

/* Responsive: Desktop - 4 columns, adjust card internals */
@media (min-width: 992px) {
    .ccsu-search-cards-section .ccsu-card-title {
        font-size: 1.4rem;
    }

    .ccsu-search-cards-section .ccsu-card-text {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   10. CCSU HOMEPAGE SECTION STYLES
   Paragraph/section types matching CCSU main website
   ========================================================================== */

/* Academics Section - full width with chevron at FAR LEFT of viewport */
.ccsu-section-academics {
    padding: 80px 0;
    position: relative;
    width: 100%;
}

/* Chevron background - anchored to LEFT edge of viewport, bleeds off-screen */
.ccsu-section-academics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 500px;
    background-image: url(/wp-content/uploads/2026/01/double-arrows-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    pointer-events: none;
    z-index: 0;
}

/* Content uses Bootstrap 5 .container - centered with responsive max-widths */
/* Bootstrap 5 .container max-widths: sm=540px, md=720px, lg=960px, xl=1140px, xxl=1320px */
.ccsu-section-academics .container,
.ccsu-section-academics .wp-block-group.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

/* Bootstrap 5 responsive container widths */
@media (max-width: 1399.98px) {
    .ccsu-section-academics .container,
    .ccsu-section-academics .wp-block-group.container {
        max-width: 1140px;
    }
}

@media (max-width: 1199.98px) {
    .ccsu-section-academics .container,
    .ccsu-section-academics .wp-block-group.container {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {
    .ccsu-section-academics .container,
    .ccsu-section-academics .wp-block-group.container {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .ccsu-section-academics .container,
    .ccsu-section-academics .wp-block-group.container {
        max-width: 540px;
    }
}

@media (max-width: 575.98px) {
    .ccsu-section-academics .container,
    .ccsu-section-academics .wp-block-group.container {
        max-width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .ccsu-section-academics::before {
        width: 350px;
        opacity: 0.7;
    }
}

@media (max-width: 767.98px) {
    .ccsu-section-academics::before {
        width: 250px;
        opacity: 0.5;
    }
}

@media (max-width: 575.98px) {
    .ccsu-section-academics::before {
        width: 180px;
        opacity: 0.3;
    }
}

.ccsu-section-academics .section-header {
    margin-bottom: 3rem;
}

/* Base section title with gold underline */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--ccsu-gold);
}

.ccsu-section-academics .section-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ccsu-dark-blue);
}

/* News Section */
.ccsu-section-news {
    padding: 80px 0;
    background-color: var(--ccsu-blue);
    color: var(--ccsu-white);
    position: relative;
}

.ccsu-section-news .section-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ccsu-white);
    margin-bottom: 2rem;
}
/* Inherits ::after from base .section-title */

/* ==========================================================================
   SPECIAL COLLECTIONS GRID  [ccsu_collections_grid]
   Card grid for Special Collections index pages. Each card = one child page.
   ========================================================================== */

.ccsu-collections-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;           /* mobile: single column */
    margin-top: 2rem;
}

/* 2-column variant */
@media (min-width: 576px) {
    .ccsu-collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3-column default — kicks in at md */
@media (min-width: 768px) {
    .ccsu-collections-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .ccsu-collections-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 4-column variant — only at xl */
@media (min-width: 1200px) {
    .ccsu-collections-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Individual card ─────────────────────────────────────────────────── */
.ccsu-collection-card {
    display: flex;
    flex-direction: column;
    background: var(--ccsu-white);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ccsu-collection-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.13);
    transform: translateY(-2px);
}

/* ── Image area ──────────────────────────────────────────────────────── */
.ccsu-collection-card-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;   /* consistent thumbnail height across all cards */
    overflow: hidden;
    background-color: var(--ccsu-light-gray);
    flex-shrink: 0;
}

.ccsu-collection-card-img-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.ccsu-collection-card:hover .ccsu-collection-card-img-tag {
    transform: scale(1.04);
}

/* Placeholder shown when no featured image is set */
.ccsu-collection-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ccsu-navy, #072141);
}

.ccsu-collection-card-placeholder .bi {
    font-size: 3rem;
    color: rgba(255,255,255,.35);
}

/* ── Card body ───────────────────────────────────────────────────────── */
.ccsu-collection-card-body {
    padding: 1.25rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;                /* stretches body so CTA is always at bottom */
}

.ccsu-collection-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.ccsu-collection-card-title a {
    color: var(--ccsu-blue);
    text-decoration: none;
}

.ccsu-collection-card-title a:hover {
    text-decoration: underline;
    color: var(--ccsu-dark-blue, #154070);
}

.ccsu-collection-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
    flex: 1;                /* pushes CTA to bottom */
    margin-bottom: 1rem;

    /* clamp to 4 lines so cards stay consistent height */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ccsu-collection-card-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ccsu-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

.ccsu-collection-card-cta:hover {
    text-decoration: underline;
    color: var(--ccsu-dark-blue, #154070);
}

/* ── WP built-in lightbox polish ────────────────────────────────────── */
/* WordPress 6.4+ Gallery block lightbox — subtle style alignment        */
.wp-lightbox-overlay {
    --wp-lightbox-background-color: rgba(0, 0, 0, .92);
}

/* Events Section */
.ccsu-section-events {
    padding: 80px 0;
    background-color: var(--ccsu-light-gray);
    position: relative;
}

.ccsu-section-events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--ccsu-blue) 0%, var(--ccsu-blue) 60%, var(--ccsu-gold) 60%, var(--ccsu-gold) 100%);
}

.ccsu-section-events .section-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ccsu-dark-blue);
}

/* Hero Section with Video/Slideshow overlay */
.ccsu-section-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ccsu-section-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ccsu-section-hero-bg img,
.ccsu-section-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccsu-section-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 33, 65, 0.85) 0%, rgba(32, 89, 152, 0.7) 100%);
    z-index: 1;
}

.ccsu-section-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--ccsu-white);
    padding: 2rem;
    max-width: 800px;
}

.ccsu-section-hero-content h1 {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ccsu-section-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA / Get Started Section */
.ccsu-section-cta {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ccsu-section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 33, 65, 0.9) 0%, rgba(32, 89, 152, 0.85) 100%);
}

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

.ccsu-section-cta .section-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ccsu-white);
    text-align: center;
    margin-bottom: 1rem;
}

.ccsu-section-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* CTA Button Group */
.ccsu-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ccsu-cta-buttons .btn-gold {
    background-color: var(--ccsu-gold);
    color: var(--ccsu-dark-blue);
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    text-transform: uppercase;
}

.ccsu-cta-buttons .btn-gold:hover {
    background-color: var(--ccsu-gold-hover);
    color: var(--ccsu-dark-blue);
}

/* Social Section */
.ccsu-section-social {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.ccsu-section-social .section-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ccsu-dark-blue);
    text-align: center;
    margin-bottom: 2rem;
}

/* Social media grid */
.ccsu-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ccsu-social-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ccsu-social-grid a:hover img {
    transform: scale(1.05);
}

/* Quick Links Section */
.ccsu-section-quicklinks {
    padding: 60px 0;
    background-color: var(--ccsu-dark-blue);
}

.ccsu-quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.ccsu-quicklink-item {
    color: var(--ccsu-white);
    text-decoration: none;
    transition: transform 0.3s ease;
    display: block;
}

.ccsu-quicklink-item:hover {
    transform: translateY(-5px);
    color: var(--ccsu-gold);
}

.ccsu-quicklink-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ccsu-gold);
}

.ccsu-quicklink-item span {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Section divider bar (blue/gold stripe) */
.ccsu-divider-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--ccsu-blue) 0%, var(--ccsu-blue) 70%, var(--ccsu-gold) 70%, var(--ccsu-gold) 100%);
}

/* Mobile responsiveness for sections */
@media (max-width: 991.98px) {
    .ccsu-section-academics,
    .ccsu-section-news,
    .ccsu-section-events,
    .ccsu-section-cta,
    .ccsu-section-social {
        padding: 60px 0;
    }

    .ccsu-section-academics .section-title,
    .ccsu-section-news .section-title,
    .ccsu-section-events .section-title,
    .ccsu-section-cta .section-title {
        font-size: 2rem;
    }

    .ccsu-section-hero-content h1 {
        font-size: 2.5rem;
    }

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

@media (max-width: 575.98px) {
    .ccsu-section-academics,
    .ccsu-section-news,
    .ccsu-section-events,
    .ccsu-section-cta,
    .ccsu-section-social {
        padding: 40px 0;
    }

    .ccsu-section-hero {
        min-height: 400px;
    }

    .ccsu-section-hero-content h1 {
        font-size: 1.75rem;
    }

    .ccsu-quicklinks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   11. CHEVRON SECTION (Reusable Component)
   Section with double-arrows background pattern
   ========================================================================== */

.ccsu-section-chevron {
    padding: 80px 0;
    background-color: var(--ccsu-white);
    position: relative;
    overflow: hidden;
}

/* Background positioned relative to container, not viewport */
.ccsu-section-chevron::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(50% - 660px); /* Half of 1320px (Bootstrap xxl container) */
    width: 600px;
    background-image: url(/wp-content/uploads/2026/01/double-arrows-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above background */
.ccsu-section-chevron > .container {
    position: relative;
    z-index: 1;
}

.ccsu-section-chevron .section-header {
    margin-bottom: 3rem;
}

.ccsu-section-chevron .section-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ccsu-dark-blue);
}
/* Inherits position, display, and ::after from base .section-title */

.ccsu-section-chevron .chevron-section-content {
    position: relative;
    z-index: 1;
}

/* Widget styling within chevron section */
.ccsu-section-chevron .chevron-widget {
    margin-bottom: 2rem;
}

.ccsu-section-chevron .chevron-widget:last-child {
    margin-bottom: 0;
}

.ccsu-section-chevron .chevron-widget-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 700;
    color: var(--ccsu-dark-blue);
    margin-bottom: 1rem;
}

/* Placeholder card for empty widget area */
.chevron-placeholder-card {
    background: var(--ccsu-light-gray);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    color: var(--ccsu-text-muted);
}

/* Chevron section variants */
.ccsu-section-chevron.chevron-left::before {
    right: auto;
    left: calc(50% - 660px);
    background-position: left center;
}

.ccsu-section-chevron.chevron-both::before {
    display: none;
}

.ccsu-section-chevron.chevron-both::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 660px);
    width: 600px;
    background-image: url(/wp-content/uploads/2026/01/double-arrows-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    pointer-events: none;
    z-index: 0;
}

.ccsu-section-chevron.chevron-light {
    background-color: var(--ccsu-light-gray);
}

.ccsu-section-chevron.chevron-blue {
    background-color: var(--ccsu-blue);
    color: var(--ccsu-white);
}

.ccsu-section-chevron.chevron-blue .section-title {
    color: var(--ccsu-white);
}

.ccsu-section-chevron.chevron-blue .chevron-widget-title {
    color: var(--ccsu-white);
}

/* Mobile responsiveness for chevron section */
@media (max-width: 1399.98px) {
    .ccsu-section-chevron::before {
        right: calc(50% - 570px);
    }
    .ccsu-section-chevron.chevron-left::before,
    .ccsu-section-chevron.chevron-both::after {
        left: calc(50% - 570px);
    }
}

@media (max-width: 1199.98px) {
    .ccsu-section-chevron::before {
        right: calc(50% - 480px);
        width: 400px;
    }
    .ccsu-section-chevron.chevron-left::before,
    .ccsu-section-chevron.chevron-both::after {
        left: calc(50% - 480px);
        width: 400px;
    }
}

@media (max-width: 991.98px) {
    .ccsu-section-chevron {
        padding: 60px 0;
    }

    .ccsu-section-chevron::before {
        right: calc(50% - 360px);
        width: 300px;
        opacity: 0.5;
    }

    .ccsu-section-chevron.chevron-left::before,
    .ccsu-section-chevron.chevron-both::after {
        left: calc(50% - 360px);
        width: 300px;
        opacity: 0.5;
    }

    .ccsu-section-chevron .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .ccsu-section-chevron::before {
        right: calc(50% - 270px);
        width: 200px;
        opacity: 0.3;
    }

    .ccsu-section-chevron.chevron-left::before,
    .ccsu-section-chevron.chevron-both::after {
        left: calc(50% - 270px);
        width: 200px;
        opacity: 0.3;
    }
}

@media (max-width: 575.98px) {
    .ccsu-section-chevron {
        padding: 40px 0;
    }

    .ccsu-section-chevron::before,
    .ccsu-section-chevron.chevron-left::before,
    .ccsu-section-chevron.chevron-both::after {
        display: none;
    }

    .ccsu-section-chevron .section-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   12. FRONT PAGE SPECIFIC STYLES
   ========================================================================== */

.front-page .front-page-content {
    background-color: var(--ccsu-white);
}

.front-page .front-page-content .entry-content > *:first-child {
    margin-top: 0;
}

/* Hero widget area styling */
.hero-widget {
    text-align: center;
    color: var(--ccsu-white);
}

.hero-widget .hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-widget p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}
/** LIBCHAT LIBANSWERS WIDGET STYLING **/
/* Ensure LibChat container doesn't interfere with page flow */
/* Target any LibChat container starting with 'libchat_' */
[id^="libchat_"] {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

#lcs_slide_out_button-28900 {
    position: fixed;
    left: 180px;
}

.lcs_slide_out {
    width: 400px;
    height: 340px;
    position: fixed;
    transition-duration: 0.6s;
    background-color: rgb(249, 249, 249);
    border: 1px solid #ccc;
    z-index: 2100 !important; /* Must stay on top of navigation layers */
    box-sizing: border-box;
}

/* Note: SpringShare sometimes uses nested wrappers. 
   If the above doesn't work, target the ID specifically: 
*/
#libchat_6760_container { /* Replace with your specific widget ID if found in inspector */
    z-index: 2100 !important;
}
/** class s-la-widget, data-widget-id="28900" **/
.s-la-widget[data-widget-id="28900"]{
    z-index: 2100 !important;
}
/** SERVICES GRID BLOCK PATTERN FOR patterns/services-grid.php **/
/* Wrapper for the whole section */
.ccsu-services-grid-wrapper {
    background-color: var(--ccsu-blue); /* CCSU Blue */
}

/* The White Circular/Oval Container */
.ccsu-service-icon-circle {
    background-color: var(--ccsu-white);
    border-radius: 100px; /* High radius creates the oval shape */
    aspect-ratio: 1.5 / 1; /* Adjust to match the screenshot's width/height ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.ccsu-service-item:hover .ccsu-service-icon-circle {
    transform: translateY(-5px);
}

/* Icon Scaling */
.ccsu-service-icon-circle img {
    max-height: 80%;
    width: auto;
    /* If icons are black, use your blue filter */
    filter: invert(28%) sepia(54%) saturate(1028%) hue-rotate(183deg) brightness(93%) contrast(91%);
}

/* Link Styling */
.ccsu-service-link a {
    color: var(--ccsu-white) !important;
    text-transform: capitalize;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ccsu-service-link a:hover {
    color: var(--ccsu-gold) !important; /* CCSU Gold on hover */
}

/** TROUBLESHOOTING THE SEARCH FORM FOR CENTRALSEARCH / PRIMO VE IN THE HEADER CONTENT OVERLAY FOR THE HEADER SLIDESHOW ON THE HOMEPAGE **/
/* ==========================================================================
   MOBILE & TABLET OPTIMIZATIONS (Lg breakpoint and down)
   ========================================================================== */
/* ==========================================================================
   ENHANCED MOBILE & TABLET TROUBLESHOOTING
   ========================================================================== */
@media (max-width: 991.98px) {
    /* 1. Reset the Absolute Overlay to allow natural expansion */
    #subheader-banner.page-subheader {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 40px 20px !important;
        background-color: rgba(24, 65, 113, 0.85) !important; /* High contrast blue */
        z-index: 1000 !important;
        height: auto !important;
    }
    /* the h6 what can we help you find is now not the right contrast for smaller screens, so change color */
    #subheader-banner.page-subheader h6 {
        color: var(--ccsu-dark-blue) !important;
    }
    /* the description of scope similarly needs to be higher contrast on small screens */
     #subheader-banner.page-subheader #scopeDescription {
        color: var(--ccsu-dark-blue) !important;
    }

    /* 2. FORCE High Visibility for Form Fields */
    .cs-search-style input[type="text"].input-field,
    .cs-search-style #primoQueryTemp,
    .cs-search-style select.input-field,
    .cs-search-style #scopeChoice {
        background-color: var(--ccsu-white) !important; /* solid white bg */
        color: var(--ccsu-text-dark) !important;           /* dark text */
        border: 2px solid var(--ccsu-border-gray) !important;
        height: 50px !important;
        font-size: 16px !important;          /* prevents iOS zoom */
        margin-bottom: 15px !important;
        display: block !important;
        width: 100% !important;
        padding-left: 15px !important;
        opacity: 1 !important;               /* ensure no transparency */
        z-index: 1010 !important;
    }

    /* 3. Fix Label/Heading Contrast */
    .cs-search-style h6 {
        color: var(--ccsu-white) !important;
        font-weight: 700 !important;
        margin-bottom: 1.5rem !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    /* 4. Description Box Styling */
    #scopeDescription {
        color: var(--ccsu-white) !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border-left: 4px solid var(--ccsu-gold) !important; /* Gold accent */
        padding: 12px !important;
        margin-bottom: 20px !important;
        font-size: 0.95rem !important;
        text-align: left !important;
        opacity: 1 !important;
    }

    /* 5. Search Button - Full Width & High Contrast */
    #go.btn-primary {
        background-color: var(--ccsu-blue) !important;
        color: var(--ccsu-white) !important;
        width: 100% !important;
        height: 60px !important;
        margin-top: 10px !important;
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1020 !important;
    }

    /* Ensure button brackets remain visible and white on mobile */
    #go.btn-primary::before,
    #go.btn-primary::after {
        border-color: var(--ccsu-white) !important;
        z-index: 1021 !important;
    }

    /* 6. Fix Stacking Logic */
    .cs-search-style .row, 
    .cs-search-style .col-md-9, 
    .cs-search-style .col-md-3 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }
    /* Placeholder contrast fix */
.cs-search-style input::placeholder {
    color: var(--ccsu-text-muted) !important;
    opacity: 1;
}

/* Focus glow for accessibility */
.cs-search-style .input-field:focus {
    border-color: var(--ccsu-gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.35) !important;
    outline: none;
}
}
/* ==========================================================================
   LIBRARY SEARCH CARDS - CONSOLIDATED STYLES
   ========================================================================== */

/* 1. Force the Form Container to be a clean vertical stack */
.ccsu-card-body .ccsu-lib-search-form {
    display: flex !important;
    flex-direction: column !important; /* Forces vertical stacking */
    align-items: stretch !important;    /* Forces children to fill full width */
    gap: 0 !important;                  /* We will use margins for spacing */
    width: 100% !important;
    padding: 0 !important;
}

/* 2. The Text Input: Creating the "Spacious" Look */
.ccsu-card-body .ccsu-temp-input {
    /* Kill hardcoded h-42 and standard Bootstrap heights */
    height: 54px !important; 
    max-height: 54px !important;
    
    /* Accessibility: Large font and centered air */
    font-size: 1.15rem !important;
    padding: 0 15px !important; /* 0 vertical lets height center the text */
    
    margin-bottom: 20px !important; /* Creates clear separation from the button */
    border: 1px solid var(--ccsu-border-gray) !important;
    width: 100% !important;
    display: block !important;
}

/* 3. The Search Button: Snap back into the Card */
.ccsu-card-body .ccsu-search-submit {
    /* Reset layout and width */
    width: 100% !important;
    height: 50px !important;
    
    /* Neutralize the drift: Reset all positioning and margins */
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important; 
    
    /* Ensure text is perfectly centered */
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 4. Fix Decorative Brackets for these specific buttons */
.ccsu-card-body .ccsu-search-submit::before {
    top: -4px !important;
    right: -4px !important;
}

.ccsu-card-body .ccsu-search-submit::after {
    bottom: -4px !important;
    left: -4px !important;
}


/* ==========================================================================
   NEWSLETTER ARCHIVE  [ccsu_newsletter_archive]
   Featured current-issue card + school-year accordion archive.
   ========================================================================== */

/* ── Featured current-issue card ─────────────────────────────────────────── */
.ccsu-nl-featured {
    position: relative;
    background: linear-gradient( 135deg, #f0f4f9 0%, #e4edf8 100% );
    border: 1px solid #c8d9ee;
    border-left: 6px solid #205998;   /* CCSU blue accent bar */
    border-radius: 0.625rem;
    padding: 1.75rem 1.75rem 1.75rem 1.5rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

/* Gold "Current Issue" badge */
.ccsu-nl-badge-wrap {
    margin-bottom: 1.25rem;
}

.ccsu-nl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: #ffc107;       /* CCSU gold */
    color: #072141;                   /* CCSU navy text */
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
}

/* Two-column layout: thumbnail left, info right */
.ccsu-nl-featured-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* ── Thumbnail column ──────────────────────────────────────────────────────── */
.ccsu-nl-thumb-wrap {
    flex: 0 0 140px;
    width: 140px;
}

/* Tilted / lifted appearance — straightens and rises on hover */
.ccsu-nl-thumb-img,
.ccsu-nl-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 8.5 / 11;          /* portrait magazine proportions */
    border-radius: 4px;
    box-shadow: 5px 10px 28px rgba( 0, 0, 0, 0.22 );
    transform: rotate( -2.5deg ) translateY( -6px );
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ccsu-nl-thumb-img:hover,
.ccsu-nl-thumb-placeholder:hover {
    transform: rotate( 0deg ) translateY( 0 );
    box-shadow: 3px 14px 36px rgba( 0, 0, 0, 0.26 );
}

/* Styled placeholder when no cover image is available */
.ccsu-nl-thumb-placeholder {
    background: linear-gradient( 160deg, #205998 0%, #072141 100% );
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0.9rem;
    text-align: center;
    cursor: default;
}

.ccsu-nl-thumb-pub-name {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba( 255, 255, 255, 0.3 );
    padding-bottom: 0.6rem;
    width: 100%;
}

.ccsu-nl-thumb-icon {
    font-size: 2rem;
    opacity: 0.35;
}

.ccsu-nl-thumb-season-label {
    font-size: 0.65rem;
    opacity: 0.75;
    letter-spacing: 0.03em;
}

/* ── Info column ─────────────────────────────────────────────────────────── */
.ccsu-nl-featured-info {
    flex: 1;
    min-width: 0;
}

.ccsu-nl-pub-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #205998;
    margin-bottom: 0.2rem;
}

.ccsu-nl-featured-vol {
    font-size: 1.45rem;
    font-weight: 700;
    color: #072141;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.ccsu-nl-featured-season {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.ccsu-nl-featured-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ── Archive section heading ─────────────────────────────────────────────── */
.ccsu-nl-archive-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #072141;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

/* ── School-year accordion ───────────────────────────────────────────────── */
.ccsu-nl-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Issue count pill inside accordion header */
.ccsu-nl-year-count {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.65rem;
    border-radius: 2rem;
    white-space: nowrap;
    background-color: rgba( 255, 255, 255, 0.22 );
    flex-shrink: 0;
}

.ccsu-nl-accordion .accordion-button.collapsed .ccsu-nl-year-count {
    background-color: #e9ecef;
    color: #495057;
}

/* ── Issue list inside each accordion panel ──────────────────────────────── */
.ccsu-nl-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccsu-nl-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid #f0f3f7;
}

.ccsu-nl-list-item:last-child {
    border-bottom: none;
}

.ccsu-nl-item-meta {
    flex: 1;
    min-width: 0;
}

.ccsu-nl-item-season {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #205998;
    margin-bottom: 0.1rem;
}

.ccsu-nl-item-vol {
    display: block;
    font-size: 0.875rem;
    color: #343a40;
}

.ccsu-nl-item-links {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ccsu-nl-pdf-btn {
    background-color: #f0f4f9;
    border: 1px solid #c8d9ee;
    color: #205998;
    font-size: 0.78rem;
}

.ccsu-nl-pdf-btn:hover {
    background-color: #205998;
    border-color: #205998;
    color: #fff;
}

.ccsu-nl-flip-btn {
    background-color: transparent;
    border: 1px solid #ced4da;
    color: #495057;
    font-size: 0.78rem;
}

.ccsu-nl-flip-btn:hover {
    background-color: #072141;
    border-color: #072141;
    color: #fff;
}

/* ── Responsive: stack thumbnail below badge on small screens ─────────────── */
@media ( max-width: 575.98px ) {
    .ccsu-nl-featured-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ccsu-nl-thumb-wrap {
        width: 110px;
    }

    .ccsu-nl-featured-links {
        justify-content: center;
    }

    .ccsu-nl-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ── Print ── featured card simplifies, accordion opens via print-expand.js */
@media print {
    .ccsu-nl-featured {
        border: 1px solid #ccc;
        background: #fff;
        border-left: 4px solid #205998;
    }

    .ccsu-nl-thumb-img,
    .ccsu-nl-thumb-placeholder {
        transform: none;
        box-shadow: none;
    }

    .ccsu-nl-featured-links .btn {
        display: none;  /* buttons not useful on paper */
    }

    .ccsu-nl-featured-links::after {
        content: attr( data-pdf-url );
        font-size: 10pt;
        color: #555;
    }
}


/* ==========================================================================
   PRINT STYLES
   Works in tandem with js/print-expand.js which opens all collapsed content
   before the browser captures the print layout. These rules act as a safety
   net (in case JS is unavailable) and handle visual cleanup for paper.

   Add class="no-print" to any element you want hidden from printed output.
   ========================================================================== */

@media print {

    /* ── Force native Details blocks fully open ─────────────────────────── */
    /* print-expand.js sets details.open = true; this is the CSS safety net
       in case JS doesn't fire before the browser captures the layout. */
    details > *:not(summary) {
        display: block !important;
    }

    .wp-block-details > summary {
        background-color: transparent !important;
        color: #000 !important;
        font-weight: bold;
        border-bottom: 1px solid #ccc !important;
    }

    .wp-block-details > summary::after {
        display: none !important;
    }

    /* ── Force Bootstrap accordions fully open ───────────────────────────── */
    .accordion-collapse,
    .collapsing {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Clean up accordion toggle buttons — keep them as bold section headers */
    .accordion-button {
        background-color: transparent !important;
        box-shadow: none !important;
        color: #000 !important;
        font-weight: bold;
        border: none !important;
        border-bottom: 1px solid #ccc !important;
        padding-left: 0 !important;
    }

    /* Hide the expand/collapse chevron arrow */
    .accordion-button::after {
        display: none !important;
    }

    /* ── Force Bootstrap tab panes fully visible ─────────────────────────── */
    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hide the tab navigation buttons (content speaks for itself) */
    .nav-tabs,
    .nav-pills {
        display: none !important;
    }

    /* ── Hide chrome that has no meaning on paper ────────────────────────── */
    #masthead,
    nav,
    .ccsu-navbar,
    .ccsu-breadcrumb-nav,
    .site-footer,
    footer,
    .ccsu-lib-search-form,
    .ccsu-search-wrapper,
    .ccsu-search-card,
    .ccsu-chevron-section,
    .ccsu-section-hero,
    .wp-block-button,
    .btn,
    .ccsu-chat-tab,
    .no-print {
        display: none !important;
    }

    /* ── Page setup ──────────────────────────────────────────────────────── */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff !important;
    }

    /* Remove container padding that wastes paper margins */
    .container,
    .container-fluid {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Links: keep underline, drop colour */
    a {
        color: #000 !important;
        text-decoration: underline;
    }

    /* ── Avoid awkward mid-content page breaks ───────────────────────────── */
    .accordion-item,
    .accordion-body,
    .tab-pane,
    table,
    figure,
    img {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
        page-break-after: avoid;
    }
}