﻿/* ═════════════════════════════════════════════════════════════════════════════
   TS Unlocked — Light Theme
   Shared look for the whole site: white panels, gold/bronze trim,
   dark text for readability.
   ═════════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: Kanit;
  src: url('/fonts/Kanit-Regular.ttf');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kanit;
  src: url('/fonts/Kanit-SemiBold.ttf');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Kanit;
  src: url('/fonts/Kanit-Bold.ttf');
  font-weight: 800;
  font-display: swap;
}

:root {
  /* Override site.css variables with light theme colors */
  --paper: #f4f6f9;
  --card: rgba(255, 255, 255, 0.76);
  --line: rgba(226, 235, 243, 0.9);
  --line2: rgba(205, 161, 95, 0.38);
  --ink: #16283c;
  --ink2: #5a6e85;
  --mute: #8ba0b8;
  --gold: #ebd0a1;
  --gold2: #ffe8c5;
  --gold-dk: #8c6a35;
  --red: #c22929;
  --red-soft: rgba(194, 41, 41, 0.05);
  --edge: rgba(226, 235, 243, 0.9);
  --edge2: rgba(205, 161, 95, 0.38);

  /* Color Palette - Bright and Clean */
  --bg-black: #f4f6f9; /* Soft light gray-blue background */
  --bg-slate: #ffffff;
  --gold-metallic: #cda15f;
  --gold-bright: #ebd0a1;
  --gold-dark: #8c6a35;
  --crimson: #c22929;
  --crimson-light: #e63939;
  
  /* Light theme variables */
  --glass-bg: rgba(255, 255, 255, 0.76);
  --glass-border: rgba(226, 235, 243, 0.9);
  --glass-gold-border: rgba(205, 161, 95, 0.38);
  
  /* UI Elements - Dark High-Contrast Typography */
  --text-main: #16283c; /* Deep slate ink color */
  --text-muted: #5a6e85; /* Soft grayish slate */
  --text-dim: #475569;
  --nav-h: 72px;
  --radius: 8px;
  
  /* Elements */
  --fire: #ef4444;
  --water: #3b82f6;
  --wood: #10b981;
  --wind: #06b6d4;
  --earth: #f59e0b;
}

/* ── Reset & Global ──────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-black);
  background: url('/img/bg_site.jpg') center top / cover no-repeat fixed, var(--bg-black);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(244, 246, 249, 0.65) 0%, rgba(244, 246, 249, 0.96) 80%),
              linear-gradient(180deg, rgba(244, 246, 249, 0.3) 0%, rgba(255, 255, 255, 0.95) 100%);
}
img {
  max-width: 100%;
  -webkit-user-drag: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/*  📐 กว้างขึ้นให้ตรงกับ site.css (user 2026-09-07: เนื้อหาแคบ · หน้ากฎกว้างไม่เท่าเพื่อน)
    🔴 แผ่นนี้โหลด**ทีหลัง** site.css ⇒ ตัวเลขที่นี่คือตัวที่มีผลจริง
       แก้ที่ site.css ที่เดียวไม่พอ (เจอตอนวัดจริง: หน้ากฎได้ 990px แต่หน้าข่าวได้ 1040px) */
.wrap {
  width: min(1420px, 95vw);
  margin: 0 auto;
}
main {
  flex: 1;
  padding-top: var(--nav-h);
}

