/**
 * FDSPU Theme - Minimal Light
 * ธีม minimal สีขาว เทา ดำ น้ำเงิน
 */

:root {
  --bs-gutter-x: 0;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #eeeeee;
  --surface-dark: #e0e0e0;
  --surface-light: #fafafa;
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --shadow-neumorphic: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-neumorphic-inset: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-neumorphic-hover: 0 4px 12px rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.06);
  --theme-primary-light: rgba(37, 99, 235, 0.08);
  --nav-accent: var(--primary-blue);
  --nav-accent-hover: var(--primary-blue-hover);
}

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

.container, .container-fluid { --bs-gutter-x: 0; }
html { background-color: var(--bg-primary); min-height: 100%; }
body { padding-top: 0; min-height: 100vh; display: flex; flex-direction: column; }

body {
  font-family: 'Prompt', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
/* ให้ content ใช้พื้นที่ แล้ว footer อยู่ด้านล่างเสมอ */
body > .ribbon,
body > main {
  flex: 1 0 auto;
}
.footer-modern { flex-shrink: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue-hover); }

.btn-primary-modern {
  background: var(--primary-blue); border: none; color: white;
  padding: 14px 32px; border-radius: 8px;
  font-weight: 500; font-size: 16px;
  transition: all 0.2s ease;
}
.btn-primary-modern:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
}

/* ── Header & Navbar (Logo + Hero scroll, Nav sticky) ── */
.site-header {
  background: var(--bg-primary);
  transition: all 0.2s ease;
  margin-bottom: 0;
}
.header-nav-holder {
  margin-bottom: 0;
}

/* Logo ใน nav ฝั่งซ้าย */
.header-logo {
  display: flex; align-items: center;
  font-weight: 700; font-size: 1.5rem; color: var(--nav-accent);
  text-decoration: none; flex-shrink: 0;
}
.header-logo-nav {
  margin-right: 1rem;
}
.header-logo img {
  height: 67px; max-width: 160px; margin: 15px; object-fit: contain;
}
.header-logo-text { margin-left: 8px; }
.header-logo:hover { color: var(--nav-accent-hover); opacity: 0.9; }

