/* ============================================================
   FEBC Christian Media — Bold modern theme (blue-green)
   Font: Anuphan
   ============================================================ */

:root {
  --blue: #0a5fd6;
  --blue-dark: #0847a8;
  --green: #10b981;
  --green-dark: #0e9e6e;
  --grad: linear-gradient(120deg, #0a5fd6 0%, #12a3c9 55%, #10b981 100%);
  --grad-soft: linear-gradient(120deg, rgba(10,95,214,.08), rgba(16,185,129,.08));

  --ink: #0f1622;
  --color-text: #232a36;
  --color-muted: #6b7480;
  --color-primary: var(--blue);
  --color-primary-dark: var(--blue-dark);
  --color-accent: var(--green);
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-border: #e5e9f0;

  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 14px 40px rgba(15, 30, 60, 0.10);
  --shadow-sm: 0 4px 16px rgba(15, 30, 60, 0.07);
  --container: 1200px;
  --header-h: 76px;
  --font: 'Anuphan', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-weight: 400; color: var(--color-text);
  background: var(--color-bg); line-height: 1.72; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
h1,h2,h3,h4 { line-height: 1.22; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 999px;
  font-weight: 600; cursor: pointer; border: none; font-family: var(--font); font-size: 16px;
  transition: transform .18s, box-shadow .2s, background .2s; text-align: center;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(10,95,214,.32); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,95,214,.4); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--color-border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(120deg, rgba(219,235,255,.9) 0%, rgba(255,255,255,.9) 50%, rgba(214,247,236,.9) 100%);
  backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--grad); opacity: .85; pointer-events: none;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15,30,60,.08); border-bottom-color: var(--color-border); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { max-height: 50px; width: auto; }
.brand-text {
  font-weight: 800; font-size: 21px; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { margin-left: auto; }
.menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.menu > li { position: relative; }
.menu > li > a {
  position: relative; display: flex; align-items: center; gap: 5px; padding: 10px 15px;
  color: var(--ink); font-weight: 600; border-radius: var(--radius-sm); white-space: nowrap; transition: color .2s;
}
.menu > li > a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 5px; height: 2.5px;
  background: var(--grad); border-radius: 3px; transition: left .25s ease, right .25s ease;
}
.menu > li > a:hover { color: var(--blue); }
.menu > li > a:hover::after { left: 15px; right: 15px; }
.caret { font-size: 10px; opacity: .55; transition: transform .25s ease; }
.menu > li.has-children:hover > a .caret { transform: rotate(180deg); }

.submenu {
  list-style: none; margin: 0; padding: 9px; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 230px; background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97);
  transform-origin: top left; transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility .22s; z-index: 50;
}
.submenu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.menu > li.has-children:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.submenu li a { display: block; padding: 11px 15px; border-radius: 10px; color: var(--color-text); font-size: 15px; font-weight: 500; transition: .18s; }
.submenu li a:hover { background: var(--grad-soft); color: var(--blue); padding-left: 21px; }

