/* ==========================================
   ACADEMIC LAB — COMPONENT LIBRARY
   css/components.css
   
   All reusable UI components for use with
   Elementor Custom CSS or Classic Editor.
   Add the class names listed here to any
   Elementor element's "CSS Classes" field.
   ========================================== */

/* ==========================================
   0. IMPORT & CUSTOM PROPERTIES
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Georgia&display=swap');

:root {
    /* Brand Colors */
    --uh-red:        #C8102E;
    --uh-red-dark:   #a00e26;
    --uh-slate:      #54585A;
    --uh-slate-dark: #3a3d3e;
    --uh-gold:       #C4953B;
    --uh-gold-light: #d9aa52;

    /* Neutrals */
    --uh-white:      #FFFFFF;
    --uh-light-gray: #F9FAFB;
    --uh-mid-gray:   #E5E7EB;
    --uh-dark-gray:  #333333;

    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body:    'Roboto', sans-serif;
    --font-serif:   'Georgia', serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  3rem;
    --space-xl:  5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   1. GLOBAL CONTAINER
   Elementor CSS Class: vh-container
   ========================================== */

.vh-container {
    font-family: var(--font-body);
    color: var(--uh-dark-gray);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

.vh-container *,
.vh-container *::before,
.vh-container *::after {
    box-sizing: border-box !important;
}

.vh-container p,
.vh-container a,
.vh-container h2,
.vh-container h3,
.vh-container h4,
.vh-container span {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word;
}

/* ==========================================
   2. SECTION HEADERS
   Elementor CSS Class: vh-section-header
   ========================================== */

.vh-section-header {
    font-family: var(--font-display) !important;
    color: var(--uh-red) !important;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 3px solid var(--uh-gold) !important;
    margin: 4rem auto 2.5rem !important;
    padding-bottom: 10px;
    letter-spacing: 1px;
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
}

/* ==========================================
   3. HERO IMAGE
   Elementor CSS Class: vh-hero-image
   ========================================== */

.vh-hero-image {
    width: 100%;
    margin-bottom: 0;
}

.vh-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Hero with Overlay --- */
.vh-hero-overlay {
    position: relative;
    overflow: hidden;
}

.vh-hero-overlay img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.vh-hero-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: var(--uh-white);
}

.vh-hero-overlay-content h1 {
    font-family: var(--font-display);
    color: var(--uh-white);
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 0.5rem 0;
}

.vh-hero-overlay-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin: 0;
}

/* ==========================================
   4. QUOTE BOX
   Elementor CSS Class: vh-quote-box
   ========================================== */

.vh-quote-box {
    background: var(--uh-light-gray);
    border-left: 8px solid var(--uh-red);
    padding: 3rem 2rem;
    margin: 2rem 0 4rem;
    text-align: center;
}

.vh-quote-box p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--uh-slate);
    margin-bottom: 10px;
    line-height: 1.5;
}

.vh-quote-box span {
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--uh-gold);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Compact quote variant */
.vh-quote-box.compact {
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.vh-quote-box.compact p {
    font-size: 1.2rem;
}

/* ==========================================
   5. PRINCIPAL INVESTIGATOR CARD
   Elementor CSS Class: pi-featured-card
   ========================================== */

.pi-featured-card {
    display: flex;
    flex-wrap: wrap;
    background: var(--uh-white);
    box-shadow: var(--shadow-md);
    border-top: 10px solid var(--uh-red);
    margin-bottom: 5rem;
    transition: box-shadow var(--transition-base);
}

.pi-featured-card:hover {
    box-shadow: var(--shadow-lg);
}

.pi-image {
    flex: 1 1 350px;
    background: var(--uh-white);
    padding: 1rem;
}

.pi-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
}

.pi-details {
    flex: 2 1 450px;
    padding: 3rem;
}

.pi-details h2 {
    font-family: var(--font-display) !important;
    font-size: 2.8rem !important;
    color: var(--uh-slate) !important;
    margin: 0 0 5px 0 !important;
    text-transform: uppercase;
    line-height: 1.1;
}

.pi-rank {
    color: var(--uh-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.pi-details p {
    margin: 8px 0;
    font-size: 1rem;
}

.pi-details a {
    color: var(--uh-red);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.pi-details a:hover {
    color: var(--uh-gold) !important;
}

/* --- Compact PI card (sidebar variant) --- */
.pi-mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--uh-white);
    border: 1px solid var(--uh-mid-gray);
    border-left: 5px solid var(--uh-red);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.pi-mini-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.pi-mini-card h4 {
    font-family: var(--font-display);
    color: var(--uh-slate);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    font-size: 1rem;
}

.pi-mini-card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--uh-red);
    font-weight: 600;
}

/* ==========================================
   6. STUDENT / MEMBER PHOTO GRID
   Elementor CSS Class: student-grid
   ========================================== */

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

/* Individual Card */
.student-card {
    background: var(--uh-white);
    border: 1px solid var(--uh-mid-gray);
    position: relative;
    transition: all var(--transition-base) !important;
    display: flex;
    flex-direction: column;
}

.student-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-top: 5px solid var(--uh-red) !important;
}

/* Former student card variant */
.student-card.former-student-card {
    border-top: 5px solid var(--uh-slate) !important;
}

.student-card.former-student-card:hover {
    border-top: 5px solid var(--uh-red) !important;
}

/* --- Card Image Wrapper --- */
.student-img-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--uh-white);
    padding-top: 1rem;
}

.student-img-wrap.former-student-img {
    height: 250px;
}

.student-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    transition: transform var(--transition-slow), filter var(--transition-slow) !important;
}

/* --- LinkedIn / Link Overlay --- */
.linkedin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 16, 46, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-base) !important;
    text-decoration: none !important;
    z-index: 10;
}

.student-img-wrap:hover .linkedin-overlay {
    opacity: 1 !important;
}

.student-img-wrap:hover img {
    transform: scale(1.05) !important;
    filter: grayscale(30%) !important;
}

.linkedin-overlay i {
    color: var(--uh-white);
    font-size: 2.5rem;
    border: 2px solid var(--uh-white);
    padding: 12px 14px;
    border-radius: 4px;
    transition: background var(--transition-fast), color var(--transition-fast) !important;
}

.linkedin-overlay:hover i {
    background: var(--uh-white) !important;
    color: var(--uh-red) !important;
}

