/* Thai Law Explained - shared stylesheet (used by English and, later, Thai pages) */

:root {
  --ivory: #F7F5F0;
  --white: #FFFFFF;
  --charcoal: #202020;
  --navy: #18283D;
  --gold: #B69A68;
  --gold-dark: #8f7647; /* darker gold for small text on ivory (contrast) */
  --radius: 10px;
  --max: 1160px;
  --shadow: 0 2px 14px rgba(24, 40, 61, .08);
}

/* Thai pages only: Noto Sans Thai is added by the Thai page's own <head>, never loaded on English pages */
:lang(th) body { font-family: "Noto Sans Thai", system-ui, sans-serif; line-height: 1.75; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.eyebrow { color: var(--gold-dark); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: .5rem; }
.section--navy .eyebrow, .hero .eyebrow { color: var(--gold); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* Placeholder marker: visible until real content is supplied */
.ph { background: rgba(182, 154, 104, .2); border-radius: 4px; padding: 0 .25em; }

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #c7ab79; }
.btn--outline { border-color: var(--gold); color: var(--white); }
.btn--outline:hover { background: var(--gold); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #22395a; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }

/* Header */
.site-header { background: var(--ivory); border-bottom: 1px solid rgba(24, 40, 61, .12); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 400px) { .header-inner { gap: .5rem; } .brand { font-size: 1.1rem; } .header-right { gap: .6rem; } } /* brand + language + Menu must fit 375px wide phones */
@media (max-width: 340px) { .brand { font-size: 1rem; } .header-right { gap: .5rem; } .nav-toggle { padding: .4rem .6rem; } } /* 320px phones, including the Thai "เมนู" button */
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 8px; padding: .4rem .75rem; font-size: 1rem; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.main-nav a { text-decoration: none; color: var(--charcoal); font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--gold); color: var(--navy); }
.lang-switch { font-size: .9rem; color: var(--charcoal); white-space: nowrap; }
.lang-switch [aria-current="true"] { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); }
.lang-switch a { font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); } /* link to the other language */
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--gold-dark); }

/* Hero */
.hero { background: var(--navy); color: var(--ivory); padding: clamp(3rem, 8vw, 6rem) 0; overflow: hidden; }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.01em; max-width: 13em; margin-bottom: .5em; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; color: #dfe3ea; margin-bottom: 0; }
.hero .btn-row { margin-top: 2rem; }

/* Hero image area: square (1:1) logo, centred, never cropped or stretched. */
.hero-photo { margin: 0 auto; width: 280px; max-width: 100%; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
/* Home headline: two nowrap rows (~13.5em wide for the longer one). Below 900px the single column sets the size;
   from 900px the text column is whatever the logo leaves, so the headline can never push the logo out of the container. */
.hero h1 .hl { display: block; white-space: nowrap; }
.hero--home h1 { max-width: none; font-size: min(3rem, calc((100vw - 2.5rem) / 13.6)); }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .hero-photo { width: 280px; margin-right: 1.5rem; }
  .hero--home h1 { font-size: calc((100vw - 2.5rem - 280px - 1.5rem - 3rem) / 13.6); }
}
@media (min-width: 1200px) {
  .hero-photo { width: 320px; margin-right: 2rem; }
  .hero--home h1 { font-size: 3.6rem; } /* original desktop size */
}

/* Audience strip */
.section-head--wide { max-width: none; } /* lets this longer heading sit on one line on wide screens */
.section-head--wide h2 { text-wrap: balance; } /* and wrap evenly (no lone last word) where it must break */
.audience { display: grid; gap: 2.25rem 1.75rem; grid-template-columns: 1fr; }
.audience-item { display: flex; flex-direction: column; }
.audience-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.625rem; } /* 26px of space between image and text */
.audience-text { flex: 1; border-left: 3px solid var(--gold); padding-left: 1rem; }
.audience h3 { margin-bottom: .7rem; } /* ~11px before the description */
@media (min-width: 700px) { .audience { grid-template-columns: repeat(2, 1fr); } }           /* tablet: 2x2 */
@media (min-width: 1000px) { .audience { grid-template-columns: repeat(4, 1fr); gap: 2.25rem 1.5rem; } .audience h3 { min-height: 2.4em; } } /* desktop: one row; two-line heading space keeps descriptions aligned */

