/* ============================================================
   TSU CMS — Public Frontend CSS
   Heritage Gold Theme · สถาบันทักษิณคดีศึกษา
   ============================================================ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:      #C9922A;
  --gold-l:    #E8B94A;
  --gold-pale: #FDF5E6;
  --gold-dim:  rgba(201,146,42,0.12);
  --deep:      #1A1006;
  --warm:      #2C1F08;
  --brown:     #5C3D11;
  --teal:      #0D4A4A;
  --teal-l:    #0F6B6B;
  --terr:      #C4622D;
  --cream:     #FAF6EE;
  --cream2:    #F0E8D5;
  --txt:       #1C1208;
  --muted:     #5C4A2E;
  --light:     #9E8B6F;
  --border:    rgba(201,146,42,0.18);
  --radius:    14px;
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans Thai', sans-serif;
  color: var(--txt);
  background: #fff;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5,h6 { font-family: 'Noto Serif Thai', serif; line-height: 1.35; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(201,146,42,0.1);
  border: 1px solid rgba(201,146,42,0.25);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px,4vw,38px); font-weight: 700;
  color: var(--warm); line-height: 1.25; margin-bottom: 12px;
}
.section-desc { color: var(--muted); font-size: 15px; max-width: 560px; }

/* ─── LAYOUT CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }

/* ─── NAVBAR ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  transition: background .35s, box-shadow .35s;
}
.site-header.scrolled {
  background: rgba(26,16,6,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ── Topbar (แถวบน) ── */
.site-topbar {
  background: rgba(10,6,2,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  height: 34px;
  display: flex; align-items: center;
}
.topbar-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left {
  font-size: 11px; color: rgba(255,255,255,0.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 50%;
}
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-social {
  color: rgba(255,255,255,0.45); font-size: 13px;
  text-decoration: none; transition: color .2s;
}
.topbar-social:hover { color: var(--gold-l); }
.topbar-divider {
  width: 1px; height: 14px; background: rgba(255,255,255,0.1); flex-shrink: 0;
}
.topbar-phone {
  font-size: 11px; color: rgba(255,255,255,0.5);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
  transition: color .2s;
}
.topbar-phone:hover { color: var(--gold-l); }
.topbar-phone i { font-size: 10px; color: var(--gold); }
.topbar-search-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: rgba(255,255,255,0.5);
  font-family: 'Noto Sans Thai',sans-serif;
  transition: color .2s; padding: 0;
}
.topbar-search-btn:hover { color: var(--gold-l); }
.topbar-search-btn i { font-size: 11px; }

/* ── Main nav row ── */
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 16px;
}

/* ── More button (☰ เพิ่มเติม) ── */
.nav-more-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px; border-radius: 8px;
  background: none; border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600;
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
  font-family: 'Noto Sans Thai',sans-serif;
  transition: all .25s;
  margin-left: 12px;
}
.nav-more-btn i { font-size: 13px; }
.nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] {
  background: rgba(201,146,42,0.12);
  border-color: rgba(201,146,42,0.4);
  color: var(--gold-l);
}

/* ── More panel dropdown ── */
.nav-more-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(14,8,2,0.98);
  backdrop-filter: blur(24px) saturate(1.5);
  border-top: 1px solid rgba(201,146,42,0.15);
  border-bottom: 2px solid rgba(201,146,42,0.12);
  padding: 20px 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: none; z-index: 490;
  animation: panelIn .2s ease;
}
.nav-more-panel.open { display: block; }
@keyframes panelIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
.nav-more-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
}
.nav-more-item > a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  color: rgba(255,255,255,0.72); font-size: 13px; font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03);
  transition: all .2s;
}
.nav-more-item > a i { font-size: 14px; color: var(--gold); width: 18px; text-align: center; }
.nav-more-item > a:hover {
  background: rgba(201,146,42,0.1);
  border-color: rgba(201,146,42,0.25);
  color: var(--gold-l);
}
/* Sub-menu ใน panel */
.nav-more-sub {
  margin-top: 4px; padding-left: 42px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-more-sub a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 7px;
  color: rgba(255,255,255,0.45); font-size: 12px;
  text-decoration: none; transition: all .2s;
}
.nav-more-sub a i { font-size: 11px; color: rgba(201,146,42,0.5); }
.nav-more-sub a:hover { color: var(--gold-l); background: rgba(201,146,42,0.06); }

