/* Base styles */
body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: #f9f9f9;
}
/* HIDE nav-links ONLY on the homepage */

/* Header */
.site-header {
  background-color: #1e4d6b;
  color: white;
  padding: 10px 20px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.left-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  height: 40px;
  width: auto;
}
.nav-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.nav-link:hover {
  text-decoration: underline;
}
.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
}

/* Video container and player */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.video-container video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
}
#introOverlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;   
  align-items: center;
  justify-content: center;
  z-index: 30;
}
#introPlayBtn {
  background: transparent;              /* transparent background */
  color: #fff;                          /* white text */
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;                     /* bold like the example */
  font-size: 2rem;                      /* larger text */
  padding: 12px 40px;                   /* space inside the button */
  border: 4px solid #fff;               /* thick white border */
  border-radius: 12px;                  /* slightly rounded corners */
  cursor: pointer;
  text-transform: uppercase;            /* force "START" in caps */
  transition: all 0.3s ease;            /* smooth hover effect */
}

/* Optional hover effect */
#introPlayBtn:hover {
  background: rgba(255, 255, 255, 0.1); /* subtle white overlay */
  transform: scale(1.05);               /* gentle zoom */
}

.intro-text {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 8px;
  font-size: 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1000;
}

/* Custom controls */
.controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  padding: 0 10px;
  border-radius: 5px;
  box-sizing: border-box;
  z-index: 200;
}
.controls input[type="range"] {
  flex: 1;
  height: 6px;
  cursor: pointer;
}
.controls button {
  background: transparent;
  border: none;
  color: whitesmoke;
  padding: 16px;
  font-size: 1.5rem;
  cursor: pointer;
}

.controls button#ccBtn.active {
  color: #d4af37; /* Gold color to indicate it's on */
  text-shadow: 0 0 8px #f6e102;
}

/* Captions */
#captionBox {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 16px;
  max-width: 90%;
  display: none;
  text-align: center;
  z-index: 200;
}

#choices {
  position: absolute;
  display: none;
  z-index: 200;
  text-align: center;
  width: fit-content;      /* shrink-wrap to its content */
  max-width: 90%;          /* but never wider than 90% of viewport */
  background: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
}


#choices .choice-item {
  display: flex;
  align-items: center;
  margin: 8px 0;
}
#choices .choice-icon {
  font-size: 1.4em;
  margin-right: 0.5em;
  cursor: pointer;
  line-height: 1;
  width: 1.5em;
  height: auto;
  vertical-align: middle;
}
#choices .choice-button {
  display: inline-block;      /* ensures consistent box behaviour */
  padding: 12px 20px;         /* sensible default spacing */
  font-size: 1rem;            /* base size, easy to override */
  font-family: inherit;       /* match your page font */
  cursor: pointer;            /* make it feel clickable */
  text-align: center;         /* keep text centered */
  line-height: 1.2;           /* prevent tall text from being cut off */
  border: none;               /* no border by default */
  background: none;           /* let subclasses handle styling */
  color: inherit;             /* inherit page text colour unless styled */
  transition: all 0.2s ease;  /* smooth hover/active effects */
}


#choices .choice-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34,34,68,0.12);
}


/* size and space your SVG bullets */
#choices .choice-icon {
  width: 1.5em;       /* or 24px, as you prefer */
  height: auto;
  margin-right: 0.5em;
  vertical-align: middle;
  cursor: pointer;    /* if you want the SVG itself to be clickable */
}

/* Question heading above choice buttons */
.choice-question {
  margin-bottom: 12px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.1rem;
  color: #fff;
}

/* Hide the native checkbox */
.choice-checkbox input[type="checkbox"] {
  display: none;
}

.replay-menu-btn {
  left:  100px !important;  /* kill the inline left */
  right: auto     !important;  /* however far in from the right you like */
}

/* --- Demo Disclaimer Box (Under Video) --- */
.demo-disclaimer-box {
  max-width: 700px;
  margin: 5px auto; /* Adds space above and below, and centers it */
  padding: 2px;
  background-color: #f7f7f7; /* A light grey background */
  border: 1px solid #e0e0e0; /* A subtle border */
  border-radius: 8px; /* Soft rounded corners */
  text-align: center;
}

.demo-disclaimer-box p {
  margin: 0; /* Removes default paragraph margin */
  font-size: 14px;
  line-height: 1.6;
  color: #555; /* A softer text color */
}

.demo-disclaimer-box a {
  color: #005a78; /* A professional blue to match your site's likely theme */
  text-decoration: underline;
  font-weight: bold;
}

.demo-disclaimer-box a:hover {
  text-decoration: none;
}

/* Footer */
.site-footer {
  background-color: #1e4d6b;
  color: white;
  padding: 20px;
  text-align: center;
}
.site-footer a {
  color: #a7d0e3;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* =================================================================== */
/* RESPONSIVE & MOBILE STYLES (Applies on screens <= 1366px wide)      */

@media (max-width: 768px) {
.site-footer a {
    display: block;
    padding: 8px 0;
  }
.site-footer p {
    font-size: 0.85rem;
  }
}

/* keep header spacing/centering with no nav links */
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .left-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* if any legacy .nav-link markup sneaks in, hide it */
.page-home .site-header .left-nav .nav-link { display: none !important; }

#choices .choice-button.btn-flat-dull {
  background: #ccc;        /* flat dull grey */
  color: #555;             /* muted text */
  border: 1px solid #999;  /* thin, uninspired border */
 border-radius: 0 !important;       /* no rounded corners */
  padding: 14px 28px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;        /* no depth, no gloss */
  transition: none;        /* no hover effects */
  display: flex;
  justify-content: center;
  align-items: center;
}
#choices .choice-button.btn-flat-dull {
  opacity: .85;
  filter: grayscale(20%);
  min-width: clamp(200px, 30vw, 280px);
  min-height: 56px;
  font-weight: 600;
  border-radius: 0;
}


#choices .choice-button.btn-flat-dull:hover,
#choices .choice-button.btn-flat-dull:active {
  background: #ccc;        
  color: #555;
  transform: none !important;
  box-shadow: none !important;
}

/* Make it clearly larger than the dull button */
#choices .choice-button.btn-gradient-metallic {
  min-width: clamp(260px, 38vw, 420px);
  min-height: 64px;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* Stronger metallic gradient */
#choices .choice-button.btn-gradient-metallic {
  background: linear-gradient(45deg, #f6e102, #F5C36B, #B8860B);
  background-size: 300% 300%;
  animation: metallicShift 6s ease-in-out infinite;
  color: #101416;
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 14px 28px rgba(0,0,0,.35),
    inset 0 2px 0 rgba(255,255,255,.55);
  transform: translateZ(0); /* smoother */
 display: flex;              /* activate flexbox */
  align-items: center;        /* vertical centring */
  justify-content: center;    /* horizontal centring */
  text-align: center;         /* keep text aligned if it wraps */
  padding: 0 20px;            /* breathing room on left/right */
  line-height: 1.2;           /* tidy text baseline */
}

/* Add a moving “sheen” highlight */
#choices .choice-button.btn-gradient-metallic {
  position: relative; overflow: hidden;
}
#choices .choice-button.btn-gradient-metallic::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg,
              transparent 0%,
              rgba(255,255,255,.35) 40%,
              transparent 60%);
  transform: translateX(-120%);
  animation: sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@keyframes metallicShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Lift on hover; squash on press */