/* Nav Row - พื้นหลังกระจกขุ่น (frosted glass) */
.header-nav {
  padding: 0;
  margin-bottom: 0;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: box-shadow 0.2s;
}
.header-nav-sticky { z-index: 1020; }
.header-nav-sticky.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 1);
  /* backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); */
  box-shadow: 0 2px 12px rgb(0 0 0 / 20%);
  
}
.header-nav-container {
  --bs-gutter-x: 0;
  position: relative;
  display: flex; align-items: center;
}
/* Shadow แสดงเฉพาะเมื่อ scroll แล้วและ nav เป็น fixed */
.header-nav.is-fixed .header-nav-container.scrolled {
  /* box-shadow: 0px 6px 4px -5px rgb(0 0 0 / 0.5); */
}
.header-nav-scroll-wrap {
  position: relative; flex-grow: 1; min-width: 0;
  display: flex; align-items: center;
}
.header-nav-collapse { flex: 1; min-width: 0; }
.header-search-btn {
  width: 55px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.header-search-btn:hover {
  background: var(--theme-primary-light);
  color: var(--nav-accent);
}
.header-search-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}
/* ── Search Modal ── */
.nav-search-modal .modal-dialog { margin: 0; }
.nav-search-modal-content {
  background: radial-gradient(ellipse at 30% 20%, #1a2744 0%, #0b0f1e 55%, #0f0b1c 100%) !important;
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* subtle noise texture */
.nav-search-modal-content::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.nav-search-modal-close {
  position: fixed; top: 18px; right: 22px; z-index: 10;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%; color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, color .15s;
}
.nav-search-modal-close:hover { background: rgba(255,255,255,.2); color: #fff; }
.nav-search-modal-body {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 2rem 1.25rem;
}
.nav-search-inner {
  width: 100%; max-width: 660px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  animation: searchSlideIn .22s cubic-bezier(.22,1,.36,1) both;
}
@keyframes searchSlideIn {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-search-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(37,99,235,.18);
  border: 1px solid rgba(37,99,235,.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #60a5fa;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 32px rgba(37,99,235,.2);
}
.nav-search-label {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-bottom: 1.5rem;
  text-align: center;
}
/* Input */
.nav-search-form { width: 100%; margin-bottom: 1.5rem; }
.nav-search-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 4px 4px 4px 18px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.nav-search-input-wrap:focus-within {
  border-color: rgba(96,165,250,.7);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18), 0 8px 32px rgba(0,0,0,.3);
}
.nav-search-input-icon {
  color: rgba(255,255,255,.4); font-size: 1rem; flex-shrink: 0; margin-right: 10px;
}
.nav-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 1.15rem;
  font-family: inherit;
  padding: 10px 0;
  min-width: 0;
}
.nav-search-input::placeholder { color: rgba(255,255,255,.35); }
.nav-search-input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.nav-search-submit {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: #2563eb; border: none; border-radius: 12px;
  color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, transform .15s;
}
.nav-search-submit:hover { background: #1d4ed8; transform: scale(1.05); }
/* Categories */
.nav-search-cats { width: 100%; margin-bottom: 1.25rem; }
.nav-search-cats-label {
  display: block;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .6rem;
}
.nav-search-cats-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.nav-search-cat-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  color: rgba(255,255,255,.75);
  font-size: .82rem; font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.nav-search-cat-pill:hover {
  background: rgba(96,165,250,.18);
  border-color: rgba(96,165,250,.4);
  color: #93c5fd;
}
/* Recent searches */
.nav-search-recent { width: 100%; margin-bottom: 1.25rem; }
.nav-search-recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-search-recent-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  color: rgba(255,255,255,.6);
  font-size: .8rem; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-search-recent-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-search-recent-item i { font-size: .72rem; color: rgba(255,255,255,.3); }
/* Hint */
.nav-search-hint {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.3); font-size: .78rem; margin-top: .5rem;
}
.nav-search-hint kbd {
  display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  font-size: .72rem; font-family: inherit;
}
.nav-search-hint-sep { color: rgba(255,255,255,.15); }
.header-nav-list {
  display: flex; align-items: center; gap: 0;
  margin: 0; padding: 0; list-style: none;
  min-width: 100%; /* ทำให้ list เต็มความกว้าง collapse เสมอ */
}
.header-nav-item { margin: 0; flex-shrink: 0; }
/* ปุ่มค้นหา: margin-left: auto ดันขวาสุดเมื่อไม่ล้น
   position: sticky; right: 0 ติดขอบขวาเมื่อล้นและ scroll */
.header-nav-item-search {
  margin-left: auto;
  position: sticky;
  right: 0;
  z-index: 2;
  flex-shrink: 0;
  /* fade ซ้ายให้กลืนกับ nav bg */
  background: linear-gradient(to right, transparent 0%, #fff 20px);
  padding-left: 10px;
}
.header-nav-sticky.is-fixed .header-nav-item-search {
  background: linear-gradient(to right, transparent 0%, #fff 20px);
}
.header-nav-link {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  margin: 22px 0;
  font-size: 0.95rem; font-weight: 500; color: var(--text-primary);
  text-decoration: none; border-radius: 6px;
  transition: color 0.2s, background 0.2s, margin 0.25s ease;
}
.header-nav-container.scrolled .header-nav-link {
  margin: 5px 0;
}
.header-nav-link:hover {
  color: var(--nav-accent);
  background: var(--theme-primary-light);
}
.header-nav-link.active {
  background: var(--nav-accent);
  color: #fff !important;
}
/* กำจัดช่องว่างระหว่าง nav กับ content */
.ribbon {
  margin-top: 0;
  padding-top: 0;
}

/* Hero - aspect-ratio 16:9 ให้ container พอดีกับรูปทุกขนาดจอ */
.hero-section-wrap {
  padding: 1rem 0 1rem;
  overflow: visible;
}
.hero-section-wrap .hero-container,
.hero-container {
  /* --bs-gutter-x: 0; */
}
.hero-section-wrap.hero-in-section {
  padding: 0;
}
.hero-classic {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 1920/720;
  border-radius: 6px;
  /* border: 1px solid var(--border-subtle); */
}
.hero-classic .carousel {
  width: 100%; height: 100%;
}
.hero-classic .carousel-inner,
.hero-classic .carousel-item {
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 0;
}
.hero-classic .hero-slide-link {
  display: block; position: relative; height: 100%; width: 100%;
}
.hero-classic .hero-slide-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero-modern {
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-modern::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

/* หน้า Category: แบนเนอร์เต็มความกว้าง คล้าย hero — ข้อความกึ่งกลาง */
.category-page-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(2.25rem, 5.5vw, 4rem) 1.25rem;
  overflow: hidden;
}
.category-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1d4ed8 42%, #0f172a 100%);
}
.category-page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 60% at 50% -10%, rgba(255, 255, 255, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(59, 130, 246, 0.35) 0%, transparent 50%);
  opacity: 1;
}
.category-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.category-page-hero__breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.category-page-hero__crumb-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}
.category-page-hero__crumb-link:hover {
  color: #fff;
  text-decoration: underline;
}
.category-page-hero__crumb-sep {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0.15rem;
}
.category-page-hero__crumb-current {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}
.category-page-hero__title {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-page-hero__desc {
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.card-modern {
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 24px; height: 100%; position: relative; overflow: hidden;
  transition: all 0.2s ease; cursor: pointer;
  display: flex; justify-content: space-between; flex-direction: column;
}
.card-modern:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-neumorphic-hover);
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--primary-blue);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 20px; color: white;
}
.card-title-modern { font-size: 1.25rem; font-weight: 500; color: var(--text-primary); margin-bottom: 16px; text-align: center; }
.card-text-modern { color: var(--text-secondary); text-align: center; line-height: 1.6; }

/* ── NEWS SITE STYLES ── */
.section-news { padding: 1rem 0; }
.section-header-news {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.section-header-news-text { flex: 1; min-width: 0; }
.section-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--primary-blue); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.5rem;
}
.section-title-news {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600;
  color: var(--text-primary); margin: 0; line-height: 1.3;
}

/* ── Image aspect ratios (รองรับ 4:5, 5:4, 1:1, 16:9) ── */
.news-img-16-9 { aspect-ratio: 16/9; }
.news-img-5-4 { aspect-ratio: 5/4; }
.news-img-3-4 { aspect-ratio: 3/4; }
.news-img-4-3 { aspect-ratio: 4/3; }
.news-img-4-5 { aspect-ratio: 4/5; }
.news-img-1-1 { aspect-ratio: 1/1; }
.news-img-wrap {
  position: relative; overflow: hidden;
}
.news-img-wrap img,
.news-featured-img-wrap img,
.news-card-img-wrap img,
.news-item-compact-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.4s ease;
}
/* ── News Card Frame: blurred bg fill (inject by news-card-frame.js) ── */
.ncf-active {
  background: #141414;
  isolation: isolate;
  position: relative;
  overflow: hidden;
}
.ncf-bg {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(14px) brightness(0.6) saturate(1.1);
  transform: scale(1.14);
  pointer-events: none;
  z-index: 0;
}
/* ภาพจริงใน card: contain เพื่อเห็นครบ + อยู่เหนือ bg */
.ncf-active > img,
.ncf-active img {
  object-fit: contain !important;
  object-position: center !important;
  position: relative;
  z-index: 1;
}
/* SVG placeholder จะไม่มี .ncf-active — ดูแลโดย existing no-image rules */

