/*
 * home.css — Uganda Museums Homepage
 * KGM-Inspired Light Editorial Theme
 *
 * Contains styles for every section EXCEPT the hero (hero.css)
 * and ticker (ticker.css). All colours reference CSS variables
 * from variables.css — never hardcoded.
 *
 * Sections covered:
 *   .home-collections   Collections mosaic
 *   .home-about         About / Mission split
 *   .home-visit         Visitor information
 *   .home-events        Events preview
 *   .home-education     Education strip
 *   .home-news          News grid
 *   .home-publications  Publications row
 *   .home-institutions  Institutions row
 *   .home-cta-band      CTA band (forest green)
 */

/* ════════════════════════════════════════════════════════
   SHARED SECTION UTILITIES
════════════════════════════════════════════════════════ */

/* Two-column section header: title left, sub-text + link right */
.section-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 2rem;
}

.section-hdr-sub {
    max-width: 360px;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
}

/* Terracotta underline arrow link */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--terracotta);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}
.link-arrow:hover { border-color: var(--terracotta); color: var(--terracotta); }


/* ════════════════════════════════════════════════════════
   1. COLLECTIONS MOSAIC
════════════════════════════════════════════════════════ */

.home-collections__header {
    align-items: flex-start;
}
.home-collections__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

/* 4-column grid — thin 1.5px gaps between cards */
.coll-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
    background-color: var(--border-medium);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* Individual collection card */
.coll-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

/* Card hover: scale image */
.coll-card:hover .coll-card__icon { opacity: 0.12; transform: translate(-50%, -65%) scale(1.1); }
.coll-card:hover .coll-card__cta  { opacity: 1; transform: translateY(0); }

/* ── Collection colour-coded gradient backgrounds ── */
.coll-arch {
    background: linear-gradient(160deg, #D4A574 0%, #A0522D 100%);
}
.coll-arch::before {
    background: repeating-linear-gradient(
        45deg, #fff 0, #fff 1px, transparent 0, transparent 8px
    );
}

.coll-eth {
    background: linear-gradient(160deg, #6B9B6B 0%, #2C4A3E 100%);
}
.coll-eth::before {
    background: repeating-linear-gradient(
        -45deg, #fff 0, #fff 1px, transparent 0, transparent 8px
    );
}

.coll-nat {
    background: linear-gradient(160deg, #7BA7BC 0%, #3D6B7A 100%);
}
.coll-nat::before {
    background: radial-gradient(
        circle at 50% 30%, rgba(255,255,255,0.5) 0%, transparent 60%
    );
}

.coll-hist {
    background: linear-gradient(160deg, #C4A882 0%, #7A6040 100%);
}
.coll-hist::before {
    background: repeating-linear-gradient(
        0deg, #fff 0, #fff 1px, transparent 0, transparent 12px
    );
}

/* Subtle crosshatch texture overlay (shared by all cards) */
.coll-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.07;
}

/* Large centred icon */
.coll-card__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 3.5rem;
    opacity: 0.25;
    z-index: 2;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

/* Dark gradient overlay at the bottom */
.coll-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 26, 24, 0.88) 0%,
        rgba(26, 26, 24, 0.10) 55%,
        transparent 100%
    );
    z-index: 3;
}

/* Text block at the bottom */
.coll-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 1.4rem;
}

.coll-card__era {
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.coll-card__name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.coll-card__desc {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.3rem;
    line-height: 1.5;
}

.coll-card__count {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.2rem;
}

/* "Explore collection →" appears on hover */
.coll-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.7rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

/* Responsive: 2 cols on tablet */
@media (max-width: 1024px) {
    .coll-mosaic {
        grid-template-columns: 1fr 1fr;
    }
    .coll-card { aspect-ratio: 4 / 3; }
    .home-collections__meta { align-items: flex-start; }
    .section-hdr { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .coll-mosaic { grid-template-columns: 1fr; }
    .coll-card { aspect-ratio: 16 / 9; }
}


/* ════════════════════════════════════════════════════════
   2. ABOUT SPLIT
════════════════════════════════════════════════════════ */

.home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    overflow: hidden;
}

/* Left image column */
.home-about__visual {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background-color: var(--bg-section);
}

.home-about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.home-about__image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    background: linear-gradient(160deg, #EDE8E0, #D4C4A8);
    color: var(--terracotta);
    opacity: 0.4;
}

/* White "1908 Founded" badge */
.home-about__badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.4rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 2;
}