#choices .choice-button.btn-gradient-metallic:hover { transform: translateY(-2px); }
#choices .choice-button.btn-gradient-metallic:active { transform: translateY(1px); }

/* Base overlay card (bigger, centred, white heading) */
#choices.overlay-card {
  max-width: min(1200px, 94vw);
  padding: 24px 28px;
  background: rgba(0,0,0,0.68);
  border-radius: 12px;
  color: #fff;
}
#choices.overlay-card h3 {
  margin: 0 0 14px 0;
  color: #fff;                     /* white heading */
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 24px);
  text-align: center;
}

/* Lay out buttons side-by-side */
#choices.overlay-card .choice-list {
  display: flex;
  gap: 32px;
  flex-wrap: nowrap;               /* side-by-side on roomy screens */
  justify-content: center;
}

/* Two-up layout helper */
#choices.two-up .choice-list > .choice-row {
  flex: 1 1 0;
}
#choices.two-up .choice-list > .choice-row > .choice-button {
  width: 100%;
  min-width: clamp(140px, 30vw, 280px);   /* fluid width */
  padding: clamp(10px, 1.4vw, 16px) clamp(14px, 2vw, 24px);
  font-size: clamp(14px, 1.3vw, 18px);
}

/* On small phones, stack vertically for tap comfort */
@media (max-width: 520px) {
  #choices.overlay-card .choice-list {
    flex-wrap: wrap;               /* allow wrapping */
  }
  #choices.two-up .choice-list > .choice-row {
    flex: 1 1 100%;
  }
}
/* Each row expands evenly; button fills its row */
#choices.two-up .choice-row { flex: 1 1 0; }

/* 3) Ensure both buttons centre their text vertically & horizontally,
      keep a solid minimum size, and scale nicely */
#choices.two-up .choice-row > .choice-button {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 56px;                     /* taller = easier tap */
  font-size: clamp(16px, 1.5vw, 20px);
  padding: clamp(12px, 1.4vw, 16px) clamp(18px, 2.2vw, 28px);
  border-radius: 12px;                  /* your metallic stays rounded */
}



/* 5) Stop the 'INTERACTIVE EXPERIENCE' text from wrapping */
#choices .choice-button.btn-gradient-metallic {
  white-space: nowrap;                  /* no line break */
  padding-inline: clamp(22px, 3vw, 36px);
  min-width: clamp(220px, 36vw, 360px); /* give it room to breathe */
}

/* 6) On small phones, allow stacking so everything stays readable */
@media (max-width: 520px) {
  #choices.overlay-card .choice-list { flex-wrap: wrap; }
  #choices.two-up .choice-row { flex: 1 1 100%; }
}

/* —— Overlay sizing/layout for this step —— */
#choices.overlay-card.overlay-large {
  max-width: min(1040px, 96vw);
  padding: 28px 32px;
  background: rgba(0,0,0,0.68);
  border-radius: 14px;
}
#choices.overlay-card.vertical .choice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;                   /* vertical stacking of pills */
}

/* Right-aligned Continue bar */
#choices .overlay-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Continue button (small raised) */
#choices .btn-continue {
  background: #2a2f36;
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2);
}
#choices .btn-continue:hover { transform: translateY(-1px); }
#choices .btn-continue:active { transform: translateY(1px); }

/* —— Pill buttons (flip-capable) —— */
#choices .pill {
  border-radius: 999px;        /* pill shape */
  font-weight: 800;
  min-height: 56px;
  padding: 12px 22px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  text-align: center;
}

/* Colours per sentiment */
#choices .pill-cold    { background: #b9d9ff; color: #0f2a44; }  /* powder blue */
#choices .pill-neutral { background: #e8d8c3; color: #3b3329; }  /* beige/neutral */
#choices .pill-warm    { background: #ffb3a6; color: #5b1a12; }  /* warm light red */

/* Optional: slight “flipped” state accent (bold border) */
#choices .pill.is-flipped { box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); }

/* —— Compare overlay (semi-transparent with “ghost” buttons like intro) —— */
#choices.overlay-card.overlay-compare {
  background: rgba(0,0,0,0.5);
}
#choices.overlay-card.overlay-compare .choice-list.two-buttons {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
#choices.overlay-centered-single .choice-list {
  display: flex;
  justify-content: center; 
}

/* Responsive: stack pills on small phones if needed */
@media (max-width: 520px) {
  #choices.overlay-card.vertical .choice-list { gap: 12px; }
  #choices .pill { min-height: 52px; font-size: 0.95rem; }
}
/* —— Phones: portrait —— */
@media (max-width: 600px) and (orientation: portrait) {
  #choices.overlay-card {
    /* stay anchored to the video container (absolute) */
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 10% !important;       /* down a bit from the top of the video */
    bottom: auto !important;
    width: 88% !important;
    max-height: 58vh !important;  /* prevent “too tall” overlays */
    overflow-y: auto !important;
  }

  /* stack if needed, keep big tap targets */
  #choices.overlay-card .choice-list { flex-wrap: wrap; gap: 16px; }
  #choices.two-up .choice-row { flex: 1 1 100%; }
}

/* —— Phones: short landscape (where things were cut off) —— */
@media (max-height: 460px) and (orientation: landscape) {
   #choices.overlay-card {
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 6% !important;
    bottom: auto !important;
    width: 82% !important;        /* fit inside the video */
    max-height: 70vh !important;
    overflow: auto !important;
  }

  /* avoid buttons forcing overflow */
  #choices.two-up .choice-row > .choice-button { min-width: 0 !important; }
  #choices .choice-button.btn-gradient-metallic {
    white-space: normal;                 /* allow one-line or two-line */
    min-width: clamp(200px, 44%, 360px); /* scale within overlay */
  }
 #choices.overlay-card.overlay-split {
    width: 94vw;
    grid-template-columns: 1fr 44%;   /* a bit more room for the panel */
    column-gap: 12px;
    padding: 10px 12px;
  }

  /* let buttons shrink; allow wrapping so they don’t force overflow */
  #choices .choice-button.btn-gradient-metallic {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

  /* keep the panel within its column */
  #choices .side-panel {
    min-height: 64px;
    max-width: 100%;
  }

  #choices .overlay-actions {
    position: sticky;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    padding: 6px 0;
    margin-top: 6px;
  }

}

@media (max-width: 1366px) {
  #choices.overlay-card {
    max-width: min(92vw, 960px);
    padding: clamp(16px, 2.2vw, 24px);
  }
  #choices.overlay-card .choice-list { gap: clamp(16px, 2.4vw, 28px); }
  #choices.two-up .choice-row > .choice-button {
    min-width: clamp(180px, 42%, 340px); /* two-up fits neatly */
  }
 .controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Buttons stay their content width */
  .controls button {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 0 0.25rem;
    height: 1.8rem;
    line-height: 1.8rem;
    font-size: 1rem;
  }
}
/* Center pills only for traditionalSentiment overlay */
#choices.traditionalSentiment-active {
  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontally center */
  justify-content: center; /* vertically center if overlay grows */
  gap: 16px; /* spacing between pills */
}
/* Centre the pill column inside the overlay */
#choices.overlay-card.vertical .choice-list {
  align-items: center;     /* <-- this is the missing piece */
}

/* Keep the 'Continue' button on the right while pills are centred */
#choices.traditionalSentiment-active .overlay-actions {
  align-self: flex-end;
}

