/* Living the Tayyib Life — Calm, centred invitation style
   TILAWAH × House of Ibn Sina */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Lato:wght@400;500;600;700&display=swap');

.revive-page.hois-theme {
  --hois-forest: #1a3d2e;
  --hois-forest-mid: #234a38;
  --hois-sage: #7a8f72;
  --hois-olive: #5c6b52;
  --hois-gold: #c9a227;
  --hois-gold-soft: #e8d5a3;
  --hois-cream: #f5f0e8;
  --hois-parchment: #faf8f3;
  --hois-text-dark: #2a2a24;
  --hois-text-muted: #5a5a52;
  --hois-max: 1180px;
  --hois-shell-gutter: 48px;
  --hois-pad-y: clamp(56px, 7vw, 80px);
  --hois-pad-x: clamp(20px, 4vw, 40px);
  --hois-section-gap: clamp(56px, 7vw, 80px);

  --revive-bg-dark: var(--hois-forest);
  --revive-accent: var(--hois-gold);
  --revive-text-on-dark: #fff;
  --revive-bg-cream: var(--hois-parchment);
  --revive-text-dark: var(--hois-text-dark);
  font-family: 'Lato', sans-serif;
}

body.hois-body {
  margin: 0;
  background: var(--hois-cream);
  width: 100%;
  max-width: 100%;
}

html:has(body.hois-body) {
  width: 100%;
  max-width: 100%;
}