/* --- Card Body --- */
.student-body {
    padding: 1.5rem;
    flex-grow: 1;
    border-top: 1px solid var(--uh-mid-gray);
}

.student-body h3 {
    font-family: var(--font-display) !important;
    font-size: 1.3rem !important;
    color: var(--uh-slate) !important;
    margin: 0 0 8px 0 !important;
    text-transform: uppercase;
}

.student-body p {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--uh-dark-gray);
    line-height: 1.5;
}

.student-body a {
    color: var(--uh-red);
    text-decoration: none;
    font-weight: 500;
}

.student-body a:hover {
    text-decoration: underline !important;
}

.student-quote {
    font-style: italic;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 12px;
    padding-top: 10px;
    font-size: 0.9rem !important;
}

/* --- Card Badge (role indicator) --- */
.student-badge {
    display: inline-block;
    background: var(--uh-light-gray);
    color: var(--uh-slate);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    margin-bottom: 8px;
    border: 1px solid var(--uh-mid-gray);
}

.student-badge.phd    { background: #fff0f0; color: var(--uh-red); border-color: var(--uh-red); }
.student-badge.ms     { background: #fff8ec; color: var(--uh-gold); border-color: var(--uh-gold); }
.student-badge.ugrad  { background: #f0f6ff; color: #1a5fa8; border-color: #1a5fa8; }
.student-badge.postdoc{ background: #f0fff4; color: #166534; border-color: #166534; }

/* ==========================================
   7. ALUMNI ROSTER LIST (TEXT-ONLY)
   Elementor CSS Class: alumni-roster-grid
   ========================================== */

.alumni-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 4rem;
}

.alumni-roster-item {
    background: var(--uh-light-gray);
    padding: 1.5rem;
    border-left: 4px solid var(--uh-slate) !important;
    border-right: 1px solid var(--uh-mid-gray);
    border-top: 1px solid var(--uh-mid-gray);
    border-bottom: 1px solid var(--uh-mid-gray);
    transition: border-left-color var(--transition-fast) !important;
}

.alumni-roster-item:hover {
    border-left-color: var(--uh-red) !important;
    background: var(--uh-white);
}

.alumni-roster-item h4 {
    font-family: var(--font-display) !important;
    font-size: 1.15rem !important;
    color: var(--uh-slate) !important;
    margin: 0 0 8px 0 !important;
    text-transform: uppercase;
}

.alumni-roster-item p {
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    color: var(--uh-dark-gray);
}

/* ==========================================
   8. GALLERY — MASONRY
   Elementor CSS Class: vh-gallery
   ========================================== */

.vh-gallery {
    columns: 2;
    column-gap: 20px;
    margin-bottom: 4rem;
}

.vh-gallery figure {
    break-inside: avoid;
    margin: 0 0 20px 0;
    background: var(--uh-white);
    padding: 10px;
    border: 1px solid var(--uh-mid-gray);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.vh-gallery figure:hover {
    box-shadow: var(--shadow-md);
}

.vh-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.vh-gallery figcaption {
    padding: 12px 5px 5px;
    font-size: 0.9rem;
    color: var(--uh-dark-gray);
    line-height: 1.4;
}

/* ==========================================
   9. RESEARCH AREA CARDS
   Elementor CSS Class: vh-research-grid
   ========================================== */

.vh-research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 4rem;
}

.vh-research-card {
    background: var(--uh-white);
    border: 1px solid var(--uh-mid-gray);
    border-top: 5px solid var(--uh-red);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.vh-research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200,16,46,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.vh-research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.vh-research-card .card-icon {
    font-size: 2.5rem;
    color: var(--uh-red);
    margin-bottom: 1rem;
}

.vh-research-card h3 {
    font-family: var(--font-display) !important;
    color: var(--uh-slate) !important;
    text-transform: uppercase;
    font-size: 1.2rem !important;
    margin: 0 0 1rem 0 !important;
}

.vh-research-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--uh-dark-gray);
    margin: 0;
}

.vh-research-card a.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--uh-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
}

.vh-research-card a.read-more::after {
    content: ' →';
}

.vh-research-card a.read-more:hover {
    color: var(--uh-gold);
}

/* ==========================================
   10. PUBLICATION LIST
   Elementor CSS Class: vh-pub-list
   ========================================== */

.vh-pub-list {
    margin-bottom: 4rem;
}

.vh-pub-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--uh-mid-gray);
    align-items: flex-start;
    transition: background var(--transition-fast);
}

.vh-pub-item:hover {
    background: var(--uh-light-gray);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.vh-pub-year {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--uh-gold);
    min-width: 60px;
    line-height: 1.2;
    padding-top: 2px;
}

.vh-pub-content {
    flex: 1;
}

.vh-pub-content p {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--uh-dark-gray);
}

.vh-pub-content .pub-title {
    font-weight: 700;
    color: var(--uh-slate);
}

.vh-pub-content .pub-journal {
    font-style: italic;
    color: var(--uh-red);
}

.vh-pub-content a.pub-doi {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--uh-white);
    background: var(--uh-slate);
    padding: 3px 10px;
    text-decoration: none;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.vh-pub-content a.pub-doi:hover {
    background: var(--uh-red);
}

/* Publication year group header */
.vh-pub-year-header {
    font-family: var(--font-display);
    color: var(--uh-red);
    text-transform: uppercase;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--uh-gold);
    padding-bottom: 8px;
    margin: 3rem 0 1.5rem;
}

/* ==========================================
   11. NEWS / HIGHLIGHT CARDS
   Elementor CSS Class: vh-news-grid
   ========================================== */

.vh-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 4rem;
}

.vh-news-card {
    background: var(--uh-white);
    border: 1px solid var(--uh-mid-gray);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.vh-news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.vh-news-card-img {
    overflow: hidden;
    height: 200px;
}

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

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

.vh-news-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vh-news-card-date {
    font-size: 0.8rem;
    color: var(--uh-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.vh-news-card-body h3 {
    font-family: var(--font-display) !important;
    color: var(--uh-slate) !important;
    font-size: 1.15rem !important;
    text-transform: uppercase;
    margin: 0 0 0.75rem 0 !important;
}

.vh-news-card-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.vh-news-card-body a.read-more {
    display: inline-block;
    color: var(--uh-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vh-news-card-body a.read-more:hover {
    color: var(--uh-gold);
}

/* ==========================================
   12. STAT COUNTERS
   Elementor CSS Class: vh-stats-row
   ========================================== */

.vh-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--uh-mid-gray);
    border: 1px solid var(--uh-mid-gray);
    margin-bottom: 4rem;
}

.vh-stat-item {
    background: var(--uh-white);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: background var(--transition-base);
}

.vh-stat-item:hover {
    background: var(--uh-light-gray);
}

.vh-stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--uh-red);
    line-height: 1;
    display: block;
    font-weight: 700;
}

.vh-stat-item .stat-label {
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--uh-slate);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    display: block;
}