/* ===== Split overlay: buttons on the left, info panel on the right ===== */
#choices.overlay-card.overlay-split {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 40%);
  column-gap: 16px;
}
#choices.overlay-card.overlay-split > h3 {
  grid-column: 1 / -1;                      /* heading spans both columns */
  margin-bottom: 16px;
}
#choices.overlay-card.overlay-split .choice-list {
  grid-column: 1 / 2 !important;     /* <- prevent spanning both columns */
  width: auto !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;                   /* left-aligned buttons */
  gap: 12px;
}

#choices.overlay-card.overlay-split .choice-list .choice-button {
  width: 100%;
}
#choices.overlay-card.overlay-split .side-panel {
  grid-column: 2 / 3;
  justify-self: end;
}

/* Off-white 3D-ish panel on the right */
#choices .side-panel {
  position: relative;
  background: #fbfaf6;                       /* warm off-white */
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.5);
  padding: 16px 18px 18px 18px;
  min-height: 140px;
  transition: background .25s ease, box-shadow .25s ease, opacity .25s ease;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box; 
}


#choices .side-panel .panel-content {
  color: #222;
  font-size: 1rem;
  line-height: 1.45;
}

/* Small close (“x”) button in top-right */
#choices .side-panel .panel-close {
  position: absolute;
  top: 8px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(249, 3, 3, 0.15);
  color: #222;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s ease;
}
#choices .side-panel .panel-close:hover { background: rgba(0,0,0,.22); }

/* Grey-out for unselected buttons while a choice is open */
#choices .choice-button.is-disabled {
  opacity: .45;
  filter: grayscale(65%);
  pointer-events: none;
}

#choices .side-panel.is-empty .panel-close {
  opacity: 0;
  pointer-events: none;
}

/* Visible when content is present */
#choices .side-panel.active .panel-close {
  opacity: 1;
}

/* Keep the footer continue button bottom-right, even with grid */
#choices.overlay-card.overlay-split .overlay-actions {
  grid-column: 1 / -1;       /* actions bar spans both columns */
  justify-content: flex-end;
  display: flex;             /* Ensure it's a flex container */
  align-items: center;       /* Vertically align buttons */
  gap: 12px;                 /* ADD THIS to create space between buttons */
}

/* Mobile: stack columns (panel below buttons) */
@media (max-width: 600px) {
  #choices.overlay-card.overlay-split {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  #choices.overlay-card.overlay-split .side-panel {
    grid-column: 1 / 2;
  }
}

#choices .side-panel.is-empty .panel-content {
  min-height: 120px;        /* keeps the box substantial even when empty */
}
#choices .side-panel.is-empty {
  background: rgba(251, 250, 246, 0.06);   /* very faint */
  box-shadow: 0 6px 16px rgba(0,0,0,.18);  /* lighter shadow */
  opacity: 0.85;
}

#choices .side-panel.active {
  background: #fbfaf6;
  box-shadow: 0 12px 28px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.5);
  opacity: 1;
}
/* Make room for two columns (buttons left, panel right) */
#choices.overlay-card.overlay-split {
  width: min(920px, 94vw);             /* stops shrink-wrapping */
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 38%);
  column-gap: 24px;
}

/* Right column: panel always occupies the second column */
#choices.overlay-card.overlay-split .side-panel {
  grid-column: 2 / 3;
}

/* Mobile portrait: stack (what you already want there) */
@media (max-width: 600px) {
  #choices.overlay-card.overlay-split {
    width: 94vw;                       /* full width inside video */
    grid-template-columns: 1fr;        /* single column */
    row-gap: 16px;
  }
  #choices.overlay-card.overlay-split .side-panel {
    grid-column: 1 / 2;
  }
}
/* --- Force a 2‑column split and stop shrink-wrapping --- */
#choices.overlay-card.overlay-split {
  width: min(960px, 94vw);
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 40%) !important;
  column-gap: 24px;
  align-items: start;
}

/* Right column: the off‑white panel lives ONLY on the RIGHT */
#choices.overlay-card.overlay-split .side-panel {
  grid-column: 2 / 3 !important;     /* <- keep it in column 2 */
  justify-self: end;                  /* nudge to the right edge of its column */
  width: min(440px, 100%) !important; /* keep it from growing across */
}

/* Actions bar should span both columns at the bottom */
#choices.overlay-card.overlay-split .overlay-actions {
  grid-column: 1 / -1 !important;
  justify-content: flex-end;
}

/* Mobile portrait: stack buttons above the panel */
@media (max-width: 600px) {
  #choices.overlay-card.overlay-split {
    width: 94vw;
    grid-template-columns: 1fr !important;
    row-gap: 16px;
  }
  #choices.overlay-card.overlay-split .choice-list { grid-column: 1 / 2 !important; }
  #choices.overlay-card.overlay-split .side-panel  { grid-column: 1 / 2 !important; width: 100% !important; }
}

/* Default (desktop/tablet) side panel */
#choices .side-panel {
  min-height: 140px; /* keep as-is for larger screens */
}

/* On mobile, shrink the panel so footer is more visible */
@media (max-width: 768px) {
  #choices .side-panel {
    min-height: 90px;   /* reduce required height */
    padding: 12px 14px; /* tighten padding a bit */
  }

  /* Reduce overlay-card padding so footer isn't pushed down */
  #choices.overlay-card {
    padding-bottom: 12px;
  }

  /* Pull footer closer */
  #choices .overlay-footer {
    margin-top: 2px; /* was probably bigger */
  }
}
/* Phones – portrait */
@media (max-width: 600px) and (orientation: portrait) {
  /* tighten overall overlay spacing */
  #choices.overlay-card { padding-bottom: 10px; }

  /* split overlay: smaller gaps so footer isn’t pushed off */
  #choices.overlay-card.overlay-split {
    row-gap: 10px;
  }

  /* smaller panel on phones */
  #choices .side-panel {
    min-height: 72px;
    padding: 10px 12px;
  }

  /* keep the Continue bar visible without scrolling */
  #choices .overlay-actions {
    position: sticky;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    padding: 8px 0;
    margin-top: 8px;      /* small separation from content */
    z-index: 2;
  }
}
@media (max-height: 460px) and (orientation: landscape) {
  /* Two-column overlay already set elsewhere; just tightening a bit */
  #choices.overlay-card.overlay-split {
    width: 94vw;
    column-gap: 12px;
    padding: 10px 12px;
  }

  /* Footer: sticky, right column only, width = content */
  #choices .overlay-actions {
    grid-column: 2 / 3;          /* live only on the right column */
    position: sticky;
    bottom: 6px;
    display: flex;
    justify-content: flex-end;
    background: transparent;
    padding: 0;
    margin-top: 6px;

    /* KEY: let taps pass through the empty part of the footer
       so the last button remains clickable underneath */
    pointer-events: none;
  }

  /* Button itself remains clickable */
  #choices .overlay-actions .btn-continue {
    pointer-events: auto;
    min-width: 140px;            /* tweak to taste */
  }

  /* No extra bottom margin needed now */
  #choices.overlay-card .choice-list { margin-bottom: 0; }
}
/* ---------- 2.2) Engagement: confirm / learn more ---------- */
.iv-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);          /* light dim so base overlay is still visible */
  z-index: 180;                          /* higher than #choices card */
  pointer-events: none;                  /* scrim is visual only */
}

