/* ============================================================================
   Uganda One Festival — Public Site Theme
   Layered on top of Bootstrap 5.3. Brand-first, mobile-first.
============================================================================ */

:root {
  --brand:         #F5A623;
  --brand-dark:    #C77B0C;
  --brand-soft:    #FFF6E5;
  --slate:         #2C3E50;
  --slate-dark:    #1A2733;
  --ink:           #0F1419;
  --accent:        #C73534;
  --green:         #1A8A4A;
  --blue:          #1F4E9E;
  --purple:        #A847B5;
  --teal:          #0E6E78;
  --muted:         #6c757d;
  --soft:          #f7f7f9;
  --border:        #e5e7eb;
}

/* ── Base ──────────────────────────────────────────────────────────── */
html, body { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #ffffff;
  font-feature-settings: 'cv11', 'ss01';
}
h1,h2,h3,h4,h5,h6 { font-weight: 800; letter-spacing: -0.01em; color: var(--slate-dark); }
.display-heading  { font-family: 'Playfair Display', serif; font-weight: 800; letter-spacing: -0.02em; }
.lead-soft        { color: var(--muted); font-size: 1.1rem; }
a                 { color: var(--brand-dark); }
a:hover           { color: var(--brand); }

.section          { padding: 5rem 0; }
.section-tight    { padding: 3.5rem 0; }
.section-dark     { background: var(--slate-dark); color: #fff; }
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark h4,.section-dark h5,.section-dark h6{ color: #fff; }
.section-soft     { background: var(--soft); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: .35rem .75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-dark .eyebrow { background: rgba(245,166,35,.18); color: var(--brand); }

/* ── Top bar ───────────────────────────────────────────────────────── */
.top-bar {
  background: var(--slate-dark);
  color: #fff;
  font-size: .85rem;
}
.top-bar a:hover { color: var(--brand) !important; }
.social-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  text-decoration: none; transition: all .2s;
}
.social-pill:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ── Navbar ────────────────────────────────────────────────────────── */
.main-nav {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all .25s;
}
.main-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-line-1 { font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; color: var(--slate-dark); }
.brand-line-2 { font-weight: 700; font-size: .75rem; letter-spacing: .25em; color: var(--brand-dark); margin-top: 3px; }
.main-nav .nav-link {
  font-weight: 600; color: var(--slate-dark);
  padding: .6rem .9rem !important; border-radius: 8px;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active {
  color: var(--brand-dark); background: var(--brand-soft);
}
.dropdown-menu { border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,.08); border-radius: 12px; padding: .5rem; }
.dropdown-item { padding: .55rem .85rem; border-radius: 8px; font-weight: 500; }
.dropdown-item:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-brand {
  background: var(--brand); color: #fff; border: 0;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(245,166,35,.35);
  transition: all .2s;
}
.btn-brand:hover  { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(245,166,35,.45); }
.btn-outline-brand{ border: 2px solid var(--brand); color: var(--brand-dark); font-weight: 700; background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-dark-soft    { background: var(--slate-dark); color:#fff; }
.btn-dark-soft:hover { background: var(--ink); color:#fff; }
.btn-ghost-light  { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color:#fff; }

/* ── Hero (homepage) ───────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0F1419 0%, #2C3E50 55%, #C77B0C 130%);
  color: #fff;
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content:'';
  position:absolute; inset:0;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(245,166,35,.18), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(199,53,52,.18), transparent 60%);
  pointer-events:none;
}
.hero-grain {
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events:none; opacity:.4;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.05; }
.hero .lead { font-size: 1.15rem; opacity: .9; }
.hero-badge {
  display: inline-flex; align-items: center; gap:.5rem;
  padding: .45rem 1rem; border-radius:100px;
  background: rgba(245,166,35,.15);
  border:1px solid rgba(245,166,35,.4); color: #FFD78A;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-stat {
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 1.25rem;
}
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.hero-stat .lbl { font-size: .85rem; opacity:.75; margin-top:.25rem; }
.countdown {
  display: inline-flex; gap: .75rem; flex-wrap: wrap;
  padding: 1.25rem; border-radius:16px;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
}
.cd-cell { text-align: center; min-width: 70px; }
.cd-cell .v { font-size: 1.9rem; font-weight: 800; color: var(--brand); font-family: 'Playfair Display', serif; }
.cd-cell .l { font-size: .7rem; opacity: .7; letter-spacing:.15em; text-transform: uppercase; margin-top: .15rem; }

/* ── Page hero (non-home) ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--ink) 100%);
  color: #fff;
  padding: 5rem 0 3rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content:''; position:absolute; right:-200px; top:-150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.25) 0%, transparent 70%);
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.25rem); }
.page-hero .breadcrumb { background: transparent; padding: 0; margin: 0 0 1rem; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb-item.active { color: var(--brand); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card-soft {
  border:1px solid var(--border);
  border-radius: 16px; background: #fff;
  transition: all .25s;
  overflow: hidden;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.07); border-color: var(--brand); }
.card-img-wrap   { aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.card-img-wrap img{ width:100%; height:100%; object-fit: cover; transition: transform .5s; }
.card-soft:hover .card-img-wrap img { transform: scale(1.06); }
.card-tag {
  display: inline-block; font-size:.7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding:.25rem .65rem; border-radius:100px;
  background: var(--brand-soft); color: var(--brand-dark);
}

/* ── Domain cards ──────────────────────────────────────────────────── */
.domain-card {
  position: relative; border-radius: 20px; overflow: hidden; color: #fff;
  padding: 2rem 1.75rem; min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--slate);
  transition: all .25s; cursor: pointer;
  text-decoration: none;
}
.domain-card::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 100%);
}
.domain-card > * { position: relative; z-index: 1; }
.domain-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.2); color: #fff; }
.domain-card .icon  { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
.domain-card .name  { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-top: .5rem; }
.domain-card .tagline { font-size: .9rem; opacity: .85; margin-top: .25rem; font-style: italic; }
.domain-card .arrow { align-self: flex-end; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); transition: all .2s; }
.domain-card:hover .arrow { background: var(--brand); border-color: var(--brand); transform: translateX(4px); }

/* ── Timeline ──────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 0; list-style: none; }
.timeline::before {
  content:''; position: absolute;
  left: 28px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--brand) 0%, var(--brand-dark) 100%);
  opacity: .3;
}
.timeline-item { position: relative; padding: 0 0 2rem 4.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 14px; top: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(245,166,35,.3);
  z-index: 2;
}
.timeline-card {
  background: #fff; border:1px solid var(--border); border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: all .2s;
}
.timeline-card:hover { box-shadow: 0 14px 36px rgba(0,0,0,.07); border-color: var(--brand); transform: translateX(4px); }
.timeline-meta { font-size:.85rem; color: var(--muted); margin-bottom: .35rem; }
.timeline-card h5 { margin-bottom:.25rem; }
.timeline-card .phase-badge {
  display: inline-block; font-size:.7rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding:.25rem .65rem; border-radius:100px;
  background: var(--brand-soft); color: var(--brand-dark);
  margin-right:.5rem;
}

/* ── Benefit / feature blocks ──────────────────────────────────────── */
.benefit {
  background: #fff; border:1px solid var(--border);
  border-radius: 16px; padding: 1.75rem 1.5rem;
  transition: all .25s; height: 100%;
}
.benefit:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.07); border-color: var(--brand); }
.benefit-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color:#fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.benefit h4 { font-size: 1.1rem; }