/* ── Quick Link buttons ── */
.nav-quicklinks {
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0; margin-left: 4px;
}
.nav-quicklink {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: all .25s; flex-shrink: 0;
}
.nav-quicklink i { font-size: 11px; }
.nav-quicklink-primary {
  background: var(--gold); color: var(--deep);
  border: 1.5px solid var(--gold);
}
.nav-quicklink-primary:hover { background: var(--gold-l); border-color: var(--gold-l); transform: translateY(-1px); }
.nav-quicklink-outline {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.nav-quicklink-outline:hover { border-color: var(--gold); color: var(--gold-l); }
.nav-quicklink-gold {
  background: rgba(201,146,42,0.15); color: var(--gold-l);
  border: 1.5px solid rgba(201,146,42,0.35);
}
.nav-quicklink-gold:hover { background: var(--gold); color: var(--deep); }
.nav-brand { text-decoration: none; flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.nav-logo  { display: block; max-height: 60px; width: auto; height: auto; }
.nav-logo-text .nav-logo-th { display: block; font-family: 'Noto Serif Thai', serif; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.nav-logo-text .nav-logo-en { display: block; font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; }

.nav-list {
  display: flex; list-style: none; gap: 1px;
  align-items: center; flex-wrap: nowrap; min-width: 0;
}
.nav-item { position: relative; flex-shrink: 0; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all .25s; white-space: nowrap;
}
.nav-link:hover { color: var(--gold-l); background: rgba(255,255,255,0.06); }
.nav-link i { font-size: 13px; }
.nav-chevron { font-size: 10px; transition: transform .25s; }
.nav-item.has-dropdown:hover .nav-chevron { transform: rotate(-180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: rgba(26,16,6,0.97); backdrop-filter: blur(16px);
  border: 1px solid rgba(201,146,42,0.2);
  border-radius: 12px; padding: 8px;
  min-width: 220px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .25s; box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.nav-item.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  color: rgba(255,255,255,0.7); font-size: 13px;
  text-decoration: none; transition: all .2s;
}
.dropdown li a:hover { background: rgba(201,146,42,0.15); color: var(--gold-l); }
.dropdown li a i { width: 16px; text-align: center; font-size: 13px; color: var(--gold); }
.dropdown-sub {
  list-style: none;
  margin: 2px 0 4px 18px;
  padding-left: 10px;
  border-left: 1px solid rgba(201,146,42,0.18);
}
.dropdown-sub li a {
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
}

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-search-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); font-size: 15px; transition: all .25s;
}
.nav-search-btn:hover { background: rgba(201,146,42,0.2); color: var(--gold-l); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8); border-radius: 2px; transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 999; display: none; align-items: center; justify-content: center;
}
.search-overlay.open { display: flex; }
.search-overlay-inner {
  display: flex; align-items: center; gap: 16px;
  width: 90%; max-width: 640px;
}
.search-overlay-inner form { display: flex; flex: 1; }
.search-overlay-inner input {
  flex: 1; padding: 16px 20px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px 0 0 12px; color: #fff; font-size: 17px;
  font-family: 'Noto Sans Thai', sans-serif; outline: none;
}
.search-overlay-inner button[type=submit] {
  padding: 0 20px; background: var(--gold); border: none; cursor: pointer;
  border-radius: 0 12px 12px 0; color: var(--deep); font-size: 18px;
}
.search-close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.6); font-size: 24px; }

/* ─── HERO SLIDER ─── */
.hero { position: relative; min-height: 100vh; overflow: hidden; background: var(--deep); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .yt-wrapper { width: 100%; height: 100%; }
.hero-slide .yt-wrapper iframe { width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,16,6,.85) 0%, rgba(26,16,6,.5) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  min-height: 100vh; display: flex; align-items: center;
}
.hero-text { max-width: 600px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,146,42,0.4);
  padding: 6px 16px; border-radius: 100px;
  background: rgba(201,146,42,0.08);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 60px); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero-title span { color: var(--gold-l); }