/* ---------- Data capture modal ---------- */
.iv-modal.data-capture {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; 
  max-width: 600px;
  aspect-ratio: 1 / 1;               /* nice proportion; adjusts below on mobile */
  border-radius: 16px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  /* background image with a subtle dark veil for legible text */
  background: url('images/data.jpg') center/contain no-repeat;
}
.iv-modal.data-capture::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.28);          /* darken the image slightly */
  box-shadow: inset 0 0 0 2px #d4af37;   /* thin golden inner border */
  pointer-events: none;
}

.iv-modal .iv-modal-body {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-end;                 /* text sits near bottom */
  justify-content: center;
  padding: 18px 20px;
}
.iv-modal .iv-modal-body p {
  margin: 0;
  color: black;
  font-size: clamp(1rem, 1.4vw + .6rem, 1.25rem);
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
  text-align: center;
  max-width: 90%;
}

/* Close button (only closes the top modal) */
.iv-modal .iv-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  z-index: 1;
}

/* Phones: make the card a bit taller and fit width */
@media (max-width: 600px) {
  .iv-modal.data-capture {
    width: 94vw;
    aspect-ratio: 4 / 3;
  }
  .iv-modal .iv-modal-body { padding: 14px 16px; }
}
/* -------- Mobile PORTRAIT -------- */
@media (max-width: 600px) and (orientation: portrait) {
  /* Square, scaled to the short side (width on portrait) */
  .iv-modal.data-capture{
    width: clamp(260px, 86vmin, 520px);
    aspect-ratio: 1 / 1;
  }
  .iv-modal .iv-modal-body{ padding: 12px 14px; }
  .iv-modal .iv-modal-body p{
    font-size: clamp(.9rem, 3.2vw, 1.05rem);
    max-width: 92%;
  }
  .iv-modal .iv-modal-close{ top: 6px; right: 8px; width: 26px; height: 26px; }
}

/* -------- Mobile LANDSCAPE (short height phones) -------- */
@media (max-height: 460px) and (orientation: landscape) {
  /* Square, limited by the short side (height on landscape) */
  .iv-modal.data-capture{
    width: clamp(240px, 70vmin, 520px);   /* vmin = min(width, height) */
    aspect-ratio: 1 / 1;
  }
  .iv-modal .iv-modal-body{ padding: 10px 12px; }
  .iv-modal .iv-modal-body p{
    font-size: clamp(.88rem, 2.2vmin, 1rem);
    max-width: 94%;
  }
  .iv-modal .iv-modal-close{ top: 6px; right: 8px; width: 24px; height: 24px; }
  
  /* prevent accidental sideways scrolling */
  #wrapper { overflow: hidden; }
}

/* Anchor absolute children (like #choices) to the video container */
#wrapper { position: relative; }

/* ===== Full-frame hotspots overlay ===== */
#choices.overlay-hotspots {
  position: absolute; inset: 0;
  background: transparent;
  padding: 20px; /* Give some space from the edges */
  display: flex;
  justify-content: center; 
  align-items: center;     
  z-index: 200;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* The new panel that holds the question, hotspot, and button */
.hotspot-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  background: transparent;
  padding: 24px;
  border-radius: 14px;
  max-width: 380px; /* Stop it from getting too wide on desktop */
}

/* Style the question text */
.hotspot-panel h3 {
  color: white;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Position the Continue button directly in the panel */
#choices.overlay-hotspots .overlay-actions {
  position: static; /* Remove absolute positioning */
  margin: 0;
  padding: 0;
}

/* Each quadrant */
#choices .hotspot-cell {
  position: relative;
  display: flex;
}

/* Visible hotspot button */
#choices .hotspot-btn {
  position: relative;
  width: max(3.6vmin, 48px);
  height: max(3.6vmin, 48px);
  min-width: 48px; min-height: 48px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  z-index: 130;
   filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

#choices .hotspot-btn .ring {
  position: absolute; inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.9);
  animation: hsPulse 2.4s ease-in-out infinite;
}
#choices .hotspot-btn .dot {
  position: absolute; left: 50%; top: 50%;
  width: 44%; height: 44%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
   background: radial-gradient(circle at 30% 30%, #FFD700, #B8860B 80%);
  box-shadow: 
    0 0 0 1px rgba(215, 215, 215, 0.5), /* <-- This is the new outline */
    0 4px 10px rgba(0,0,0,.3);  /* <-- Softened the original shadow slightly */
}

#choices .hotspot-btn .hs-label {
  position: absolute; 
  left: 50%; 
  top: calc(100% + 8px);
  transform: translate(-50%, 0);
  white-space: nowrap;
  font-weight: 800;
  font-size: clamp(.8rem, 1.4vmin, 1rem);
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* Pulse animation */
/* Pulse animation */
@keyframes hsPulse {
  0%,100% { 
    /* CHANGED: Increased opacity from 0.65 to 0.9 */
    box-shadow: 0 0 0 3px rgba(212,175,55,0.9); 
  }
  50%     { 
    /* CHANGED: Increased opacity from 0.35 to 0.5 */
    box-shadow: 0 0 0 7px rgba(212,175,55,0.5); 
  }
}

/* Popover content + close “×” */
#choices .hotspot-popover {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(720px, 90vw);
  width: 350px;
  box-sizing: border-box; 
  background: black;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.35),
              inset 0 0 0 2px rgba(212,175,55,.75);
  padding: 16px 18px 18px 18px;
  z-index: 140;
  pointer-events: auto;
  display: none;
}
#choices .hotspot-popover .hotspot-text {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.45;
  text-align: left; /* Make the popover text left-aligned for readability */
}

#choices .hotspot-popover.open { display: block; }

#choices .hotspot-popover .hotspot-close {
  position: absolute; top: 8px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

#choices.overlay-hotspots .btn-continue {
  pointer-events: auto;
}

/* =================================================================== */
/* Info Panel (FINAL & CORRECTED)                                    */
/* =================================================================== */

/* 1. The full-frame, transparent container */
#choices.overlay-info-panel {
  /* Core Overlay Properties - These are ESSENTIAL */
  position: absolute;
  inset: 0; /* shorthand for top:0, right:0, bottom:0, left:0 */
  width: 100%;
  height: 100%;

  /* Flexbox Centering Properties */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Overrides to make it invisible */
  background: transparent;
  padding: 0;
  max-width: none;
  box-shadow: none;
}