/* ── Partner grid ──────────────────────────────────────────────────── */
.partner-card {
  background: #fff; border:1px solid var(--border); border-radius: 16px;
  padding: 1.75rem 1.25rem; text-align: center;
  transition: all .25s; height: 100%;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.07); }
.partner-logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.partner-logo img{ max-height: 80px; max-width: 100%; object-fit: contain; }

/* ── Article cards ─────────────────────────────────────────────────── */
.article-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); transition: all .25s;
  height: 100%; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); border-color: var(--brand); }
.article-card .card-img-wrap { aspect-ratio: 16/10; }
.article-card .article-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card h5 { font-size: 1.15rem; line-height: 1.35; margin: .35rem 0 .65rem; }
.article-card .article-meta { font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 1rem; border-top:1px dashed var(--border); display:flex; gap:.75rem; align-items:center; }

/* ── Gallery ───────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-tile {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  border-radius: 14px; background: var(--soft);
  cursor: pointer;
}
.gallery-tile img, .gallery-tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile .tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  opacity: 0; transition: opacity .25s;
  display: flex; align-items: flex-end; padding: 1rem; color: #fff;
}
.gallery-tile:hover .tile-overlay { opacity: 1; }
.album-tile {
  position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  display: block; text-decoration: none; color: #fff;
}
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-tile:hover img { transform: scale(1.06); }
.album-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
}
.album-tile .album-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.5rem; z-index: 2;
}
.album-tile h4 { color: #fff; font-size: 1.15rem; }

/* ── Social wall ───────────────────────────────────────────────────── */
.social-post {
  background: #fff; border:1px solid var(--border); border-radius: 14px;
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: all .2s;
}
.social-post:hover { box-shadow: 0 12px 32px rgba(0,0,0,.07); transform: translateY(-3px); }
.social-post .sp-header { padding: .85rem 1rem; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--border); }
.social-post .sp-icon   { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color:#fff; font-size: 1rem; }
.social-post .sp-body   { padding: .85rem 1rem 1rem; font-size: .9rem; flex: 1; }
.social-post .sp-media  { aspect-ratio: 4/3; background: var(--soft); overflow: hidden; }
.social-post .sp-media img, .social-post .sp-media iframe { width: 100%; height: 100%; object-fit: cover; }
.social-post .sp-footer { padding: .55rem 1rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }

/* ── Newsletter strip ──────────────────────────────────────────────── */
.newsletter-strip {
  background: linear-gradient(120deg, var(--slate-dark) 0%, var(--ink) 100%);
  color: #fff; padding: 3.5rem 0;
  position: relative; overflow: hidden;
}
.newsletter-strip::before {
  content:''; position: absolute; right: -100px; top: -100px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.2) 0%, transparent 70%);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #fff; }