.revive-page.hois-theme {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.revive-page.hois-theme::before { display: none; }

/* ── Global layout shell ── */
.section-shell {
  width: min(var(--hois-max), calc(100% - var(--hois-shell-gutter)));
  max-width: var(--hois-max);
  margin-inline: auto;
  box-sizing: border-box;
}

.section-shell > * {
  min-width: 0;
  max-width: 100%;
}

.hois-section {
  margin-bottom: var(--hois-section-gap);
  width: 100%;
  box-sizing: border-box;
}

.hois-section:last-of-type {
  margin-bottom: 0;
}

.hois-section-inner {
  text-align: center;
}

/* Centred green / dark content bands — same width as shell */
.hois-band {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hois-band--dark {
  background: var(--hois-forest);
  padding: var(--hois-pad-y) var(--hois-pad-x);
  border: 1px solid rgba(201, 162, 39, 0.18);
  overflow: visible;
}

.hois-ornament {
  width: 48px;
  height: 1px;
  margin: 0 auto 1.75rem;
  background: linear-gradient(to right, transparent, var(--hois-gold), transparent);
  position: relative;
}
.hois-ornament::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.45rem;
  color: var(--hois-gold);
  line-height: 1;
}
.hois-ornament--light::after { color: var(--hois-gold-soft); }
.hois-ornament--light { background: linear-gradient(to right, transparent, var(--hois-gold-soft), transparent); }

/* ── Typography ── */
.hois-section-heading,
.hois-title-main,
.hois-footer-title,
.hois-speaker-name,
.hois-program-content h3,
.hois-venue-name,
.hois-subheading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hois-section-heading {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--hois-forest);
  margin: 0 auto 1rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hois-heading-light { color: var(--hois-cream); }

.hois-intro {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-style: italic;
  color: var(--hois-text-muted);
  line-height: 1.65;
}
.hois-band--dark .hois-intro,
.hois-section--dark .hois-intro { color: rgba(255,255,255,0.82); }

.hois-section-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.hois-subheading {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

/* ── Cards ── */
.hois-card {
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 4px 24px rgba(26, 61, 46, 0.06);
}
.hois-card--parchment {
  background: var(--hois-parchment);
  padding: clamp(28px, 4vw, 40px);
  text-align: left;
}

/* ── Buttons ── */
.hois-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 1px;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.hois-btn:hover { opacity: 0.92; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.hois-btn-primary {
  background: linear-gradient(160deg, #d4b03a 0%, var(--hois-gold) 50%, #a8841f 100%);
  color: #fff;
  box-shadow: 0 3px 14px rgba(201, 162, 39, 0.3);
}
.hois-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(232, 213, 163, 0.4);
}
.hois-btn-ghost {
  background: transparent;
  color: var(--hois-gold-soft);
  border-color: rgba(232, 213, 163, 0.35);
}
.hois-btn-outline {
  background: transparent;
  color: var(--hois-forest);
  border-color: var(--hois-forest);
}
.hois-btn-outline:hover { background: var(--hois-forest); color: var(--hois-cream); }
.hois-btn-sm { padding: 10px 20px; font-size: 0.7rem; }
.hois-btn-lg { padding: 15px 36px; font-size: 0.8rem; }

.hois-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ── Brand lockup ── */
.hois-brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  margin-bottom: 1rem;
}
.hois-logo-link { display: flex; align-items: center; justify-content: center; }
.hois-brand-lockup .tilawah-logo { height: 54px; width: auto; object-fit: contain; }
.hois-brand-lockup .hois-logo-hois { height: 68px; width: auto; object-fit: contain; }
.hois-brand-lockup-final .tilawah-logo,
.hois-brand-lockup-final .hois-logo-hois { height: 58px; }

.hois-collab-sep {
  color: var(--hois-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.85;
}
.hois-collab-sep-dark { color: var(--hois-olive); }

.hois-presents {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hois-gold-soft);
  margin: 0 0 1.75rem;
}

/* ══════════════════════════════════════
   HERO — static, centred band
   ══════════════════════════════════════ */
.revive-page.hois-theme .hois-hero {
  position: relative;
  margin: 24px 0 var(--hois-section-gap);
  padding: 0 !important;
  width: 100%;
  max-width: none;
  overflow: visible;
  background: transparent !important;
  opacity: 1 !important;
  transform: none !important;
  display: block !important;
  min-height: 0 !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
}
.revive-page.hois-theme .hois-hero::before,
.revive-page.hois-theme .hois-hero::after { display: none; }

.hois-hero-band {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hois-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hois/hero-roses-green.png?v=20260701') left center / cover no-repeat;
}
.hois-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 61, 46, 0.3) 0%,
    rgba(26, 61, 46, 0.52) 50%,
    rgba(26, 61, 46, 0.62) 100%
  );
}
.hois-hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hois-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 213, 163, 0.45);
  animation: hoisDrift linear infinite;
}
@keyframes hoisDrift {
  0% { transform: translateY(105vh); opacity: 0; }
  8% { opacity: 0.5; }
  92% { opacity: 0.35; }
  100% { transform: translateY(-5vh); opacity: 0; }
}

.hois-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hois-title-main {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  color: var(--hois-gold-soft);
  margin: 0 0 0.75rem;
}
.hois-title-sub {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.75rem;
  line-height: 1.55;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hois-hero-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.hois-detail-sep { color: var(--hois-gold); opacity: 0.6; }

.hois-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ══════════════════════════════════════
   COUNTDOWN
   ══════════════════════════════════════ */
.hois-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.hois-countdown-card {
  background: var(--hois-parchment);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: clamp(18px, 3vw, 28px) 12px;
  text-align: center;
}
.hois-countdown-value {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--hois-forest);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hois-countdown-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hois-olive);
}
.hois-countdown-ended {
  color: var(--hois-gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin: 0;
}

/* ══════════════════════════════════════
   ABOUT
   ══════════════════════════════════════ */
.hois-prose {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hois-prose p {
  color: var(--hois-text-muted);
  line-height: 1.8;
  margin: 0;
}

.hois-quote-block {
  max-width: 680px;
  margin: 2.25rem auto 0;
  padding: 2rem 2.25rem;
  text-align: center;
  background-color: var(--hois-parchment);
  background-image:
    linear-gradient(
      to right,
      rgba(250, 248, 243, 0.72) 0%,
      rgba(250, 248, 243, 0.88) 45%,
      rgba(250, 248, 243, 0.94) 100%
    ),
    url('../images/hois/quote-floral-cream.png?v=20260701');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 4px 20px rgba(26, 61, 46, 0.05);
  position: relative;
  overflow: hidden;
}
.hois-quote-block::before {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 auto 1.35rem;
  background: linear-gradient(to right, transparent, var(--hois-gold), transparent);
  position: relative;
  z-index: 1;
}
.hois-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: var(--hois-forest);
  margin: 0 0 1.15rem;
  position: relative;
  z-index: 1;
}
.hois-quote-cite {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hois-gold);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   SPEAKERS
   ══════════════════════════════════════ */
.hois-speakers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}
.hois-speaker-card {
  display: flex;
  flex-direction: column;
  background: var(--hois-parchment);
  overflow: hidden;
  height: 100%;
}
.hois-speaker-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--hois-forest);
}
.hois-speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hois-speaker-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hois-speaker-name {
  font-size: 1.4rem;
  color: var(--hois-forest);
  margin: 0 0 0.35rem;
}
.hois-speaker-role {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hois-gold);
  margin: 0 0 0.75rem;
}
.hois-speaker-bio {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--hois-text-muted);
  margin: 0;
}