.hero-desc { color: rgba(255,255,255,0.7); font-size: clamp(14px,1.6vw,17px); margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero dots */
.hero-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer;
  transition: all .3s;
}
.hero-dot.active { width: 28px; border-radius: 4px; background: var(--gold); }

/* Split homepage hero */
.hero.hero-split {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #120b04;
  isolation: isolate;
}
.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-slide {
  position: absolute;
  inset: -24px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 1.2s ease;
}
.hero-bg-slide.active {
  opacity: .6;
  transform: scale(1);
}
.hero-bg-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: blur(3px) saturate(.95) brightness(.74);
}
.hero-split-bg,
.hero-split-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-split-bg {
  background:
    radial-gradient(circle at 72% 28%, rgba(201,146,42,.18), transparent 36%),
    radial-gradient(circle at 18% 84%, rgba(13,74,74,.24), transparent 32%),
    linear-gradient(115deg, rgba(18,11,4,.88) 0%, rgba(33,21,4,.78) 52%, rgba(6,23,21,.9) 100%);
  z-index: 1;
}
.hero-split-glow {
  background:
    linear-gradient(90deg, rgba(18,11,4,.18), rgba(18,11,4,.02) 58%, rgba(18,11,4,.3)),
    repeating-linear-gradient(45deg, rgba(201,146,42,.035) 0 1px, transparent 1px 34px);
  opacity: .8;
  z-index: 2;
}
.hero-split-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(88px, 8.5vh, 112px) clamp(36px, 5.6vw, 92px) clamp(66px, 8vh, 96px);
  transform: translateY(-34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.hero-split-copy {
  max-width: 640px;
}
.hero-slide-copy-wrap {
  position: relative;
  min-height: 250px;
}
.hero-slide-copy {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-slide-copy.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-split-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-bottom: 34px;
  padding: 7px 18px;
  border: 1px solid rgba(201,146,42,.5);
  border-radius: 999px;
  background: rgba(201,146,42,.12);
  color: var(--gold-l);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.hero-split-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}
.hero-split-kicker {
  margin-bottom: 24px;
  color: rgba(255,255,255,.58);
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 600;
  letter-spacing: .2px;
  text-transform: none;
}
.hero-split-copy h1 {
  max-width: 680px;
  margin-bottom: 16px;
  color: #fff;
  font-family: 'Noto Serif Thai', serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.22;
}
.hero-split-copy h1 .accent { color: var(--gold-l); }
.hero-split-lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.68);
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.9;
}
.hero-copy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hero-copy-read {
  min-height: 32px;
  margin-top: 2px;
  padding: 6px 12px;
  border-radius: 7px;
  gap: 7px;
  font-size: 12px;
}
.hero-extra-read {
  background: transparent;
  border: 1px solid rgba(201,146,42,.55);
  color: var(--gold-l);
}
.hero-extra-read:hover {
  background: rgba(201,146,42,.14);
  color: var(--gold-l);
}
.hero-dashboard-section {
  background: #120b04;
  padding: 0 clamp(20px, 5.6vw, 92px);
}
.hero-dashboard-inner {
  max-width: 1720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: stretch;
  gap: clamp(20px, 3vw, 42px);
}
.hero-split-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid rgba(201,146,42,.28);
  border-bottom: 1px solid rgba(201,146,42,.28);
  border-radius: 0;
  background: rgba(18,11,4,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-split-stat {
  min-height: 118px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid rgba(201,146,42,.18);
}
.hero-split-stat:first-child { border-left: 0; }
.hero-split-stat strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-l);
  font-family: 'Noto Serif Thai', serif;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1;
}
.hero-split-stat span {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 600;
}
.hero-dashboard-copy {
  min-height: 118px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(201,146,42,.28);
  border-bottom: 1px solid rgba(201,146,42,.28);
}
.hero-dashboard-copy span {
  margin-bottom: 8px;
  color: var(--gold-l);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.hero-dashboard-copy strong {
  color: rgba(255,255,255,.86);
  font-family: 'Noto Serif Thai', serif;
  font-size: clamp(18px, 1.5vw, 25px);
  line-height: 1.45;
}
.hero-banner-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(201,146,42,.28);
  border-radius: 28px;
  background: rgba(18,11,4,.6);
  box-shadow: 0 34px 90px rgba(0,0,0,.52), 0 0 0 12px rgba(255,255,255,.025);
}
.hero-banner-card[data-aspect="1:1"] {
  aspect-ratio: 1 / 1;
  width: min(100%, 440px);
  justify-self: center;
}
.hero-banner-card[data-aspect="16:9"] {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.hero-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .75s ease, transform .75s ease;
}
.hero-banner-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-banner-fallback {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(201,146,42,.34), transparent 55%),
    linear-gradient(160deg, #40270a, #071c19);
}
.hero-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,11,4,.9) 0%, rgba(18,11,4,.34) 48%, rgba(18,11,4,.08) 100%);
}
.hero-banner-caption {
  display: none;
  position: absolute;
  left: clamp(32px, 4vw, 58px);
  right: clamp(50px, 5vw, 78px);
  bottom: clamp(38px, 5vw, 58px);
  z-index: 2;
}
.hero-banner-caption h3 {
  margin-bottom: 20px;
  color: #fff;
  font-family: 'Noto Serif Thai', serif;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.42;
}
.hero-banner-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.hero-banner-read:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
}
.hero-banner-count {
  position: absolute;
  top: clamp(28px, 3vw, 42px);
  left: clamp(28px, 3.2vw, 46px);
  z-index: 4;
  min-width: 74px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(18,11,4,.72);
  border: 1px solid rgba(201,146,42,.34);
  color: var(--gold-l);
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
}
.hero-banner-controls {
  position: absolute;
  top: 50%;
  left: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.hero-banner-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(18,11,4,.62);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  pointer-events: auto;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.hero-banner-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}