.footer-heading { color: var(--brand); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 800; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--brand); }
.footer-social { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; transition: all .2s; }
.footer-social:hover { background: var(--brand); color: #fff !important; transform: translateY(-2px); }
.footer-bottom { background: rgba(0,0,0,.4); border-top: 1px solid rgba(255,255,255,.08); }

/* ── Misc ──────────────────────────────────────────────────────────── */
.divider-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 .5rem; opacity: .5; vertical-align: middle; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: .5rem; }
.section-sub   { color: var(--muted); font-size: 1.05rem; max-width: 720px; }
.text-brand    { color: var(--brand-dark) !important; }
.bg-brand-soft { background: var(--brand-soft); }

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: .75rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(245,166,35,.18);
}

/* ── Mobile tweaks ─────────────────────────────────────────────────── */
/* Collapsed nav (hamburger) now triggers below 1200px to fit all 9 items + Register */
@media (max-width: 1199.98px) {
  .main-nav .navbar-nav { padding: 1rem 0; gap: .25rem !important; }
  .main-nav .nav-link   { padding: .55rem .75rem !important; }
  .main-nav .navbar-collapse {
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    margin-top: .5rem;
    padding: .5rem 1rem 1rem;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .main-nav .dropdown-menu { border: 0; box-shadow: none; padding-left: 1rem; }
}

@media (max-width: 991.98px) {
  .hero                 { padding: 4rem 0 3.5rem; }
  .section              { padding: 3.5rem 0; }
  .countdown            { gap: .35rem; }
  .cd-cell              { min-width: 58px; }
  .cd-cell .v           { font-size: 1.5rem; }
}

/* ── Accessibility / motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGE-LEVEL ADDITIONS (about, editions, domains, exhibit,
   articles, gallery, partners, social, contact, legal, 404)
   ═══════════════════════════════════════════════════════════════ */

/* Utility helpers ─────────────────────────────────────────────── */
.py-6           { padding-top: 5rem; padding-bottom: 5rem; }
.bg-slate-soft  { background: #f6f8fb; }
.text-muted-2   { color: #5a6677; }
.text-white-60  { color: rgba(255,255,255,.6); }
.text-white-70  { color: rgba(255,255,255,.72); }
.text-white-80  { color: rgba(255,255,255,.85); }
.text-brand     { color: var(--brand) !important; }
.tracking-wide  { letter-spacing: .08em; }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: .65rem;
}

/* Section heading ────────────────────────────────────────────── */
.section-head .kicker { display: block; }

/* CTA strip (gold gradient call-to-action) ───────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, #E8C36B);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0,0,0,.12), transparent 45%);
  pointer-events: none;
}
.cta-strip > .container { position: relative; }

/* About page — pillar grid ───────────────────────────────────── */
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-card {
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  color: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 30px rgba(20,30,50,.10);
}
.about-card i {
  font-size: 1.9rem;
  margin-bottom: .75rem;
  display: block;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,30,50,.18); }
.about-card--gold   { background: linear-gradient(135deg, #F5A623, #C77B0C); }
.about-card--slate  { background: linear-gradient(135deg, #2C3E50, #1A2733); }
.about-card--accent { background: linear-gradient(135deg, #C73534, #8B1F1E); }
.about-card--dark   { background: linear-gradient(135deg, #0F1419, #2C3E50); }

/* Info-box (small icon + title + desc tile) ──────────────────── */
.info-box {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  padding: 1.25rem 1.25rem;
  height: 100%;
  transition: border-color .25s ease, transform .25s ease;
}
.info-box:hover { border-color: var(--brand); transform: translateY(-2px); }
.info-box i { font-size: 1.5rem; display: block; margin-bottom: .5rem; }

/* Mini-domain pill (icon + label, used on about/intro grids) ── */
.mini-domain {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1rem;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  background: #fff;
  color: #2C3E50;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  transition: all .25s ease;
  height: 100%;
}
.mini-domain i {
  color: var(--brand);
  font-size: 1.2rem;
  flex: 0 0 auto;
}
.mini-domain:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,166,35,.18);
}

/* Edition card (editions.php grid) ───────────────────────────── */
.edition-card {
  display: block;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: all .3s ease;
  height: 100%;
  position: relative;
}
.edition-card:hover {
  border-color: var(--brand);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(20,30,50,.12);
  color: inherit;
}
.edition-card.status-current { border-top: 4px solid var(--brand); }
.edition-card.status-upcoming { border-top: 4px solid #6C9EFC; }
.edition-card.status-past     { opacity: .92; }
.edition-year {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--slate);
}
.edition-status { position: absolute; top: 1.25rem; right: 1.25rem; }
.edition-name  { font-weight: 700; margin-top: .75rem; }
.edition-theme { font-style: italic; color: var(--brand-dark); margin-bottom: 1rem; }
.edition-meta  { display: flex; flex-direction: column; gap: .35rem; color: #5a6677; font-size: .9rem; margin-bottom: 1.25rem; }
.edition-meta i { color: var(--brand); margin-right: .25rem; }
.edition-cta {
  font-weight: 600;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
}

/* Meta pill (hero meta items) ────────────────────────────────── */
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: 999px;
  font-size: .92rem;
  backdrop-filter: blur(8px);
}

/* Countdown card (used on edition.php) ───────────────────────── */
.countdown-card {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: 18px;
  padding: 1.75rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.countdown-card .countdown { justify-content: center; }

/* Status badge ──────────────────────────────────────────────── */
.status-pill {
  display: inline-block;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.status-pill-current  { background: var(--brand); color: #1a1300; }
.status-pill-upcoming { background: #6C9EFC; color: #fff; }
.status-pill-past     { background: #e8ecf2; color: #5a6677; }
.phase-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .65rem;
}

/* Domain card — full variant (domains.php) ──────────────────── */
.domain-card--full {
  display: block;
  border-radius: 22px;
  padding: 2.25rem 1.75rem;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 12px 30px rgba(20,30,50,.12);
}
.domain-card--full:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(20,30,50,.22);
  color: #fff;
}
.domain-card--full::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 45%);
  pointer-events: none;
}
.domain-card--full .dc-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 1.25rem;
}
.domain-card--full .dc-title   { font-weight: 700; margin-bottom: .65rem; }
.domain-card--full .dc-tagline { color: rgba(255,255,255,.82); font-size: .95rem; margin-bottom: 1.25rem; }
.domain-card--full .dc-cta     { display: inline-flex; align-items: center; font-weight: 600; }

/* Domain detail page (domain.php) ───────────────────────────── */
.domain-hero-icon {
  width: 90px; height: 90px;
  border-radius: 22px;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.content-block { margin-bottom: 2.75rem; }
.content-block:last-child { margin-bottom: 0; }
.lead-sm { font-size: 1.08rem; }
.subsector-badge {
  display: inline-block;
  padding: .55rem 1rem;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--slate);
}
.content-highlight {
  background: linear-gradient(135deg, rgba(245,166,35,.08), rgba(245,166,35,.02));
  border-left: 4px solid var(--brand);
  padding: 1.75rem;
  border-radius: 12px;
}

/* Sticky aside (domain.php sidebar) ─────────────────────────── */
.sticky-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.aside-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: 1.5rem;
}
.aside-card--brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  color: #fff;
}
.aside-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .25rem;
}
.aside-list a {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  transition: background .25s ease;
}
.aside-list a:hover { background: #f6f8fb; color: var(--brand-dark); }
.aside-list i { color: var(--brand); }

/* Why Exhibit page — benefit cards & steps ─────────────────── */
.benefit-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20,30,50,.10);
  border-color: var(--brand);
}
.benefit-card:hover::before { transform: scaleY(1); }
.benefit-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.step-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  text-align: center;
  position: relative;
}
.step-num {
  width: 50px; height: 50px;
  background: var(--brand);
  color: #1a1300;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

/* Filter strip (articles, social) ─────────────────────────── */
.filter-strip {
  background: #fff;
  border-bottom: 1px solid #e8ecf2;
  padding: 1.25rem 0;
  position: sticky;
  top: 64px;
  z-index: 100;
}
.filter-pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
}
.filter-pill {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: #f6f8fb;
  color: #5a6677;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.filter-pill:hover { background: #fff; border-color: var(--brand); color: var(--brand-dark); }
.filter-pill.active {
  background: var(--brand); color: #1a1300; border-color: var(--brand);
}

/* Article cards (articles.php / article.php related) ────────── */
.article-card {
  display: block;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: all .3s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(20,30,50,.12);
  color: inherit;
}
.article-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--slate), var(--slate-dark));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35);
  font-size: 3rem;
}
.article-cat {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: .35rem .75rem;
  background: var(--brand);
  color: #1a1300;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.article-body { padding: 1.5rem; }
.article-title {
  font-weight: 700;
  margin-bottom: .65rem;
  color: var(--slate);
  transition: color .25s ease;
}
.article-card:hover .article-title { color: var(--brand-dark); }
.article-excerpt { color: #5a6677; font-size: .92rem; margin-bottom: 1rem; }
.article-meta {
  display: flex; gap: 1rem;
  font-size: .8rem;
  color: #8893a3;
  padding-top: .75rem;
  border-top: 1px solid #f0f2f5;
}
.article-meta i { color: var(--brand); margin-right: .25rem; }

/* Article body content (article.php) ─────────────────────────── */
.article-body-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2C3E50;
}
.article-body-content h2 { font-weight: 700; margin: 2.25rem 0 1rem; }
.article-body-content h3 { font-weight: 700; margin: 1.75rem 0 .85rem; }
.article-body-content p  { margin-bottom: 1.25rem; }
.article-body-content a  { color: var(--brand-dark); text-decoration: underline; }
.article-body-content blockquote {
  border-left: 4px solid var(--brand);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: #f6f8fb;
  font-style: italic;
  color: var(--slate);
  border-radius: 0 8px 8px 0;
}
.article-body-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Page hero — article variant (background image overlay) ───── */
.page-hero--article { padding: 5rem 0 4.5rem; }

/* Gallery ────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-tile {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f6f8fb;
}
.gallery-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery-tile:hover img { transform: scale(1.06); }
.gt-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,20,25,.85));
  color: #fff;
  padding: 1.5rem .85rem .75rem;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-tile:hover .gt-caption { opacity: 1; }
.album-tile {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, var(--slate), var(--slate-dark));
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}
.album-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(20,30,50,.22);
  color: #fff;
}
.album-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.5rem;
}
.album-title { font-weight: 700; margin-bottom: .35rem; }
.album-desc  { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: .85rem; }
.album-cta   { display: inline-flex; align-items: center; font-weight: 600; }

/* Lightbox ──────────────────────────────────────────────────── */
.uof-lightbox {
  position: fixed; inset: 0;
  background: rgba(15,20,25,.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 2rem;
  cursor: zoom-out;
}
.uof-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(0,0,0,.5);
}

/* Partners page ─────────────────────────────────────────────── */
.partner-profile {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  height: 100%;
  transition: all .3s ease;
}
.partner-profile:hover {
  border-color: var(--brand);
  box-shadow: 0 18px 40px rgba(20,30,50,.10);
  transform: translateY(-3px);
}
.partner-logo-box {
  flex: 0 0 110px;
  width: 110px; height: 110px;
  border-radius: 14px;
  background: #f6f8fb;
  display: flex; align-items: center; justify-content: center;
  padding: .85rem;
  overflow: hidden;
}
.partner-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-logo-fallback {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-dark);
  text-align: center;
}
.partner-info { flex: 1; min-width: 0; }
.partner-abbr {
  display: inline-block;
  padding: .25rem .65rem;
  background: var(--brand);
  color: #1a1300;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}

/* Social wall ────────────────────────────────────────────────── */
.handle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  text-decoration: none;
  color: var(--slate);
  transition: all .25s ease;
  text-align: center;
  height: 100%;
}
.handle-card i { font-size: 1.6rem; color: var(--brand); margin-bottom: .35rem; }
.handle-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(245,166,35,.18);
  color: var(--brand-dark);
}
.handle-name     { font-weight: 700; font-size: .92rem; }
.handle-platform { font-size: .75rem; color: #8893a3; text-transform: uppercase; letter-spacing: .06em; }
.social-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Social-platform icon tints ────────────────────────────────── */
.sp-facebook  { background: #1877F2; color: #fff; }
.sp-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.sp-x         { background: #000; color: #fff; }
.sp-tiktok    { background: #000; color: #fff; }
.sp-youtube   { background: #FF0000; color: #fff; }

/* Contact page ──────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 8px 24px rgba(20,30,50,.05);
}
.contact-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color .25s ease;
}
.contact-card:hover { border-color: var(--brand); }
.social-icon-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #f6f8fb;
  color: var(--slate);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all .25s ease;
}
.social-icon-btn:hover {
  background: var(--brand);
  color: #1a1300;
  transform: translateY(-2px);
}

/* 404 page ──────────────────────────────────────────────────── */
.error-code {
  font-family: 'Playfair Display', serif;
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Empty states ──────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 1.5rem;
  color: #5a6677;
}
.empty-state i {
  font-size: 4rem;
  color: #c8d0dc;
  margin-bottom: 1rem;
  display: block;
}
.empty-state h4 { color: var(--slate); margin-bottom: .5rem; }

/* Responsive ────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .sticky-aside { position: static; }
}
@media (max-width: 767px) {
  .py-6 { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .cta-strip { padding: 3rem 0; }
  .about-visual { grid-template-columns: 1fr; }
  .partner-profile { flex-direction: column; }
  .partner-logo-box { width: 90px; height: 90px; flex: 0 0 90px; }
  .error-code { font-size: 6rem; }
  .filter-strip { top: 60px; }
  .article-body-content { font-size: 1rem; }
  .domain-hero-icon { width: 70px; height: 70px; font-size: 2rem; }
  .social-wall-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════
   PARTNER CARDS (Bootstrap-based, robust against any logo size)
   ═══════════════════════════════════════════════════════════════ */
.partner-card-bs {
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner-card-bs:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.5rem rgba(20,30,50,.12) !important;
}

/* Logo area — fixed height, centered, logos contained NO MATTER THEIR SIZE */
.partner-logo-area {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  border-bottom: 1px solid #f0f2f5;
  padding: 24px;
  overflow: hidden;
}
.partner-logo-img {
  max-height: 100px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner-logo-fallback {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--brand-dark);
  letter-spacing: 1px;
  line-height: 1;
}

/* Make sure the abbr badge uses brand gold */
.partner-card-bs .badge.bg-warning { background-color: var(--brand) !important; }
.partner-card-bs .btn-outline-secondary {
  border-color: #d8dde5;
  color: #5a6677;
  border-radius: 999px;
  font-weight: 600;
}
.partner-card-bs .btn-outline-secondary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #1a1300;
}

/* ═══════════════════════════════════════════════════════════════
   TEAM CAROUSEL (Bootstrap-based)
   ═══════════════════════════════════════════════════════════════ */
.team-section { background: linear-gradient(180deg, #f6f8fb 0%, #fff 100%); }

.team-carousel-wrap {
  position: relative;
  padding: 0;
}
.team-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.team-carousel::-webkit-scrollbar { display: none; }

.team-card-bs {
  flex: 0 0 270px;
  scroll-snap-align: start;
  border-radius: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card-bs:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(20,30,50,.12) !important;
}

/* Photo — fixed circular size, contained */
.team-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(245,166,35,.25);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-monogram {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 1px;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.tc-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f6f8fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s ease;
}
.tc-social-btn:hover {
  background: var(--brand);
  color: #1a1300 !important;
  transform: translateY(-2px);
}

/* Carousel navigation */
.team-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8ecf2;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(20,30,50,.10);
  transition: all .25s ease;
}
.team-nav:hover {
  background: var(--brand);
  color: #1a1300;
  border-color: var(--brand);
}
.team-nav-prev { left: -10px; }
.team-nav-next { right: -10px; }

.team-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #d8dde5;
  padding: 0;
  cursor: pointer;
  transition: all .25s ease;
}
.team-dot.active { background: var(--brand); width: 24px; border-radius: 4px; }

@media (max-width: 767px) {
  .team-card-bs { flex: 0 0 230px; }
  .team-nav { width: 36px; height: 36px; font-size: 15px; }
  .partner-logo-area { height: 140px; padding: 18px; }
  .partner-logo-img { max-height: 80px; }
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL / POLICY PAGES — notice-box callouts (info, success, warning, danger)
   Used in privacy.php and terms.php bodies (rendered from site_pages).
   ═══════════════════════════════════════════════════════════════ */
.article-body-content .notice-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border-left: 4px solid;
  font-size: 0.96rem;
  line-height: 1.65;
}
.article-body-content .notice-box strong { font-weight: 700; }
.article-body-content .notice-box a       { font-weight: 600; }

.article-body-content .notice-box.info {
  background: #eef4fb;
  border-color: #3b82f6;
  color: #1e3a5f;
}
.article-body-content .notice-box.info a    { color: #1d4ed8; }

.article-body-content .notice-box.success {
  background: #e8f7ef;
  border-color: #16a34a;
  color: #14532d;
}
.article-body-content .notice-box.success a { color: #15803d; }

.article-body-content .notice-box.warning {
  background: #fff8e1;
  border-color: var(--brand);
  color: #6b4a00;
}
.article-body-content .notice-box.warning a { color: var(--brand-dark); }

.article-body-content .notice-box.danger {
  background: #fde7e7;
  border-color: #dc2626;
  color: #7f1d1d;
}
.article-body-content .notice-box.danger a  { color: #b91c1c; }

/* Tighten heading spacing for legal pages — numbered sections should feel ordered */
.article-body-content h2 {
  margin-top: 2.5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #e8ecf2;
  color: var(--slate);
  scroll-margin-top: 90px;        /* so #anchor links don't sit under the sticky nav */
}
.article-body-content h2:first-child { margin-top: 0; }
.article-body-content h3 {
  color: var(--slate);
  font-size: 1.15rem;
  scroll-margin-top: 90px;
}
.article-body-content ul, .article-body-content ol { padding-left: 1.5rem; }
.article-body-content li { margin-bottom: .35rem; }

/* ═══════════════════════════════════════════════════════════════
   MODERN ARTICLE / BLOG POST
   ═══════════════════════════════════════════════════════════════ */
.post-article { padding-bottom: 4rem; }

/* Hero */
.post-hero {
  position: relative;
  padding: 5rem 0 4rem;
  color: #fff;
  isolation: isolate;
}
.post-hero--simple { background: linear-gradient(135deg, #1A2733, #2C3E50); }
.post-hero--has-image { padding: 7rem 0 5rem; }
.post-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -2;
}
.post-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,40,.75) 0%, rgba(15,23,40,.92) 100%);
  z-index: -1;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color .2s;
}
.post-back-link:hover { color: var(--brand); }

.post-category-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(245,166,35,.18);
  color: var(--brand) !important;
  border: 1px solid rgba(245,166,35,.4);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
}
.post-excerpt {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}
.post-meta-item i { color: var(--brand); margin-right: 4px; }

/* Body container */
.post-body {
  padding-top: 3rem;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #2C3E50;
}
.post-body > *:first-child { margin-top: 0; }

/* Better typography for article content */
.article-body-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  margin: 2.75rem 0 1rem;
  color: var(--slate);
  border-bottom: 0;
}
.article-body-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.25rem 0 .85rem;
  color: var(--slate);
}
.article-body-content p { margin-bottom: 1.35rem; }
.article-body-content a {
  color: var(--brand-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(199,123,12,.35);
  transition: border-color .2s, color .2s;
}
.article-body-content a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.article-body-content strong { color: var(--slate); font-weight: 700; }
.article-body-content ul, .article-body-content ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
.article-body-content li { margin-bottom: .5rem; }
.article-body-content blockquote {
  border-left: 4px solid var(--brand);
  padding: .5rem 0 .5rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--slate);
  background: #fdf8ef;
  border-radius: 0 8px 8px 0;
}

/* Article images — full bleed within content column, with subtle elevation */
.article-body-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20,30,50,.10);
  cursor: zoom-in;
}

