/* article.css (articles + interview hub)
   Brand: dark blue #091540, gold accents
   No external fonts, no external libraries
*/

/* ---------- Design tokens ---------- */
:root{
  --cl-navy: #091540;
  --cl-gold: #FFD700;

  --bg: #f6f7fb;
  --surface: #ffffff;

  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;

  --link: #0b2a7a;
  --link-hover: #091540;

  --radius: 14px;

  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 10px 30px rgba(2, 6, 23, 0.10);

  --content-max: 980px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --focus: 0 0 0 3px rgba(255, 215, 0, 0.45);

  /* Hub */
  --hub-max: 2400px;
  --hub-padding: 24px;
  --hub-gap: 18px;

  /* Buttons */
  --btn-radius: 12px;

  --btn-article-bg: rgba(255, 215, 0, 0.18);
  --btn-article-border: rgba(255, 215, 0, 0.55);
  --btn-article-text: var(--cl-navy);

  --btn-yt-bg: #ffffff;
  --btn-yt-border: rgba(2, 6, 23, 0.18);
  --btn-yt-text: var(--cl-navy);
}

/* ---------- Base ---------- */
*,
*::before,
*::after{ box-sizing: border-box; }

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.1px;
}

img, picture, video, canvas, svg{
  display: block;
  max-width: 100%;
  height: auto;
}