/* 2. The visible styled card */
.info-panel-box {
  position: relative; 
  background: #f0f2f5; 
  color: #333; 
  border-radius: 16px;
  padding: 24px 24px 56px; 
  max-width: 450px;
  width: 90%;
  text-align: center;
  overflow: visible; 
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* 3. The breakout image */
.info-panel-image {
  position: absolute;
  left: 50%; 
  top: 0;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #f0f2f5; 
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 4. The text content */
.info-panel-text {
  margin-top: 50px; /* Space for the 80px image */
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 24px; 
}

/* 5. The button container */
.info-panel-actions {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 100%; 
  display: flex;
  justify-content: center;
}

/* =================================================================== */
/* Info Panel - Mobile & Responsive Adjustments                      */
/* =================================================================== */

@media (max-width: 600px) and (orientation: portrait) {
  /* On portrait phones, give the panel breathing room at the top */
  #choices.overlay-info-panel {
    align-items: flex-start; /* Align panel to the top of the container */
    padding-top: 70px;       /* Push it down so the image is fully visible */
  }

  /* Make the panel slightly narrower on small screens */
  .info-panel-box {
    max-width: 340px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  /* On short landscape screens, scale down the panel to prevent overflow */
  .info-panel-box {
    transform: scale(0.85);
  }
}

/* =================================================================== */
/* Card Picker Interaction                                           */
/* =================================================================== */

/* Center the content of the main #choices box */
#choices.card-picker-mode {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Container for the 3 cards */
.card-picker-container {
  display: flex;
  gap: 24px;
  margin: 20px 0;
}

/* Individual square card styling */
.choice-card {
  /* --- Copied from .btn-gradient-metallic for consistent look --- */
  background: linear-gradient(45deg, #f6e102, #F5C36B, #B8860B);
  background-size: 300% 300%;
  animation: metallicShift 6s ease-in-out infinite;
  color: #101416;
  border: 0;
  box-shadow: 0 14px 28px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.55);
  transition: all 0.2s ease;
  
  /* --- Card-specific layout properties --- */
  width: 100px;
  height: 100px; /* Makes it a square */
  padding: 16px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 20px;
  cursor: pointer;
  display: flex; /* For centering the text inside */
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

.choice-card:hover {
  transform: translateY(-2px);
}
.choice-card:active {
  transform: translateY(1px);
}



/* =================================================================== */
/* Card Picker - Responsive Adjustments                              */
/* =================================================================== */

@media (max-width: 600px) {
  /* Stack cards vertically on mobile */
  .card-picker-container {
    flex-direction: column;
    gap: 16px;
  }
  .choice-card {
    width: 260px;
    height: 60px;
  }
}
@media (max-height: 460px) and (orientation: landscape) {

  #choices.overlay-card.overlay-split .choice-list .btn-gradient-metallic {
    width: 100%;      /* Force the button to take the full column width */
    min-width: 0;     /* Allow it to shrink without being constrained */
    white-space: normal; /* Allow text to wrap if needed */
  }

}

/* =================================================================== */
/* Subtle CTA Banner                                                 */
/* =================================================================== */

#cta-banner {
  position: absolute;
  /* Start off-screen at the bottom */
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 24px;
  
  background: rgba(0,0,0,0.6);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);

  opacity: 0;
  transition: bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
  z-index: 210; /* Above CTA button, below popups */
}

/* When the 'visible' class is added, slide it into place */
#cta-banner.visible {
  bottom: 80px; /* Position it above the player controls */
  opacity: 1;
}

.cta-banner-text {
  color: #fff;
  text-align: left;
  line-height: 1.4;
}
.cta-banner-text strong {
  font-size: 1rem;
}
.cta-banner-text small {
  font-size: 0.85rem;
  opacity: 0.9;
  display: block;
}

/* Style for the subtle 'Yes, please' button */
.btn-cta-banner {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: bold;
  white-space: nowrap;
}
.btn-cta-banner:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
/* Style for info panels that ONLY contain a button */
.info-panel-box.button-only {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
/* =================================================================== */
/* Single CTA Button (FINAL & CORRECTED)                             */
/* =================================================================== */

/* This rule handles the container for the single button */
#choices.overlay-card.single-button-mode {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center */
  align-items: center;     /* Horizontally center */
  gap: 16px; /* Space between question and button */
}

/* =================================================================== */
/* Mobile Portrait - CTA & Banner Fixes (FINAL)                        */
/* =================================================================== */

@media (max-width: 600px) and (orientation: portrait) {

  /* --- 1. Fix for the main CTA button ('mainCtaButton') on MOBILE --- */

  /* Make the overlay card full-width on mobile to contain the button */
  #choices.overlay-card.single-button-mode {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    /* Position the content higher up on the screen */
    justify-content: flex-start;
    padding-top: 30%;
    /* Ensure the dark overlay background is present */
    background: rgba(0,0,0,0.68);
  }

  /* Force the button itself to fit the screen and wrap its text */
  #choices.single-button-mode .choice-button.btn-gradient-metallic {
    width: 100%;
    min-width: 0 !important;      /* Force override of desktop styles */
    white-space: normal !important;/* Force override to allow text wrapping */
    padding: 16px;
    font-size: 1.1rem;
    min-height: 64px;
    box-sizing: border-box;
  }


  /* --- 2. Fix for the subtle banner with a smaller button --- */
  
  #cta-banner {
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 350px;
    padding: 16px;
    text-align: center;
    box-sizing: border-box;
  }
  
  #cta-banner.visible {
    bottom: 80px;
  }

  .btn-cta-banner {
    width: auto;
    min-width: 140px;
    padding: 12px 24px;
  }
}
/* =================================================================== */
/* Brand Personality - Custom Animated Pill Styles                   */
/* =================================================================== */

/* --- 1. Share animation & sheen effects across all gradient pills --- */

/* This selector group targets the original metallic button AND our new pills */
#choices .btn-gradient-metallic,
#choices .pill-gold,
#choices .pill-multi,
#choices .pill-blue,
#choices .pill-grey {
  position: relative; 
  overflow: hidden;
  background-size: 300% 300%;
  animation: metallicShift 6s ease-in-out infinite;
  box-shadow: 0 14px 28px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.55);
  border: 0;
}

/* This adds the moving "sheen" to all of them */
#choices .btn-gradient-metallic::after,
#choices .pill-gold::after,
#choices .pill-multi::after,
#choices .pill-blue::after,
#choices .pill-grey::after {
  content: "";
  position: absolute; 
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 40%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* Make all of them lift on hover */
#choices .btn-gradient-metallic:hover,
#choices .pill-gold:hover,
#choices .pill-multi:hover,
#choices .pill-blue:hover,
#choices .pill-grey:hover { 
  transform: translateY(-2px); 
}
#choices .btn-gradient-metallic:active,
#choices .pill-gold:active,
#choices .pill-multi:active,
#choices .pill-blue:active,
#choices .pill-grey:active { 
  transform: translateY(1px); 
}


/* --- 2. Define the unique background gradients for each new pill --- */

/* Pill 1: Golden Gradient */
#choices .pill-gold {
  background: linear-gradient(45deg, #f6e102, #F5C36B, #B8860B);
  color: #101416;
}

/* Pill 2: Multi-Color Gradient */
#choices .pill-multi {
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #9b59b6);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Pill 3: Bright Blue Gradient */
#choices .pill-blue {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: #fff;
}

/* Pill 4: Desaturated Grey Gradient */
#choices .pill-grey {
  background: linear-gradient(45deg, #d3d3d3, #a9a9a9, #808080);
  color: #101416;
  /* Soften the shadow for a duller look */
  box-shadow: 0 8px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.45);
}

/* =================================================================== */
/* Brand Personality - 2x2 Grid Layout (REVISED FOR CONSISTENCY)     */
/* =================================================================== */

/* Target the .choice-list only when it's inside our specific interaction */
#choices.two-by-two-grid .choice-list {
  display: flex;
  flex-direction: row;   
  flex-wrap: wrap;       
  justify-content: center; 
  gap: 16px;             
}

/* Target each pill's container (.choice-row) */
#choices.two-by-two-grid .choice-list .choice-row {
  flex: 0 0 calc(50% - 12px);
  max-width: 260px;
}

/* Target the pill button itself */
#choices.two-by-two-grid .choice-list .choice-row .choice-button {
  width: 100%;
  white-space: normal;
  height: auto;
}