/* ── No Image placeholder ── */
.news-img-wrap img[src^="data:image/svg"],
.news-featured-img-wrap img[src^="data:image/svg"],
.news-card-img-wrap img[src^="data:image/svg"],
.news-item-compact-img img[src^="data:image/svg"],
.hall-of-fame-card-img img[src^="data:image/svg"],
.single-news-related-img img[src^="data:image/svg"],
.single-news-sidebar-item-img img[src^="data:image/svg"] {
  object-fit: contain;
  background: #f1f5f9;
  padding: 4px;
}
.news-hero-frame img.news-hero-img[src^="data:image/svg"] {
  object-fit: contain;
  background: #f1f5f9;
  padding: 8px;
}

/* ภาพปกแนวตั้ง + จัตุรัส: กรอบ 4:3 แนวนอน — ภาพต้นฉบับชัดตรงกลาง + พื้นหลังซ้าย-ขวาจากรูปเดียวกัน (เบลอ) */
.news-hero-frame {
  position: relative;
  overflow: hidden;
  background: #141414;
  isolation: isolate;
}
.news-hero-frame .news-hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px) brightness(0.7) saturate(1.1);
  transform: scale(1.15);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s ease;
}
.news-hero-frame.news-hero-portrait .news-hero-bg {
  opacity: 1;
}
.news-hero-frame .news-hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.news-hero-frame.news-hero-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-hero-frame.news-hero-portrait .news-hero-img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* แนวนอน (กว้าง > สูง): ยกเลิก aspect-ratio 4:3 — สูงตามสัดส่วนภาพจริง */
.news-hero-frame.news-hero-landscape {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  background: var(--bg-secondary, #eaeaea);
}
.news-hero-frame.news-hero-landscape .news-hero-bg {
  display: none;
}
.news-hero-frame.news-hero-landscape .news-hero-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: unset;
  object-position: center;
  vertical-align: middle;
}

.news-featured-img-wrap.news-hero-frame .news-category-badge {
  z-index: 3;
}

.news-featured-img-wrap,
.news-card-img-wrap,
.news-item-compact-img {
  position: relative; overflow: hidden;
}

/* Sidebar box */
.news-sidebar-box {
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 1.25rem;
  display: flex; flex-direction: column;
  /* ความสูงถูกกำหนดโดย JS (= ความสูง featured article) */
  overflow: hidden;
}
/* auto-scroll area */
.news-list-sidebar {
  flex: 1; overflow: hidden; position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 88%, transparent 100%);
}
.news-list-sidebar-track {
  will-change: transform;
}
.news-sidebar-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.news-sidebar-title {
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
  margin: 0; padding: 0;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.news-section-more { text-align: right; }

/* Partners / หน่วยงานพันธมิตร */
.section-partners {
  padding: 3rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}
.section-partners-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600;
  color: var(--text-primary); text-align: center; margin: 0 0 2rem;
}

/* แนะนำวิดีโอ - 2 แถว x 3 คอลัมน์ หลัง ฉายหนัง */
.section-featured-videos {
  padding: 2rem 0 3rem;
  background: var(--bg-primary);
}
.section-featured-videos-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 1.5rem;
}
/* featured-videos: layout = Bootstrap .row + col-6 (มือถือ 2 คอลัมน์) col-md-4 col-lg-4 */
.featured-video-card {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  background: var(--bg-primary);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.featured-video-card:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.featured-video-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-neumorphic-hover);
}
.featured-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.featured-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.featured-video-card:hover:not(:disabled) .featured-video-thumb img {
  transform: scale(1.05);
}
.featured-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.featured-video-card:hover:not(:disabled) .featured-video-play,
.featured-video-card:focus-visible:not(:disabled) .featured-video-play {
  opacity: 1;
}
.featured-video-play i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  border-radius: 50%;
  padding-left: 4px;
}
.featured-video-label {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}
/* ─── Video.js hover controls ───────────────────────────────────────── */
/* ซ่อนปุ่ม download */
.video-js .vjs-control-bar .vjs-download-button,
.video-js video::-webkit-media-controls-download-button,
video::-webkit-media-controls-download-button { display: none !important; }
/* ซ่อน control bar เริ่มต้น แสดงเมื่อ hover หรือ active */
.video-js .vjs-control-bar {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.video-js:hover .vjs-control-bar,
.video-js.vjs-user-active .vjs-control-bar {
  opacity: 1 !important;
  visibility: visible !important;
}
.video-js.vjs-user-inactive .vjs-control-bar {
  opacity: 0;
  visibility: hidden;
}
/* ปุ่มเล่นตรงกลาง: แสดงตลอดเมื่อยังไม่เริ่มเล่น, ซ่อนเมื่อเล่นแล้ว */
.video-js .vjs-big-play-button {
  transition: opacity 0.2s ease;
}
.video-js.vjs-playing .vjs-big-play-button {
  opacity: 0;
  pointer-events: none;
}
/* ─────────────────────────────────────────────────────────────────── */

/* direct video (Video.js) ใน featured-videos section */
.featured-video-card-direct {
  background: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
}
.featured-video-card-direct .video-js {
  min-height: 160px;
}
.featured-video-card-direct .featured-video-label {
  background: var(--card-bg, #fff);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  margin: 0;
}
.partners-logo-item {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px;
  width: 100%;
  max-width: 65%;
  padding: 0.5rem;
}
@media (max-width: 575px) {
  .section-partners .partners-logo-item {
    min-height: 48px;
    padding: 0.25rem;
  }
  .section-partners .partners-logo-item img {
    max-height: 40px;
  }
}
.partners-logo-item img {
  max-height: 80px;
  max-width: 115px;
  width: 40%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* Featured news */
.news-featured-link { display: block; }
.news-featured {
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
  border-radius: 8px; overflow: hidden; height: 100%;
  transition: all 0.2s ease;
}
.news-featured:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-neumorphic-hover);
}
.news-featured-img-wrap {
  position: relative; overflow: hidden;
}
.news-featured-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.4s ease;
}
.news-featured:hover .news-featured-img-wrap img { transform: scale(1.02); }
.news-featured-content { padding: 1.5rem 1.25rem; }
.news-featured-date {
  font-size: 0.8rem; color: var(--text-muted);
  display: block; margin-bottom: 0.5rem;
}
.news-featured-title {
  font-size: 1.35rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; margin: 0 0 0.75rem;
  transition: color 0.25s;
}
.news-featured:hover .news-featured-title { color: var(--primary-blue-light); }
.news-featured-excerpt {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.6; margin: 0 0 1rem;
}
.news-read-more {
  font-size: 0.875rem; font-weight: 500; color: var(--primary-blue);
  display: inline-flex; align-items: center; gap: 0.25rem;
  transition: gap 0.2s;
}
.news-featured:hover .news-read-more,
.news-card:hover .news-read-more { gap: 0.5rem; }