a{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover{
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

::selection{
  background: rgba(255, 215, 0, 0.35);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Article layout (center column) ---------- */
header,
main,
footer,
section,
article,
nav,
video,
blockquote,
h2, h3, h4, h5, h6,
p, ul, ol, dl,
table,
figure,
hr{
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

header{ margin-top: var(--space-5); }
h2, h3, h4, h5, h6{ margin-top: var(--space-6); }
p, ul, ol, dl, table, figure, video, blockquote{ margin-top: var(--space-4); }
hr{ margin: var(--space-6) auto; }

/* ---------- Header ---------- */
header{
  background: linear-gradient(180deg, var(--cl-navy) 0%, #071032 100%);
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}

header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,215,0,0.0), rgba(255,215,0,0.9), rgba(255,215,0,0.0));
}

header a{
  color: rgba(255, 215, 0, 0.95); /* gold */
  text-decoration: underline;
  text-underline-offset: 3px;
}

header a:hover{
  color: #ffffff; /* stays visible on dark blue */
}

header a:visited{
  color: rgba(255, 215, 0, 0.95);
}

header picture img{
  margin: 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

header h1{
  margin: var(--space-4) 0 var(--space-2);
  font-size: clamp(26px, 2.3vw, 38px);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

header > p{
  margin: 0 0 var(--space-4);
  color: rgba(255,255,255,0.88);
  max-width: 70ch;
}

header nav{
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.5;
}

header nav a{
  color: rgba(255, 215, 0, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

header nav a:hover{
  color: #ffffff;
}

/* ---------- Video ---------- */
video{
  background: #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(2, 6, 23, 0.10);
}

/* ---------- Typography ---------- */
h2{
  font-size: clamp(20px, 1.5vw, 28px);
  line-height: 1.25;
  margin-bottom: var(--space-2);
  padding-top: var(--space-2);
  scroll-margin-top: 18px;
}

h3{
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.3;
}

p{
  max-width: 75ch;
  color: var(--text);
}

p + p{ margin-top: var(--space-3); }

strong{
  color: var(--cl-navy);
  font-weight: 700;
}

em{
  font-style: italic;
  color: #1f2a44;
}

code, pre{
  font-family: var(--font-mono);
  font-size: 0.95em;
}

pre{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  overflow: auto;
  box-shadow: var(--shadow-sm);
}

code{
  background: rgba(2, 6, 23, 0.06);
  border: 1px solid rgba(2, 6, 23, 0.10);
  padding: 0 0.35em;
  border-radius: 8px;
}

ul, ol{
  padding-left: 1.2em;
  max-width: 75ch;
}

li{ margin-top: 0.35em; }

/* ---------- Blockquote ---------- */
blockquote{
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid rgba(255, 215, 0, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  max-width: 75ch;
  color: var(--text);
}

blockquote p{
  margin: 0;
  max-width: none;
}

/* ---------- Tables ---------- */
table{
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

thead th{
  background: rgba(9, 21, 64, 0.06);
  color: var(--cl-navy);
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

tbody td, tfoot td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child td{ border-bottom: 0; }

tfoot td{
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.02);
  font-weight: 700;
}

tbody tr:nth-child(even) td{
  background: rgba(2, 6, 23, 0.015);
}

@media (max-width: 720px){
  table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- Horizontal rule ---------- */
hr{
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(2,6,23,0.0), rgba(2,6,23,0.18), rgba(2,6,23,0.0));
}

/* ---------- Footer ---------- */
footer{
  margin-bottom: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

footer p{
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 14px;
}

footer address{
  font-style: normal;
  margin-top: var(--space-3);
  color: var(--muted);
}

footer a{
  color: var(--cl-navy);
}

footer a:hover{
  color: #000000;
}

button{
  font: inherit;
  background: var(--cl-navy);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.20);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.26);
  background: #071032;
}

button:active{
  transform: translateY(0);
}

/* ---------- Hub page overrides ---------- */
body.hub-page{
  background: var(--bg);
}

/* Full width header, but content centered inside */
header.hub-header{
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;

  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

header.hub-header::after{ display: none; }

/* The actual hero box wrapper */
.hub-header-inner{
  width: 100%;
  max-width: var(--hub-max);
  margin: var(--space-5) auto 0;
  padding: 0 var(--hub-padding);
}

/* Blue hero box stays full width (up to hub-max) */
.hub-hero{
  background: linear-gradient(180deg, var(--cl-navy) 0%, #071032 100%);
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;

  /* subtitle centered like h1 and breadcrumb */
  text-align: center;
}

.hub-hero::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,215,0,0.0), rgba(255,215,0,0.9), rgba(255,215,0,0.0));
}

/* logo inside blue area */
.hub-logo-link{
  display: block;
  width: fit-content;
  margin: 0 auto var(--space-4);
  text-decoration: none;
}

/* headline centered */
.hub-hero h1{
  margin: 0 0 var(--space-3);
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1.15;
  text-align: center;
}

/* subtitle centered */
.hub-hero .subtitle{
  margin: 0;
  color: rgba(255,255,255,0.88);
  max-width: 110ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hub-hero .subtitle a{
  color: rgba(255, 215, 0, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-hero .subtitle a:hover{
  color: #ffffff;
}

.hub-breadcrumb{
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  text-align: center;

  max-width: 110ch;
  margin-left: auto;
  margin-right: auto;
}

.hub-breadcrumb a{
  color: rgba(255, 215, 0, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-breadcrumb a:hover{
  color: #ffffff;
}

/* Controls: centered, clean, responsive */
#controls.hub-controls{
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hub-controls-grid{
  width: 100%;
  max-width: var(--hub-max);
  margin: var(--space-5) auto 0;
  padding: 0 var(--hub-padding);

  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-4);
  align-items: end;
}

@media (max-width: 980px){
  .hub-controls-grid{
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.hub-field{
  display: grid;
  gap: var(--space-2);
}

.hub-label{
  font-weight: 700;
  color: var(--cl-navy);
  font-size: 14px;
}

#searchInput,
#sortSelect{
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.hub-count{
  display: inline-flex;
  justify-content: flex-end;
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 10px;
}

@media (max-width: 980px){
  .hub-count{
    justify-content: flex-start;
    padding-bottom: 0;
  }
}

/* Error */
#errorMessage.hub-error{
  display: none;
  width: 100%;
  max-width: var(--hub-max);
  margin: var(--space-4) auto 0;
  padding: 12px var(--hub-padding);
  border-radius: 12px;
}

/* Grid */
#videoContainer.hub-grid{
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

#videoContainer.hub-grid{
  width: 100%;
  max-width: var(--hub-max);
  margin: var(--space-5) auto var(--space-6);
  padding: 0 var(--hub-padding);

  display: grid;
  gap: var(--hub-gap);
  grid-template-columns: repeat(auto-fill, minmax(clamp(290px, 18vw, 430px), 1fr));
}

@media (max-width: 560px){
  #videoContainer.hub-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Cards */
.video-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.video-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 21, 64, 0.22);
}

.video-thumb-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-image-container{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.img-placeholder{
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: placeholderShimmer 1.4s ease infinite;
}

@keyframes placeholderShimmer{
  0% { background-position: 0% 0%; }
  100% { background-position: -135% 0%; }
}

.video-thumbnail{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0001);
  transition: transform 160ms ease;
}

.video-card:hover .video-thumbnail{
  transform: scale(1.03);
}

.video-overlay{
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
}

.video-details{
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.video-title-link{
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.28;
}

.video-title-link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-actions{
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  line-height: 1;
  user-select: none;
}

.btn-primary{
  background: var(--btn-article-bg);
  color: var(--btn-article-text);
  border-color: var(--btn-article-border);
}

.btn-primary:hover{
  background: rgba(255, 215, 0, 0.26);
  color: var(--btn-article-text);
}

.btn-secondary{
  background: var(--btn-yt-bg);
  color: var(--btn-yt-text);
  border-color: rgba(2, 6, 23, 0.18);
}

.btn-secondary::before{
  content: "▶";
  font-size: 12px;
  opacity: 0.85;
  transform: translateY(-0.5px);
}

.btn-secondary:hover{
  background: rgba(9, 21, 64, 0.06);
  color: var(--btn-yt-text);
}

.btn-disabled{
  opacity: 0.5;
  pointer-events: none;
}

/* Hub footer should be full width but centered */
footer.hub-footer{
  max-width: var(--hub-max);
  margin-left: auto;
  margin-right: auto;
}

/* If you also use the interview hub hero header */
.hub-hero a{
  color: rgba(255, 215, 0, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-hero a:hover{
  color: #ffffff;
}

.hub-hero a:visited{
  color: rgba(255, 215, 0, 0.95);
}

/* ---------- Print ---------- */
@media print{
  :root{ --bg: #ffffff; }
  body{ background: #ffffff; color: #000000; }
  header, footer, figure, table, pre, video, blockquote{ box-shadow: none !important; }
  video{ display: none; }
  a{ color: #000000; text-decoration: underline; }
}

/* ---------- Promo / Offer Hub Additions ---------- */

/* The Grid Container */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

/* Mobile tweak for grid to ensure 1 column on very small screens */
@media (max-width: 480px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
}

/* The Offer Card */
.offer-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 21, 64, 0.22);
}

/* Image Area */
.offer-image-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.offer-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.offer-card:hover .offer-image-link img {
  transform: scale(1.03);
}

/* Content Area */
.offer-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.offer-title {
  margin: 0 0 var(--space-3);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.offer-title a {
  text-decoration: none;
  color: var(--cl-navy);
}

.offer-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--link);
}

/* CTA Button */
.btn-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--cl-gold);
  color: var(--cl-navy);
  font-weight: 800;
  padding: 12px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  margin-bottom: var(--space-3);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-cta:hover {
  background: #ffdb1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
  color: var(--cl-navy);
  text-decoration: none;
}

/* Details Accordion */
.offer-details {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}

.offer-details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.offer-details summary::-webkit-details-marker {
  display: none;
}

.offer-details summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.1em;
  margin-left: auto;
}

.offer-details[open] summary::after {
  content: "-";
}

.offer-details summary:hover {
  color: var(--cl-navy);
}

.offer-details p {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  animation: fadeIn 0.3s ease;
}

.offer-details strong {
  color: var(--cl-navy);
  background: rgba(255, 215, 0, 0.2);
  padding: 0 4px;
  border-radius: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Breadcrumb Fix ---------- */
.hub-breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4);
}

.hub-breadcrumb .separator { opacity: 0.5; }

.hub-breadcrumb a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hub-breadcrumb a:hover {
  color: var(--cl-gold);
  border-bottom-color: var(--cl-gold);
}

.hub-breadcrumb .current {
  color: #fff;
  font-weight: 700;
}

/* article.css additions for homepage carousel
   Paste this near the end of article.css (after promo additions is fine)
*/

/* ---------- Home page layout overrides ---------- */
body.home-page main,
body.home-page section,
body.home-page footer{
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Keep a consistent centered container */
.home-wrap{
  width: 100%;
  max-width: var(--hub-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--hub-padding);
  padding-right: var(--hub-padding);
}

.home-main{
  padding-bottom: var(--space-6);
}

/* Hero tweaks for homepage */
.home-hero{
  padding: var(--space-6);
}

.home-hero-actions{
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.home-hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.18);
}

.home-hero-btn:hover{
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  text-decoration: none;
}

.home-hero-btn-primary{
  background: rgba(255, 215, 0, 0.20);
  border-color: rgba(255, 215, 0, 0.55);
  color: #ffffff;
}

.home-hero-btn-primary:hover{
  background: rgba(255, 215, 0, 0.28);
}

/* ---------- Sections ---------- */
.home-section{
  margin-top: var(--space-6);
}

.home-sectionHead{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
}

@media (max-width: 720px){
  .home-sectionHead{
    flex-direction: column;
    align-items: flex-start;
  }
}

.home-sectionText h2{
  margin: 0;
  padding-top: 0;
}

.home-sectionText p{
  margin: var(--space-2) 0 0;
  color: var(--muted);
  max-width: 80ch;
}

.home-more{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(2, 6, 23, 0.14);
  box-shadow: var(--shadow-sm);
  color: var(--cl-navy);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}

.home-more:hover{
  background: rgba(9, 21, 64, 0.06);
  color: var(--cl-navy);
  text-decoration: none;
}

/* ---------- Carousel row ---------- */
.home-rowWrap{
  position: relative;
  margin-top: var(--space-4);
}

.home-row{
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: 10px 6px 14px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 6px;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.home-row:focus-visible{
  box-shadow: var(--focus);
}

.home-row::-webkit-scrollbar{
  height: 10px;
}

.home-row::-webkit-scrollbar-thumb{
  background: rgba(2, 6, 23, 0.16);
  border-radius: 999px;
}

.home-row::-webkit-scrollbar-track{
  background: rgba(2, 6, 23, 0.06);
  border-radius: 999px;
}

.home-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(2, 6, 23, 0.14);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-md);
  color: var(--cl-navy);
  cursor: pointer;
  z-index: 2;
}

.home-arrow:hover{
  background: #ffffff;
}

.home-arrow:disabled{
  opacity: 0.45;
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.home-arrow-left{ left: -6px; }
.home-arrow-right{ right: -6px; }

@media (max-width: 720px){
  .home-arrow{
    display: none;
  }
}

/* ---------- Cards ---------- */
.home-card{
  flex: 0 0 auto;
  width: clamp(240px, 60vw, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.home-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 21, 64, 0.22);
}

.home-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.home-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0001);
  transition: transform 160ms ease;
}

.home-card:hover .home-thumb img{
  transform: scale(1.03);
}

.home-play{
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.14);
}

.home-triangle{
  width: 0;
  height: 0;
  border-left: 10px solid #ffffff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0.92;
}

.home-meta{
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.home-meta h3{
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.home-sub{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.home-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

/* tags as labels, not buttons */
.home-tag{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;

  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(2, 6, 23, 0.04);
  color: var(--muted);

  font-weight: 700;
  font-size: 12px;

  cursor: default;
  user-select: none;
}

.home-tag-gold{
  border-color: rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.16);
  color: var(--cl-navy);
}

/* ---------- Footer for homepage ---------- */
footer.home-footer{
  max-width: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.home-footer .home-wrap{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.home-footer p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.home-footer-nav{
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-footer-nav a{
  color: var(--cl-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
  font-size: 14px;
}

.home-footer-nav a:hover{
  color: #000000;
}

.home-footer-sep{
  opacity: 0.35;
}

/* ---------- Home hero mobile dropdown ---------- */
.home-hero-actions-desktop{
  display: flex;
}

.home-hero-menu{
  display: none;
  width: 100%;
  max-width: 560px;
  margin: var(--space-5) auto 0;
}

@media (max-width: 720px){
  .home-hero-actions-desktop{
    display: none;
  }
  .home-hero-menu{
    display: block;
  }
}

/* summary button */
.home-hero-menu-summary{
  list-style: none;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;

  color: #ffffff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.18);
}

.home-hero-menu-summary::-webkit-details-marker{
  display: none;
}

/* (kept for backwards compatibility if old markup is still used) */
.home-hero-menu-icon{
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;

  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.45);
  font-weight: 900;
  line-height: 1;
}

.home-hero-menu[open] .home-hero-menu-icon{
  content: "";
}

/* panel */
.home-hero-menu-panel{
  margin-top: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  overflow: hidden;
}

.home-hero-menu-link{
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.home-hero-menu-link:first-child{
  border-top: 0;
}

.home-hero-menu-link:hover{
  background: rgba(255, 215, 0, 0.12);
  color: #ffffff;
  text-decoration: none;
}

/* change + to - when open */
.home-hero-menu[open] .home-hero-menu-icon{
  transform: translateY(-0.5px);
}

.home-hero-menu[open] .home-hero-menu-icon::before{
  content: "-";
}

.home-hero-menu-icon::before{
  content: "+";
}

/* ---------- Homepage (carousels) ---------- */
body.home-page{
  background: var(--bg);
}

.home-main{
  width: 100%;
  max-width: var(--hub-max);
  margin: var(--space-5) auto var(--space-6);
  padding: 0 var(--hub-padding);
}

.home-section{
  margin-top: var(--space-6);
}

.home-section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.home-section-title{
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.2;
  font-weight: 900;
  color: var(--cl-navy);
  letter-spacing: 0.2px;
}

.home-more-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  background: var(--cl-gold);
  color: var(--cl-navy);
  border: 1px solid rgba(2, 6, 23, 0.10);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.home-more-btn:hover{
  transform: translateY(-1px);
  background: #ffdb1a;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.24);
}

.home-row-wrap{
  position: relative;
}

.home-row{
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: 4px 44px; /* space for arrows */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px){
  .home-row{
    padding: 4px 6px; /* no arrows on small screens */
  }
}

.home-card{
  flex: 0 0 auto;
  width: clamp(260px, 24vw, 390px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.home-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 21, 64, 0.22);
}

.home-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.home-thumb img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0001);
  transition: transform 160ms ease;
}

.home-card:hover .home-thumb img{
  transform: scale(1.03);
}

.home-play{
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.78);
  color: #ffffff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-triangle{
  width: 0;
  height: 0;
  border-left: 8px solid #ffffff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0.9;
}

.home-meta{
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.home-card-title{
  font-weight: 900;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

/* description under title */
.home-card-desc{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.home-tags{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-tag{
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;

  background: rgba(2, 6, 23, 0.04);
  color: var(--muted);
  border: 1px solid rgba(2, 6, 23, 0.10);

  cursor: default;
  user-select: none;
}

.home-tag.gold{
  background: rgba(255, 215, 0, 0.16);
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--cl-navy);
}

/* CTA card at the end */
.home-card-cta{
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(9,21,64,0.04), rgba(9,21,64,0.02));
}

.home-cta-inner{
  padding: 22px;
  text-align: center;
}

.home-cta-title{
  font-weight: 1000;
  font-size: 18px;
  color: var(--cl-navy);
}

.home-cta-sub{
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.home-cta-btn{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--cl-gold);
  color: var(--cl-navy);
  font-weight: 900;
  border: 1px solid rgba(2, 6, 23, 0.10);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.18);
}

.home-row-wrap.at-end .home-card-cta{
  border-color: rgba(255, 215, 0, 0.70);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.22), var(--shadow-md);
}

/* Arrows */
.home-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  background: rgba(255,255,255,0.92);
  color: var(--cl-navy);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.home-arrow.left{ left: 6px; }
.home-arrow.right{ right: 6px; }

.home-arrow:disabled{
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 720px){
  .home-arrow{ display: none; }
}

/* ---------- Home hero links ---------- */
.home-hero-links-desktop{
  margin-top: var(--space-4);
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;

  background: #4066cc;
  border: 1px solid #4066cc;
  color: #ffffff;
}

.home-pill:hover{
  background: #ffffff;
  color: var(--cl-navy);
}

.home-hero-menu{
  display: none;
  margin-top: var(--space-4);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.home-hero-menu summary{
  list-style: none;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: #ffffff;
  font-weight: 900;
}

.home-hero-menu summary::-webkit-details-marker{
  display: none;
}

/* FIX: arrow icon that cannot look like X (pure border chevron) */
.home-hero-menu summary .home-hero-menu-icon{
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255,255,255,0.95);
  border-bottom: 2px solid rgba(255,255,255,0.95);
  border-radius: 1px;
  background: transparent;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* remove any previous pseudo drawing that could show as X */
.home-hero-menu summary .home-hero-menu-icon::before,
.home-hero-menu summary .home-hero-menu-icon::after{
  content: none !important;
}

.home-hero-menu[open] summary .home-hero-menu-icon{
  transform: rotate(-135deg);
}

.home-hero-menu-panel{
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(2,6,23,0.35);
}

.home-hero-menu-panel a{
  display: block;
  padding: 12px 14px;
  color: #ffffff;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-weight: 900;
}

.home-hero-menu-panel a:first-child{
  border-top: 0;
}

.home-hero-menu-panel a:hover{
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

@media (max-width: 720px){
  .home-hero-links-desktop{ display: none; }
  .home-hero-menu{ display: block; }
}

/* ---------- Footer (homepage) ---------- */
.home-footer{
  max-width: none;
  width: 100%;
  margin: var(--space-6) 0 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.home-footer-inner{
  width: 100%;
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: var(--space-6) var(--hub-padding);
}

.home-footer-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-5);
}

.home-footer-col{
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-footer-title{
  font-weight: 1000;
  color: var(--cl-navy);
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.home-footer a{
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
}

.home-footer a:hover{
  color: var(--cl-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-footer-bottom{
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* FIX: header link styles were overriding pill text color (gold).
   This overrides both normal and visited states for the pills. */
header a.home-pill,
header a.home-pill:visited{
  color: #ffffff;
  text-decoration: none;
}
header a.home-pill:hover{
  color: #ffffff;
  text-decoration: none;
}

@media (min-width: 721px){
  .home-pill{
    background: #4066cc;
    color: #ffffff;
    border-color: rgba(255,255,255,0.25);
  }

  .home-pill:hover{
    background: #2f55b8;
    color: #ffffff;
    text-decoration: none;
  }
}