.home-about__badge-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
}

.home-about__badge-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

/* Right content column */
.home-about__content {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

/* Italic mission quote with terracotta left border */
.home-about__quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.65;
    border-left: 3px solid var(--terracotta);
    padding-left: 1.2rem;
    margin: 1.2rem 0 1.5rem;
}

.home-about__body {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 0.8rem;
}

/* 2-col functions list */
.home-about__functions {
    margin-top: 1.8rem;
    margin-bottom: 2rem;
}

.home-about__functions-title {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.home-about__fn-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    list-style: none;
}

.home-about__fn-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.home-about__fn-list li::before {
    content: '—';
    color: var(--terracotta);
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .home-about {
        grid-template-columns: 1fr;
    }
    .home-about__visual { min-height: 320px; order: -1; }
    .home-about__content { padding: 3.5rem 2rem; }
    .home-about__fn-list { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════
   3. VISIT INFO
════════════════════════════════════════════════════════ */

.home-visit__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* 2×2 info cards */
.home-visit__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.vcard {
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    padding: 1.4rem;
    background-color: var(--bg-warm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.vcard:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-sm);
}

.vcard__icon { font-size: 1.4rem; margin-bottom: 0.7rem; display: block; }

.vcard__heading {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.vcard__highlight {
    color: var(--terracotta);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.vcard__highlight a { color: inherit; text-decoration: none; }

.vcard__body {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.6;
}
.vcard__body a { color: var(--terracotta); }

/* Admission fees table */
.home-visit__fees-heading {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-light);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
}

.fees-table td {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    vertical-align: middle;
}

.fees-table tr:last-child td { border-bottom: none; }

.fees-table__price {
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--terracotta);
}

.fees-table__price--free { color: var(--forest); }

/* Right: map box */
.home-visit__map-box {
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    background-color: var(--bg-section);
}

.home-visit__map-visual {
    height: 240px;
    background: linear-gradient(135deg, #C8D8C8, #A0B8A8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.home-visit__map-pin { font-size: 3.5rem; }

.home-visit__map-details { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }

.home-visit__map-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.home-visit__map-desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .home-visit__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .home-visit__map-box { max-width: 480px; }
}

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


/* ════════════════════════════════════════════════════════
   4. EVENTS PREVIEW
════════════════════════════════════════════════════════ */

.home-events__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* White event card */
.ev-card {
    background-color: #fff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}
.ev-card:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Card image/visual area */
.ev-card__visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ev-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Colour-coded placeholder backgrounds */
.ev-card__visual--placeholder { background: linear-gradient(135deg, #EDE8E0, #C4A882); }
.ev-card__visual--imd         { background: linear-gradient(135deg, #C8D4E8, #8898B8); }
.ev-card__visual--edu         { background: linear-gradient(135deg, #C8D8C0, #8AAA8A); }
.ev-card__visual--research    { background: linear-gradient(135deg, #E8D4C0, #C4A882); }

.ev-card__icon {
    font-size: 3.5rem;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

/* Date badge — top right */
.ev-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--terracotta);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    z-index: 2;
}

.ev-card__body { padding: 1.4rem; }

.ev-card__type {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.4rem;
}

.ev-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.ev-card__excerpt {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.65;
}

.ev-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--terracotta);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-top: 1rem;
}

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

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


/* ════════════════════════════════════════════════════════
   5. EDUCATION STRIP
════════════════════════════════════════════════════════ */

.home-education {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    padding: 0;
}

/* Left full-bleed image */
.home-education__visual {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    background-color: var(--bg-section);
}

.home-education__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.home-education__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    background: linear-gradient(160deg, #C8D8C0, #8AAA8A);
    opacity: 0.5;
}

.home-education__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(250,250,247,0.08));
    pointer-events: none;
}

/* "Education Service" pill badge */
.home-education__pill {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: var(--terracotta);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    z-index: 2;
}

/* Right content column */
.home-education__content {
    background-color: var(--bg-warm);
    padding: 5.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.home-education__body {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 1rem 0;
}

/* Education program rows */
.home-education__programs {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.8rem;
    margin-bottom: 2rem;
}

.edu-prog {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background-color: #fff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.edu-prog:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-sm);
}

.edu-prog__icon { font-size: 1.4rem; flex-shrink: 0; }

.edu-prog__title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.edu-prog__desc {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .home-education { grid-template-columns: 1fr; }
    .home-education__visual { min-height: 280px; order: -1; }
    .home-education__content { padding: 3.5rem 2rem; }
}


/* ════════════════════════════════════════════════════════
   6. NEWS GRID
════════════════════════════════════════════════════════ */

.home-news__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
}

/* Feature card */
.news-feature {
    background-color: var(--bg-section);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.news-feature:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-lg);
}

.news-feature__img {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #D4B896, #A0784A);
}
.news-feature__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.news-feature:hover .news-feature__img img { transform: scale(1.04); }

.news-feature__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: 0.4;
}

.news-feature__body { padding: 1.8rem 2rem; }

.news-tag {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.news-feature__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.news-feature__exc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.72;
}

.news-meta {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Sidebar stack */
.home-news__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual sidebar news item */
.nitem {
    background-color: var(--bg-section);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    padding: 1.2rem;
    text-decoration: none;
    display: block;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.nitem:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-sm);
}

.nitem__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0.3rem 0;
}

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


/* ════════════════════════════════════════════════════════
   7. PUBLICATIONS ROW
════════════════════════════════════════════════════════ */

.pub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.pub-card {
    background-color: #fff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    padding: 1.6rem;
    text-decoration: none;
    display: block;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}
.pub-card:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pub-card__type {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.pub-card__icon {
    font-size: 2rem;
    margin-bottom: 0.7rem;
    display: block;
}

.pub-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.pub-card__desc {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
}

.pub-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--terracotta);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: 0.8rem;
}

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

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


/* ════════════════════════════════════════════════════════
   8. INSTITUTIONS ROW
════════════════════════════════════════════════════════ */

.inst-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-top: 2.5rem;
}

.inst-card {
    padding: 1.8rem 1.4rem;
    border-right: 1px solid var(--border-light);
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}
.inst-card:last-child { border-right: none; }
.inst-card:hover {
    background-color: var(--bg-section);
    border-right-color: var(--border-medium);
}

.inst-card__abbr {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.inst-card__name {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.inst-card__desc {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .inst-grid { grid-template-columns: 1fr 1fr; }
    .inst-card { border-right: 1px solid var(--border-light) !important; }
    .inst-card:nth-child(2n) { border-right: none !important; }
    .inst-card:nth-child(n+3) { border-top: 1px solid var(--border-light); }
}


/* ════════════════════════════════════════════════════════
   9. CTA BAND (Forest Green)
════════════════════════════════════════════════════════ */

.home-cta-band {
    background-color: var(--forest);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Ghost museum icon watermark */
.home-cta-band__deco {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16rem;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
}

.home-cta-band__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-cta-band__heading {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-on-dark);
    line-height: 1.15;
    margin: 0.5rem 0 1rem;
}
.home-cta-band__heading em {
    font-style: italic;
    color: rgba(245, 243, 239, 0.7);
}

.home-cta-band__desc {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 300;
    color: var(--text-on-dark-muted);
    line-height: 1.8;
}

/* Right button stack */
.home-cta-band__actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* White-fill button */
.btn-cta-white {
    display: block;
    background-color: #fff;
    color: var(--forest);
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.btn-cta-white:hover {
    background-color: rgba(255,255,255,0.92);
    transform: translateY(-2px);
    color: var(--forest);
}

/* Ghost button (transparent + white border) */
.btn-cta-ghost {
    display: block;
    background-color: rgba(255,255,255,0.08);
    color: var(--text-on-dark);
    padding: 0.9rem 2rem;
    border: 1.5px solid rgba(255,255,255,0.28);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}
.btn-cta-ghost:hover {
    background-color: rgba(255,255,255,0.15);
    color: var(--text-on-dark);
}

@media (max-width: 1024px) {
    .home-cta-band__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .home-cta-band__deco { display: none; }
}

/* ════════════════════════════════════════════
   ENHANCEMENTS — Card Hover, Transitions, Buttons
   ════════════════════════════════════════════ */

/* ── 1. CARD HOVER LIFT ── */
.collection-card,
.ev-card,
.news-card,
.pub-card,
.inst-card {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
    will-change: transform;
}
.collection-card:hover,
.ev-card:hover,
.news-card:hover,
.pub-card:hover,
.inst-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26,26,24,0.12);
}

/* Collection cards — slight scale on image inside */
.collection-card img,
.collection-card__visual {
    transition: transform 0.4s ease;
}
.collection-card:hover img,
.collection-card:hover .collection-card__visual {
    transform: scale(1.04);
}

/* ── 2. SECTION TRANSITIONS ── */
.section-warm,
.section-white {
    transition: background-color 0.3s ease;
}
/* Subtle top border separator between sections */
.section + .section {
    border-top: 1px solid var(--border-light);
}

/* ── 3. BUTTON MICRO-INTERACTIONS ── */
.btn-primary,
.btn-secondary,
.btn-cta-white,
.btn-cta-ghost {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    will-change: transform;
}
.btn-primary:hover,
.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160,82,45,0.25);
}
.btn-secondary:hover,
.btn-cta-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,26,24,0.10);
}
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
}