/* Add specific styling for the flipped state for better readability */
#choices.two-by-two-grid .choice-list .choice-row .choice-button.is-flipped {
  text-align: center; /* Left-align wrapped text */
  padding: 12px 18px; /* Adjust padding for multi-line text */
  font-size: 0.9rem;  /* Slightly smaller font for longer text */
  justify-content: flex-start; /* Align text to the top-left */
}

#choices.two-by-two-grid .overlay-actions {
  /* This tells the container to be only as wide as its content */
  width: fit-content;

  /* This pulls it over to the far right of the screen */
  margin-left: auto;
}

/* --- 2. Make flip text smaller on mobile portrait --- */
@media (max-width: 600px) and (orientation: portrait) {
  #choices.two-by-two-grid .choice-list .choice-row .choice-button.is-flipped {
    /* Override the desktop font size for better fit on small screens */
    font-size: 0.6rem;
    padding: 10px 14px; /* Slightly reduce padding to match smaller text */
  }
}

/* in style.css */

/* =================================================================== */
/* Request Resources Modal (SIMPLIFIED VERSION)                      */
/* =================================================================== */

/* Full-viewport modal that centres a card */
.iv-modal.resources {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  padding: 24px; /* breathing room on small screens */
}

/* The card that holds the form */
.iv-modal.resources .iv-card {
  width: min(650px, 94vw);
  background: #0f1418;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  padding: 32px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iv-resource-body {
  display: flex;
  flex-direction: column;
  /* This now controls the spacing INSIDE the scrollable area */
  gap: 20px; 
}