/* Sidebar news list */
.news-list-sidebar { display: flex; flex-direction: column; gap: 0; }
.news-item-compact {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; margin: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: background 0.25s;
}
.news-item-compact:last-child { border-bottom: none; }
.news-item-compact:hover {
  background: var(--theme-primary-light);
  margin: 0;
}
.news-item-compact-img {
  flex-shrink: 0; width: 88px; min-width: 88px;
  border-radius: 8px; overflow: hidden;
}
.news-item-compact-img.news-img-1-1 { aspect-ratio: 1/1; }
.news-item-compact-img.news-img-3-4 { aspect-ratio: 3/4; }
.news-item-compact-img.news-img-4-3 { aspect-ratio: 4/3; }
.news-item-compact-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.news-item-compact-body { flex: 1; min-width: 0; }
.news-category-tag {
  font-size: 0.65rem; font-weight: 600; color: var(--primary-blue);
  text-transform: uppercase; display: block; margin-bottom: 0.25rem;
}
.news-item-compact-title {
  font-size: 0.9rem; font-weight: 500; color: var(--text-primary);
  line-height: 1.4; margin: 0 0 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-compact:hover .news-item-compact-title { color: var(--primary-blue); }
.news-item-compact-date {
  font-size: 0.75rem; color: var(--text-muted);
}

/* Category badge on cards */
.news-category-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.7rem; font-weight: 600;
  background: var(--primary-blue); color: #fff;
  padding: 4px 10px; border-radius: 4px;
  z-index: 2;
}

/* News cards */
.news-card {
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
  border-radius: 8px; overflow: hidden; height: 100%;
  transition: all 0.2s ease;
}
.news-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-neumorphic-hover);
}
.news-card-img-wrap {
  position: relative; overflow: hidden;
}
.news-card-img-wrap.news-img-5-4 { aspect-ratio: 5/4; }
.news-card-img-wrap.news-img-3-4 { aspect-ratio: 3/4; }
.news-card-img-wrap.news-img-4-3 { aspect-ratio: 4/3; }
.news-card-img-wrap.news-img-16-9 { aspect-ratio: 16/9; }
.news-card-img-wrap.news-img-4-5 { aspect-ratio: 4/5; }
.news-card-img-wrap.news-img-1-1 { aspect-ratio: 1/1; }
.news-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.4s ease;
}

/* หมวดหมู่ในหน้า home: hover รูป overlay สีขาวจาง */
.section-news--category .news-card-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}
.section-news--category .news-card:hover .news-card-img-wrap::after {
  background: rgba(255, 255, 255, 0.35);
}
.news-card-content { padding: 1.25rem; }
.news-card .news-date {
  font-size: 0.8rem; color: var(--text-muted);
  display: block; margin-bottom: 0.5rem;
}
.news-card .news-title {
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; margin: 0 0 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-title { color: var(--primary-blue); }
.news-excerpt {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.5; margin: 0 0 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-read-more { font-size: 0.8rem; }

/* หน้า category: จอเล็ก แสดง card แนวนอน */
@media (max-width: 767.98px) {
  .category-news-row .news-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 100px;
  }
  .category-news-row .news-card-img-wrap {
    flex: 0 0 120px;
    width: 120px;
    min-height: 90px;
    aspect-ratio: 4/3;
  }
  .category-news-row .news-card-content {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .category-news-row .news-card .news-title {
    -webkit-line-clamp: 2;
    margin-bottom: 0.25rem;
  }
  .category-news-row .news-card .news-date {
    margin-bottom: 0;
    font-size: 0.75rem;
  }
  .category-news-row .news-card p.theme-text-muted.small {
    display: none;
  }
}

.btn-news-more {
  display: inline-flex; align-items: center; gap: 0.35em; flex-shrink: 0;
  font-weight: 500; font-size: 0.9rem;
  color: var(--primary-blue);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.btn-news-more::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--primary-blue);
  transition: width 0.25s ease;
}
.btn-news-more:hover {
  color: var(--primary-blue-hover);
}
.btn-news-more:hover::after {
  width: 100%;
}
.btn-news-more i {
  font-size: 0.75em;
  transition: transform 0.2s ease;
}
.btn-news-more:hover i {
  transform: translateX(3px);
}

/* Quick menu */
.section-quickmenu { padding: 48px 0; }
.section-header-inline { margin-bottom: 1.5rem; }
.section-title-inline {
  font-size: 1.25rem; font-weight: 600; color: var(--text-primary);
  margin: 0; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--text-primary);
  display: inline-block;
}
.quickmenu-item:hover .quickmenu-arrow {
  color: var(--primary-blue); transform: translateX(4px);
}
.quickmenu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.quickmenu-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--bg-primary);
  border: 1px solid var(--border-subtle); border-radius: 6px;
  color: var(--text-primary); text-decoration: none;
  transition: all 0.2s ease;
}
.quickmenu-item:hover {
  border-color: var(--primary-blue);
  background: var(--theme-primary-light);
}
.quickmenu-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-blue);
  border-radius: 6px; color: #fff; font-size: 0.95rem;
}
.quickmenu-label { flex: 1; font-weight: 500; }
.quickmenu-arrow {
  font-size: 0.75rem; color: var(--text-muted);
  transition: transform 0.25s;
}