/* ── 4. NAVIGATION POLISH ── */
.site-header__menu > li > a {
    position: relative;
    transition: color 0.2s ease;
}
.site-header__menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    background-color: var(--terracotta);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.site-header__menu > li > a:hover::after,
.site-header__menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Dropdown submenu animation */
.site-header__menu > li > .sub-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    transform-origin: top center;
}

/* ── 5. EVENT CARD DATE BADGE ── */
.ev-card .event-date-badge {
    transition: transform 0.3s ease;
}
.ev-card:hover .event-date-badge {
    transform: scale(1.05);
}

/* ── 6. INSTITUTION TILE ── */
.inst-card {
    border: 1.5px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.inst-card:hover {
    border-color: var(--terracotta);
}

/* ── 7. ANIMATE-ON-SCROLL REFINEMENT ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* ── VIRTUAL ROOMS PREVIEW ── */
.home-virtual-rooms {
    position: relative;
}
.vr-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.vr-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.vr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}
.vr-card__visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-section);
}
.vr-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.vr-card:hover .vr-card__visual img {
    transform: scale(1.05);
}
.vr-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-section), var(--bg-warm));
}
.vr-card__icon {
    font-size: 2.5rem;
    opacity: 0.6;
}
.vr-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--forest);
    color: #fff;
}
.vr-card__badge.premium {
    background: var(--terracotta);
}
.vr-card__body {
    padding: 1rem 1.25rem;
}
.vr-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.vr-card__type {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Teaser (when no rooms exist) */
.vr-teaser {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}
.vr-teaser__visual {
    flex-shrink: 0;
}
.vr-teaser__icon-wrap {
    position: relative;
    width: 180px;
    height: 180px;
}
.vr-teaser__icon {
    position: absolute;
    font-size: 3.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: float 3s ease-in-out infinite;
}
.vr-teaser__icon--2 {
    font-size: 2.5rem;
    top: 15%;
    left: 10%;
    animation-delay: 0.5s;
    opacity: 0.25;
}
.vr-teaser__icon--3 {
    font-size: 2rem;
    top: 70%;
    left: 75%;
    animation-delay: 1s;
    opacity: 0.2;
}
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%      { transform: translate(-50%, -50%) translateY(-10px); }
}
.vr-teaser__text {
    flex: 1;
}
.vr-teaser__heading {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.vr-teaser__heading em {
    font-style: italic;
    color: var(--terracotta);
}
.vr-teaser__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .vr-preview__grid {
        grid-template-columns: 1fr;
    }
    .vr-teaser {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .vr-teaser__desc {
        max-width: 100%;
    }
    .vr-teaser__icon-wrap {
        width: 120px;
        height: 120px;
    }
    .vr-teaser__icon { font-size: 2.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   DESIGN REFINEMENTS — KGM-Inspired Boundaries & Polish
   ═══════════════════════════════════════════════════════════════ */

/* ── SECTION BOUNDARIES ── */
/* Alternating section dividers */
.section-white + .section-warm {
    border-top: 1px solid var(--border-light);
}
.section-warm + .section-white {
    border-top: 1px solid var(--border-light);
}
.section + .section {
    border-top: none;
}

/* Inner section accent line at top */
.section > .container {
    position: relative;
}

/* ── CARD REFINEMENTS — consistent box model ── */
.vcard,
.ev-card,
.pub-card,
.news-feature,
.nitem,
.vr-card,
.edu-prog {
    background: #fff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

/* Subtle shadow in resting state */
.vcard,
.ev-card,
.pub-card,
.vr-card {
    box-shadow: var(--shadow-xs);
}

/* Hover: lift + terracotta border + deeper shadow */
.vcard:hover,
.pub-card:hover,
.vr-card:hover {
    transform: translateY(-4px);
    border-color: var(--terracotta);
    box-shadow: var(--shadow-md);
}

.ev-card:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.news-feature:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-lg);
}

.nitem:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}

.edu-prog:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow-sm);
}