/* Typography styling */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* ── Navigation Header ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 max(4vw, 24px);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 235, 243, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 42px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.06));
}
.brand span {
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: #16283c;
}
.brand b {
  color: var(--gold-dark);
}
.nav menu {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav menu a {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.08em;
  position: relative;
  padding: 8px 0;
}
.nav menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-dark);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}
.nav menu a:hover {
  color: #000;
}
.nav menu a:hover::after {
  width: 100%;
}
.nav menu a.on {
  color: var(--gold-dark);
}
.nav menu a.on::after {
  width: 100%;
  background: var(--gold-dark);
}
.nav .right {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Mobile Menu Toggle */
.navtoggle {
  display: none;
}
.navbtn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 105;
}
.navbtn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #16283c;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: var(--radius);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0.5px);
}
/*  ⚖️ ปุ่มทุกแบบต้อง **สูงเท่ากัน · มุมเท่ากัน · ตัวหนังสือเท่ากัน**
    (user ทัก 2026-09-07: "ปุ่มดูแข็ง และไม่สมดุล สมมาตร")
    ของเดิม `.btn-line` padding 10/24 · `.btn-gold` padding 12/28 ⇒ วางคู่กันแล้วสูงไม่เท่า
    เตี้ยกว่ากัน 4px และกว้างไม่สมมาตร ตาจับได้ทันทีว่าเบี้ยว
    🔑 คุมด้วย `height` ตัวเดียว แล้วให้ padding คุมแค่ระยะซ้าย-ขวา
       ⇒ เพิ่มปุ่มแบบใหม่ทีหลังก็ยังสูงเท่ากันเอง */
.btn-line,
.btn-gold {
  height: 42px;
  padding: 0 22px;
  border-radius: 10px;
  border-width: 1.5px;
  border-style: solid;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn-line {
  background: #fff;
  border-color: #e0e6ee;
  color: #46556a;
}
.btn-line:hover {
  background: #fffdf6;
  border-color: #d9b25f;
  color: #1b2233;
  box-shadow: none;
}
/*  🟡 ปุ่มหลักของเว็บ = **ทอง** (user เคาะ 2026-09-07)
    เดิมเป็นแดงเลือดหมู (`--crimson`) ⇒ เว็บมี 2 ภาษาสี: แถบเมนู/หัวเพจ/เส้นคั่นเป็นทอง
    แต่ปุ่มในเนื้อหาเป็นแดง แล้วแดงยังไปชนกับป้ายคำเตือน/ยกเลิกที่ควรเป็นสีเดียวที่เด่นที่สุด
    🔴 แก้ที่นี่ที่เดียวมีผลทั้งเว็บ — `modern.css` โหลดท้ายสุด ทับ .btn-gold ของ site.css/skin.css
       ⇒ อย่าไปเพิ่มกฎ .btn-gold ที่แผ่นอื่น มันไม่ชนะ
    ⛔ สีแดงสงวนไว้ให้ของที่ "ทำแล้วเสียหาย" เท่านั้น (ลบ · ยกเลิก · ออกจากระบบ) */
.btn-gold {
  color: #3a2600;
  background: #d3a53c;
  border-color: #b8871f;
  box-shadow: none;
}
.btn-gold:hover {
  background: #dcb04a;
  border-color: #c8921f;
  box-shadow: none;
}
/*  นุ่มลง: เดิมชี้แล้วกระโดดขึ้น 2px ทุกปุ่มพร้อมกัน ดูกระตุก
    ⇒ ขยับ 1px พอ + ไล่สีนุ่ม ๆ แทนการเด้ง */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-xl {
  padding: 14px 34px;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Panels & Subpage Panels ──────────────────────────────────────────────── */
.glass-panel, .panel, .card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-gold-border) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 15px 35px rgba(22, 28, 45, 0.08) !important;
  transition: all 0.3s ease !important;
}
.glass-panel:hover, .panel:hover, .card:hover {
  border-color: rgba(205, 161, 95, 0.55) !important;
  box-shadow: 0 18px 40px rgba(22, 28, 45, 0.12) !important;
}
.card {
  padding: 24px;
  color: var(--text-main);
}
.cityhead, .phead {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 235, 243, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cityhead h3, .phead h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

/* ── Form Elements ───────────────────────────────────────────────────────── */
input[type="text"], input[type="password"], input[type="email"], textarea, select {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 235, 243, 0.9);
  border-radius: var(--radius);
  padding: 11px 16px;
  transition: all 0.25s ease;
  width: 100%;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: #fff;
  box-shadow: 0 0 10px rgba(205, 161, 95, 0.15);
}
.tblwrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 235, 243, 0.9);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.tbl th {
  text-align: left;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-main);
  font-weight: 800;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 235, 243, 0.9);
  font-size: 12.5px;
  letter-spacing: 0.05em;
}
table.tbl td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 235, 243, 0.6);
  color: var(--text-main);
}
table.tbl tr:last-child td {
  border-bottom: 0;
}