/* ==========================================
   13. CALL TO ACTION BANNERS
   Elementor CSS Class: vh-cta-banner
   ========================================== */

.vh-cta-banner {
    background: var(--uh-red);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.vh-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.02) 10px,
        rgba(255,255,255,0.02) 20px
    );
    pointer-events: none;
}

.vh-cta-banner h2 {
    font-family: var(--font-display) !important;
    color: var(--uh-white) !important;
    text-transform: uppercase;
    font-size: 2rem !important;
    margin: 0 0 1rem 0 !important;
}

.vh-cta-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.vh-cta-button {
    display: inline-block;
    background: var(--uh-white);
    color: var(--uh-red);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-base);
}

.vh-cta-button:hover {
    background: var(--uh-gold);
    color: var(--uh-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vh-cta-button.outline {
    background: transparent;
    color: var(--uh-white);
    border: 2px solid var(--uh-white);
}

.vh-cta-button.outline:hover {
    background: var(--uh-white);
    color: var(--uh-red);
}

/* ==========================================
   14. PAGE HEADER (Interior Pages)
   Elementor CSS Class: vh-page-header
   ========================================== */

.vh-page-header {
    background: var(--uh-light-gray);
    border-bottom: 4px solid var(--uh-red);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.vh-page-header h1 {
    font-family: var(--font-display) !important;
    color: var(--uh-slate) !important;
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 3rem) !important;
    margin: 0 0 0.5rem 0 !important;
}

.vh-page-header .breadcrumb {
    font-size: 0.9rem;
    color: #777;
}

.vh-page-header .breadcrumb a {
    color: var(--uh-red);
    text-decoration: none;
}

.vh-page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* Decorated version with gold accent */
.vh-page-header.decorated {
    border-left: 8px solid var(--uh-gold);
}

/* ==========================================
   15. ACCORDION / FAQ
   Elementor CSS Class: vh-accordion
   ========================================== */

.vh-accordion {
    margin-bottom: 4rem;
}

.vh-accordion-item {
    border: 1px solid var(--uh-mid-gray);
    margin-bottom: 8px;
}

.vh-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    background: var(--uh-white);
    transition: background var(--transition-fast);
    user-select: none;
}

.vh-accordion-header:hover {
    background: var(--uh-light-gray);
}

.vh-accordion-header.is-open {
    background: var(--uh-red);
    color: var(--uh-white);
}

.vh-accordion-header h4 {
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 !important;
    color: inherit !important;
}

.vh-accordion-header i {
    transition: transform var(--transition-fast);
    font-size: 0.9rem;
}

.vh-accordion-header.is-open i {
    transform: rotate(180deg);
}

.vh-accordion-body {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--uh-mid-gray);
    background: var(--uh-light-gray);
}

.vh-accordion-body.is-open {
    display: block;
}

.vh-accordion-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   16. CONTACT BLOCK
   Elementor CSS Class: vh-contact-block
   ========================================== */

.vh-contact-block {
    background: var(--uh-white);
    border: 1px solid var(--uh-mid-gray);
    border-top: 5px solid var(--uh-red);
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.vh-contact-block h3 {
    font-family: var(--font-display) !important;
    color: var(--uh-slate) !important;
    text-transform: uppercase;
    margin: 0 0 1.5rem 0 !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--uh-mid-gray);
}