/* ══════════════════════════════════════
   PROGRAM — centred timeline
   ══════════════════════════════════════ */
.hois-program-list {
  list-style: none;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px);
  max-width: 640px;
  text-align: left;
}
.hois-program-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(26, 61, 46, 0.08);
  align-items: start;
}
.hois-program-item:last-child { border-bottom: none; }
.hois-program-time {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--hois-gold);
  text-align: right;
  padding-top: 0.15rem;
}
.hois-program-content h3 {
  font-size: 1.15rem;
  color: var(--hois-forest);
  margin: 0 0 0.25rem;
}
.hois-program-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hois-text-muted);
  line-height: 1.6;
}
.hois-program-item--highlight {
  background: rgba(26, 61, 46, 0.04);
  margin: 0;
  padding: 1.1rem 1rem;
  border-left: 3px solid var(--hois-forest);
  border-bottom-color: transparent;
}
.hois-program-item--highlight .hois-program-content h3 {
  font-size: 1.25rem;
}

.hois-banner {
  margin: 1.75rem auto 0;
  max-width: 640px;
  padding: 1rem 1.5rem;
  background: var(--hois-forest);
  color: var(--hois-gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.25);
}

/* ══════════════════════════════════════
   MEDIA
   ══════════════════════════════════════ */
.hois-media-block {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.hois-media-block--gallery {
  max-width: 100%;
  width: 100%;
  margin-bottom: 0;
}

.hois-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 100%;
  justify-items: stretch;
}

.hois-gallery-card {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hois-gallery-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Elegant placeholders until event photos are added */
.hois-gallery-card--placeholder .hois-gallery-inner {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.12) 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(201, 162, 39, 0.04) 10px,
      rgba(201, 162, 39, 0.04) 11px
    );
}

.hois-gallery-placeholder-mark {
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 50%;
  position: relative;
  opacity: 0.55;
}
.hois-gallery-placeholder-mark::before {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.5rem;
  color: var(--hois-gold-soft);
  line-height: 1;
}

.hois-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

.hois-gallery-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Centre incomplete last row on desktop (4 columns) */
.hois-gallery-card:nth-child(4n+1):nth-last-child(2) { grid-column: 2; }
.hois-gallery-card:nth-child(4n+2):last-child { grid-column: 3; }
.hois-gallery-card:nth-child(4n+1):last-child { grid-column: 2 / span 2; }
.hois-gallery-card:nth-child(4n+1):nth-last-child(3) { grid-column: 1; }
.hois-gallery-card:nth-child(4n+2):nth-last-child(2) { grid-column: 2; }
.hois-gallery-card:nth-child(4n+3):last-child { grid-column: 3; }

/* ══════════════════════════════════════
   FLYER
   ══════════════════════════════════════ */