/* ── Hoyoverse-style Homepage UI Redesign ─────────────────────────────────── */
.hero-section {
  width: 100%;
  height: calc(100vh - var(--nav-h));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('/img/hero_bg.jpg') center 45% / cover no-repeat;
  z-index: 1;
  filter: brightness(1.02) contrast(1.02);
  animation: heroBreathing 14s ease-in-out infinite alternate;
}
@keyframes heroBreathing {
  0% {
    transform: scale(1) translateY(0);
    filter: brightness(1.02) contrast(1.02);
  }
  100% {
    transform: scale(1.03) translateY(-4px);
    filter: brightness(1.07) contrast(1.03);
  }
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 246, 249, 0.88) 0%, rgba(244, 246, 249, 0.45) 45%, rgba(244, 246, 249, 0) 75%),
              linear-gradient(0deg, var(--bg-black) 0%, rgba(244, 246, 249, 0.15) 30%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}
.hero-bg-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 65% 25%, rgba(255, 235, 180, 0.85) 50%, transparent 100%),
    radial-gradient(3px 3px at 78% 50%, rgba(255, 255, 255, 0.9) 50%, transparent 100%),
    radial-gradient(2px 2px at 88% 20%, rgba(147, 197, 253, 0.85) 50%, transparent 100%),
    radial-gradient(3px 3px at 92% 65%, rgba(255, 225, 150, 0.75) 50%, transparent 100%),
    radial-gradient(2px 2px at 55% 60%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  background-size: 100% 100%;
  animation: sparkDrift 8s linear infinite;
  pointer-events: none;
  opacity: 0.8;
}
@keyframes sparkDrift {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    opacity: 0.95;
    transform: translateY(-10px) scale(1.04);
  }
  100% {
    transform: translateY(-20px) scale(1);
    opacity: 0.5;
  }
}
.hero-char-art {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: min(1280px, 92vw);
  margin: 0 auto;
  gap: 40px;
}
.hero-left {
  flex: 1;
  max-width: 580px;
  display: flex;
  flex-direction: column;
}
.hero-title-area {
  margin-bottom: 24px;
}
.hero-tagline {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold-dark); /* Bright golden/bronze */
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.hero-title-area h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #16283c 20%, #7c2d12 60%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
}

/* Left info panel */
.hero-left .glass-panel {
  padding: 32px 34px;
  border-left: 4px solid var(--gold-metallic);
  animation: glassPanelFloat 6s ease-in-out infinite alternate;
}
@keyframes glassPanelFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
.hero-left .panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 🎨 ไอคอนเป็น <i class="ic …"> แล้ว (2026-09-08) ⇒ ย้อมด้วย background-color ไม่ใช่ fill */
.hero-left .panel-title .ic {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  background-color: var(--gold-dark);
}
.hero-left .panel-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.hero-left .btn-group {
  display: flex;
  gap: 16px;
}

/* ── Section 2: Chibi Character Feature Cards ────────────────────────────── */
.features-section {
  background-color: var(--bg-slate);
  padding: 60px 0 50px;
  position: relative;
  border-top: 1px solid rgba(226, 235, 243, 0.9);
}
.features-section .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  flex: 1;
  height: 145px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 246, 249, 0.8) 100%);
  border: 1.5px solid rgba(226, 235, 243, 0.95);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(22, 28, 45, 0.03);
}

