
:root {
  --h2-ink: #1f1633; --h2-muted: #5d5470; --h2-line: #ece6f5;
  --h2-p900: #33184f; --h2-p800: #3f1f63; --h2-p700: #55297f; --h2-p600: #6a3a9a; --h2-p500: #8455b8; --h2-p100: #f4effa; --h2-p50: #faf7fd;
  --h2-gold: #e7b74a; --h2-gold-soft: #f6e3b4;
  --h2-radius: 14px; --h2-shadow: 0 6px 22px rgba(52, 24, 84, .09);
}
body.h2-page { background: #fff; color: var(--h2-ink); font-family: 'Noto Sans Thai', 'Noto Sans', sans-serif; }
body.h2-page.h2-lock { overflow: hidden; }
.h2-page h1, .h2-page h2, .h2-page h3 { font-family: 'Noto Sans Thai', sans-serif; color: var(--h2-ink); }
.h2-page a { text-decoration: none; }
.h2-page a:focus-visible, .h2-page button:focus-visible { outline: 3px solid var(--h2-gold); outline-offset: 2px; }
.h2-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.h2-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.h2-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(40, 20, 70, .06); }
.h2-topbar { background: linear-gradient(90deg, var(--h2-p900), var(--h2-p700)); color: #f3ecfb; font-size: 13px; }
.h2-topbar .h2-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.h2-loc { display: flex; gap: 8px; align-items: center; color: #f3ecfb !important; line-height: 1.3; font-size: 12.5px; }
.h2-toplinks { display: flex; align-items: center; gap: 18px; }
.h2-toplinks a { color: #f3ecfb !important; white-space: nowrap; }
.h2-toplinks a:hover { color: #fff !important; text-decoration: underline; }
.h2-langs { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.h2-langs span { opacity: .5; }
.h2-langs a[aria-current] { color: var(--h2-gold) !important; }
.h2-pill, .h2-toplinks a.h2-pill, .h2-nav-mobile-extra a.h2-pill { background: var(--h2-gold-soft); color: var(--h2-p900) !important; font-weight: 700; padding: 6px 16px; border-radius: 20px; }
.h2-pill:hover { background: var(--h2-gold); text-decoration: none !important; }
.h2-mainbar .h2-container { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.h2-logo img { display: block; height: 58px; width: auto; }
.h2-nav { flex: 1; display: flex; justify-content: center; }
.h2-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.h2-nav-btn, .h2-nav-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 11px; font: inherit; font-size: 15px; font-weight: 600; color: var(--h2-ink) !important; cursor: pointer; border-radius: 8px; white-space: nowrap; }
.h2-nav-btn i { font-size: 10px; transition: transform .2s; }
.h2-nav-btn:hover, .h2-nav-link:hover { background: var(--h2-p100); color: var(--h2-p700) !important; }
.h2-has-sub { position: relative; }
.h2-sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px; background: #fff; border: 1px solid var(--h2-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(40, 20, 70, .16); display: none; z-index: 1001; }
.h2-sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--h2-ink) !important; font-size: 14.5px; line-height: 1.4; }
.h2-sub a:hover { background: var(--h2-p100); color: var(--h2-p700) !important; }
.h2-nav-btn[aria-expanded="true"] + .h2-sub { display: block; }
.h2-nav-btn[aria-expanded="true"] i { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1100px) { .h2-has-sub:hover > .h2-sub { display: block; } }
.h2-nav-list > li:nth-last-child(-n+2) .h2-sub { left: auto; right: 0; }
.h2-tools { display: flex; align-items: center; gap: 6px; }
.h2-icon-btn { width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; color: var(--h2-p700); font-size: 18px; cursor: pointer; }
.h2-icon-btn:hover { background: var(--h2-p100); }
.h2-social { display: flex; gap: 2px; padding-left: 8px; border-left: 1px solid var(--h2-line); }
.h2-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--h2-p800) !important; font-size: 17px; border-radius: 50%; }
.h2-social a:hover { background: var(--h2-p100); }
.h2-burger { display: none; }
.h2-nav-mobile-extra { display: none; }
.h2-search { background: var(--h2-p50); border-top: 1px solid var(--h2-line); padding: 14px 0; }
.h2-search .h2-container { display: flex; gap: 10px; }
.h2-search input[type=search] { flex: 1; height: 46px; border: 1px solid #d9cfe8; border-radius: 10px; padding: 0 14px; font-size: 16px; }
.h2-search button { height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--h2-p700); color: #fff; font-weight: 600; }

@media (max-width: 1099px) {
  .h2-topbar .h2-toplinks { display: none; }
  .h2-topbar .h2-container { min-height: 36px; }
  .h2-social { display: none; }
  .h2-burger { display: inline-flex; align-items: center; justify-content: center; }
  .h2-mainbar .h2-container { justify-content: space-between; min-height: 64px; }
  .h2-logo img { height: 46px; }
  .h2-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; z-index: 1100; flex-direction: column; justify-content: flex-start; padding: 70px 16px 24px; overflow-y: auto; transform: translateX(105%); transition: transform .25s ease; box-shadow: -10px 0 30px rgba(0,0,0,.18); }
  .h2-nav.is-open { transform: none; }
  .h2-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .h2-nav-list > li { border-bottom: 1px solid var(--h2-line); }
  .h2-nav-btn, .h2-nav-link { width: 100%; justify-content: space-between; padding: 14px 6px; font-size: 16px; white-space: normal; text-align: left; }
  .h2-sub { position: static; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .h2-nav-mobile-extra { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
  .h2-nav-mobile-extra a { padding: 10px 6px; color: var(--h2-ink) !important; }
  .h2-nav-mobile-extra .h2-langs { gap: 10px; padding: 6px; font-size: 15px; }
  .h2-nav-mobile-extra .h2-langs a { color: var(--h2-p700) !important; }
  .h2-nav-mobile-extra .h2-pill { text-align: center; margin-top: 8px; }
  .h2-burger[aria-expanded="true"] { position: fixed; right: 12px; top: 12px; z-index: 1200; background: var(--h2-p100); }
}
@media (max-width: 576px) { .h2-loc span { font-size: 11.5px; } }

/* ---------- hero (slider เดิมจาก DB) ---------- */
.h2-hero { background: linear-gradient(180deg, var(--h2-p50), #fff); padding: 18px 0 8px; }
.h2-hero .carousel { max-width: 1200px; margin: 0 auto; padding: 0 20px 30px; }
.h2-hero .carousel-inner { border-radius: 18px; box-shadow: var(--h2-shadow); max-width: none !important; }
.h2-hero .carousel-item img { aspect-ratio: 1440 / 780; object-fit: cover !important; }
.h2-hero .carousel-control-prev, .h2-hero .carousel-control-next { width: 44px; height: 44px; top: calc(50% - 37px); background: #fff; border-radius: 50%; opacity: .95; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.h2-hero .carousel-control-prev { left: 34px; } .h2-hero .carousel-control-next { right: 34px; }
.h2-hero .carousel-control-prev-icon, .h2-hero .carousel-control-next-icon { filter: invert(20%) sepia(40%) saturate(1500%) hue-rotate(245deg); width: 16px; height: 16px; }
.h2-hero .carousel-indicators { bottom: 0; margin-bottom: 4px; }
.h2-hero .carousel-indicators li { width: 9px; height: 9px; border-radius: 50%; background: #c8b8de; border: 0; opacity: 1; margin: 0 4px; }
.h2-hero .carousel-indicators li.active { background: var(--h2-p700); }
@media (max-width: 576px) { .h2-hero .carousel { padding: 0 12px 26px; } .h2-hero .carousel-inner { border-radius: 12px; } .h2-hero .carousel-control-prev, .h2-hero .carousel-control-next { width: 34px; height: 34px; top: calc(50% - 30px); } .h2-hero .carousel-control-prev { left: 18px; } .h2-hero .carousel-control-next { right: 18px; } }

/* ---------- quick access ---------- */
.h2-quick { padding: 18px 0 30px; }
.h2-quick .h2-container { display: flex; align-items: center; gap: 22px; }
.h2-quick-head { flex: none; padding: 16px 22px; background: #fff; border-radius: var(--h2-radius); box-shadow: var(--h2-shadow); border-right: 3px solid var(--h2-gold); }
.h2-quick-head h2 { font-size: 24px; font-weight: 800; color: var(--h2-p700); margin: 0; }
.h2-quick-head p { margin: 2px 0 0; color: var(--h2-muted); }
.h2-quick-grid { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.h2-quick-grid a { height: 100%; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; text-align: center; background: #fff; border-radius: var(--h2-radius); box-shadow: var(--h2-shadow); color: var(--h2-ink) !important; font-size: 14px; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.h2-quick-grid a > i { font-size: 26px; color: var(--h2-p700); }
.h2-quick-grid a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(52,24,84,.16); }
.h2-ext { font-size: 11px; color: var(--h2-p600); }
@media (max-width: 1099px) { .h2-quick .h2-container { flex-direction: column; align-items: stretch; } .h2-quick-head { border-right: 0; border-left: 4px solid var(--h2-gold); } .h2-quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .h2-quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .h2-quick-grid a { min-height: 84px; font-size: 12.5px; padding: 10px 4px; } .h2-quick-grid a > i { font-size: 22px; } }

/* ---------- programs ---------- */
.h2-programs { padding: 30px 0 34px; }
.h2-programs .h2-container { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; }
.h2-prog-intro h2 { font-size: 30px; font-weight: 800; color: var(--h2-p700); margin: 0 0 10px; }
.h2-prog-intro h2 span { font-weight: 500; color: var(--h2-p700); }
.h2-prog-intro p { color: var(--h2-muted); line-height: 1.75; margin-bottom: 18px; }
.h2-btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(90deg, var(--h2-p700), var(--h2-p600)); color: #fff !important; padding: 11px 22px; border-radius: 26px; font-weight: 700; box-shadow: 0 6px 16px rgba(85,41,127,.28); }
.h2-btn:hover { filter: brightness(1.08); }
.h2-prog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h2-prog-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--h2-radius); overflow: hidden; box-shadow: var(--h2-shadow); color: var(--h2-ink) !important; transition: transform .15s, box-shadow .15s; }
.h2-prog-card a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(52,24,84,.16); }
.h2-prog-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--h2-p100); }
.h2-prog-img img { width: 100%; height: 100%; object-fit: cover; }
.h2-prog-name { padding: 12px 14px 4px; font-weight: 700; font-size: 14.5px; line-height: 1.45; flex: 1; }
.h2-prog-name small { display: block; font-weight: 500; font-size: 12.5px; color: var(--h2-muted); margin-top: 2px; }
.h2-more { padding: 6px 14px 14px; color: var(--h2-p700); font-weight: 700; font-size: 13.5px; }
.h2-more i { margin-left: 6px; }
@media (max-width: 991px) { .h2-programs .h2-container { grid-template-columns: 1fr; } .h2-prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .h2-prog-grid { gap: 10px; } .h2-prog-name { font-size: 13.5px; padding: 10px 10px 2px; } .h2-more { padding: 6px 10px 12px; } }

/* ---------- overview ---------- */
.h2-overview { padding: 6px 0 36px; }
.h2-ov-band { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 22px 34px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 92% 120%, rgba(231,183,74,.55) 0 60px, transparent 61px), linear-gradient(100deg, #8e5cc5, var(--h2-p700) 60%, var(--h2-p800)); box-shadow: 0 14px 30px rgba(85,41,127,.25); }
.h2-ov-head h2 { color: #fff; font-size: 32px; font-weight: 800; margin: 0; }
.h2-ov-head p { margin: 0; opacity: .9; }
.h2-ov-head { flex: none; min-width: 230px; }
.h2-ov-stats { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.h2-ov-stats li { display: flex; align-items: center; justify-content: center; gap: 16px; border-left: 1px solid rgba(255,255,255,.35); padding: 6px 10px; }
.h2-ov-stats i { font-size: 34px; opacity: .95; }
.h2-ov-stats strong { display: block; font-size: 34px; line-height: 1.1; font-weight: 800; }
.h2-ov-stats span { font-size: 13.5px; line-height: 1.3; opacity: .95; }
.h2-ov-stats small { font-size: 12.5px; opacity: .85; }
@media (max-width: 991px) { .h2-ov-band { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 16px; } .h2-ov-stats li:first-child { border-left: 0; } }
@media (max-width: 576px) { .h2-ov-stats li { flex-direction: column; gap: 6px; padding: 6px 2px; } .h2-ov-stats i { font-size: 24px; } .h2-ov-stats strong { font-size: 26px; } .h2-ov-head h2 { font-size: 26px; } }

/* ---------- highlight ---------- */
.h2-highlight { padding: 10px 0 40px; background: radial-gradient(circle at 100% 30%, var(--h2-gold-soft) 0 2px, transparent 3px), linear-gradient(180deg, #fff, var(--h2-p50)); }
.h2-highlight .h2-container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.h2-video { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 16px 36px rgba(52,24,84,.18); aspect-ratio: 16 / 9; background: var(--h2-p100); }
.h2-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.h2-video:hover img { transform: scale(1.03); }
.h2-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--h2-p700); display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.h2-badge { display: inline-block; background: var(--h2-gold-soft); color: var(--h2-p900); font-weight: 700; font-size: 13px; padding: 5px 14px; border-radius: 14px; }
.h2-hl-text h2 { font-size: 30px; font-weight: 800; color: var(--h2-p700); margin: 12px 0 10px; }
.h2-hl-text p { color: var(--h2-muted); line-height: 1.75; margin-bottom: 20px; max-width: 520px; }
@media (max-width: 991px) { .h2-highlight .h2-container { grid-template-columns: 1fr; gap: 22px; } .h2-hl-text h2 { font-size: 24px; } }

/* ---------- news + events ---------- */
.h2-newsev { padding: 36px 0 44px; }
.h2-newsev-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 36px; }
.h2-events { border-left: 1px solid var(--h2-line); padding-left: 32px; }
.h2-sec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.h2-sec-head > i { font-size: 26px; color: var(--h2-p700); margin-top: 4px; }
.h2-sec-head h2 { font-size: 22px; font-weight: 800; color: var(--h2-p700); margin: 0; line-height: 1.2; }
.h2-sec-head p { margin: 2px 0 0; color: var(--h2-muted); font-size: 14px; }
.h2-sec-head > div { flex: 1; }
.h2-link { color: var(--h2-p700) !important; font-weight: 700; font-size: 14px; white-space: nowrap; margin-top: 6px; }
.h2-link i { margin-left: 4px; }
.h2-news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h2-news-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--h2-shadow); color: var(--h2-ink) !important; }
.h2-news-card a:hover .h2-news-title { color: var(--h2-p700); text-decoration: underline; }
.h2-news-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--h2-p100); }
.h2-news-img img { width: 100%; height: 100%; object-fit: cover; }
.h2-news-title { padding: 12px 14px 6px; font-weight: 600; font-size: 14.5px; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h2-news-date { padding: 0 14px 14px; font-size: 13px; color: var(--h2-muted); }
.h2-news-date i { color: var(--h2-p700); margin-right: 4px; }
.h2-ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.h2-ev-btn { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 0; border-radius: 14px; padding: 12px; box-shadow: var(--h2-shadow); cursor: pointer; font: inherit; color: var(--h2-ink); }
.h2-ev-btn:hover { box-shadow: 0 12px 28px rgba(52,24,84,.16); }
.h2-ev-date { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--h2-p100); color: var(--h2-p700); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.h2-ev-date strong { font-size: 24px; font-weight: 800; }
.h2-ev-date span { font-size: 13px; font-weight: 700; }
.h2-ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.h2-ev-title { font-weight: 600; font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h2-ev-venue { font-size: 13px; color: var(--h2-muted); }
.h2-ev-venue i { color: var(--h2-p700); margin-right: 4px; }
.h2-ev-go { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--h2-p100); color: var(--h2-p700); display: flex; align-items: center; justify-content: center; }
.h2-empty { color: var(--h2-muted); padding: 16px; background: var(--h2-p50); border-radius: 12px; }
.h2-dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, 94vw); max-height: 90vh; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.h2-dialog::backdrop { background: rgba(20, 10, 35, .55); }
.h2-dialog-img { display: block; width: 100%; max-height: 50vh; object-fit: contain; background: var(--h2-p50); }
.h2-dialog-body { padding: 18px 22px 24px; }
.h2-dialog-body h3 { font-size: 20px; margin: 0 0 8px; }
.h2-dialog-meta { color: var(--h2-muted); font-size: 14px; line-height: 1.7; }
.h2-dialog-meta i { color: var(--h2-p700); width: 18px; }
.h2-dialog-detail { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.h2-dialog-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 18px; cursor: pointer; z-index: 1; }
@media (max-width: 991px) { .h2-newsev-grid { grid-template-columns: 1fr; } .h2-events { border-left: 0; padding-left: 0; } }
@media (max-width: 700px) { .h2-news-grid { grid-template-columns: 1fr; } .h2-news-card a { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: 1fr auto; } .h2-news-img { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; min-height: 104px; } .h2-news-title { -webkit-line-clamp: 3; padding: 10px 12px 2px; font-size: 14px; } .h2-news-date { padding: 0 12px 10px; } }

/* ---------- VOC ---------- */
.h2-voc { padding: 42px 0 52px; text-align: center; background: linear-gradient(180deg, var(--h2-p50), #efe7f8); }
.h2-voc h2 { font-size: 28px; font-weight: 800; color: var(--h2-p800); margin: 0; }
.h2-voc-sub { letter-spacing: 4px; color: var(--h2-p700); font-weight: 700; font-size: 13px; margin: 6px 0 26px; }
.h2-voc-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h2-voc-grid a { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 14px; background: #fff; border-radius: var(--h2-radius); box-shadow: var(--h2-shadow); color: var(--h2-ink) !important; transition: transform .15s; }
.h2-voc-grid a:hover { transform: translateY(-3px); }
.h2-voc-ic { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--h2-p600), var(--h2-p800)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.h2-voc-grid strong { font-size: 15px; line-height: 1.45; }
.h2-voc-grid span:last-child { font-size: 13px; color: var(--h2-muted); }
@media (max-width: 991px) { .h2-voc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .h2-voc-grid { gap: 10px; } .h2-voc-grid a { padding: 16px 8px; } .h2-voc-grid strong { font-size: 13.5px; } }

/* ---------- footer ---------- */
.h2-footer { background: linear-gradient(100deg, var(--h2-p900), var(--h2-p700)); color: #eee6f7; font-size: 14px; }
.h2-footer a { color: #eee6f7 !important; }
.h2-footer a:hover { color: #fff !important; text-decoration: underline; }
.h2-foot-grid { display: grid; grid-template-columns: 240px 1.4fr 1fr auto; gap: 28px; padding-top: 30px; padding-bottom: 26px; align-items: start; }
.h2-foot-grid > div { border-left: 1px solid rgba(255,255,255,.18); padding-left: 24px; }
.h2-foot-logo img { height: 66px; width: auto; }
.h2-foot-contact p { display: flex; gap: 10px; margin: 0 0 10px; line-height: 1.6; }
.h2-foot-row { flex-wrap: wrap; }
.h2-foot-row i { margin-right: 6px; }
.h2-footer h2 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.h2-foot-links ul { list-style: none; margin: 0; padding: 0; }
.h2-foot-links li { margin-bottom: 5px; }
.h2-foot-links li::before { content: "–"; margin-right: 8px; opacity: .7; }
.h2-foot-links i { font-size: 10px; margin-left: 4px; }
.h2-foot-social p { display: flex; gap: 10px; margin: 0; }
.h2-foot-social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--h2-p800) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.h2-foot-social a:hover { background: var(--h2-gold-soft); text-decoration: none !important; }
.h2-foot-bottom { border-top: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.12); font-size: 12.5px; }
.h2-foot-bottom .h2-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.h2-foot-bottom p { margin: 0; }
.h2-foot-legal { display: flex; gap: 12px; flex-wrap: wrap; }
.h2-foot-legal span { opacity: .5; }
@media (max-width: 991px) { .h2-foot-grid { grid-template-columns: 1fr 1fr; } .h2-foot-grid > div { border-left: 0; padding-left: 0; } }
@media (max-width: 576px) { .h2-foot-grid { grid-template-columns: 1fr; gap: 20px; } .h2-foot-bottom .h2-container { flex-direction: column; align-items: flex-start; } }

/* ปุ่ม Messenger / back-to-top เดิม: อย่าทับ cookie banner บนมือถือ */
.h2-page .fb-customerchat { z-index: 900; }

/* ส่วนที่หน้าแรกเดิมมี: ข่าวล่าสุดครบ 15, วารสารข่าวรายเดือน (ใช้ markup hvx-* จาก homev/sections) */
body.h2-page { --hvx-accent: #55297f; --hvx-ink: #1f1633; --hvx-mute: #5d5470; --hvx-line: #ece6f5; --hvx-soft: #f4effa; --hvx-radius: 14px; --hvx-focus: #e7b74a; }
.h2-more-news { padding: 6px 0 40px; }
.h2-row-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.h2-journal { padding: 40px 0; background: var(--h2-p50); }
.h2-journal .h2-sec-head, .h2-more-news .h2-sec-head { margin-bottom: 18px; }
.h2-ov-stats a { display: flex; align-items: center; justify-content: center; gap: 16px; color: inherit !important; }
.h2-ov-stats a:hover strong { text-decoration: underline; }
.h2-cap { font-weight: 700; opacity: 1 !important; }
@media (max-width: 576px) { .h2-ov-stats a { flex-direction: column; gap: 6px; } }

.hvx-ctl { display: inline-flex; gap: 8px; }
.hvx-arr { width: 38px; height: 38px; border-radius: var(--hvx-round, 50%); border: 1px solid var(--hvx-line, #e5e0ef); background: var(--hvx-card, #fff); color: var(--hvx-accent, #55297f); cursor: pointer; display: inline-grid; place-items: center; box-shadow: 0 3px 10px rgba(30,15,60,.08); }
.hvx-arr:hover { background: var(--hvx-accent, #55297f); color: #fff; border-color: var(--hvx-accent, #55297f); }
.hvx-row { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; list-style: none; margin: 0; }
.hvx-row::-webkit-scrollbar { display: none; }
.hvx-row > li { scroll-snap-align: start; min-width: 0; }
.hvx-row:focus-visible { outline: 3px solid var(--hvx-focus, #e2b54c); outline-offset: 3px; }
/* ภาพประกาศ */
.hvx-slides { grid-auto-columns: calc((100% - 32px) / 3); }
.hvx-slides a, .hvx-slides span { display: block; border-radius: var(--hvx-radius, 14px); overflow: hidden; background: var(--hvx-card, #fff); border: 1px solid var(--hvx-line, #e5e0ef); box-shadow: 0 6px 18px rgba(30,15,60,.08); }
.hvx-slides img { display: block; width: 100%; aspect-ratio: 1440 / 780; object-fit: cover; transition: transform .4s; }
.hvx-slides a:hover img { transform: scale(1.03); }
/* ข่าว */
.hvx-news { grid-auto-columns: calc((100% - 48px) / 4); }
.hvx-news a { display: flex; flex-direction: column; height: 100%; border-radius: var(--hvx-radius, 14px); overflow: hidden; background: var(--hvx-card, #fff); border: 1px solid var(--hvx-line, #e5e0ef); box-shadow: 0 6px 18px rgba(30,15,60,.07); color: var(--hvx-ink, #221a33) !important; }
.hvx-n-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.hvx-n-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hvx-news a:hover .hvx-n-img img { transform: scale(1.04); }
.hvx-n-b { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.hvx-n-meta, .hvx-n-by { font-size: 12.5px; color: var(--hvx-mute, #6f6784); }
.hvx-n-b strong { font-size: 14.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hvx-news a:hover strong { color: var(--hvx-accent, #55297f); }
.hvx-n-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--hvx-accent, #55297f); display: inline-flex; gap: 6px; align-items: center; }
/* วารสาร */
.hvx-journals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.hvx-journals a { display: flex; flex-direction: column; height: 100%; border-radius: var(--hvx-radius, 14px); overflow: hidden; background: var(--hvx-card, #fff); border: 1px solid var(--hvx-line, #e5e0ef); box-shadow: 0 8px 22px rgba(30,15,60,.08); color: var(--hvx-ink, #221a33) !important; transition: transform .2s, box-shadow .2s; }
.hvx-journals a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,15,60,.14); }
.hvx-j-cover { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hvx-soft, #f3eff9); color: var(--hvx-accent, #55297f); font-size: 40px; }
.hvx-j-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hvx-j-pdf { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.hvx-j-b { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.hvx-j-date { font-size: 13px; font-weight: 700; color: var(--hvx-accent, #55297f); }
.hvx-j-b strong { font-size: 15px; font-weight: 600; line-height: 1.45; }
.hvx-j-go { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--hvx-accent, #55297f); display: inline-flex; gap: 6px; align-items: center; }
/* VOC */
.hvx-voc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.hvx-voc a { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 18px 18px 20px; border-radius: var(--hvx-radius, 14px); background: var(--hvx-card, #fff); border: 1px solid var(--hvx-line, #e5e0ef); box-shadow: 0 6px 18px rgba(30,15,60,.07); color: var(--hvx-ink, #221a33) !important; }
.hvx-voc a:hover { border-color: var(--hvx-accent, #55297f); }
.hvx-voc-ic { width: 46px; height: 46px; border-radius: var(--hvx-round, 50%); display: grid; place-items: center; background: var(--hvx-soft, #f3eff9); color: var(--hvx-accent, #55297f); font-size: 19px; }
.hvx-voc strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.hvx-voc small { display: block; font-size: 13px; color: var(--hvx-mute, #6f6784); margin-top: 3px; }
.hvx-voc-ext { position: absolute; right: 14px; top: 16px; font-size: 12px; color: var(--hvx-mute, #6f6784); }
/* หลักสูตร 6 รายการ */
.hvx-progs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.hvx-progs a { display: flex; gap: 12px; align-items: center; height: 100%; padding: 10px; border-radius: var(--hvx-radius, 14px); background: var(--hvx-card, #fff); border: 1px solid var(--hvx-line, #e5e0ef); color: var(--hvx-ink, #221a33) !important; box-shadow: 0 4px 12px rgba(30,15,60,.05); }
.hvx-progs a:hover { border-color: var(--hvx-accent, #55297f); }
.hvx-p-img { flex: none; width: 74px; height: 74px; border-radius: calc(var(--hvx-radius, 14px) * .7); overflow: hidden; }
.hvx-p-img img { width: 100%; height: 100%; object-fit: cover; }
.hvx-p-b strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.hvx-p-b small { display: block; font-size: 12.5px; color: var(--hvx-mute, #6f6784); }
.hvx-p-lv { display: block; font-size: 12.5px; font-weight: 600; color: var(--hvx-accent, #55297f); margin-top: 3px; }
/* ลดงาน layout ตอนโหลด: section ที่อยู่ใต้จอแรกยังไม่ต้องคำนวณจนกว่าจะเลื่อนใกล้ถึง */
.h2-main > section:nth-of-type(n+3), .v1-main > section:nth-of-type(n+3), .v2-main > section:nth-of-type(n+3), .v3-main > section:nth-of-type(n+3), .hv1-page .v1-foot, .hv2-page .v2-foot, .hv3-page .v3-foot, .h2-page .h2-footer { content-visibility: auto; contain-intrinsic-size: auto 640px; }
@media (max-width: 1100px) { .hvx-news { grid-auto-columns: calc((100% - 32px) / 3); } .hvx-voc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hvx-progs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hvx-slides { grid-auto-columns: 86%; } .hvx-news { grid-auto-columns: 78%; }
  .hvx-journals, .hvx-progs { grid-template-columns: 1fr; } .hvx-voc { grid-template-columns: 1fr; }
  .hvx-journals a { flex-direction: row; } .hvx-j-cover { flex: none; width: 120px; aspect-ratio: 3 / 4; }
}
@media (prefers-reduced-motion: reduce) { .hvx-slides img, .hvx-n-img img, .hvx-journals a { transition: none; } }