/* Cards (reusable: add or remove cards freely, the grid adapts) */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(24, 40, 61, .1);
  border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.6rem; text-decoration: none;
  color: var(--charcoal); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(24, 40, 61, .14); }
.card h3 { margin-bottom: .4em; }
.card p { flex: 1; }
.card .more { color: var(--gold-dark); font-weight: 600; }

/* How It Works: three numbered steps (stacked on mobile, three columns from 768px) */
.section-sub { font-size: 1.1rem; color: #444; margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.step {
  background: var(--white); border: 1px solid #E6DFD0; border-top: 5px solid var(--gold); /* gold strip follows the rounded corners */
  border-radius: 12px; padding: 2rem 1.75rem 2.25rem; box-shadow: 0 2px 10px rgba(24, 40, 61, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-num {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: 8px;
  background: var(--navy); color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; line-height: 1;
  font-variant-numeric: lining-nums;
}
.step h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.step h3::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gold); margin-bottom: 1.1rem; } /* short gold divider */
.step p { margin-bottom: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (hover: hover) { .step:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(24, 40, 61, .12); } }
@media (prefers-reduced-motion: reduce) { .step { transition: none; } .step:hover { transform: none; } }

/* About teaser */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.about-label { font-family: inherit; margin-bottom: .6rem; }
.about { padding: clamp(2.5rem, 5vw, 3.75rem) 0; } /* compact: less vertical space than other sections */
.about-headline { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.2; color: var(--navy); margin: 0 0 1.25rem; }
.about-headline::after { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gold); margin-top: .85rem; }
.about-text p:not(.about-headline) { max-width: 38em; font-size: 1.15rem; line-height: 1.7; margin-bottom: 1rem; }
.about-text .btn { margin-top: .5rem; }
.about-figure { margin: 0; max-width: 300px; } /* small on phones */
@media (min-width: 768px) {
  .about-figure { max-width: none; }
  .about .split { grid-template-columns: 1fr 340px; gap: 2.5rem; }
}
@media (min-width: 1000px) { .about .split { grid-template-columns: 1fr 400px; gap: 3.5rem; } }
.about-figure--video { --vw: 340px; max-width: var(--vw); margin-inline: auto; } /* portrait (9:16) video: capped width, centred in its column */
.about-figure video { display: block; max-width: 100%; margin-inline: auto; aspect-ratio: 9 / 16; object-fit: contain; background: var(--navy); border-radius: var(--radius);
  width: 100%; height: auto; }