.hois-flyer-display {
  max-width: 360px;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 8px 32px rgba(26, 61, 46, 0.1);
}
.hois-flyer-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════
   VENUE
   ══════════════════════════════════════ */
.hois-venue-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(28px, 4vw, 40px);
}
.hois-venue-name {
  font-size: 1.5rem;
  color: var(--hois-forest);
  margin: 0 0 0.5rem;
}
.hois-venue-address {
  color: var(--hois-text-dark);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.hois-venue-map {
  margin-top: 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  overflow: hidden;
}
.hois-venue-map iframe {
  display: block;
  width: 100%;
}

/* ══════════════════════════════════════
   BOOKING
   ══════════════════════════════════════ */
.hois-booking-free-notice {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hois-forest);
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
}
.hois-card--booking {
  background: var(--hois-parchment);
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: none;
}
.hois-booking-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px);
  background: var(--hois-parchment);
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: none;
  text-align: center;
}
.hois-booking-fallback {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--hois-text-muted);
  letter-spacing: 0.02em;
}
.hois-booking-fallback.is-hidden {
  display: none;
}
.revive-page.hois-theme .hois-booking-card .tt-widget,
.revive-page.hois-theme .hois-booking-card .tt-widget > div {
  background: var(--hois-parchment);
  max-width: 100%;
  box-sizing: border-box;
}

.revive-page.hois-theme .hois-booking-card .tt-widget-fallback a {
  color: var(--hois-forest) !important;
}

.revive-page.hois-theme .hois-booking-card .tt-widget-fallback .tt-widget-powered {
  display: none !important;
}

.revive-page.hois-theme .tt-widget,
.revive-page.hois-theme .tt-widget iframe {
  width: 100% !important;
  max-width: 100% !important;
  background-color: var(--hois-parchment) !important;
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.hois-faq-list {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  width: 100%;
}
.hois-faq-item {
  background: var(--hois-parchment);
  border: 1px solid rgba(26, 61, 46, 0.1);
  margin-bottom: 10px;
  border-radius: 1px;
  overflow: hidden;
}
.revive-page.hois-theme .hois-faq-item .faq-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hois-forest) !important;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  background: transparent !important;
}
.revive-page.hois-theme .hois-faq-item .faq-question::after {
  display: none !important;
  content: none !important;
}
.revive-page.hois-theme .hois-faq-item .faq-question:hover {
  background: rgba(201, 162, 39, 0.06) !important;
}
.hois-faq-icon {
  color: var(--hois-gold);
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.hois-faq-item.active .hois-faq-icon { transform: rotate(45deg); }
.hois-faq-item .faq-answer p {
  color: var(--hois-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════
   FOOTER (kept)
   ══════════════════════════════════════ */
.hois-footer {
  position: relative;
  width: 100%;
  margin-top: var(--hois-section-gap);
  padding: clamp(72px, 10vw, 100px) 0 clamp(96px, 11vw, 120px);
  background: linear-gradient(180deg, var(--hois-cream) 0%, #e8e0d4 100%);
  text-align: center;
  overflow: hidden;
}
.hois-footer-border {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  width: auto;
  max-width: var(--hois-max);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hois-gold), transparent);
}
.hois-footer-botanical {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  opacity: 0.45;
  pointer-events: none;
}
.hois-footer-inner {
  position: relative;
  z-index: 1;
}
.hois-footer-presents {
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hois-olive);
  margin: 0.75rem 0 0.5rem;
}
.hois-footer-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  color: var(--hois-forest);
  margin: 0.5rem 0;
}
.hois-footer-meta {
  color: var(--hois-text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}
.hois-footer-contact {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--hois-text-muted);
}
.hois-footer-contact a {
  color: var(--hois-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hois-footer-contact a:hover { color: var(--hois-gold); }

/* ── Sticky mobile CTA ── */
.hois-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(26, 61, 46, 0.97);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.hois-sticky-cta.visible { transform: translateY(0); }
.hois-sticky-cta .hois-btn {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
}

/* ── Revive.css layout reset (HOIS page only) ── */
.revive-page.hois-theme section {
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  width: 100% !important;
  max-width: none !important;
  contain: none !important;
  content-visibility: visible !important;
}

.revive-page.hois-theme h2.hois-section-heading,
.revive-page.hois-theme h2.hois-footer-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  padding-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 100%;
}

.revive-page.hois-theme h2::after,
.revive-page.hois-theme h3::after {
  display: none !important;
  content: none !important;
}

.revive-page.hois-theme h3.hois-subheading,
.revive-page.hois-theme h3.hois-venue-name {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  text-align: center;
}

.revive-page.hois-theme h3.hois-speaker-name,
.revive-page.hois-theme .hois-program-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  text-align: left;
}