/* ── INSTITUTION CARDS — grid with clear borders ── */
.inst-grid {
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--border-light);
    gap: 1px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.inst-card {
    background: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-height: 220px;
}
.inst-card:hover {
    background: var(--terracotta-muted);
    transform: translateY(-2px);
}

.inst-card__abbr {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
}

.inst-card__name {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

.inst-card__desc {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 220px;
}

/* ── BUTTON REFINEMENTS ── */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    letter-spacing: 0.06em;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:hover::after,
.btn-secondary:hover::after {
    opacity: 1;
}

.btn-primary {
    box-shadow: 0 2px 8px rgba(160,82,45,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(160,82,45,0.3);
}

.btn-secondary {
    border-width: 2px;
}
.btn-secondary:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,26,24,0.08);
}

/* ── MOSAIC COLLECTION CARDS ── */
.coll-mosaic {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.coll-card {
    cursor: pointer;
    aspect-ratio: 3 / 4;
}
.coll-card:hover {
    z-index: 2;
}

/* ── SECTION HEADER REFINEMENTS ── */
.section-hdr {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2.5rem;
}

/* ── VIRTUAL ROOMS CARD REFINEMENTS ── */
.vr-card {
    background: #fff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s ease;
}
.vr-card:hover {
    transform: translateY(-5px);
    border-color: var(--terracotta);
    box-shadow: var(--shadow-lg);
}
.vr-card__visual {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.vr-card__visual img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vr-card:hover .vr-card__visual img {
    transform: scale(1.06);
}
.vr-card__body {
    padding: 1.25rem 1.5rem;
}
.vr-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.vr-card__type {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.vr-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--forest);
    color: #fff;
    backdrop-filter: blur(4px);
}
.vr-card__badge.premium {
    background: var(--terracotta);
}

/* ── ANCHOR OFFSET FOR STICKY HEADER ── */
.site-homepage > section {
    scroll-margin-top: var(--header-height);
}

/* ── RESPONSIVE REFINEMENTS ── */
@media (max-width: 1024px) {
    .inst-grid {
        grid-template-columns: 1fr 1fr;
    }
    .inst-card {
        min-height: 180px;
    }
}

@media (max-width: 600px) {
    .inst-grid {
        grid-template-columns: 1fr;
    }
    .section-hdr {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