/* Section Full-Width: ฉายหนัง */
.section-fullwidth {
  width: 100%;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.section-fullwidth.chainang-has-bg {
  min-height: 850px;
  background-image: var(--chainang-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-fullwidth.chainang-has-bg .chainang-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2rem;
  position: relative;
  justify-content: center;
  text-align: center;
}
.section-fullwidth.chainang-has-bg .chainang-title {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.3);
}
.chainang-inner {
  position: relative;
  z-index: 1;
  padding: 0;
}
.chainang-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.chainang-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.chainang-subtitle {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
/* 16:9 สำหรับ poster ใน grid เท่านั้น */
.chainang-grid .chainang-movie-poster { aspect-ratio: 16/9; }
.chainang-layout { display: flex; flex-direction: column; gap: 1rem; }
.chainang-top-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.chainang-col {
  display: flex;
  justify-content: center;
  align-items: center;
}
.chainang-col--logo { justify-content: center; }
.chainang-col--featured { justify-content: center; }
.chainang-logo-wrap {
  flex: 0 0 auto;
  width: 380px;
  max-width: 75%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
  padding: 0.5rem;
}
.chainang-logo {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.chainang-btn-watch {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08)) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  padding: 0.5em 1.25em !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}
.chainang-btn-watch:hover {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15)) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}
.chainang-btn-watch::after { display: none !important; }
.chainang-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  max-width: 100%;
  width: 92%;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chainang-featured-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: 18px 18px 0 0;
}
.chainang-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.25);
}
.chainang-featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.chainang-featured:hover .chainang-featured-poster img { transform: scale(1.02); }
.chainang-featured .chainang-play-btn {
  width: 84px;
  height: 84px;
  font-size: 1.6rem;
}
.chainang-play-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1.25rem;
  border-radius: 50%;
  transition: background 0.2s;
}
.chainang-play-btn:hover { background: rgba(0, 0, 0, 0.85); }
.chainang-featured .chainang-movie-content {
  padding: 20px 24px;
  background: transparent;
}
.chainang-featured .chainang-movie-title {
  font-size: 1.2rem;
  font-weight: 700;
}
.chainang-movie-rank-num {
  display: inline-block;
  min-width: 0.5em;
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 1.15em;
  margin-right: 0.2em;
}
.chainang-featured .chainang-movie-rank-num {
  font-size: 1.25em;
}
.chainang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 991px) {
  .chainang-top-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .chainang-col { order: 0; }
  .chainang-col--featured { order: 1; }
  .chainang-logo-wrap { width: 320px; max-width: 85%; margin-bottom: 20px;}
  .chainang-logo { max-height: 220px; }
  .chainang-featured { max-width: 100%; width: 100%; }
  .chainang-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .chainang-grid { grid-template-columns: repeat(2, 1fr); }
}
.chainang-movie-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.chainang-movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}
.chainang-movie-poster {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: var(--bg-primary);
}
.chainang-movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.chainang-movie-card:hover .chainang-movie-poster img {
  transform: scale(1.05);
}
.chainang-play-btn--hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.chainang-movie-card:hover .chainang-play-btn--hover {
  opacity: 1;
}
.chainang-movie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  min-height: 56px;
}
.chainang-movie-content-text {
  flex: 1;
  min-width: 0;
}
.chainang-movie-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chainang-movie-studio {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}
.chainang-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  margin: 0;
}