/* Lightbox styles */
.post-lightbox {
  position: fixed; inset: 0;
  background: rgba(15,20,30,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  cursor: zoom-out;
}
.post-lightbox.open { display: flex; }
.post-lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.post-lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: rgba(255,255,255,.12);
  border: 0;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

/* Footer: share row */
.post-footer { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid #e8ecf2; }
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-share-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #8893a3;
  margin-right: 8px;
}
.post-share-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #f6f8fb;
  border: 1px solid #e8ecf2;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s ease;
}
.post-share-btn:hover {
  background: var(--brand);
  color: #1a1300;
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* Related posts cards */
.post-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8ecf2;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 2.5rem rgba(20,30,50,.12);
  text-decoration: none;
  color: inherit;
}
.post-card__thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #f6f8fb;
  background-image: linear-gradient(135deg, #f6f8fb, #e8ecf2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8d0dc;
  font-size: 3rem;
}
.post-card__body { padding: 1.5rem; }
.post-card__cat {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-dark);
  margin-bottom: .5rem;
}
.post-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .5rem;
  color: var(--slate);
}
.post-card:hover .post-card__title { color: var(--brand-dark); }
.post-card__excerpt {
  font-size: .92rem;
  color: #6b7585;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.post-card__meta { font-size: .82rem; color: #8893a3; }
.post-card__meta i { color: var(--brand); margin-right: 4px; }

@media (max-width: 767px) {
  .post-hero { padding: 3.5rem 0 2.5rem; }
  .post-hero--has-image { padding: 5rem 0 3rem; }
  .post-body { padding-top: 2rem; font-size: 1.05rem; }
  .article-body-content h2 { font-size: 1.5rem; margin-top: 2rem; }
  .article-body-content blockquote { padding-left: 1rem; font-size: 1.15rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PARTNER CARDS V3 — modern editorial layout
   Most styles are INLINE on partners.php so they work even if CSS
   doesn't load. These only add hover + pill-button refinements.
   ═══════════════════════════════════════════════════════════════ */
.p-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand) !important;
  box-shadow: 0 1.5rem 3rem rgba(20,30,50,.12);
}

.p-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245,166,35,.10);
  transition: all .2s ease;
}
.p-card-link:hover {
  background: var(--brand);
  color: #1a1300;
}

.btn-pill-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--brand);
  color: #1a1300 !important;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s ease;
  border: 0;
}
.btn-pill-brand:hover {
  background: var(--brand-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,.35);
}