.header-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; padding: 3px; }
.lang-opt { color: var(--color-muted); font-weight: 700; font-size: 13px; padding: 5px 13px; border-radius: 999px; line-height: 1; transition: .2s; }
.lang-opt:hover { color: var(--blue); }
.lang-opt.active { color: #fff; background: var(--grad); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 25px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero slider (custom, no external library) ---------- */
.hero { position: relative; padding: 0; }
.hero-slider { position: relative; width: 100%; aspect-ratio: 21 / 9; max-height: 660px; overflow: hidden; background: var(--ink); }
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide-link { display: block; width: 100%; height: 100%; }
.slide-image { width: 100%; height: 100%; object-fit: cover; }

/* ---- Image transition style (set from admin via .fx-* on .hero-slider) ---- */
/* fx-fade (default): crossfade + slow Ken Burns zoom */
.fx-fade .hero-slide.active .slide-image { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
/* fx-slide: active slide eases in from the right */
.fx-slide .hero-slide.active { animation: fxSlide 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fxSlide { from { opacity: 0; transform: translateX(9%); } to { opacity: 1; transform: none; } }
/* fx-zoom: active slide zooms in */
.fx-zoom .hero-slide.active { animation: fxZoom 1.1s ease both; }
@keyframes fxZoom { from { opacity: 0; transform: scale(1.09); } to { opacity: 1; transform: scale(1); } }

.slide-caption { position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(9,20,40,.74), rgba(9,20,40,.18) 62%, transparent); }
.slide-caption .container { width: 100%; }
.slide-title { color: #fff; font-size: clamp(28px, 4.4vw, 56px); margin: 0 0 14px; font-weight: 800; max-width: 720px; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.slide-subtitle { color: rgba(255,255,255,.95); font-size: clamp(16px, 2vw, 22px); margin: 0 0 26px; max-width: 620px; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
/* Caption elements animate in when the slide becomes active.
   Timing/stagger is fixed here; the ANIMATION (how text enters) is chosen
   in admin via a .tx-* class on .hero-slider. */
.hero-slide .slide-title, .hero-slide .slide-subtitle, .hero-slide .slide-btn { opacity: 0; }
.hero-slide.active .slide-title { animation-duration: .7s; animation-delay: .35s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
.hero-slide.active .slide-subtitle { animation-duration: .7s; animation-delay: .55s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
.hero-slide.active .slide-btn { animation-duration: .7s; animation-delay: .75s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
/* text effect variants */
.tx-up   .hero-slide.active .slide-title, .tx-up   .hero-slide.active .slide-subtitle, .tx-up   .hero-slide.active .slide-btn { animation-name: heroUp; }
.tx-left .hero-slide.active .slide-title, .tx-left .hero-slide.active .slide-subtitle, .tx-left .hero-slide.active .slide-btn { animation-name: heroLeft; }
.tx-fade .hero-slide.active .slide-title, .tx-fade .hero-slide.active .slide-subtitle, .tx-fade .hero-slide.active .slide-btn { animation-name: heroFadeOnly; }
.tx-zoom .hero-slide.active .slide-title, .tx-zoom .hero-slide.active .slide-subtitle, .tx-zoom .hero-slide.active .slide-btn { animation-name: heroZoom; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes heroLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes heroFadeOnly { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroZoom { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px); color: #fff; font-size: 28px; line-height: 1; display: flex;
  align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.34); }
.hero-arrow.prev { left: 22px; } .hero-arrow.next { right: 22px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; gap: 9px; justify-content: center; }
.hero-dots button { width: 11px; height: 11px; border-radius: 999px; border: none; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.hero-dots button.active { width: 28px; background: #fff; }

/* Gradient fallback hero (shown when no slides exist) */
.hero-fallback {
  position: relative; overflow: hidden; color: #fff; padding: clamp(70px, 12vw, 150px) 0;
  background: var(--grad);
}
.hero-fallback::before, .hero-fallback::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.10);
}
.hero-fallback::before { width: 460px; height: 460px; top: -160px; right: -120px; }
.hero-fallback::after { width: 320px; height: 320px; bottom: -140px; left: -80px; background: rgba(255,255,255,.07); }
.hero-fallback .container { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-block; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; opacity: .9; margin-bottom: 16px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; }
.hero-fallback h1 { color: #fff; font-size: clamp(34px, 6vw, 68px); font-weight: 800; margin: 0 0 16px; max-width: 900px; }
.hero-fallback p { font-size: clamp(17px, 2.2vw, 23px); opacity: .95; max-width: 640px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: clamp(50px, 7vw, 92px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--green-dark); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 42px); margin: 0 0 12px; }
.section-head p { color: var(--color-muted); font-size: 18px; margin: 0; }
.section-title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 28px; }
.link-more { font-weight: 600; color: var(--blue); }

/* ---------- Mission intro ---------- */
.mission { background: var(--color-surface); }
.mission-body { max-width: 820px; margin: 0 auto; text-align: center; font-size: 18.5px; color: #3a4452; }
.mission-quicklinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.ql-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px 26px;
  text-align: center; transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; overflow: hidden;
}
.ql-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.ql-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.ql-card:hover::before { transform: scaleX(1); }
.ql-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 27px; background: var(--grad-soft); color: var(--blue); }
.ql-card h3 { font-size: 20px; margin: 0 0 8px; }
.ql-card p { color: var(--color-muted); font-size: 15px; margin: 0; }

/* ---------- News grid / cards ---------- */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; gap: 16px; flex-wrap: wrap; }
.section-head-row h2 { font-size: clamp(24px, 3.2vw, 38px); margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.post-card-link { color: inherit; display: block; }
.post-card-thumb { aspect-ratio: 16 / 10; background: var(--color-surface); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-noimg { width: 100%; height: 100%; background: var(--grad); opacity: .85; }
.post-card-body { padding: 20px 22px 24px; }
.post-card-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.post-card-title { font-size: 19px; margin: 0 0 12px; line-height: 1.4; }
.post-card-date { font-size: 14px; color: var(--color-muted); }

/* ---------- YouTube section ---------- */
.youtube-section { background: var(--ink); color: #fff; }
.youtube-section .eyebrow { color: #4fd6a8; }
.youtube-section .section-head h2 { color: #fff; }
.youtube-frame { max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); aspect-ratio: 16/9; }
.youtube-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Page / post single ---------- */
.page-hero { background: var(--grad); color: #fff; padding: clamp(48px, 7vw, 84px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); top: -140px; right: -100px; }
.page-hero .container { position: relative; z-index: 2; }
.page-title { font-size: clamp(28px, 4.4vw, 48px); margin: 0; color: #fff; }
.post-date { color: rgba(255,255,255,.9); font-size: 15px; }
.post-cat-badge { display: inline-block; margin-bottom: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.2); padding: 5px 14px; border-radius: 999px; }
.post-cat-badge:hover { color: #fff; background: rgba(255,255,255,.32); }
.content-body { padding-top: 52px; padding-bottom: 52px; max-width: 880px; font-size: 18px; }
.content-body::after { content: ""; display: table; clear: both; }
.content-body img { border-radius: var(--radius-sm); margin: 22px auto; }
.content-body h2 { margin-top: 1.7em; }
.content-body p { margin: 0 0 1.15em; }
.content-body iframe { max-width: 100%; border-radius: var(--radius-sm); }
.content-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Images floated beside text — chosen from the editor's image "Class" dropdown */
.content-body img.img-float-left,
.content-body img.img-float-right {
  max-width: 45%; height: auto;
}
.content-body img.img-float-left {
  float: left; margin: 6px 26px 16px 0;
}
.content-body img.img-float-right {
  float: right; margin: 6px 0 16px 26px;
}
@media (max-width: 640px) {
  /* On narrow screens a floated image leaves too little room for wrapped text — stack instead. */
  .content-body img.img-float-left,
  .content-body img.img-float-right {
    float: none; max-width: 100%; margin: 22px auto;
  }
}

/* ---------- Team page ---------- */
.team-section { padding: clamp(46px, 6vw, 84px) 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.team-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-surface); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-extra { padding-bottom: clamp(40px, 6vw, 80px); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 620px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ---------- Broadcast schedule page ---------- */
.schedule-section { padding: clamp(40px, 5vw, 70px) 0; }
.schedule-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.sched-search { flex: 1; min-width: 240px; padding: 13px 18px; border: 1px solid var(--color-border); border-radius: 999px; font-family: var(--font); font-size: 16px; }
.sched-search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,95,214,.12); }
.sched-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.sched-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; min-width: 720px; }
.sched-table th { background: var(--ink); color: #fff; font-weight: 600; text-align: left; padding: 13px 16px; white-space: nowrap; }
.sched-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); color: var(--color-text); vertical-align: middle; }
.sched-region td { background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; }
.sched-row:hover td { background: #eef4ff; }
.sched-cont .sched-station-name, .sched-cont .sched-freq { color: var(--color-muted); font-weight: 400; }
.sched-station { font-weight: 600; }
.sched-freq { white-space: nowrap; color: var(--color-muted); }
.sched-program { font-weight: 500; }
.sched-time { white-space: nowrap; }
.sched-days { display: inline-block; background: #fff6db; border: 1px solid #ffe3a2; color: #7a5b00; padding: 2px 10px; border-radius: 999px; font-size: 13.5px; white-space: nowrap; }
.sched-badge { display: inline-block; background: #e8fff0; border: 1px solid #baf0c6; color: #137a34; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.sched-empty { text-align: center; padding: 30px; color: var(--color-muted); }
.sched-legend { margin-top: 18px; color: var(--color-muted); font-size: 14px; line-height: 1.8; }

/* ---------- Radio programs page ---------- */
.page-hero-sub { color: rgba(255,255,255,.92); font-size: 17px; margin: 12px 0 0; max-width: 640px; }
.radio-section { padding: clamp(46px, 6vw, 84px) 0; }
.radio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.radio-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.radio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.radio-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--color-surface); }
.radio-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.radio-card:hover .radio-cover img { transform: scale(1.06); }
.radio-body { padding: 18px 18px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.radio-name { font-size: 17px; margin: 0 0 4px; line-height: 1.35; }
.radio-dj { color: var(--color-muted); font-size: 14px; margin-bottom: 16px; }
.radio-listen { margin-top: auto; padding: 9px 22px; font-size: 14.5px; }
@media (max-width: 960px) { .radio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .radio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.radio-app { background: var(--color-surface); }
.radio-app-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.radio-app-text h2 { font-size: clamp(24px, 3.4vw, 38px); margin: 8px 0 14px; }
.radio-app-text p { color: #3a4452; font-size: 18px; margin: 0 0 22px; }
.app-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.app-badges img { height: 116px; width: auto; border-radius: 12px; }
.radio-app-img img { max-width: 300px; margin: 0 auto; display: block; }
@media (max-width: 820px) { .radio-app-inner { grid-template-columns: 1fr; gap: 28px; } .radio-app-img { order: -1; } }

/* ---------- Donation section ---------- */
.donation { background: var(--color-surface); }
.donation-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.donation-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 420px; margin: 0 auto; }
.donation-body h2 { font-size: clamp(24px, 3.4vw, 38px); margin: 6px 0 16px; }
.donation-body > p { font-size: 18px; color: #3a4452; margin: 0 0 22px; }
.donation-card { background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 22px 24px; margin-bottom: 24px; }
.donation-card p { margin: 0 0 12px; font-size: 15.5px; }
.donation-card p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .donation-inner { grid-template-columns: 1fr; gap: 30px; }
  .donation-media { order: -1; }
}

/* ============================================================
   Content modules (shortcodes)
   ============================================================ */
/* Gallery */
.sc-gallery { display: grid; gap: 12px; margin: 26px 0; }
.sc-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sc-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.sc-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sc-gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.sc-gitem { display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1/1; background: var(--color-surface); }
.sc-gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sc-gitem:hover img { transform: scale(1.07); }
@media (max-width: 620px) { .sc-gallery.cols-3, .sc-gallery.cols-4, .sc-gallery.cols-5 { grid-template-columns: repeat(2, 1fr); } }

/* Single video / playlist fallback embed */
.sc-video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; margin: 26px 0; box-shadow: var(--shadow-sm); }
.sc-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Playlist grid */
.sc-playlist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 26px 0; align-items: start; }
.sc-video {
  display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0;
  border: none; background: none; cursor: pointer; text-align: left; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.sc-thumb { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.sc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.sc-video:hover .sc-thumb img { transform: scale(1.06); }
.sc-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.sc-play::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.sc-video:hover .sc-play { background: var(--green-dark); }
.sc-vtitle {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 10px; font-weight: 600; font-size: 14.5px; line-height: 1.45; color: var(--ink); min-height: 2.9em;
}
@media (max-width: 900px) { .sc-playlist { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .sc-playlist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .sc-playlist { grid-template-columns: 1fr; } }

/* CTA button block */
.sc-btn-wrap { margin: 24px 0; text-align: center; }

/* Callout box */
.sc-callout { border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; border-left: 5px solid; background: var(--color-surface); }
.sc-callout-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.sc-callout-body p:last-child { margin-bottom: 0; }
.sc-info    { border-color: var(--blue);  background: rgba(10,95,214,.06); }
.sc-success { border-color: var(--green); background: rgba(16,185,129,.08); }
.sc-warning { border-color: #f59e0b;      background: rgba(245,158,11,.09); }
.sc-note    { border-color: #94a3b8;      background: #f6f8fb; }

/* Lightbox (gallery + playlist video popup) */
.sc-lightbox { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; background: rgba(9,15,26,.9); padding: 24px; }
.sc-lightbox.open { display: flex; }
.sc-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.sc-lightbox .sc-lb-video { width: min(960px, 92vw); aspect-ratio: 16/9; }
.sc-lightbox .sc-lb-video iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.sc-lb-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; cursor: pointer; }
.sc-lb-close:hover { background: rgba(255,255,255,.3); }
.sc-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 28px; cursor: pointer; }
.sc-lb-nav:hover { background: rgba(255,255,255,.3); }
.sc-lb-prev { left: 18px; } .sc-lb-next { right: 18px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 48px 0 10px; flex-wrap: wrap; }
.page-link { min-width: 44px; text-align: center; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--color-border); color: var(--ink); font-weight: 600; }
.page-link.active, .page-link:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(150deg, #0f1622 0%, #0b3d78 48%, #0c6b57 100%);
  color: #aeb6c4; margin-top: 0;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 46px; padding: 64px 22px; }
.footer-brand { color: #fff; margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.footer-tagline { color: #8b93a3; }
.footer-col h4 { color: #fff; margin: 0 0 16px; font-size: 16px; }
.footer-col p { margin: 0 0 9px; font-size: 15px; }
.footer-col a { color: #aeb6c4; }
.footer-col a:hover { color: #fff; }
.social-links { display: flex; flex-direction: column; gap: 9px; }

/* ---------- Social icon buttons ---------- */
.social-icons { display: flex; gap: 9px; align-items: center; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; transition: background .2s, color .2s, transform .2s; }
.social-icons a:hover { transform: translateY(-2px); }
.social-icons svg { width: 18px; height: 18px; }
/* header variant (on light) */
.social-header a { background: var(--color-surface); color: var(--color-muted); }
.social-header a.soc-fb:hover   { background: #1877f2; color: #fff; }
.social-header a.soc-yt:hover   { background: #ff0000; color: #fff; }
.social-header a.soc-line:hover { background: #06c755; color: #fff; }
/* footer variant (on dark) */
.social-footer a { background: rgba(255,255,255,.1); color: #c9cdd6; }
.social-footer a.soc-fb:hover   { background: #1877f2; color: #fff; }
.social-footer a.soc-yt:hover   { background: #ff0000; color: #fff; }
.social-footer a.soc-line:hover { background: #06c755; color: #fff; }
/* hide the header social icons on small screens to avoid crowding */
@media (max-width: 860px) { .social-header { display: none; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 14px; }
.footer-bottom p { margin: 0; text-align: center; color: #7c8494; }

/* ---------- Flash / popup / misc ---------- */
.flash { max-width: var(--container); margin: 16px auto; padding: 14px 22px; border-radius: var(--radius-sm); }
.flash-success { background: #e4f8ee; color: #0b7a4b; }
.flash-error { background: #fdecec; color: #b02a37; }
.empty-state { text-align: center; color: var(--color-muted); padding: 70px 0; }
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 108px; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

.popup-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(9,15,26,.66); padding: 20px; animation: fade .3s; }
/* the [hidden] attribute must win over display:flex so the popup can close */
.popup-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.popup-box { position: relative; background: #fff; border-radius: var(--radius); max-width: 540px; width: 100%; overflow: hidden; box-shadow: var(--shadow); }
.popup-image { width: 100%; }
.popup-title { margin: 0; padding: 20px 24px 6px; font-size: 21px; }
.popup-content { padding: 0 24px 24px; color: var(--color-muted); }
.popup-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.popup-close:hover { background: rgba(0,0,0,.65); }

/* ---------- Reveal-on-scroll animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .news-grid, .mission-quicklinks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 48px 22px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; margin: 0;
    padding: 18px 22px; overflow-y: auto; transform: translateX(100%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateX(0); }
  .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .menu > li > a { padding: 15px 12px; font-size: 17px; }
  .menu > li > a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; max-height: 0; overflow: hidden; transition: max-height .3s; }
  .menu > li.has-children.open > .submenu { max-height: 600px; }
}
@media (max-width: 560px) {
  .news-grid, .mission-quicklinks { grid-template-columns: 1fr; }
  .hero-slider { aspect-ratio: 4 / 5; max-height: none; }
  .slide-caption { background: linear-gradient(to top, rgba(9,20,40,.82), rgba(9,20,40,.12)); align-items: flex-end; padding-bottom: 54px; }
  .hero-arrow { width: 42px; height: 42px; font-size: 22px; }
  .hero-arrow.prev { left: 12px; } .hero-arrow.next { right: 12px; }
}