.vh-contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.vh-contact-row i {
    color: var(--uh-gold);
    width: 18px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.vh-contact-row span,
.vh-contact-row a {
    font-size: 0.95rem;
    color: var(--uh-dark-gray);
    line-height: 1.5;
}

.vh-contact-row a {
    color: var(--uh-red);
    text-decoration: none;
    font-weight: 500;
}

.vh-contact-row a:hover {
    color: var(--uh-gold);
}

/* ==========================================
   17. TABBED CONTENT
   Elementor CSS Class: vh-tabs
   ========================================== */

.vh-tabs {
    margin-bottom: 4rem;
}

.vh-tab-nav {
    display: flex;
    border-bottom: 2px solid var(--uh-mid-gray);
    gap: 0;
    flex-wrap: wrap;
}

.vh-tab-nav button {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    background: var(--uh-light-gray);
    color: var(--uh-slate);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.9rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 0 !important;
    margin-bottom: -2px;
}

.vh-tab-nav button:hover {
    background: var(--uh-white);
    color: var(--uh-red);
}

.vh-tab-nav button.active {
    background: var(--uh-white);
    color: var(--uh-red);
    border-bottom-color: var(--uh-red);
    font-weight: 700;
}

.vh-tab-panel {
    display: none;
    padding: 2rem 0;
}

.vh-tab-panel.active {
    display: block;
}

/* ==========================================
   18. HIGHLIGHT BOX VARIANTS
   ========================================== */

/* Red accent highlight */
.vh-highlight-red {
    background: #fff0f0;
    border-left: 5px solid var(--uh-red);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Gold accent highlight */
.vh-highlight-gold {
    background: #fffbf0;
    border-left: 5px solid var(--uh-gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Slate accent highlight */
.vh-highlight-slate {
    background: var(--uh-light-gray);
    border-left: 5px solid var(--uh-slate);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.vh-highlight-red p,
.vh-highlight-gold p,
.vh-highlight-slate p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   19. UTILITY HELPERS
   ========================================== */

.text-red    { color: var(--uh-red) !important; }
.text-slate  { color: var(--uh-slate) !important; }
.text-gold   { color: var(--uh-gold) !important; }
.text-center { text-align: center !important; }
.text-upper  { text-transform: uppercase !important; }
.font-display{ font-family: var(--font-display) !important; }
.font-serif  { font-family: var(--font-serif) !important; }

.bg-red      { background-color: var(--uh-red) !important; color: var(--uh-white); }
.bg-slate    { background-color: var(--uh-slate) !important; color: var(--uh-white); }
.bg-light    { background-color: var(--uh-light-gray) !important; }

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

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.no-margin    { margin: 0 !important; }
.no-padding   { padding: 0 !important; }
.full-width   { width: 100% !important; }
.max-readable { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ==========================================
   20. RESPONSIVE BREAKPOINTS
   ========================================== */

@media (max-width: 1024px) {
    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .vh-research-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .pi-details h2 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .pi-featured-card {
        flex-direction: column;
    }

    .pi-image {
        flex: none;
        height: 300px;
    }

    .pi-details {
        padding: 2rem;
    }

    .pi-details h2 {
        font-size: 1.8rem !important;
    }

    .vh-quote-box p {
        font-size: 1.3rem;
    }

    .vh-gallery {
        columns: 1;
    }

    .alumni-roster-grid {
        grid-template-columns: 1fr;
    }

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

    .vh-news-grid {
        grid-template-columns: 1fr;
    }

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

    .vh-tab-nav {
        flex-direction: column;
    }

    .vh-tab-nav button {
        text-align: left;
        border-bottom: 1px solid var(--uh-mid-gray);
    }

    .vh-tab-nav button.active {
        border-bottom-color: var(--uh-mid-gray);
        border-left: 3px solid var(--uh-red);
    }

    .vh-pub-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .vh-pub-year {
        font-size: 1rem;
    }

    .vh-cta-banner h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .vh-stats-row {
        grid-template-columns: 1fr;
    }

    .vh-section-header {
        font-size: 1.2rem !important;
    }

    .student-img-wrap {
        height: 260px;
    }
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS PATCH v2.1
   Applied to all component classes
   ============================================================ */

/* ── Base resets ── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* ── Containers ── */
.vh-container { padding: 0 1rem; }

/* ── Section headers ── */
@media (max-width: 600px) {
    .vh-section-header { font-size: 1.1rem !important; margin: 2.5rem auto 1.5rem !important; }
}

/* ── PI featured card ── */
@media (max-width: 900px) {
    .pi-featured-card { flex-direction: column; }
    .pi-image { flex: none; max-height: 320px; overflow: hidden; }
    .pi-image img { height: 320px; width: 100%; object-fit: cover !important; }
    .pi-details { padding: 2rem; }
    .pi-details h2 { font-size: 2rem !important; }
}
@media (max-width: 500px) {
    .pi-details { padding: 1.25rem; }
    .pi-details h2 { font-size: 1.6rem !important; }
    .pi-image { max-height: 240px; }
    .pi-image img { height: 240px; }
}

/* ── Student grid ── */
@media (max-width: 900px) {
    .student-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 550px) {
    .student-grid { grid-template-columns: 1fr; }
    .student-img-wrap { height: 260px; }
    .student-img-wrap.former-student-img { height: 200px; }
}

/* ── Alumni roster grid ── */
@media (max-width: 700px) {
    .alumni-roster-grid { grid-template-columns: 1fr; }
}

/* ── Gallery ── */
@media (max-width: 700px) {
    .vh-gallery { columns: 1; }
}

/* ── Research grid ── */
@media (max-width: 900px) {
    .vh-research-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
    .vh-research-grid { grid-template-columns: 1fr; }
}

/* ── News grid ── */
@media (max-width: 900px) {
    .vh-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
    .vh-news-grid { grid-template-columns: 1fr; }
}

/* ── Stats row ── */
@media (max-width: 700px) {
    .vh-stats-row { grid-template-columns: repeat(2, 1fr); }
    .vh-stat-item .stat-number { font-size: 2.2rem; }
}
@media (max-width: 380px) {
    .vh-stats-row { grid-template-columns: 1fr; }
}

/* ── Pub list ── */
@media (max-width: 600px) {
    .vh-pub-item { flex-direction: column; gap: 0.25rem; }
    .vh-pub-year { font-size: 1rem; min-width: auto; }
}

/* ── CTA banner ── */
@media (max-width: 600px) {
    .vh-cta-banner { padding: 2rem 1rem; }
    .vh-cta-banner h2 { font-size: 1.4rem !important; }
    .vh-cta-button { padding: 12px 22px; font-size: 0.88rem; }
}

/* ── Tabs ── */
@media (max-width: 600px) {
    .vh-tab-nav { flex-direction: column; }
    .vh-tab-nav button { text-align: left; }
}

/* ── Contact block ── */
@media (max-width: 500px) {
    .vh-contact-block { padding: 1.5rem 1rem; }
}

/* ── Quote box ── */
@media (max-width: 500px) {
    .vh-quote-box { padding: 1.5rem 1rem; }
    .vh-quote-box p { font-size: 1.1rem; }
}

/* ── Page header ── */
@media (max-width: 600px) {
    .vh-page-header { padding: 2rem 1rem; }
    .vh-page-header h1 { font-size: 1.8rem !important; }
}

/* ── Accordion ── */
@media (max-width: 500px) {
    .vh-accordion-header { padding: 1rem; }
    .vh-accordion-body { padding: 1rem; }
}

/* ==========================================================================
   Global image display fix
   Ensures WordPress featured images and card thumbnails always use
   cover-fit and bias cropping toward the top to keep faces in frame.
   ========================================================================== */

.wp-post-image,
.al-card__img img,
.al-editorial__img img,
.attachment-post-thumbnail {
    object-fit:      cover !important;
    object-position: center 20% !important;
}

/* ==========================================================================
   Members hero block (rendered via al_members_hero_block())
   ========================================================================== */

.al-members-hero {
    position: relative;
    background-color: var(--uh-slate);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    height: 34vw;
    min-height: 240px;
    max-height: 440px;
    width: 100%;
    display: block;
}

.al-members-quote-section {
    padding: 4rem 2rem;
    background-color: var(--dm-surface, #F9FAFB);
    border-bottom: 1px solid var(--dm-border, #E5E7EB);
    width: 100%;
    text-align: center;
}

.al-hero-quote-box {
    margin: 0 auto;
    max-width: 850px;
    border: none !important;
}

.al-hero-quote-serif {
    font-family: var(--font-serif, Georgia, serif) !important;
    font-size: clamp(1.3rem, 4vw, 1.75rem) !important;
    font-weight: 400 !important;
    color: var(--dm-heading, var(--uh-slate)) !important;
    line-height: 1.5 !important;
    margin-bottom: 1.2rem !important;
    font-style: italic !important;
}

.al-hero-quote-author {
    font-family: var(--font-display, Oswald, sans-serif) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--uh-gold) !important;
    font-style: normal !important;
    display: block;
}

/* Page intro block (rendered via academic_lab_page_intro()) */
.al-page-intro {
    background: var(--dm-surface, #fff);
    padding: 3rem 2rem;
    border-top: 4px solid var(--uh-gold);
}

.al-page-intro-inner {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--dm-text, #333);
}

@media (max-width: 600px) {
    .al-members-quote-section { padding: 2.5rem 1.5rem; }
    .al-members-hero { height: 50vw; }
}

.al-page-intro-inner {
    max-width: var(--intro-max-width, 860px);
}

.al-page-intro--transparent {
    background: transparent !important;
    border-top: none;
}


/* ==========================================================================
   Single post page (single.php)
   ========================================================================== */

/* --- Post hero --- */
.al-post-hero{min-height:460px;background:var(--uh-slate) center/cover no-repeat;position:relative;display:flex;align-items:flex-end;}
.al-post-hero--plain{min-height:280px;background:linear-gradient(135deg,var(--uh-slate) 0%,#3a3d3f 100%);}
.al-post-hero__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.35) 60%,transparent 100%);}
.al-post-hero--plain .al-post-hero__overlay{background:linear-gradient(135deg,rgba(200,16,46,.15) 0%,transparent 100%);}
.al-post-hero__inner{position:relative;z-index:1;max-width:860px;width:100%;margin:0 auto;padding:3rem 2rem;}
.al-post-hero__breadcrumb{font-size:.72rem;color:rgba(255,255,255,.55);margin-bottom:1rem;display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;}
.al-post-hero__breadcrumb a{color:rgba(255,255,255,.65);text-decoration:none;}
.al-post-hero__breadcrumb a:hover{color:#fff;}
.al-post-hero__breadcrumb span{color:rgba(255,255,255,.35);}
.al-post-hero__cat{display:inline-block;font-size:.68rem;text-transform:uppercase;letter-spacing:2px;color:#fff;background:var(--uh-red);padding:.25rem .7rem;font-weight:700;margin-bottom:.75rem;}
.al-post-hero__title{font-family:var(--font-display)!important;color:#fff!important;font-size:clamp(1.8rem,4vw,3rem)!important;margin:0 0 1rem!important;line-height:1.1;text-shadow:0 2px 6px rgba(0,0,0,.4);}
.al-post-hero__meta{display:flex;flex-wrap:wrap;gap:1.25rem;font-size:.78rem;color:rgba(255,255,255,.7);}
.al-post-hero__meta span{display:flex;align-items:center;gap:.4rem;}
.al-post-hero__meta i{color:var(--uh-gold);}

/* --- Post layout --- */
.al-post-wrap{max-width:1200px;margin:0 auto;padding:4rem 2rem 5rem;display:grid;grid-template-columns:1fr 320px;gap:4rem;align-items:flex-start;}
.al-post-main{}
.al-post-content{font-size:1.05rem;line-height:1.85;color:var(--dm-text, #333);}
.al-post-content h2{font-family:var(--font-display)!important;text-transform:uppercase;color:var(--dm-heading, var(--uh-slate))!important;font-size:1.3rem!important;margin:2.5rem 0 1rem!important;padding-bottom:.4rem;border-bottom:2px solid var(--dm-border, #f0f0f0);}
.al-post-content h3{font-family:var(--font-display)!important;color:var(--dm-heading, var(--uh-slate))!important;font-size:1.1rem!important;margin:2rem 0 .75rem!important;}
.al-post-content img{max-width:100%;height:auto;display:block;margin:1.5rem 0;}
.al-post-content blockquote{border-left:4px solid var(--uh-red);padding:1rem 1.5rem;background:var(--dm-surface, #f9fafb);font-style:italic;color:var(--dm-text, #555);margin:2rem 0;}
.al-post-content a{color:var(--uh-red);}

/* Tags */
.al-post-tags{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:2rem 0;padding-top:1.5rem;border-top:1px solid var(--dm-border, #eee);}
.al-post-tags span{font-size:.78rem;color:var(--dm-text-light, #999);margin-right:.25rem;}
.al-post-tags a{font-size:.74rem;padding:.25rem .65rem;background:var(--dm-surface, #f0f0f0);color:var(--dm-text-muted, #555);text-decoration:none;transition:all .15s;}
.al-post-tags a:hover{background:var(--uh-red);color:#fff;}

/* Author box */
.al-post-author-box{display:grid;grid-template-columns:72px 1fr;gap:1.25rem;padding:1.5rem;background:var(--dm-surface, #f9fafb);border:1px solid var(--dm-border, #eee);border-left:4px solid var(--uh-gold);margin:2.5rem 0;align-items:center;}
.al-post-author-box__img{width:72px;height:72px;border-radius:50%;display:block;}
.al-post-author-box__name{font-family:var(--font-display)!important;text-transform:uppercase;color:var(--dm-heading, var(--uh-slate))!important;font-size:.88rem!important;margin:0 0 .25rem!important;}
.al-post-author-box__bio{font-size:.82rem;color:var(--dm-text-muted, #666);margin:0;line-height:1.6;}

/* Post navigation */
.al-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:2rem 0;padding:1.5rem 0;border-top:2px solid var(--dm-border, #f0f0f0);}
.al-post-nav__prev,.al-post-nav__next{display:flex;flex-direction:column;gap:.25rem;}
.al-post-nav__next{text-align:right;}
.al-post-nav a{text-decoration:none;display:flex;flex-direction:column;gap:.2rem;}
.al-post-nav__dir{font-size:.7rem;text-transform:uppercase;letter-spacing:1.5px;color:var(--uh-gold);font-weight:700;}
.al-post-nav__title{font-size:.88rem;color:var(--dm-heading, var(--uh-slate));font-weight:500;line-height:1.4;}
.al-post-nav a:hover .al-post-nav__title{color:var(--uh-red);}

/* --- Sidebar --- */
.al-post-sidebar{position:sticky;top:2rem;display:flex;flex-direction:column;gap:1.5rem;}
.al-post-sidebar-widget{background:var(--dm-card-bg, #fff);border:1px solid var(--dm-border, #eee);padding:1.25rem;}
.al-post-sidebar-widget__title{font-family:var(--font-display)!important;text-transform:uppercase;font-size:.82rem!important;color:var(--dm-heading, var(--uh-slate))!important;margin:0 0 1rem!important;padding-bottom:.5rem;border-bottom:2px solid var(--uh-red);}

/* Related items */
.al-post-related-item{display:flex;gap:.75rem;text-decoration:none;color:inherit;padding:.6rem 0;border-bottom:1px solid var(--dm-border, #f0f0f0);align-items:flex-start;}
.al-post-related-item:last-child{border-bottom:none;}
.al-post-related-item__img{width:64px;height:64px;overflow:hidden;flex-shrink:0;}
.al-post-related-item__img img{width:100%;height:100%;object-fit:cover;display:block;}
.al-post-related-item__body{flex:1;min-width:0;}
.al-post-related-item__title{font-size:.82rem;font-weight:600;color:var(--dm-heading, var(--uh-slate));line-height:1.4;margin-bottom:.2rem;}
.al-post-related-item:hover .al-post-related-item__title{color:var(--uh-red);}
.al-post-related-item time{font-size:.72rem;color:var(--dm-text-muted, #999);}

/* Share buttons */
.al-post-share{display:flex;flex-direction:column;gap:.4rem;}
.al-post-share__btn{display:flex;align-items:center;gap:.5rem;padding:.5rem .85rem;font-size:.78rem;font-weight:600;text-decoration:none;border-radius:2px;transition:all .15s;}
.al-post-share__btn--twitter{background:#000;color:#fff;}
.al-post-share__btn--twitter:hover{background:#333;color:#fff;}
.al-post-share__btn--linkedin{background:#0077b5;color:#fff;}
.al-post-share__btn--linkedin:hover{background:#005e94;color:#fff;}
.al-post-share__btn--copy{background:var(--dm-surface, #f0f0f0);color:var(--dm-text-muted, #555);}
.al-post-share__btn--copy:hover{background:var(--uh-slate);color:#fff;}

/* Back button */
.al-post-back-btn{display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;color:var(--uh-red);text-decoration:none;padding:.6rem 0;}
.al-post-back-btn:hover{color:var(--uh-gold);}

/* Responsive adjustments */
@media(max-width:900px){
    .al-post-wrap{grid-template-columns:1fr;}
    .al-post-sidebar{position:static;}
    .al-post-hero{min-height:320px;}
}
@media(max-width:600px){
    .al-post-nav{grid-template-columns:1fr;}
    .al-post-author-box{grid-template-columns:54px 1fr;}
    .al-post-author-box__img{width:54px;height:54px;}
}

/* ==========================================================================
   Dark mode toggle button (injected via wp_footer)
   ========================================================================== */
.al-dark-toggle { position:fixed; bottom:5.5rem; right:2rem; z-index:9990; background:var(--dm-surface); border:1px solid var(--dm-border); color:var(--dm-text); cursor:pointer; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.1rem; box-shadow:0 4px 12px rgba(0,0,0,.15); transition:all .2s; }
.al-dark-toggle:hover { transform:scale(1.1); }
@media print { .al-dark-toggle { display:none!important; } }

/* ==========================================================================
   Announcement banner (injected via wp_body_open)
   ========================================================================== */
.al-announcement-banner { position:relative; z-index:9999; display:flex; align-items:center; justify-content:center; padding:.65rem 3rem .65rem 1rem; gap:1rem; transition:max-height .3s ease,opacity .3s ease; }
.al-announcement-banner.al-hidden { display:none; }
.al-announcement-banner__inner { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; justify-content:center; }
.al-announcement-banner__text { margin:0; font-size:.88rem; font-weight:500; color:#fff; text-align:center; }
.al-announcement-banner__link { font-size:.82rem; font-weight:700; color:#fff; border:1px solid rgba(255,255,255,.7); padding:.25rem .85rem; text-decoration:none; border-radius:2px; white-space:nowrap; transition:background .15s; }
.al-announcement-banner__link:hover { background:rgba(255,255,255,.2); }
.al-announcement-banner__close { position:absolute; right:.75rem; top:50%; transform:translateY(-50%); background:none; border:none; color:#fff; font-size:1.4rem; cursor:pointer; line-height:1; opacity:.75; }
.al-announcement-banner__close:hover { opacity:1; }

/* ==========================================================================
   Cookie notice (injected via wp_footer)
   ========================================================================== */
.al-cookie-notice { position:fixed; bottom:0; left:0; right:0; z-index:99999; background:var(--uh-slate); border-top:3px solid var(--uh-red); padding:1rem 2rem; transform:translateY(100%); transition:transform .4s ease; }
.al-cookie-notice.al-visible { transform:translateY(0); }
.al-cookie-notice.al-hidden { display:none; }
.al-cookie-notice__inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; justify-content:space-between; }
.al-cookie-notice__text { color:rgba(255,255,255,.85); font-size:.85rem; line-height:1.6; margin:0; flex:1; }
.al-cookie-notice__text a { color:var(--uh-gold); text-decoration:underline; }
.al-cookie-notice__accept { background:var(--uh-red); color:#fff; border:none; padding:.55rem 1.5rem; font-size:.82rem; font-weight:600; text-transform:uppercase; letter-spacing:.5px; cursor:pointer; flex-shrink:0; transition:background .2s; }
.al-cookie-notice__accept:hover { background:var(--uh-gold); }

/* ==========================================================================
   Scroll-to-top button (injected via wp_footer)
   ========================================================================== */
.al-scroll-top { position:fixed; bottom:2rem; right:2rem; z-index:9990; width:44px; height:44px; border-radius:50%; background:var(--uh-red); color:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:.9rem; box-shadow:0 4px 14px rgba(0,0,0,.25); opacity:0; transform:translateY(16px); transition:opacity .3s ease,transform .3s ease,background .2s; }
.al-scroll-top.al-visible { opacity:1; transform:translateY(0); }
.al-scroll-top:hover { background:var(--uh-gold); }

/* ==========================================================================
   Global image cover fix (declared once here, not per-template)
   ========================================================================== */
.wp-post-image,
.al-card__img img,
.al-editorial__img img,
.attachment-post-thumbnail {
    object-fit: cover !important;
    object-position: center 20% !important;
}

/* ==========================================================================
   404.php
   ========================================================================== */

/* --- 404 Layout --- */
.al-404-wrap { 
    min-height: 70vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 6rem 2rem; 
    background: var(--dm-bg, #fff); 
}
.al-404-inner { 
    text-align: center; 
    max-width: 600px; 
    width: 100%; 
}
.al-404-icon { 
    font-size: 3.5rem; 
    color: var(--uh-gold); 
    margin-bottom: 1rem; 
    opacity: 0.9; 
}
.al-404-code { 
    font-family: var(--font-display) !important; 
    font-size: clamp(6rem, 15vw, 9rem); 
    color: var(--dm-border, #e8e8e8); 
    line-height: 1; 
    font-weight: 700; 
    letter-spacing: -2px; 
    margin-bottom: 0.5rem; 
}
.al-404-title { 
    font-family: var(--font-display) !important; 
    color: var(--dm-heading, var(--uh-slate)) !important; 
    text-transform: uppercase; 
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important; 
    margin: 0 0 1rem !important; 
}
.al-404-desc { 
    color: var(--dm-text-muted, #666); 
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin: 0 auto 2.5rem; 
    max-width: 500px;
}

/* --- Search form styling --- */
.al-404-search { 
    margin-bottom: 3rem; 
    max-width: 450px; 
    margin-left: auto; 
    margin-right: auto; 
}
.al-404-search form { 
    display: flex; 
    width: 100%; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}
.al-404-search input[type="search"],
.al-404-search input[type="text"] { 
    flex: 1; 
    padding: 0.85rem 1.2rem; 
    border: 1px solid var(--dm-border, #ddd); 
    border-right: none; 
    background: var(--dm-surface, #fff); 
    color: var(--dm-text, #333); 
    font-size: 1rem; 
    border-radius: 3px 0 0 3px; 
    outline: none; 
    transition: border-color 0.2s;
}
.al-404-search input[type="search"]:focus,
.al-404-search input[type="text"]:focus { 
    border-color: var(--uh-red); 
}
.al-404-search button, 
.al-404-search input[type="submit"] { 
    background: var(--uh-red); 
    color: #fff; 
    border: none; 
    padding: 0 1.5rem; 
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: pointer; 
    border-radius: 0 3px 3px 0; 
    transition: background 0.2s; 
}
.al-404-search button:hover, 
.al-404-search input[type="submit"]:hover { 
    background: var(--uh-gold); 
}

/* --- Return button --- */
.al-404-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    background: var(--uh-slate); 
    color: #fff !important; 
    padding: 0.85rem 2rem; 
    font-family: var(--font-display); 
    font-size: 0.95rem; 
    text-transform: uppercase; 
    text-decoration: none; 
    letter-spacing: 1.5px; 
    transition: background 0.2s, transform 0.2s; 
    border-radius: 2px; 
}
.al-404-btn:hover { 
    background: var(--uh-red); 
    transform: translateY(-2px); 
}


/* ==========================================================================
   index.php
   ========================================================================== */

/* --- Layout --- */
.al-index-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* --- Header for archives and search --- */
.al-index-header {
    border-bottom: 3px solid var(--uh-red);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}
.al-index-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    color: var(--dm-heading, var(--uh-slate)) !important;
    text-transform: uppercase;
    margin: 0 0 0.5rem !important;
}
.al-index-title span { color: var(--uh-red); }
.al-index-desc { font-size: 1.05rem; color: var(--dm-text-muted, #666); }

/* --- Post item --- */
.al-index-post {
    border-bottom: 1px solid var(--dm-border, #e8e8e8);
    padding: 3rem 0;
}
.al-index-post:first-child { padding-top: 0; }
.al-index-post:last-child { border-bottom: none; }

.al-index-post .entry-title {
    font-family: var(--font-display) !important;
    font-size: 1.8rem !important;
    text-transform: uppercase;
    margin: 0 0 0.5rem !important;
    line-height: 1.2;
}
.al-index-post .entry-title a {
    color: var(--dm-heading, var(--uh-slate));
    text-decoration: none;
    transition: color 0.2s;
}
.al-index-post .entry-title a:hover {
    color: var(--uh-red);
}

.al-index-post .entry-meta {
    font-size: 0.85rem;
    color: var(--dm-text-muted, #888);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.al-index-post .entry-meta a { color: inherit; text-decoration: none; }
.al-index-post .entry-meta a:hover { color: var(--uh-red); }

.entry-thumbnail { margin-bottom: 1.5rem; border-radius: 2px; overflow: hidden; }
.entry-thumbnail img { max-height: 400px; object-fit: cover; width: 100%; display: block; transition: transform 0.4s; }
.entry-thumbnail a:hover img { transform: scale(1.03); }

.al-index-post .entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dm-text, #444);
    margin-bottom: 1.5rem;
}

.read-more-link {
    display: inline-block;
    color: var(--uh-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.read-more-link:hover { color: var(--uh-gold); }

/* --- Pagination --- */
.al-index-pagination { margin-top: 3rem; border-top: 2px solid var(--dm-border, #f0f0f0); padding-top: 2rem; }
.al-index-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.al-index-pagination .page-numbers {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--dm-border, #ddd);
    color: var(--dm-text, #555);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.2s;
    background: var(--dm-surface, #fff);
}
.al-index-pagination .page-numbers.current,
.al-index-pagination .page-numbers:hover {
    background: var(--uh-red);
    border-color: var(--uh-red);
    color: #fff;
}

/* --- No results state --- */
.al-index-no-results {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--dm-text-muted, #777);
}
.al-index-no-results i { font-size: 3.5rem; display: block; margin-bottom: 1.5rem; color: var(--uh-gold); opacity: 0.8; }
.al-index-no-results h2 { font-family: var(--font-display); color: var(--dm-heading, var(--uh-slate)); text-transform: uppercase; font-size: 2rem; margin-bottom: 1rem; }
.al-index-no-results p { font-size: 1.1rem; margin-bottom: 2rem; }

/* --- Reusing the search form styling from 404 --- */
.al-index-search-form { max-width: 450px; margin: 0 auto; }
.al-index-search-form form { display: flex; width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.al-index-search-form input[type="search"], .al-index-search-form input[type="text"] {
    flex: 1; padding: 0.85rem 1.2rem; border: 1px solid var(--dm-border, #ddd); border-right: none;
    background: var(--dm-surface, #fff); color: var(--dm-text, #333); font-size: 1rem; border-radius: 3px 0 0 3px; outline: none;
}
.al-index-search-form input[type="search"]:focus, .al-index-search-form input[type="text"]:focus { border-color: var(--uh-red); }
.al-index-search-form button, .al-index-search-form input[type="submit"] {
    background: var(--uh-red); color: #fff; border: none; padding: 0 1.5rem; font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-radius: 0 3px 3px 0; transition: background 0.2s;
}
.al-index-search-form button:hover, .al-index-search-form input[type="submit"]:hover { background: var(--uh-gold); }


/* ==========================================================================
   page.php
   ========================================================================== */

/* --- 1. Page wrapper --- */
.al-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* --- 2. Page header --- */
.al-page-header {
    border-bottom: 3px solid var(--uh-red);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}
.al-page-title {
    font-family: var(--font-display) !important;
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    color: var(--dm-heading, var(--uh-slate)) !important;
    text-transform: uppercase;
    margin: 0 0 0.75rem !important;
    line-height: 1.1;
}

/* --- 3. Breadcrumbs --- */
.al-breadcrumb {
    font-size: 0.85rem;
    color: var(--dm-text-muted, #777);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.al-breadcrumb a {
    color: var(--dm-text-muted, #777);
    text-decoration: none;
    transition: color 0.2s;
}
.al-breadcrumb a:hover {
    color: var(--uh-red);
}

/* --- 4. Page content --- */
.al-page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dm-text, #444);
}
.al-page-content h2, 
.al-page-content h3, 
.al-page-content h4 {
    color: var(--dm-heading, var(--uh-slate));
    font-family: var(--font-display);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.al-page-content a {
    color: var(--uh-red);
    text-decoration: underline;
    text-decoration-color: rgba(200, 16, 46, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}
.al-page-content a:hover {
    color: var(--uh-gold);
    text-decoration-color: var(--uh-gold);
}

/* --- 5. Page links --- */
.al-page-links {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dm-border, #eee);
    font-weight: 600;
    color: var(--dm-text, #333);
}
.al-page-links a {
    display: inline-block;
    margin: 0 0.25rem;
    padding: 0.4rem 0.85rem;
    background: var(--dm-surface, #f0f0f0);
    color: var(--dm-text, #333);
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}
.al-page-links a:hover {
    background: var(--uh-red);
    color: #fff;
}

/* --- 6. Comments section --- */
.al-page-comments {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--dm-border, #e8e8e8);
}


/* ==========================================================================
   search.php
   ========================================================================== */

/* Search wrap */
.al-search-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* Header */
.al-search-header {
    border-bottom: 3px solid var(--uh-red);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}
.al-search-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    color: var(--dm-heading, var(--uh-slate)) !important;
    text-transform: uppercase;
    margin: 0 0 0.5rem !important;
    line-height: 1.2;
}
.al-search-title span {
    color: var(--uh-red);
}
.al-search-meta {
    font-size: 1.05rem;
    color: var(--dm-text-muted, #666);
    margin: 0;
}

/* Search bar form */
.al-search-bar {
    max-width: 600px;
    margin-bottom: 4rem;
}
.al-search-bar form {
    display: flex;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.al-search-bar input[type="search"],
.al-search-bar input[type="text"] {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--dm-border, #ddd);
    border-right: none;
    background: var(--dm-surface, #fff);
    color: var(--dm-text, #333);
    font-size: 1rem;
    border-radius: 3px 0 0 3px;
    outline: none;
    transition: border-color 0.2s;
}
.al-search-bar input[type="search"]:focus,
.al-search-bar input[type="text"]:focus {
    border-color: var(--uh-red);
}
.al-search-bar button,
.al-search-bar input[type="submit"] {
    background: var(--uh-red);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    transition: background 0.2s;
}
.al-search-bar button:hover,
.al-search-bar input[type="submit"]:hover {
    background: var(--uh-gold);
}

/* Search results listing */
.al-search-result {
    border-bottom: 1px solid var(--dm-border, #e8e8e8);
    padding: 2.5rem 0;
}
.al-search-result:first-child {
    padding-top: 0;
}
.al-search-result:last-child {
    border-bottom: none;
}

.al-search-result__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.al-search-result__badge {
    background: var(--uh-slate);
    color: #fff;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
}
.al-search-result__date {
    font-size: 0.85rem;
    color: var(--dm-text-muted, #888);
    font-weight: 500;
}

.al-search-result__title {
    font-family: var(--font-display) !important;
    font-size: 1.6rem !important;
    text-transform: uppercase;
    margin: 0 0 0.75rem !important;
    line-height: 1.3;
}
.al-search-result__title a {
    color: var(--dm-heading, var(--uh-slate));
    text-decoration: none;
    transition: color 0.2s;
}
.al-search-result__title a:hover {
    color: var(--uh-red);
}

.al-search-result__excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dm-text, #555);
    margin-bottom: 1.25rem;
}
.al-search-result__excerpt p {
    margin: 0;
}

.al-search-result__link {
    display: inline-block;
    color: var(--uh-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.al-search-result__link:hover {
    color: var(--uh-gold);
}

/* Pagination */
.al-search-pagination {
    margin-top: 3rem;
    border-top: 2px solid var(--dm-border, #f0f0f0);
    padding-top: 2rem;
}
.al-search-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.al-search-pagination .page-numbers {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--dm-border, #ddd);
    color: var(--dm-text, #555);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.2s;
    background: var(--dm-surface, #fff);
}
.al-search-pagination .page-numbers.current,
.al-search-pagination .page-numbers:hover {
    background: var(--uh-red);
    border-color: var(--uh-red);
    color: #fff;
}

/* No results state */
.al-search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dm-text-muted, #777);
    background: var(--dm-surface, #f9fafb);
    border: 1px solid var(--dm-border, #eee);
    border-top: 4px solid var(--uh-gold);
}
.al-search-no-results i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--uh-gold);
    opacity: 0.8;
}
.al-search-no-results h2 {
    font-family: var(--font-display);
    color: var(--dm-heading, var(--uh-slate));
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.al-search-no-results p {
    font-size: 1.05rem;
    margin: 0;
}