/* Left Element Border Line */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  border-radius: 12px 0 0 12px;
  transition: height 0.35s ease;
}
.feature-card.water::before { background: linear-gradient(180deg, #60a5fa, var(--water)); }
.feature-card.wood::before { background: linear-gradient(180deg, #34d399, var(--wood)); }
.feature-card.fire::before { background: linear-gradient(180deg, #f87171, var(--fire)); }
.feature-card.earth::before { background: linear-gradient(180deg, #fbbf24, var(--earth)); }
.feature-card.wind::before { background: linear-gradient(180deg, #22d3ee, var(--wind)); }

.feature-card:hover::before {
  height: 100%;
}

/* Content Left */
.feature-card .feat-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 3;
  max-width: 58%;
}
.feature-card .feat-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-card .feat-icon-sm {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-card .feat-icon-sm .ic {
  width: 14px !important;
  height: 14px !important;
  background-color: var(--text-muted);
  transition: background-color 0.3s;
}
.feature-card .feat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.feature-card .feat-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s, transform 0.3s;
}

/* Chibi Art Right */
.feature-card .feat-art {
  position: absolute;
  right: 0px;
  bottom: -4px;
  height: 108%;
  width: 95px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.feature-card .feat-art img {
  height: 94%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(-4px 6px 10px rgba(22, 28, 45, 0.16));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

/* Glowing Element Aura behind Chibi */
.feature-card .feat-aura {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  bottom: 0px;
  right: 5px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(18px);
  transition: opacity 0.4s, transform 0.4s;
}
.feature-card.water .feat-aura { background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%); }
.feature-card.wood .feat-aura { background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%); }
.feature-card.fire .feat-aura { background: radial-gradient(circle, #ef4444 0%, rgba(239, 68, 68, 0) 70%); }
.feature-card.earth .feat-aura { background: radial-gradient(circle, #f59e0b 0%, rgba(245, 158, 11, 0) 70%); }
.feature-card.wind .feat-aura { background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%); }

/* Hover States & Glows */
.feature-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(22, 28, 45, 0.09);
}
.feature-card.water:hover { border-color: rgba(59, 130, 246, 0.5); }
.feature-card.water:hover .feat-icon-sm .ic { background-color: var(--water); }

.feature-card.wood:hover { border-color: rgba(16, 185, 129, 0.5); }
.feature-card.wood:hover .feat-icon-sm .ic { background-color: var(--wood); }

.feature-card.fire:hover { border-color: rgba(239, 68, 68, 0.5); }
.feature-card.fire:hover .feat-icon-sm .ic { background-color: var(--fire); }

.feature-card.earth:hover { border-color: rgba(245, 158, 11, 0.5); }
.feature-card.earth:hover .feat-icon-sm .ic { background-color: var(--earth); }

.feature-card.wind:hover { border-color: rgba(6, 182, 212, 0.5); }
.feature-card.wind:hover .feat-icon-sm .ic { background-color: var(--wind); }

.feature-card:hover .feat-title {
  color: var(--gold-dark);
  transform: translateX(3px);
}
.feature-card:hover .feat-art img {
  transform: translateY(-8px) scale(1.08);
  filter: drop-shadow(-6px 10px 18px rgba(22, 28, 45, 0.22));
}
.feature-card:hover .feat-aura {
  opacity: 0.65;
  transform: scale(1.25);
}

/* ── Section 3: News Grid Section ────────────────────────────────────────── */
.news-section {
  background-color: var(--bg-black);
  padding: 60px 0 100px;
  border-top: 1px solid rgba(226, 235, 243, 0.8);
}
.shead {
  margin-bottom: 40px;
  text-align: center;
}
.shead .eye {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.shead h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--text-main);
  font-weight: 800;
}
.shead p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1050px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: #ffffff;
  border: 1px solid rgba(226, 235, 243, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(22, 28, 45, 0.03);
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-metallic);
  box-shadow: 0 12px 30px rgba(22, 28, 45, 0.08);
}
/* 🖼️ กรอบรูป **16:9 เท่ากันทุกที่** (user 2026-09-22 "ภาพใบเดียวใช้ได้ทั้งหน้าข่าวและกล่องข่าว")
   ⇒ อัปรูป 1600×900 ใบเดียว ใช้ได้ครบทุกกรอบโดยไม่โดนตัดอะไรทิ้ง */
.news-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 235, 243, 0.9);
  background: #f4f6f9;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.news-card:hover .news-thumb img {
  transform: scale(1.04);
}
.news-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  z-index: 5;
  letter-spacing: 0.05em;
}
.tag-announcement { background: var(--crimson); }
.tag-event { background: var(--gold-dark); }
.tag-update { background: var(--water); }

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-date {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.news-body h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text-main);
  transition: color 0.3s;
}
.news-card:hover .news-body h3 {
  color: var(--gold-dark);
}
.news-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Index specific overrides */
body.p-index .nav {
  background: rgba(255, 255, 255, 0.72);
}
body.p-index footer:not(.launcher-footer) {
  display: none !important; /* Hide layout footer completely on Index */
}

/* ── Generic Subpages Layout Helpers ──────────────────────────────────────── */
.pagehead {
  position: relative;
  padding: 48px 0 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, var(--bg-black) 100%);
  border-bottom: 1px solid rgba(226, 235, 243, 0.9);
}
.pagehead h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  margin: 6px 0;
  color: var(--text-main);
}
.pagehead p {
  color: var(--text-muted);
  font-size: 14px;
}
.crumb {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.crumb a {
  color: var(--gold-dark);
}
.crumb a:hover {
  text-decoration: underline;
}
.right {
  text-align: right !important;
}
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 30px; }
.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 22px; }
.mb-lg { margin-bottom: 32px; }
.w-full { width: 100%; }
.narrow { max-width: 560px; }
.mid { max-width: 820px; }
.wide { max-width: 1040px; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.empty {
  color: var(--text-muted);
  padding: 40px 16px;
  text-align: center;
}

/* Status Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid;
}
.pill-soon {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--earth);
}
.pill-live {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--wood);
}
.pill-off {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}
.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12.5px;
  background: rgba(205, 161, 95, 0.04);
  border: 1px solid rgba(205, 161, 95, 0.25);
  color: var(--gold-dark);
  border-radius: var(--radius);
  padding: 5px 11px;
}
.balance {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-gold-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.balance .num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-dark);
}
.balance .lbl {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Accordion details */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 235, 243, 0.9);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.25s;
}
.faq details:hover {
  border-color: rgba(205, 161, 95, 0.35);
}
.faq summary {
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  color: var(--text-main);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: "＋ ";
  color: var(--gold-dark);
}
.faq details[open] summary::before {
  content: "－ ";
}
.faq details p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 12px;
}