.hero-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.hero-banner-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.hero-banner-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: none; text-decoration: none; transition: all .3s;
  font-family: 'Noto Sans Thai', sans-serif;
}
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,146,42,.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-l); }

/* ─── CARDS ─── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 28px;
}
.content-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden; transition: all .35s; cursor: pointer;
}
.content-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.content-card a { text-decoration: none; color: inherit; display: block; }

.card-cover {
  position: relative; overflow: hidden;
  background: var(--cream2);
}
.card-cover img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s; display: block; }
.content-card:hover .card-cover img { transform: scale(1.05); }
.card-cover .yt-wrapper { height: 220px; }
.card-cover .yt-wrapper iframe { width: 100%; height: 100%; display: block; }

.card-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(201,146,42,0.92);
  color: var(--deep); font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; letter-spacing: 1px;
}
.card-featured {
  position: absolute; top: 12px; right: 12px;
  background: rgba(196,98,45,0.9);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.card-link-type {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.65); color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

.card-body { padding: 20px; }
.card-cat { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.card-title { font-size: 16px; font-weight: 700; color: var(--warm); margin-bottom: 8px; line-height: 1.4; }
.card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; }
.card-date { font-size: 11px; color: var(--light); }
.card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  color: var(--gold); transition: all .3s;
}
.content-card:hover .card-arrow { background: var(--gold); color: #fff; }

/* No-cover placeholder */
.card-cover-placeholder {
  height: 180px; background: var(--cream2);
  display: flex; align-items: center; justify-content: center;
}
.card-cover-placeholder i { font-size: 40px; color: var(--light); opacity: .5; }

/* ─── YOUTUBE embed ─── */
.yt-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.yt-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ─── BREADCRUMB ─── */
.breadcrumb-nav { margin-bottom: 24px; }
.breadcrumb-list {
  display: flex; list-style: none; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--light);
  align-items: center;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-list li::after { content: '›'; color: var(--light); font-size: 12px; }
.breadcrumb-list li:last-child::after { content: ''; }
.breadcrumb-list a { color: var(--muted); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--gold); }
.breadcrumb-list li:last-child { color: var(--txt); font-weight: 500; }