/* Hall of Fame / รางวัล - full width, gold theme */
.section-hall-of-fame {
  width: 100%;
  min-height: 850px;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2416 50%, #1a1814 100%);
  border-top: 3px solid #c9a227;
  border-bottom: 3px solid #c9a227;
}
.hall-of-fame-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hall-of-fame-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #e8d48b;
  text-align: center;
  margin: 0 0 1.5rem;
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}
.hall-of-fame-btn {
  display: inline-flex;
  align-items: center;
  margin: 1.5rem auto 1.5rem;
  padding: 0.5em 1.25em;
  color: #c9a227;
  border: 1px solid #c9a227;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.hall-of-fame-btn:hover {
  background: rgba(201, 162, 39, 0.2);
  color: #e8d48b;
}
.hall-of-fame-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}
.hall-of-fame-card {
  flex: 0 0 calc(50% - 0.625rem);
  max-width: 280px;
}
@media (min-width: 576px) {
  .hall-of-fame-card {
    flex: 0 0 calc(25% - 0.94rem);
    max-width: 280px;
  }
}
.hall-of-fame-card {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hall-of-fame-card:hover {
  border-color: #c9a227;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.hall-of-fame-card:focus-visible {
  outline: 2px solid #e8d48b;
  outline-offset: 3px;
}
.hall-of-fame-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hall-of-fame-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.hall-of-fame-card:hover .hall-of-fame-card-img img,
.hall-of-fame-card:focus-visible .hall-of-fame-card-img img {
  transform: scale(1.05);
}
/* ชื่อข่าวทับภาพเมื่อ hover / focus */
.hall-of-fame-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.65rem 0.75rem 0.85rem;
  background: linear-gradient(
    to top,
    rgba(10, 8, 6, 0.92) 0%,
    rgba(10, 8, 6, 0.55) 38%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 1;
}
.hall-of-fame-card:hover .hall-of-fame-card-overlay,
.hall-of-fame-card:focus-visible .hall-of-fame-card-overlay {
  opacity: 1;
}
.hall-of-fame-card-overlay-title {
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  font-weight: 600;
  color: #f5f0e1;
  text-align: center;
  line-height: 1.35;
  max-height: 4.2em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.hall-of-fame-card-content {
  padding: 12px 14px;
}
.hall-of-fame-date {
  font-size: 0.75rem;
  color: #c9a227;
  display: block;
  margin-bottom: 4px;
}
.hall-of-fame-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f5f0e1;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-modern { padding: 0; }
.section-title {
  font-size: 2.5rem; font-weight: 500; text-align: center; margin-bottom: 60px;
  color: var(--text-primary);
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 2px;
  background: var(--primary-blue);
  margin: 16px auto 0;
}

.partner-logo {
  opacity: 0.9; transition: all 0.2s ease; padding: 15px;
  border-radius: 6px; background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
}
.partner-logo:hover { opacity: 1; transform: scale(1.05); }
.partner-logo img { height: 45px; max-width: 200px; }

.footer-modern {
  background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}
.footer-logo { display: flex; align-items: center; margin-bottom: 24px; }
.footer-logo img { width: 200px; margin-right: 16px; }
.footer-text { color: var(--text-secondary); margin-bottom: 12px; }
.footer-link { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; display: block; padding: 4px 0; }
.footer-link:hover { color: var(--primary-blue); }

.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle); border-radius: 50%;
  color: var(--text-secondary); transition: all 0.3s ease; margin-right: 12px;
}
.social-links a:hover {
  background: var(--primary-blue);
  color: white; border-color: var(--primary-blue);
}

.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* ── Skeleton placeholder: พื้นสีเทาขณะรูปยังโหลด ────────────────────────── */
.news-card-img-wrap:not(.ncf-active),
.news-item-compact-img,
.hall-of-fame-card-img,
.featured-video-thumb,
.chainang-movie-poster,
.chainang-featured-poster {
  background-color: #e2e5ea;
}
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.bg-secondary-dark { background: var(--bg-secondary); }
.text-primary-light { color: var(--text-primary); }
.text-secondary-light { color: var(--text-secondary); }
.text-muted-light { color: var(--text-muted); }

/* Carousel */
.carousel, .carousel-inner, .carousel-item { width: 100%; }
.carousel-item img { user-select: none; }
.object-fit-cover { object-fit: cover; }

.hero-classic .carousel-control-prev,
.hero-classic .carousel-control-next {
  width: clamp(44px, 8%, 64px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hero-classic:hover .carousel-control-prev,
.hero-classic:hover .carousel-control-next {
  opacity: 1;
}
.hero-classic .carousel-control-prev-icon,
.hero-classic .carousel-control-next-icon {
  width: 2.25rem; height: 2.25rem;
  background-color: rgba(0, 0, 0, 0.2);
  background-size: 50%;
  border-radius: 8px;
  filter: invert(1) opacity(0.65);
}

/* Nav scroll arrows + gradient fade */
.header-nav-arrow {
  display: none;
  position: absolute; top: 0; bottom: 0; z-index: 3; /* หยุดเหนือ underline 2px */
  width: 36px; min-width: 36px;
  align-items: center; justify-content: center;
  border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 1.5rem; line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.header-nav-arrow-prev {
  left: -20px; right: auto;
  background: linear-gradient(to right, rgba(255,255,255,1) 10%,  rgba(255,255,255, 0.6) 90%, transparent 100%);
}
.header-nav-arrow-next {
  left: auto; right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1) 10%, rgba(255,255,255, 0.8) 90%, transparent 100%);
}
.header-nav-arrow:hover { color: var(--nav-accent); }
.header-nav-arrow:focus { outline: none; }
.header-nav-arrow-icon { display: block; font-weight: 600; font-size: 2rem;}
.header-nav-fade {
  display: none; position: absolute; top: 0; bottom: 2px; /* หยุดเหนือ underline 2px */
  width: 56px; pointer-events: none; z-index: 2;
}
.header-nav-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, var(--bg-primary) 20%, transparent 100%);
}
.header-nav-fade-left {
  left: -0.5rem;
  background: linear-gradient(to right, var(--bg-primary) 0%, var(--bg-primary) 20%, transparent 100%);
}