/* ── Item Shop Grid Layouts ──────────────────────────────────────────────── */
.shopgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 15px;
}
@media (max-width: 1100px) { .shopgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .shopgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .shopgrid { grid-template-columns: 1fr; } }

.sitem {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 235, 243, 0.9);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: all 0.25s ease;
}
.sitem:hover {
  border-color: var(--gold-metallic);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22, 28, 45, 0.05);
}
.sitem .ico {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(226, 235, 243, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sitem .ico img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sitem .nm {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin-top: 4px;
}
.sitem .meta {
  font-size: 11.5px;
  color: var(--text-muted);
  min-height: 34px;
  display: flex;
  align-items: center;
}
.sitem .price {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-dark);
}
.sitem .btn {
  padding: 8px 16px;
  font-size: 12.5px;
  margin-top: 4px;
}
.sitem .tagline {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Floating Points Counter Widget */
.ptfloat {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 235, 243, 0.9);
  border-left: 4px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.ptfloat .lbl {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.ptfloat .num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-dark);
}
.ptfloat .sub2 {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.ptfloat .btn {
  font-size: 12.5px;
  padding: 8px 16px;
  width: auto;
}

body.p-itemshop .cols {
  grid-template-columns: 1fr 380px;
}
@media (max-width: 980px) {
  body.p-itemshop .cols {
    grid-template-columns: 1fr;
  }
}

/* Events layout */
.evbody {
  padding: 16px 20px;
}
.evbody .tbl th {
  width: 150px;
  white-space: nowrap;
}
.evh3 {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 10px;
  color: var(--gold-dark);
}
.evgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) { .evgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .evgrid { grid-template-columns: 1fr; } }
.evgrid .ico {
  height: 110px;
}
.phead .pill {
  margin-left: auto;
}
body.p-events .crow.soon {
  opacity: 0.5;
  cursor: default;
}
body.p-events .crow.soon:hover {
  border-color: rgba(226, 235, 243, 0.9);
  background: transparent;
}

/* Subpage footer */
footer {
  background: #ffffff;
  border-top: 1px solid rgba(226, 235, 243, 0.9);
  padding: 60px 0 40px;
  color: var(--text-muted);
  font-size: 12.5px;
}
footer .cols4 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}
footer h4 {
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
footer a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
}
footer a:hover {
  color: #000;
  text-decoration: underline;
}
footer .about {
  line-height: 1.8;
  color: var(--text-muted);
}
footer .bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 235, 243, 0.6);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
/* ── Installation Steps ─────────────────────────────────────────────�/* Fix Navbar Action Buttons No-Wrap */
.nav .right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
.nav .right .btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  line-height: 1.2 !important;
}