/* NEW: Intro text styling */
.iv-resource-intro {
  margin: 0;
  text-align: center;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* MODIFIED: Simplified checklist styling */
.iv-resource-checklist {
  display: grid;
  grid-template-columns: 1fr; /* Always a single column now */
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.iv-resource-checklist label { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  font-weight: 700; 
  cursor: pointer;
}
.iv-resource-checklist input { 
  accent-color: #d4af37; 
  width: 18px;
  height: 18px;
}

/* This .iv-free-text style is likely unchanged but included for completeness */
.iv-free-text { display: grid; gap: 8px; margin: 0; }
.iv-free-text span { font-weight: 700; }
.iv-free-text textarea {
  width: 100%; min-height: 80px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
  background: #12181d; color:#fff; padding: 12px;
  box-sizing: border-box;
}

/* NEW: Container for Email/Text buttons */
.iv-resource-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/*
  CONSISTENT BUTTON STYLING
  This section ensures the buttons in this modal match all the others.
*/
.iv-resource-actions .btn-gradient-metallic {
  background: linear-gradient(45deg, #f6e102, #F5C36B, #B8860B);
  background-size: 300% 300%;
  animation: metallicShift 6s ease-in-out infinite;
  color: #101416;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative; 
  overflow: hidden;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 900;
  letter-spacing: 0.5px;
  min-width: clamp(260px, 38vw, 420px);
  min-height: 64px;
  padding: 0 20px;
}
.iv-resource-actions .btn-gradient-metallic::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 40%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}
.iv-resource-actions .btn-gradient-metallic:hover { transform: translateY(-2px); }
.iv-resource-actions .btn-gradient-metallic:active { transform: translateY(1px); }


/*
  RESPONSIVE STYLES
  This section ensures the modal looks good on all devices.
*/
@media (max-width: 768px) {
  .iv-modal.resources { padding: 16px; }
  .iv-card { padding: 24px 16px; gap: 16px; }
  .iv-resource-intro { font-size: 1rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .iv-modal.resources { padding: 12px; }
  .iv-modal.resources .iv-card {
    max-height: 94vh;
    overflow-y: auto;
  }
}
/* Mobile tweaks */
@media (max-width: 700px){
  .iv-checklist{ grid-template-columns: 1fr; }
  .iv-modal.resources .iv-card{ padding: 18px 16px 14px; }
}

#choices .choice-button.btn-gradient-metallic,
.iv-form .choice-button.btn-gradient-metallic {
  background: linear-gradient(45deg, #f6e102, #F5C36B, #B8860B);
  background-size: 300% 300%;
  animation: metallicShift 6s ease-in-out infinite;
  color: #101416;
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 14px 28px rgba(0,0,0,.35),
    inset 0 2px 0 rgba(255,255,255,.55);
  transform: translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  line-height: 1.2;
  position: relative; 
  overflow: hidden;
}

/* Share the sheen effect */
#choices .choice-button.btn-gradient-metallic::after,
.iv-form .choice-button.btn-gradient-metallic::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 40%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* Share the hover/active effects */
#choices .choice-button.btn-gradient-metallic:hover,
.iv-form .choice-button.btn-gradient-metallic:hover { 
  transform: translateY(-2px); 
}
#choices .choice-button.btn-gradient-metallic:active,
.iv-form .choice-button.btn-gradient-metallic:active { 
  transform: translateY(1px); 
}
/* =================================================================== */
/* Final CTA Form - Action Button Layout & Styling                   */
/* =================================================================== */

/* 1. Create a flex container for the action buttons */
.iv-form-actions {
  display: flex;
  justify-content: center; /* Center the buttons horizontally */
  align-items: center;
  gap: 16px; /* Space between the buttons */
  margin-top: 14px; /* Space above the buttons */
}

/* 2. Adjust the Submit button size */
.iv-form .choice-button.iv-submit {
  width: auto;
  min-width: 220px;
  padding: 14px 20px; /* This padding will now apply correctly */
  font-size: 1.1rem;
  font-weight: 800;
}
/* 3. Style the new Back button */
.btn-back {
  background: #2a2f36;
  color: #fff;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-back:hover { 
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,.3);
}
.btn-back:active { 
  transform: translateY(1px); 
}

.btn-exit {
  background: #502a2a; /* A dull red background */
  color: #fff;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-exit:hover { 
  background: #6e3e3e; /* A slightly brighter red on hover */
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,.3);
}
.btn-exit:active { 
  transform: translateY(1px); 
}


/* =================================================================== */
/* Final CTA Form - Mobile Responsive Styles                         */
/* =================================================================== */

@media (max-width: 768px) {
  /* This targets tablets and phones */

  /* Make the card take up the full available width */
  .iv-modal.resources .iv-card {
    width: 100%;
    /* Use a slightly smaller max-width that looks good on tablets */
    max-width: 500px; 
  }

  /* Stack the checklist items into a single column */
  .iv-checklist {
    grid-template-columns: 1fr;
  }

  /* Stack the main input fields (Name, Phone, Email) into a single column */
  .iv-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  /* This adds extra polish for small portrait-mode phones */

  /* Reduce padding on the main modal container to give the card more space */
  .iv-modal.resources {
    padding: 16px;
  }
  
  /* Reduce the card's internal padding */
  .iv-modal.resources .iv-card {
    padding: 20px 16px 16px;
  }

  /* Make the heading a bit smaller */
  .iv-form h3 {
    font-size: 1.25rem; /* was clamp(...) */
    margin-bottom: 16px;
  }

  /* Tighten up spacing between form elements */
  .iv-checklist {
    gap: 10px;
  }
  .iv-free-text {
    margin: 16px 0;
  }
}

/* =================================================================== */
/* Final CTA Form - Short LANDSCAPE Mobile Fix                       */
/* =================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  /* This targets phones held sideways */


  .iv-modal.resources {
    padding: 12px 20px;
  }

  .iv-modal.resources .iv-card {
    width: 100%;          
    max-width: none;      
    max-height: 90vh;     
  }

 
  .iv-checklist,
  .iv-row {
    grid-template-columns: 1fr;
  }

}

/* =================================================================== */
/* Final Contact/Booking Modal                                       */
/* =================================================================== */
/* Main modal container */
.iv-modal.contact {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  padding: 24px;
}
.iv-card.contact-card {
  width: min(650px, 94vw);
  background: #0f1418;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  color: #fff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px; /* Space between text, buttons, and back button */
}

/* NEW: Styling for the introductory text */
.iv-contact-intro {
  margin: 0;
  max-width: 500px;
  text-align: center;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* NEW: Container for the main action buttons (Email, Phone, Text) */
.iv-contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap; /* Allows buttons to stack on small screens */
}

/* Ensure our new <a> tags look like buttons */
.iv-contact-actions a.choice-button {
  text-decoration: none;
  min-width: clamp(260px, 38vw, 420px);
  min-height: 64px; 
  padding: 0 20px;
}

.iv-contact-actions .btn-gradient-metallic {
  background: linear-gradient(45deg, #f6e102, #F5C36B, #B8860B);
  background-size: 300% 300%;
  animation: metallicShift 6s ease-in-out infinite;
  color: #101416;
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 14px 28px rgba(0,0,0,.35),
    inset 0 2px 0 rgba(255,255,255,.55);
  transform: translateZ(0);
  display: inline-flex; /* Use inline-flex for <a> tags */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  line-height: 1.2;
  position: relative; 
  overflow: hidden;
   font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* 2. Add the moving "sheen" effect */
.iv-contact-actions .btn-gradient-metallic::after {
  content: "";
  position: absolute; 
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 40%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* 3. Add the hover and active (press) effects */
.iv-contact-actions .btn-gradient-metallic:hover { 
  transform: translateY(-2px); 
}
.iv-contact-actions .btn-gradient-metallic:active { 
  transform: translateY(1px); 
}

/* =================================================================== */
/* Contact Modal - Mobile Responsive Styles                          */
/* =================================================================== */


@media (max-width: 768px) {
  /* Reduce padding on the outer container to give the card more room */
  .iv-modal.contact {
    padding: 16px;
  }

  .iv-card.contact-card {
    width: 100%;
    padding: 24px 16px;
    gap: 20px; /* Slightly reduce space between elements */
  }
 
  .iv-contact-intro {
    font-size: 1rem;
  }  
  .iv-contact-actions a.choice-button {
    min-height: 52px;
  }
}


@media (max-height: 500px) and (orientation: landscape) {
  .iv-modal.contact {
    padding: 12px;
  }
  
  .iv-card.contact-card {
    max-height: 94vh; 
    overflow-y: auto; 
  }
}

/* =================================================================== */
/* Mobile Keyboard Fix: Add Scroll Padding to Forms (REVISED)        */
/* =================================================================== */

/* --- 1. Fix for the "Request Resources" Form --- */
@media (max-width: 768px) {
  /* Add padding to the card itself, which is the scrollable element */
  .iv-modal.resources .iv-form {
    padding-bottom: 30vh;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .iv-modal.resources .iv-form {
    /* Use a much larger buffer for short landscape screens */
    padding-bottom: 65vh;
  }
}


/* --- 2. Fix for the "Contact / Booking" Form --- */
@media (max-width: 768px) {
  /* Here, the .iv-tab-content is the scrollable element */
  .iv-modal.contact .iv-tab-content {
    padding-bottom: 30vh;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .iv-modal.contact .iv-tab-content {
    /* Use a much larger buffer for short landscape screens */
    padding-bottom: 65vh;
  }
}
.controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1366px) {
  .iv-modal.resources .iv-checklist {
    grid-template-columns: 1fr;
  }

  .iv-modal.resources .iv-row {
    grid-template-columns: 1fr;
  }
}
/* =================================================================== */
/* Caption Box - Mobile Refinements                                  */
/* =================================================================== */

/* --- 1. Fix for Portrait Mobile (Wider Box) --- */
@media (max-width: 600px) and (orientation: portrait) {
  #captionBox {
    /* Make the box wider to prevent text wrapping */
    width: 95%;
    max-width: 95%;
    
    /* Position it a little closer to the controls */
    bottom: 60px;
  }
}


/* --- 2. Fix for Landscape Mobile (Lower Position) --- */
@media (max-height: 500px) and (orientation: landscape) {
  #captionBox {
    /* On a short screen, 80px is too high. This moves it down
       to sit just above the control bar. */
    bottom: 35px;

    /* Make the text slightly smaller to fit better */
    font-size: 14px;
    padding: 4px 10px;
  }
}
/* =================================================================== */
/* Scroll Lock Fix for Mobile Landscape (FINAL)                      */
/* =================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  /*
    This is the CORRECT rule. It ONLY disables page scrolling
    when the <body> tag has the .overlay-active class, which
    our JavaScript adds and removes when modals are shown/hidden.
  */
  body.overlay-active,
  body.overlay-active html {
    overflow: hidden;
  }
}


/* --- Video Popup Modal (FINAL VERSION) --- */
.iv-modal-video {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 2vw;
  box-sizing: border-box;
}

/* NEW: The wrapper that shrinks to fit the video */
.iv-video-wrapper {
  position: relative; /* This is the key for positioning the 'X' button */
  line-height: 0; /* Prevents extra space below the video */
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border-radius: 12px; /* Apply the radius to the wrapper */
  overflow: hidden; /* Ensures the video corners are also rounded */
}

/* The video now just fills its wrapper */
.iv-modal-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Position the button relative to the wrapper, just outside the top-right corner */
.iv-modal-video .iv-modal-close {
  position: absolute;
  top: 10px;   /* Pulls it slightly above the video frame */
  right: 10px;  /* Pushes it slightly outside the video frame */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.iv-modal-video .iv-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}


/* =================================================================== */
/* Request Resources Modal - Mobile Responsive & Keyboard Fix (FINAL)  */
/* =================================================================== */

@media (max-width: 768px) {
  /*
    Part 1: Fix the modal positioning and scrolling behavior.
  */
  .iv-modal.resources {
    /* Align the card to the top instead of centering it */
    align-items: start;
    padding-top: 5vh;
  }
  .iv-modal.resources .iv-card {
    /* Make the card itself the scroll container */
    max-height: 90vh;
    overflow-y: auto;
  }

  /*
    Part 2: THIS IS THE CORRECT KEYBOARD FIX.
    Apply the padding to the new inner wrapper, NOT the card.
  */
  .iv-modal.resources .iv-resource-body {
    padding-bottom: 30vh;
  }
}

/* --- 2. Short LANDSCAPE Mobile Fixes --- */
@media (max-height: 500px) and (orientation: landscape) {
  /* Also align to the top on landscape */
  .iv-modal.resources {
    align-items: start;
    padding-top: 12px;
  }
  
  /* Apply the larger padding buffer to the inner wrapper */
  .iv-modal.resources .iv-resource-body {
    padding-bottom: 65vh;
  }
   .iv-modal.resources .iv-resource-actions {
    margin-top: 24px; /* Creates a nice gap above the buttons */
  }
}
/* in style.css */

/* =================================================================== */
/* Header Title - Mobile Portrait Refinement                         */
/* =================================================================== */

@media (max-width: 600px) and (orientation: portrait) {
  .header-title {
    /*
      This is a responsive font size. It will try to be 3.5% of the
      viewport's width, but won't shrink smaller than 0.75rem or grow
      larger than 1rem within this specific media query.
    */
    font-size: clamp(0.75rem, 3.5vw, 1rem);

    /* This forces the four words to stay on a single line */
    white-space: nowrap;
  }
}

/* =================================================================== */
/* STYLES FOR STATIC PAGES (ABOUT, LEGALS, PRIVACY)                  */
/* =================================================================== */

/* Main Content Wrapper for Static Pages */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section (for About Us page) */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 100px 20px;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 77, 107, 0.6);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

/* About Section (two-column panel) */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: #a7d0e3;
  padding: 40px;
  border-radius: 8px;
  color: #002147;
  margin: 60px 0;
}
.about-panel {
  flex: 1 1 0;
}
.about-text {
  flex-grow: 1.8;
  font-size: 1rem;
  line-height: 1.6;
}
.about-text p {
  margin-bottom: 1.5rem;
}
.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.about-image {
  flex-grow: 2.2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Highlight Box & Table Styling (for About Us page) */
.highlight-box {
  margin: 2rem 0;
  padding: 1rem;
  background: #B0D0F0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
table, th, td {
  border: 1px solid #ccc;
}
th, td {
  padding: 0.75rem;
  text-align: left;
}
thead th {
  background-color: #f5f5f5;
}

/* Legal & Privacy Page Styling */
.legal-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
  color: #333;
}
.legal-page h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.legal-page h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.legal-page p,
.legal-page ol,
.legal-page ul {
  margin-bottom: 1rem;
}
.legal-page ol,
.legal-page ul {
  padding-left: 1.25rem;
}
.legal-page ol li,
.legal-page ul li {
  margin-bottom: 0.5rem;
}
.legal-page address {
  font-style: normal;
  margin-top: 1rem;
}

/* Three-Card Navigation Section (for About Us page) */
.navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 60px 0;
}
.nav-card {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-card h3 {
  color: #1e4d6b;
  margin-bottom: 10px;
}
.nav-card p {
  color: #333;
  margin-bottom: 20px;
}

/* Custom Contact Link Button (for About Us page) */
a.contact-cta {
  display: inline-block;
  background-color: #007acc;
  color: #ffffff;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin: 1em 0;
}
a.contact-cta:hover,
a.contact-cta:focus {
  background-color: #005fa3;
  transform: translateY(-1px);
  outline: none;
}
a.contact-cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ================================================= */
/* RESPONSIVE STYLES FOR STATIC PAGES              */
/* ================================================= */

/* Tablet (≤1366px) adjustments */
@media (max-width: 1366px) {
  .hero {
    padding: 80px 20px;
  }
  .headline {
    font-size: 2rem;
  }
  .subheadline {
    font-size: 1.1rem;
  }
  .about {
    flex-direction: column;
    padding: 30px 1rem;
  }
  .navigation {
    flex-wrap: wrap;
  }
  .nav-card {
    flex: 1 1 calc(50% - 10px);
    margin-bottom: 20px;
  }
}

/* Mobile (≤768px) adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
  }
  .headline {
    font-size: 1.75rem;
  }
  .subheadline {
    font-size: 1rem;
  }
  .hero-inner {
    width: 80%;
  }
  .about-panel {
    flex-basis: 100%;
    margin-bottom: 20px;
  }
  .navigation {
    flex-direction: column;
  }
  .nav-card {
    flex-basis: 100%;
    margin-bottom: 20px;
  }
  .legal-page {
    padding: 1rem;
  }
  .legal-page h2 {
    font-size: 1.25rem;
  }
  .legal-page h3 {
    font-size: 1.1rem;
  }
  .table-wrapper {
    margin: 1rem -1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .intro-text {
    font-size: 1.2rem; 
  }
    #introPlayBtn {
    font-size: 1.5rem;      /* Was 2rem */
    padding: 8px 30px;      /* Was 12px 40px */
    border-width: 3px;      /* Was 4px */
  }
}