/* Nav แบบเลื่อนได้ + ปุ่ม prev/next ใช้ได้ทุก breakpoint เมื่อ content overflow */
.header-nav-scroll-wrap { position: relative; overflow: visible; }
.header-nav-arrow.visible { display: flex; }
.header-nav-fade.visible { display: block; }
.header-nav-collapse {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.header-nav-collapse::-webkit-scrollbar { display: none; }
.header-nav-list { flex-wrap: nowrap; }

@media (max-width: 991px) {
  .hero-section-wrap { padding: 3rem 0 1rem; }
  .text-description { display: none; }
  /* Hero ความกว้างตาม container เมื่อ ≤991px */
  .hero-classic { border-radius: 6px; }
}
/* ≤491px: ซ่อนปุ่ม prev/next (gradient fade ยังแสดงอยู่เมื่อมี overflow) */
@media (max-width: 491px) {
  .header-nav-arrow,
  .header-nav-arrow.visible { display: none !important; }
  .header-nav-fade.header-nav-fade-right.visible { display: none !important; }
  .header-nav-item-search {
    padding-top: 25px;
    margin-bottom: 20px;
    height: 65px;
  }
}
@media (max-width: 768px) {
  .container, .container-fluid { --bs-gutter-x: 1.5rem; }
  .header-nav-container { --bs-gutter-x: 0; }
  .header-logo img { height: 56px; margin: 10px; }
  .section-modern { padding: 0; }
  .section-news { padding: 1rem 0; }
  .section-quickmenu { padding: 36px 0; }
  .card-modern { padding: 24px; }
  .section-title { font-size: 2rem; }
  .news-featured-title { font-size: 1.15rem; }
  .news-featured-excerpt { display: none; }
  .quickmenu-grid { grid-template-columns: 1fr; }
  .news-item-compact-img { width: 72px; min-width: 72px; }
}

/* Theme compatibility for category, single, page */
.theme-bg-muted { background: var(--bg-secondary); min-height: 100vh; }
.theme-bg { background: var(--bg-primary); }
.theme-text { color: var(--text-primary); }
.theme-text-muted { color: var(--text-muted); }
.theme-text-light { color: var(--text-secondary); }
.theme-primary { color: var(--primary-blue); }
.theme-card { background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: 8px; }
.theme-shadow { box-shadow: var(--shadow-neumorphic); }
.theme-shadow-lg { box-shadow: var(--shadow-neumorphic-hover); }
.theme-border { border-color: var(--border-subtle); }
.theme-footer-bg { background: var(--primary-blue); }
.hover\:theme-primary:hover { color: var(--primary-blue); }
.hover\:theme-text:hover { color: var(--text-primary); }
.hover\:theme-shadow-lg:hover { box-shadow: var(--shadow-neumorphic-hover); }
.group:hover .group-hover\:theme-primary { color: var(--primary-blue); }
.prose, .prose p { color: var(--text-secondary); }
.prose h1, .prose h2, .prose h3 { color: var(--text-primary); }
.prose a { color: var(--primary-blue); }
.prose img { border-radius: 6px; }

/* ── Single News / Article Page ── */
.single-news-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.single-news-main {
  min-width: 0;
}
.single-news-sidebar {
  position: sticky;
  top: 100px;
}
@media (max-width: 991px) {
  .single-news-sidebar {
    position: static;
  }
}
.single-news-sidebar-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.single-news-sidebar-box:last-child { margin-bottom: 0; }
.single-news-sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-blue);
}
.single-news-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.single-news-sidebar-list li {
  margin: 0;
  padding: 0;
}
.single-news-sidebar-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.single-news-sidebar-link:hover,
.single-news-sidebar-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}
.single-news-sidebar-news {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.single-news-sidebar-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: background 0.2s;
}
.single-news-sidebar-item:last-child { border-bottom: none; }
.single-news-sidebar-item:hover {
  background: var(--theme-primary-light);
  margin: 0 -0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
}
.single-news-sidebar-item-img {
  width: 72px;
  min-width: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.single-news-sidebar-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-news-sidebar-item-body {
  flex: 1;
  min-width: 0;
}
.single-news-sidebar-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.single-news-sidebar-item:hover .single-news-sidebar-item-title {
  color: var(--primary-blue);
}
.single-news-sidebar-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.single-news-breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.single-news-breadcrumb a:hover {
  color: var(--primary-blue);
}
.single-news-article {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--border-subtle);
}
.single-news-header {
  padding: 2rem 2rem 1.5rem;
}
@media (min-width: 768px) {
  .single-news-header {
    padding: 2.5rem 2.5rem 1.75rem;
  }
}

/* ข่าวเดี่ยว — ไม่พบข่าว (เลย์เอาต์เดียวกับ single + aside) */
.single-news-not-found-header {
  text-align: center;
  padding-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .single-news-not-found-header {
    text-align: left;
  }
}
.single-news-not-found-icon {
  font-size: 2.5rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1;
}
.single-news-not-found-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .single-news-not-found-lead {
    margin-left: 0;
    margin-right: 0;
  }
}
.single-news-not-found-actions .d-flex {
  justify-content: center;
}
@media (min-width: 768px) {
  .single-news-not-found-actions .d-flex {
    justify-content: flex-start;
  }
}
.single-news-not-found-actions.border-top {
  border-color: var(--border-subtle) !important;
}