/* Never taller than the window (minus the sticky header), so the whole 9:16 frame can be on screen at once; width follows the ratio. */
.about-figure video { width: auto; height: min(calc(min(100vw - 2.5rem, var(--vw, 340px)) * 16 / 9), calc(100svh - 9rem)); }
.about-figure svg, .about-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Final CTA */
.cta { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.cta .container { max-width: 1000px; }
.cta h2::before { content: ""; display: block; width: 3rem; height: 2px; background: var(--gold); margin: 0 auto 1.5rem; } /* gold accent */
.cta h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.15; margin-bottom: 1.25rem; text-wrap: balance; } /* one line on desktop; balanced wrap on phones */
.cta p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; color: #dfe3ea; max-width: 40em; margin: 0 auto; text-wrap: balance; }
.cta .btn-row { justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--charcoal); color: #cfcfcf; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #e6e6e6; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; font-family: inherit; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }
/* Footer: logo | pages | contact and social media */
.footer-grid { align-items: start; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: .8fr 1fr 1.4fr; gap: 2.5rem; } }
/* QR-code image (1400 x 1800, portrait): shown whole at its own aspect ratio, centred in its column */
.footer-logo { display: block; line-height: 0; width: min(100%, 200px); margin-inline: auto; }   /* mobile */
.footer-logo img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 1800; }
@media (min-width: 768px) { .footer-logo { width: min(100%, 250px); } }                     /* tablet and desktop */
.site-footer li a { overflow-wrap: anywhere; }
.footer-social-title { margin-top: 1.25rem; }
@media (max-width: 767px) { /* larger touch targets for footer links on phones; spacing between items is kept by the padding */
  .footer-grid li { margin-bottom: 0; }
  .footer-grid li a { display: inline-block; padding: .55rem 0; }
  .footer-grid .footer-social a { display: inline-flex; }
}
.footer-social a { display: inline-flex; align-items: center; gap: .6rem; color: #e6e6e6; }
.footer-social svg { flex: none; width: 20px; height: 20px; fill: currentColor; color: #D9BD82; } /* gold icons, readable on the dark footer */
.footer-social a:hover, .footer-social a:focus-visible { color: #D9BD82; }
.footer-social a:hover svg, .footer-social a:focus-visible svg { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 1rem; font-size: .85rem; }

/* Tablet and up */
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* Mobile / tablet navigation: collapses below 1100px because there are 7 links */
@media (max-width: 1099px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid rgba(24, 40, 61, .12); padding: .75rem 1.25rem 1.25rem; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { display: block; padding: .6rem 0; font-size: 1.05rem; }
  .header-right { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* ==========================================================================
   Scroll-morph services section (activated by js/morph.js via .morph-on).
   Without JS, or with reduced motion, the plain .cards grid above is used.
   ========================================================================== */
.morph { --morph-top: 72px; --cw: 250px; --ch: 330px; --art: 120px; } /* --cw/--ch/--art are set by js/morph.js */
.morph-cue { display: none; }
/* Service cards: 16:9 photo on top, text below (same in the plain grid and in the morph layout) */
.morph-cards .card { padding: 0; overflow: hidden; }
.card-art { display: block; flex: none; aspect-ratio: 16 / 9; overflow: hidden; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.morph-cards .card-body { display: flex; flex-direction: column; flex: 1; padding: 2.1rem 1.4rem 1.5rem; }

.morph-on.section { padding: 0; }
.morph-on .morph-track { height: 300vh; }
.morph-on .morph-stage {
  position: sticky; top: var(--morph-top); overflow: hidden;
  height: calc(100vh - var(--morph-top));
  height: calc(100svh - var(--morph-top));
}
.morph-on .morph-head { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding-top: 1.5rem; pointer-events: none; }
.morph-on .morph-head .section-head { margin: 0 auto; text-align: center; }
.morph-on .morph-head h2 { margin-bottom: 0; }
.morph-on .morph-cue {
  display: block; position: absolute; left: 0; right: 0; bottom: 1.5rem; margin: 0; text-align: center;
  font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); pointer-events: none;
}
.morph-on .morph-cards { position: absolute; inset: 0; display: block; width: 100%; max-width: none; }

.morph-on .card {
  position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  padding: 0; overflow: hidden; will-change: transform, opacity;
  transition: box-shadow .2s, translate .2s; /* JS owns transform; lift uses the separate translate property */
}
.morph-on .card:hover, .morph-on .card:focus-visible { translate: 0 -6px; }
.morph-on:not(.is-settled) .card { pointer-events: none; } /* no accidental clicks while cards are moving; keyboard still works */
/* Service-card body colours (card body under the image only). Light text on the dark three; navy text on gold. */
.morph-cards .card:nth-child(1) .card-body { background: #344F70; }
.morph-cards .card:nth-child(2) .card-body { background: #C5A04B; }
.morph-cards .card:nth-child(3) .card-body { background: #496B59; }
.morph-cards .card:nth-child(4) .card-body { background: #936477; }
.morph-cards .card:not(:nth-child(2)) .card-body h3,
.morph-cards .card:not(:nth-child(2)) .card-body p,
.morph-cards .card:not(:nth-child(2)) .card-body .more { color: var(--ivory); }
/* Dusty Plum is the lightest of the dark three: pure white keeps body text above 4.5:1 */
.morph-cards .card:nth-child(4) .card-body h3,
.morph-cards .card:nth-child(4) .card-body p,
.morph-cards .card:nth-child(4) .card-body .more { color: #fff; }

.morph-cards .card:nth-child(2) .card-body h3,
.morph-cards .card:nth-child(2) .card-body p,
.morph-cards .card:nth-child(2) .card-body .more { color: var(--navy); }
.art-navy { background: var(--navy); }
.art-gold { background: var(--gold); }
.art-ivory { background: var(--ivory); border-bottom: 1px solid rgba(24, 40, 61, .1); }
.art-charcoal { background: var(--charcoal); }

.morph-on .card-body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 1.9rem 1.1rem 1.1rem; }
.morph-on .card h3 { font-size: 1.1rem; }
.morph-on .card p { font-size: .9rem; margin-bottom: .6rem; } /* never clamped: JS sizes every card to its full content */

@media (max-width: 767px) {
  .morph-on .morph-track { height: 220vh; }
  .morph-on .card-body { padding: 1.5rem .75rem .8rem; }
  .morph-on .card h3 { font-size: .98rem; margin-bottom: .3em; }
  .morph-on .card p { font-size: .78rem; margin-bottom: .4rem; }
  .morph-on .card .more { font-size: .85rem; }
  .morph-compact .card-body { padding: 1.25rem .65rem .6rem; }
  .morph-compact .card h3 { font-size: .9rem; }
  .morph-compact .card p { font-size: .72rem; line-height: 1.45; margin-bottom: .3rem; }
  .morph-compact .card .more { font-size: .8rem; }
}
/* Link line pointing to the Payment, Cancellation & Refund Policy page */
.policy-more { margin: 1.5rem 0 0; font-size: 1rem; }

/* Inner pages: compact title band and readable text column (About Us) */
.hero--page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero--page h1 { margin-bottom: 0; max-width: none; }
.prose-section { padding: clamp(1.75rem, 4vw, 3rem) 0; } /* compact content block */
.prose { max-width: none; } /* full content width; the container supplies the side margins */
.prose p { font-size: 1.125rem; line-height: 1.7; margin-bottom: 1rem; }
.prose p:first-child { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--navy); }
.prose p:last-child { margin-bottom: 0; padding-left: 1.25rem; border-left: 3px solid var(--gold); color: var(--navy); } /* closing goal statement */

/* ==========================================================================
   Interactive image accordion (videos.html, js/accordion.js).
   Default / no-JS: four stacked, fully visible image cards.
   .is-enhanced (added by JS): row of narrow panels; the clicked one expands.
   ========================================================================== */
.acc-section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.accordion { display: grid; gap: 1rem; }
.acc-panel { position: relative; min-height: 340px; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: 0 4px 14px rgba(24, 40, 61, .14); }
.acc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-shade { position: absolute; inset: 0; background: rgba(24, 40, 61, .4); }
.acc-title { position: relative; z-index: 2; margin: 0; padding: 1.5rem 1.75rem 0; color: var(--white); font-size: 1.75rem; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.acc-toggle { all: unset; font: inherit; color: inherit; cursor: default; }
.acc-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.acc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 1.25rem; padding: 1.25rem 1.5rem; border-radius: 12px; background: rgba(24, 40, 61, .82); color: var(--ivory); }
.acc-body p { margin: 0 0 1rem; max-width: 34em; }

/* Enhanced accordion */
.accordion.is-enhanced { display: flex; gap: 1rem; height: 480px; }
.is-enhanced .acc-panel { flex: 0 0 72px; min-width: 0; min-height: 0; cursor: pointer; transition: flex-grow .7s ease-in-out, box-shadow .3s ease; }
.is-enhanced .acc-panel.is-active { flex-grow: 1; cursor: default; box-shadow: 0 10px 28px rgba(24, 40, 61, .22); }
.is-enhanced .acc-toggle { cursor: pointer; }
.is-enhanced .acc-panel.is-active .acc-toggle { cursor: default; }
.is-enhanced .acc-img { transform: scale(1.12); object-position: var(--acc-pos, 35%) center; transition: transform .7s ease-in-out, object-position .7s ease-in-out; }
.is-enhanced .acc-panel.is-active .acc-img { transform: none; object-position: center; }
.is-enhanced .acc-shade { background: rgba(24, 40, 61, .5); transition: background .5s ease; }
.is-enhanced .acc-panel:not(.is-active):hover .acc-shade { background: rgba(24, 40, 61, .38); }
.is-enhanced .acc-panel.is-active .acc-shade { background: rgba(24, 40, 61, .28); }
/* Title: vertical (rotated 90deg, reading downward) when collapsed, horizontal when open */
.is-enhanced .acc-title {
  position: absolute; top: 1.75rem; left: calc(50% + .75rem); padding: 0; font-size: 1.15rem; white-space: nowrap;
  transform-origin: 0 0; transform: rotate(90deg);
  transition: transform .5s ease-in-out, left .5s ease-in-out, font-size .5s ease-in-out;
}
.is-enhanced .acc-panel.is-active .acc-title { left: 1.75rem; font-size: 1.75rem; transform: rotate(0deg); }
/* Description + button appear once the panel has opened */
.is-enhanced .acc-body { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.is-enhanced .acc-panel.is-active .acc-body { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .3s, transform .45s ease .3s, visibility 0s linear 0s; }

@media (min-width: 768px) and (max-width: 1023px) {
  .accordion.is-enhanced { height: 440px; gap: .75rem; }
  .is-enhanced .acc-panel { flex-basis: 64px; }
}
/* Phones: panels stack vertically, titles stay horizontal, tap a bar to open it */
@media (max-width: 767px) {
  .accordion.is-enhanced { flex-direction: column; height: 560px; gap: .75rem; }
  .is-enhanced .acc-panel { flex-basis: 64px; }
  .is-enhanced .acc-img { object-position: center 25%; } /* thin collapsed bars: show the faces */
  .is-enhanced .acc-title { top: 1.25rem; left: 1.25rem; font-size: 1.15rem; transform: none; }
  .is-enhanced .acc-panel.is-active .acc-title { left: 1.25rem; font-size: 1.4rem; transform: none; }
  .acc-body { margin: 1rem; padding: 1rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .is-enhanced .acc-panel, .is-enhanced .acc-img, .is-enhanced .acc-shade, .is-enhanced .acc-title, .is-enhanced .acc-body { transition: none !important; }
}

/* ==========================================================================
   Video library category pages (videos-legal.html, js/video-library.js)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* "Coming Soon" tag in the videos.html accordion (replaces buttons for categories with no page yet) */
.acc-soon { display: inline-block; padding: .45rem 1rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Category banner: navy band with a photo under a flat navy tint */
.cat-banner { position: relative; background: var(--navy); color: var(--ivory); overflow: hidden; padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.5rem, 6vw, 4.25rem); }
.cat-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.cat-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(24, 40, 61, .84); }
.cat-banner-inner { position: relative; z-index: 2; }
.cat-banner h1 { color: var(--white); margin-bottom: .4em; }
.cat-banner .lead { max-width: 40em; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #dfe3ea; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .9rem; }
.breadcrumb li + li::before { content: "\203A"; margin-right: .6rem; color: var(--gold); }
.breadcrumb a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(247, 245, 240, .35); }
.breadcrumb a:hover { color: var(--gold); border-color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); }

/* Featured video: player left, details right (stacked on mobile) */
.vl-featured { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.vl-featured-grid { display: grid; gap: 1.75rem; align-items: center; }
.vl-player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: 0 10px 30px rgba(24, 40, 61, .18); }
.vl-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vl-info h2 { margin-bottom: .5em; }
.vl-info p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.65; }
.vl-info .btn { margin-top: .5rem; }
@media (min-width: 900px) { .vl-featured-grid { grid-template-columns: 1.7fr 1fr; gap: 3rem; } }
#featured-video { scroll-margin-top: 80px; }

/* Gallery */
.vl-more h2 { margin-bottom: 1.5rem; }
.vl-grid { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .vl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .vl-grid { grid-template-columns: repeat(4, 1fr); } }
.vl-card { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; }
.vl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--navy); box-shadow: 0 4px 14px rgba(24, 40, 61, .14); outline: 3px solid transparent; outline-offset: 2px; transition: box-shadow .2s ease, outline-color .2s ease; }
.vl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vl-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(24, 40, 61, .78); }
.vl-play::after { content: ""; position: absolute; left: 19px; top: 14px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--white); }
.vl-name { display: block; margin-top: .75rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; color: var(--navy); line-height: 1.3; }
.vl-meta { display: block; margin-top: .2rem; font-size: .85rem; color: #5a5a5a; }
.vl-card:hover .vl-thumb { box-shadow: 0 8px 22px rgba(24, 40, 61, .24); }
.vl-card:focus-visible .vl-thumb { outline-color: var(--gold); }
.vl-card.is-selected .vl-thumb { outline-color: var(--gold); }
.vl-card.is-selected .vl-name { color: var(--gold-dark); }