/* ─── PAGE HEADER BAND ─── */
.page-band {
  background: var(--deep); padding: 90px 24px 40px;
  position: relative; overflow: hidden;
}
.page-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,146,42,0.12), transparent);
}
.page-band-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.page-band h1 { color: #fff; font-size: clamp(24px,4vw,42px); margin-bottom: 10px; }
.page-band p  { color: rgba(255,255,255,0.55); font-size: 15px; }

/* ─── SIDEBAR ─── */
.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.sidebar-widget { background: #fff; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 24px; }
.widget-title {
  font-size: 14px; font-weight: 700; color: var(--warm);
  padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 8px;
}
.widget-title i { color: var(--gold); }
.widget-body { padding: 16px; }
.cat-list { list-style: none; }
.cat-list li { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--muted); font-size: 13px; transition: color .2s; }
.cat-list li a:hover { color: var(--gold); }
.cat-count { font-size: 11px; color: var(--light); background: var(--cream); padding: 2px 8px; border-radius: 100px; }

/* ─── CONTENT DETAIL ─── */
.content-detail { max-width: 780px; }
.content-detail h1 { font-size: clamp(24px,4vw,38px); color: var(--warm); margin-bottom: 16px; line-height: 1.3; }
.content-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; font-size: 13px; color: var(--light); }
.content-meta i { color: var(--gold); margin-right: 5px; }
.content-cover { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.content-cover img { width: 100%; border-radius: var(--radius); }
.content-body { font-size: 15px; line-height: 1.9; color: var(--txt); }
.content-body h2 { font-size: 22px; color: var(--warm); margin: 32px 0 14px; }
.content-body h3 { font-size: 18px; color: var(--warm); margin: 24px 0 10px; }
.content-body p { margin-bottom: 16px; }
.content-body ul, .content-body ol { margin: 0 0 16px 24px; }
.content-body li { margin-bottom: 6px; }
.content-body blockquote {
  border-left: 4px solid var(--gold); padding: 16px 20px;
  background: var(--gold-pale); border-radius: 0 8px 8px 0; margin: 20px 0;
  font-style: italic; color: var(--brown);
}
.content-body img { border-radius: 10px; margin: 16px 0; max-width: 100%; }
.content-body a { color: var(--teal); text-decoration: underline; }
.content-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.content-body th { background: var(--cream); padding: 10px 14px; text-align: left; border: 1px solid var(--cream2); }
.content-body td { padding: 10px 14px; border: 1px solid var(--cream2); }

/* File attachment */
.file-download {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; background: var(--cream); border-radius: var(--radius);
  border: 1.5px solid var(--border); text-decoration: none; color: var(--warm);
  font-weight: 600; font-size: 14px; transition: all .3s; margin-top: 24px;
}
.file-download:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.file-download i { font-size: 22px; color: var(--danger, #DC2626); }

/* ─── PAGINATION ─── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 48px; }
.page-btn {
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; text-decoration: none; color: var(--muted);
  border: 1px solid rgba(0,0,0,0.1); background: #fff;
  transition: all .2s; display: inline-flex; align-items: center;
  font-family: 'Noto Sans Thai', sans-serif;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: var(--deep); border-color: var(--gold); font-weight: 700; }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ─── FOOTER ─── */
.site-footer { background: var(--deep); color: rgba(255,255,255,0.65); margin-top: 80px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 48px;
}
.footer-brand .footer-logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(201,146,42,0.15); border: 1.5px solid rgba(201,146,42,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--gold); margin-bottom: 14px;
  overflow: hidden;
}
.footer-brand .footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}
.footer-brand h3 { font-size: 15px; color: #fff; font-weight: 700; margin-bottom: 4px; }
.footer-brand .footer-en { font-size: 11px; color: rgba(255,255,255,0.3); margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 16px; transition: all .25s; text-decoration: none;
}
.footer-social a:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { font-size: 13px; margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-l); }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list li i { color: var(--gold); font-size: 13px; margin-top: 4px; flex-shrink: 0; }
.contact-list li a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center; padding: 20px 24px;
  font-size: 12px; color: rgba(255,255,255,0.25);
}