/* Mobile & Tablet Responsive Navbar Drawer Overrides (<= 1140px) */
@media (max-width: 1140px) {
  .nav {
    padding: 0 16px !important;
    justify-content: space-between !important;
    height: 64px !important;
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 100 !important;
  }
  :root {
    --nav-h: 64px;
  }
  .navbtn {
    display: flex !important;
    margin-left: auto !important;
  }
  .nav .right {
    display: none !important;
  }
  .nav menu {
    display: none !important;
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    padding: 16px 24px 24px !important;
    gap: 12px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(226, 235, 243, 0.9) !important;
    box-shadow: 0 12px 30px rgba(22, 28, 45, 0.12) !important;
    z-index: 99 !important;
  }
  .navtoggle:checked ~ menu {
    display: flex !important;
  }
  .nav menu a {
    font-size: 15.5px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(226, 235, 243, 0.6) !important;
  }
  .navbtn span {
    background: var(--text-main) !important;
  }
  .navtoggle:checked ~ .navbtn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }
  .navtoggle:checked ~ .navbtn span:nth-child(2) {
    opacity: 0 !important;
  }
  .navtoggle:checked ~ .navbtn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto !important;
    min-height: auto !important;
    padding: 32px 0 44px !important;
    overflow: hidden !important;
  }
  .hero-bg-overlay {
    background-position: 82% top !important;
    opacity: 0.45 !important;
  }
  .hero-bg-gradient {
    background: linear-gradient(180deg, rgba(244, 246, 249, 0.96) 0%, rgba(244, 246, 249, 0.88) 50%, rgba(244, 246, 249, 0.98) 100%) !important;
  }
  .hero-content {
    padding: 0 16px !important;
    width: 100% !important;
  }
  .hero-left {
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-title-area h1 {
    font-size: clamp(24px, 6.5vw, 32px) !important;
    line-height: 1.15 !important;
  }
  .hero-left .glass-panel {
    padding: 20px 18px !important;
  }
  .hero-left .panel-title {
    font-size: 16px !important;
  }
  .hero-left .panel-desc {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 20px !important;
  }
  .hero-left .btn-group {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* ── Fresh AAA Official Game News Portal Styling ──────────────────────────── */
.news-page-container {
  width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* News Header */
.news-header-compact {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(226, 235, 243, 0.95);
  border-left: 5px solid var(--gold-dark);
  border-radius: 12px;
  padding: 14px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(22, 28, 45, 0.03);
}
.news-header-compact .crumb {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.news-header-compact .crumb a {
  color: var(--gold-dark);
}
.news-header-compact h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}��────────── */
.news-page-container {
  width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* News Header */
.news-header-compact {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(226, 235, 243, 0.95);
  border-left: 5px solid var(--gold-dark);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(22, 28, 45, 0.03);
}
.news-header-compact .crumb {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.news-header-compact .crumb a {
  color: var(--gold-dark);
}
.compact-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.compact-title-row h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.compact-title-row .sub-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  background: rgba(240, 160, 21, 0.1);
  border: 1px solid rgba(240, 160, 21, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .compact-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

/* Single Unified White Main Panel */
.news-panel {
  background: #ffffff;
  border: 1.5px solid rgba(226, 235, 243, 0.95);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 10px 35px rgba(22, 28, 45, 0.05);
}

/* Top Hero Block (Banner + Pinned List) */
.news-hero-block {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.featured-banner-card {
  position: relative;
  aspect-ratio: 16 / 9;   /* เดิม height:320px คงที่ ⇒ รูป 4:3 โดนตัดบน-ล่างทิ้ง */
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: 0 6px 20px rgba(22, 28, 45, 0.08);
}
.featured-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-banner-card:hover img {
  transform: scale(1.04);
}
.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.88) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}
.featured-overlay h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 6px;
  line-height: 1.35;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.featured-overlay .date-str {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Right Pinned List */
.news-pinned-list {
  background: #f8fafc;
  border: 1px solid rgba(226, 235, 243, 0.9);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pinned-head {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(226, 235, 243, 0.8);
}
.pinned-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(226, 235, 243, 0.7);
  transition: all 0.22s ease;
}
.pinned-item:hover {
  border-color: var(--gold-dark);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(22, 28, 45, 0.05);
}
/* รูปเล็กของ "ประกาศสำคัญ" — 16:9 เหมือนกรอบอื่น (เดิมจัตุรัส 56×56 ⇒ รูปเดียวกันโดนตัดคนละแบบ) */
.pinned-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid rgba(226, 235, 243, 0.9);
}
.pinned-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}
.pinned-item:hover .pinned-thumb img {
  transform: scale(1.06);
}
.pinned-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.pinned-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.pinned-item:hover .pinned-info h4 {
  color: var(--gold-dark);
}

/* Tag Badges */
.tag-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}
.tag-red { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.tag-gold { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.tag-green { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.tag-blue { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Filter Tabs Row */
.news-filter-row {
  margin-bottom: 20px;
  border-bottom: 1.5px solid rgba(226, 235, 243, 0.8);
  padding-bottom: 12px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
}
.ftab {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid rgba(226, 235, 243, 0.9);
  background: #f8fafc;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ftab:hover, .ftab.active {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #ffffff;
}

/* News Table List */
.news-table-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(226, 235, 243, 0.9);
  border-radius: 12px;
  overflow: hidden;
}
.news-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 235, 243, 0.7);
  transition: all 0.22s ease;
}
.news-row:last-child {
  border-bottom: 0;
}
.news-row:hover {
  background: #f8fafc;
  transform: translateX(4px);
}
/* 🖼️ รูปประกอบทุกหัวข้อ (user 2026-09-07 "ให้เห็นรูปทุกหัวข้อเลย") ─────────────────
   ป้ายหมวดย้ายเข้าไปอยู่ใน .row-title แทนคอลัมน์ .row-badge เดิม (มีรูปแล้วคอลัมน์เยอะไป)
   .row-badge คงไว้เผื่อหน้าอื่นยังเรียกใช้ */
.row-badge {
  flex-shrink: 0;
  width: 75px;
}
.row-thumb {
  flex-shrink: 0;
  width: 144px;
  height: 81px;   /* 16:9 พอดี (เดิม 132×80 = 16:9.7) */
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid rgba(226, 235, 243, 0.9);
}
.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}
.news-row:hover .row-thumb img {
  transform: scale(1.06);
}
.row-title {
  flex: 1;
  min-width: 0;
}
.row-title .tag-badge {
  margin-bottom: 6px;
}
.row-title h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.news-row:hover .row-title h3 {
  color: var(--gold-dark);
}
.row-title p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-date {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.row-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.news-row:hover .row-arrow {
  color: var(--gold-dark);
  transform: translateX(3px);
}

/* Pagination */
.news-pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.pbtn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(226, 235, 243, 0.9);
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.pbtn:hover, .pbtn.active {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #ffffff;
}
.pbtn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 980px) {
  .news-panel {
    padding: 20px 18px !important;
  }
  .news-hero-block {
    grid-template-columns: 1fr !important;
  }
  .featured-banner-card {
    aspect-ratio: 16 / 9 !important;   /* สูงตามความกว้างจอ ไม่ล็อกเป็น 220px */
  }
  .featured-overlay h2 {
    font-size: 17px !important;
  }
  .news-row {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 16px !important;
  }
  /* จอแคบ: รูปเล็กลงแต่ยังอยู่ครบทุกแถว · วันที่ไปต่อท้ายคำโปรย */
  .row-thumb {
    width: 96px !important;
    height: 54px !important;
  }
  .row-title p {
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .row-title h3 {
    white-space: normal !important;
  }
  .row-date {
    display: none !important;
  }
  .row-arrow {
    display: none !important;
  }
}