/* ===== FAQ (collapsible) ===== */
.faq {
  max-width: 700px;          /* mirrors .demo-disclaimer-box width */
  margin: 14px auto 32px;    /* sits neatly under the disclaimer box */
  padding: 0;
}

.faq-panel {
  background: #fff;
  border: 1px solid #d7e3ec;
  border-radius: 14px;
  padding: 0 18px;
  box-shadow: 0 16px 40px rgba(7, 34, 53, 0.08);
}

.faq-panel[open] {
  border-color: #1e4d6b;
  box-shadow: 0 18px 46px rgba(7, 34, 53, 0.12);
}

.faq-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
}

.faq-toggle:focus-visible {
  outline: 2px solid #a7d0e3;
  outline-offset: 4px;
  border-radius: 10px;
}

.faq-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e4d6b;
}

.faq-toggle-icon {
  width: 14px;
  height: 14px;
  border-right: 2px solid #1e4d6b;
  border-bottom: 2px solid #1e4d6b;
  transform: rotate(-45deg);
  transition: transform .25s ease;
  flex: 0 0 14px;
}

.faq-panel[open] .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-questions {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
  border-top: 1px solid #e0e9ef;
}

.faq-panel[open] .faq-questions {
  grid-template-rows: 1fr;
}

.faq-questions-inner {
  overflow: hidden;
  padding: 16px 0 18px;
}

/* Card-like container per item (echoes disclaimer card aesthetics) */
.faq-item {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 8px 0;
  overflow: hidden;          /* for smooth content transitions */
}

.faq-toggle::-webkit-details-marker,
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary {
  list-style: none;          /* remove default triangle */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #1e4d6b;
  user-select: none;
}

/* Accessible focus */
.faq-summary:focus {
  outline: 2px solid #a7d0e3; /* subtle focus ring matching footer link colour */
  outline-offset: 2px;
}

/* Chevron built with CSS so no image needed */
.faq-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid #1e4d6b;
  border-bottom: 2px solid #1e4d6b;
  transform: rotate(-45deg);
  transition: transform .25s ease;
  flex: 0 0 12px;
}

/* Rotate chevron when open */
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

/* Content area */
.faq-content {
  padding: 0 14px 12px 14px;
  color: #333;
  line-height: 1.55;
  font-size: 0.98rem;
}

/* Smooth open/close animation */
.faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq-item[open] .faq-content {
  grid-template-rows: 1fr;
}
.faq-item .faq-content > * {
  overflow: hidden;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .faq-panel { padding: 0 14px; }
  .faq-toggle { padding: 16px 0; }
  .faq-title { font-size: 0.95rem; }
  .faq-summary { padding: 12px; }
  .faq-content { padding: 0 12px 12px 12px; }
}

/* Transcript drawer */
.transcript { max-width:700px; margin:14px auto 28px; }
.transcript-summary {
  list-style:none; display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px; font-weight:700; color:#1e4d6b; background:#f7f7f7; border:1px solid #e0e0e0; border-radius:8px; cursor:pointer;
}
.transcript .chev { width:12px; height:12px; border-right:2px solid #1e4d6b; border-bottom:2px solid #1e4d6b; transform:rotate(-45deg); transition:.25s; }
.transcript details[open] .chev { transform:rotate(45deg); }
.transcript-body { padding:12px 14px; border:1px solid #e0e0e0; border-top:none; border-radius:0 0 8px 8px; background:#fff; line-height:1.6; }
.transcript-body p { margin:0 0 10px; }