.revive-page.hois-theme .floating-color-element,
.revive-page.hois-theme .depth-layer,
.revive-page.hois-theme .date-cta-band { display: none !important; }
.revive-page.hois-theme .hero-title { animation: none !important; }

.revive-page.hois-theme .hois-faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 1.15rem 0 calc(1.15rem + 1.85rem);
}
.revive-page.hois-theme .hois-faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.15rem 1.15rem calc(1.15rem + 1.85rem);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 968px) {
  .hois-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hois-gallery-card:nth-child(4n+1):nth-last-child(2),
  .hois-gallery-card:nth-child(4n+2):last-child,
  .hois-gallery-card:nth-child(4n+1):last-child,
  .hois-gallery-card:nth-child(4n+1):nth-last-child(3),
  .hois-gallery-card:nth-child(4n+2):nth-last-child(2),
  .hois-gallery-card:nth-child(4n+3):last-child {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .hois-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .hois-gallery-card {
    width: 100%;
    max-width: 100%;
  }

  .hois-gallery-card:nth-child(4n+1):nth-last-child(2),
  .hois-gallery-card:nth-child(4n+2):last-child,
  .hois-gallery-card:nth-child(4n+1):last-child,
  .hois-gallery-card:nth-child(4n+1):nth-last-child(3),
  .hois-gallery-card:nth-child(4n+2):nth-last-child(2),
  .hois-gallery-card:nth-child(4n+3):last-child,
  .hois-gallery-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }

  .hois-countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .hois-speakers-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .hois-hero-details { flex-direction: column; gap: 0.35rem; }
  .hois-detail-sep { display: none; }
  .hois-program-item { grid-template-columns: 4rem 1fr; gap: 0.75rem; }
  .hois-quote-block { padding: 1.35rem 1.25rem; }
  .hois-sticky-cta { display: block; }
  body.hois-body { padding-bottom: 72px; }
  .hois-hero-band { min-height: min(78vh, 680px); }

  /* Mobile button alignment — centred with inset from edges */
  .hois-hero-cta,
  .hois-btn-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .hois-hero-cta .hois-btn,
  .hois-btn-row .hois-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hois-venue-block .hois-btn {
    display: inline-flex;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .hois-booking-card {
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
    box-sizing: border-box;
  }

  .hois-footer-inner > .hois-btn {
    display: flex;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .hois-sticky-cta {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .hois-sticky-cta .hois-btn {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* Undo revive.css blanket max-width rule that breaks grids */
  .revive-page.hois-theme * {
    max-width: none;
  }
  .revive-page.hois-theme img,
  .revive-page.hois-theme video,
  .revive-page.hois-theme iframe,
  .revive-page.hois-theme .section-shell,
  .revive-page.hois-theme .hois-band,
  .revive-page.hois-theme .hois-gallery-grid,
  .revive-page.hois-theme .hois-gallery-card,
  .revive-page.hois-theme .hois-flyer-image,
  .revive-page.hois-theme .hois-booking-card,
  .revive-page.hois-theme .tt-widget {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hois-particle { animation: none; display: none; }
  .hois-sticky-cta { transition: none; }
  .hois-gallery-card img {
    transition: none;
  }
  .hois-gallery-card:hover img {
    transform: none;
    opacity: 1;
  }
}