/* ─── NEWS SPECIFIC ─── */
.news-hero-card {
  background: var(--deep); border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 40px;
  border: 1px solid rgba(201,146,42,0.15);
}
.news-hero-card .card-img { overflow: hidden; min-height: 320px; }
.news-hero-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-hero-card:hover .card-img img { transform: scale(1.04); }
.news-hero-card .card-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.news-hero-card .card-content h2 { color: #fff; font-size: clamp(18px,2.5vw,26px); margin-bottom: 12px; }
.news-hero-card .card-content p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 20px; }
.news-hero-card .card-content .meta { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    padding-top: 92px;
  }
  .hero-split-copy { max-width: none; }
  .hero-banner-card {
    min-height: 0;
    height: auto;
  }
  .hero-dashboard-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-dashboard-copy {
    min-height: auto;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-list { display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: rgba(26,16,6,0.98); flex-direction: column; padding: 24px; gap: 4px; overflow-y: auto; }
  .nav-list.open { display: flex; }
  .nav-hamburger { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.05); margin-top: 4px; }
  .section { padding: 48px 16px; }
  .content-grid { grid-template-columns: 1fr; }
  .news-hero-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 80vh; }
  .hero.hero-split { min-height: auto; }
  .hero-split-inner {
    padding: 88px 20px 46px;
    gap: 28px;
    transform: none;
  }
  .hero-split-badge {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 11px;
    letter-spacing: .8px;
  }
  .hero-split-kicker {
    margin-bottom: 18px;
    letter-spacing: .2px;
  }
  .hero-slide-copy-wrap { min-height: 240px; }
  .hero-split-copy h1 { font-size: clamp(26px, 7.6vw, 34px); }
  .hero-dashboard-section { padding: 0 20px; }
  .hero-split-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-split-stat {
    min-height: 96px;
    border-top: 1px solid rgba(201,146,42,.18);
  }
  .hero-split-stat:nth-child(1),
  .hero-split-stat:nth-child(2) { border-top: 0; }
  .hero-split-stat:nth-child(odd) { border-left: 0; }
  .hero-banner-card {
    min-height: 0;
    height: auto;
    border-radius: 20px;
  }
  .hero-banner-caption {
    left: 28px;
    right: 44px;
    bottom: 32px;
  }
  .hero-banner-caption h3 { font-size: clamp(15px, 5vw, 19px); }
  .hero-banner-count {
    top: 18px;
    left: 18px;
  }
  .hero-banner-controls {
    top: 50%;
    left: 12px;
    right: 12px;
  }
  .hero-banner-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .hero-banner-dots {
    left: 50%;
    bottom: 14px;
  }
}

/* Main menu cards */
.main-menu-section{background:#fff;padding:76px 24px}
.main-menu-inner{max-width:1200px;margin:0 auto}
.main-menu-heading{margin-bottom:34px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.main-menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px}
.main-menu-card{background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:8px;overflow:hidden;box-shadow:0 12px 30px rgba(26,16,6,.06);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.main-menu-card:hover{transform:translateY(-4px);border-color:rgba(201,146,42,.35);box-shadow:0 18px 42px rgba(26,16,6,.1)}
.main-menu-card a{display:block;text-decoration:none;color:inherit;height:100%}
.main-menu-cover{position:relative;aspect-ratio:16/9;background:var(--cream2);overflow:hidden}
.main-menu-card[data-aspect="1:1"] .main-menu-cover{aspect-ratio:1/1}
.main-menu-cover img,.main-menu-cover .yt-wrapper{width:100%;height:100%}
.main-menu-cover img{object-fit:cover;display:block}
.main-menu-cover .yt-wrapper{padding-bottom:0}
.main-menu-icon{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:42px;background:linear-gradient(135deg,var(--cream),#fff)}
.main-menu-body{padding:18px}
.main-menu-title{font-size:16px;font-weight:800;color:var(--warm);line-height:1.4;margin-bottom:8px}
.main-menu-body p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:14px}
.main-menu-body span{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:var(--gold)}
.menu-detail-cover[data-aspect="1:1"]{max-width:520px}
.menu-detail-cover[data-aspect="1:1"] img{aspect-ratio:1/1;object-fit:cover}
.menu-home-card[data-aspect="1:1"] .card-cover{aspect-ratio:1/1;height:auto}
.menu-home-card[data-aspect="1:1"] .card-cover img,
.menu-home-card[data-aspect="1:1"] .card-cover .yt-wrapper,
.menu-home-card[data-aspect="1:1"] .card-cover-placeholder{height:100%;aspect-ratio:1/1}
.menu-home-card[data-aspect="1:1"] .card-cover .yt-wrapper{padding-bottom:0}