.single-news-category {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.single-news-category:hover {
  color: var(--primary-blue-hover);
}
.single-news-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.single-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.single-news-meta time {
  font-variant-numeric: tabular-nums;
}
/* ── Single News: Reels Player ── */
.single-reels-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 2rem;
}
.single-reels-player {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
  display: block;
  text-decoration: none;
  background: #0d1117;
}
.single-reels-player::before {
  content: '';
  display: block;
  padding-top: 177.78%; /* 9:16 portrait */
}
.single-reels-thumb {
  position: absolute;
  inset: 0;
}
.single-reels-thumb > img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.single-reels-player:hover .single-reels-thumb > img {
  transform: scale(1.04);
}
.single-reels-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 30%, rgba(0,0,0,.62) 100%);
  transition: background .2s;
}
.single-reels-player:hover .single-reels-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.16) 30%, rgba(0,0,0,.72) 100%);
}
.single-reels-play-btn {
  width: 74px; height: 74px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #1877f2;
  box-shadow: 0 4px 28px rgba(0,0,0,.45);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.single-reels-player:hover .single-reels-play-btn {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 6px 32px rgba(0,0,0,.52);
}
.single-reels-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px 18px;
  display: flex; align-items: center; gap: 8px;
}
.single-reels-badge {
  background: #1877f2;
  color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.single-reels-cta {
  color: rgba(255,255,255,.88);
  font-size: .8rem; font-weight: 500;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.single-reels-hint {
  margin-top: 10px;
  font-size: .75rem;
  color: #94a3b8;
  text-align: center;
}
/* Reels content: text message below player */
.single-reels-message {
  width: 100%;
  max-width: 560px;
  margin-top: 1.25rem;
  font-size: .9rem;
  color: #374151;
  line-height: 1.7;
}
/* hide old fb-reel-watch block if somehow it leaks into content */
.single-news-content .fb-reel-watch { display: none; }

.single-news-figure {
  margin: 0;
  padding: 0 2rem 1.5rem;
}
@media (min-width: 768px) {
  .single-news-figure {
    padding: 0 2.5rem 1.75rem;
  }
}
.single-news-figure .news-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* Zoom-in trigger (เฉพาะเมื่อมีรูปจริง) */
.single-news-figure .news-img-wrap.can-lightbox {
  cursor: zoom-in;
  position: relative;
}
.single-news-figure .news-img-wrap.can-lightbox::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s;
  pointer-events: none;
  border-radius: 8px;
  z-index: 1;
}
.single-news-figure .news-img-wrap.can-lightbox:hover::after {
  background: rgba(0,0,0,.18);
}
.single-news-figure .news-img-wrap.can-lightbox .news-lb-zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  z-index: 2;
}
.single-news-figure .news-img-wrap.can-lightbox:hover .news-lb-zoom-icon {
  opacity: 1;
}

/* ── Lightbox overlay ── */
#newsHeroLightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn .18s ease;
  padding: 16px;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#newsHeroLightbox img {
  max-width: min(95vw, 1280px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0,0,0,.7);
  cursor: default;
  animation: lbImgIn .22s ease;
  display: block;
}
@keyframes lbImgIn {
  from { transform: scale(.93); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
#newsHeroLightbox .lb-close-btn {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  padding: 0;
}
#newsHeroLightbox .lb-close-btn:hover { background: rgba(255,255,255,.28); }
#newsHeroLightbox .lb-hint {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  pointer-events: none;
  white-space: nowrap;
}
.single-news-content {
  padding: 0 2rem 2rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: left;
}
@media (min-width: 768px) {
  .single-news-content {
    padding: 0 2.5rem 2.5rem;
    font-size: 1.125rem;
  }
}
/* หน้าอิสระที่ซ่อนชื่อหน้า (header) — เติม padding บนให้เนื้อหาไม่ชิดขอบการ์ด */
.single-news-article.no-title > .single-news-content {
  padding-top: 2rem;
}
@media (min-width: 768px) {
  .single-news-article.no-title > .single-news-content {
    padding-top: 2.5rem;
  }
}
.single-news-content p {
  margin-bottom: 1.25em;
}
.single-news-content p:last-child {
  margin-bottom: 0;
}
.single-news-content h2,
.single-news-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2em 0 0.75em;
  line-height: 1.4;
}
.single-news-content h2:first-child,
.single-news-content h3:first-child {
  margin-top: 0;
}
/* Font Awesome (แทรกจาก Jodit) — จัดแนวกับข้อความไทย / ภาษาละติน */
.single-news-content i.fa-solid,
.single-news-content i.fa-regular,
.single-news-content i.fa-brands {
  display: inline-block;
  line-height: 1;
  vertical-align: -0.125em;
}
.single-news-content a {
  color: var(--primary-blue);
  text-decoration: none;
}
.single-news-content a:hover {
  text-decoration: underline;
}
/* ปุ่ม Bootstrap ในเนื้อหา — ไม่ให้กฎลิงก์สีน้ำเงินทับข้อความปุ่ม primary (ตัวหนังสือจม) */
.single-news-content a.btn {
  text-decoration: none;
}
.single-news-content a.btn:hover {
  text-decoration: none;
}
.single-news-content a.btn-primary,
.single-news-content .btn-primary {
  color: #fff !important;
}
.single-news-content a.btn-primary:hover,
.single-news-content a.btn-primary:focus,
.single-news-content .btn-primary:hover,
.single-news-content .btn-primary:focus {
  color: #fff !important;
}
.single-news-content a.btn-outline-secondary {
  color: var(--text-secondary) !important;
}
.single-news-content a.btn-outline-secondary:hover,
.single-news-content a.btn-outline-secondary:focus {
  color: #fff !important;
}
.single-news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}
/* รูปที่ขยายได้ใน content */
.single-news-content img.content-lb-img {
  cursor: zoom-in;
  transition: filter .18s ease, box-shadow .18s ease;
}
.single-news-content img.content-lb-img:hover {
  filter: brightness(.92);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.single-news-content ul,
.single-news-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.single-news-content li {
  margin-bottom: 0.5em;
}
.single-news-content blockquote {
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  border-left: 4px solid var(--primary-blue);
  background: var(--theme-primary-light);
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
}
.single-news-share {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border-subtle);
}
@media (min-width: 768px) {
  .single-news-share {
    padding: 1.75rem 2.5rem 2.5rem;
  }
}
.single-news-share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}
.single-news-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.single-news-share-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-blue);
  background: var(--theme-primary-light);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.single-news-share-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-blue-hover);
}
/* Related posts */
.single-news-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.single-news-related-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
}
.single-news-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 576px) {
  .single-news-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.single-news-related-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.single-news-related-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.single-news-related-img {
  width: 96px;
  min-width: 96px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.single-news-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-news-related-body {
  flex: 1;
  min-width: 0;
}
.single-news-related-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.single-news-related-card:hover .single-news-related-card-title {
  color: var(--primary-blue);
}
.single-news-related-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
