/* เว็บผลงานและรางวัล /awards/ — โทนดำ (ผู้ใช้ขอ "ดำ จริงจัง โดดเด่น" 26 ต.ค. 2026)
   ชมพูเว็บหลัก #e6007e = เส้นทาง/ปุ่ม · ทอง = ถ้วย/เหรียญ · หัวข้อ DB Helvethaica X · เนื้อหา Sarabun
   บนพื้นดำ ตัวหนังสือชมพูขนาดเล็กใช้ --awh-pink-t (#ff4fa7) ให้อ่านออก (#e6007e บนดำ contrast แค่ ~3.3) */
.awh {
  --awh-bg: #050406;   /* ดำเดียวกับพื้นภาพ banner (#040305) ไม่ให้เห็นกรอบภาพ */
  --awh-bg2: #111015;
  --awh-card: #16141a;
  --awh-card2: #1e1b23;
  --awh-line: rgb(255 255 255 / .09);
  --awh-line2: rgb(255 255 255 / .18);
  --awh-text: #f5eff3;
  --awh-mute: #aaa0a7;
  --awh-pink: #e6007e;
  --awh-pink-t: #ff4fa7;
  --awh-hot: #ff2d95;
  --awh-gold: #ffc72c;
  --awh-gold2: #f0a500;
  --awh-head: db_helvethaica_x, "Noto Sans Thai", sans-serif;
  --awh-body: Sarabun, "Noto Sans Thai", sans-serif;
  color: var(--awh-text);
  font-family: var(--awh-body);
  background: var(--awh-bg);
  overflow-x: clip;   /* พื้นหลัง 100vw ของบาง section ไม่ให้หน้าเลื่อนข้างได้ */
}
.awh a { text-decoration: none; }
.awh .awh-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- hero พื้นฐาน (หน้าหมวด / หน้าผลงาน ใช้ต่อ) ---------- */
.awh-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 160px 24px 120px; text-align: center; color: #fff;
  background: radial-gradient(55% 70% at 50% 0%, rgb(230 0 126 / .30), transparent 70%), var(--awh-bg);   /* แสงต้องจางหมดก่อนขอบล่าง ไม่งั้นเห็นรอยตัดกับพื้นหน้า */
}
.awh-hero__inner { position: relative; max-width: 900px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; }
.awh p.awh-hero__eyebrow { margin: 0; font: 700 14px/1 var(--awh-body); letter-spacing: .26em; color: var(--awh-gold); }
.awh h1.awh-hero__title { margin: 0; font: 700 clamp(52px, 8vw, 104px)/.95 var(--awh-head); color: #fff; text-wrap: balance; }
.awh p.awh-hero__lead { margin: 0; font: 400 clamp(16px, 1.6vw, 19px)/1.75 var(--awh-body); color: rgb(255 255 255 / .78); }

/* สปอตไลต์ 2 ดวง ส่ายช้าๆ (หน้าหมวด/หน้าผลงาน) */
.awh-beam {
  position: absolute; z-index: -1; top: -10%; width: 34%; height: 125%; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 236 200 / .16), rgb(255 236 200 / 0) 78%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  filter: blur(8px); mix-blend-mode: screen; transform-origin: 50% 0;
}
.awh-beam--l { left: 4%; transform: rotate(-24deg); animation: awh-sway 11s ease-in-out infinite alternate; }
.awh-beam--r { right: 4%; transform: rotate(24deg); animation: awh-sway-r 13s ease-in-out infinite alternate; }
@keyframes awh-sway { to { transform: rotate(-12deg); } }
@keyframes awh-sway-r { to { transform: rotate(13deg); } }

/* ---------- hero หน้าแรก: โปสเตอร์ — ภาพเส้นทางชมพูซ้าย · ข้อความชิดขวา ---------- */
.awh-hero--poster {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: ". head" ". body";
  align-content: center; row-gap: 26px; min-height: clamp(720px, 55vw, 920px);
  /* ไม่เต็มจอ (ผู้ใช้: "กว้างไป ตรงกลางเหลือดำ" 26 ต.ค. 2026) — กล่องกลาง 1320px ภาพกับข้อความชิดกันขึ้น · พื้นหน้าดำสีเดียวกัน ไม่เห็นขอบกล่อง
     บน 210px: ปุ่มสมัครเรียน/โซเชียลที่ลอยขวาบนของ header สูงถึง ~195px */
  max-width: 1320px; margin-inline: auto;
  padding: 210px 40px 96px; text-align: right; background: var(--awh-bg);
}
/* ภาพเริ่มใต้แถบเมนู (top 110px) — แท่นถ้วยอยู่ขอบบนของภาพ ถ้าเริ่มที่ 0 แถบเมนูจะบังถ้วย · ยึดมุมซ้ายบน ครอปแต่ฝั่งขวา/ล่าง (พื้นดำ) */
.awh-hero__art {
  position: absolute; inset: 110px auto 0 0; width: 68%; z-index: -2; overflow: hidden;
  /* ขอบซ้าย/บน/ขวาค่อยๆ จางหาย — พรมที่ล้นขอบซ้ายของภาพไม่ขาดกึกกลางจอ (กล่องไม่เต็มจอแล้ว) · เปลี่ยนภาพใหม่ก็ไม่เห็นรอยต่อ */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 78%, transparent), linear-gradient(180deg, transparent, #000 6%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 78%, transparent), linear-gradient(180deg, transparent, #000 6%);
  mask-composite: intersect;
}
/* stage = กรอบสัดส่วนเท่าภาพ (สูงเต็มกรอบ ยึดซ้าย ส่วนเกินฝั่งขวาเป็นพื้นดำ) — ลูกเล่นวางเป็น % ของภาพได้ตรงจุด
   --awh-tx/--awh-ty = ตำแหน่งถ้วยในภาพ (hero.webp Nano Banana Pro: 40.9% 10.7% · hero-m.webp 5:4: 65.9% 12.5%) */
.awh-hero__stage { position: relative; height: 100%; aspect-ratio: 1536 / 1024; --awh-tx: 40.9%; --awh-ty: 10.7%; transform-origin: var(--awh-tx) var(--awh-ty); }
.awh .awh-hero__stage img, .awh-hero__stage svg { display: block; width: 100%; height: 100%; }
/* วิดีโอ 16:9 ทับภาพนิ่ง: สูงเท่ากัน ยึดซ้าย -> เนื้อหาวิดีโอ (ซ้าย 1620 จาก 1920px) ตรงกับภาพพอดี ส่วนดำที่เกินถูกตัด
   เริ่มโปร่งใส · .is-on = เล่นอยู่ (วน loop เนียนเพราะเฟรมแรก = เฟรมสุดท้าย)
   .has-video: หยุดซูม Ken Burns (ขยายวิดีโอแล้วเบลอ) + ซ่อนแสงวิ่ง/ประกาย/แสงถ้วยของ CSS (ในคลิปมีอยู่แล้ว) */
.awh-hero__video { position: absolute; top: 0; left: 0; height: 100%; width: auto; aspect-ratio: 16 / 9; max-width: none; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.awh-hero__video.is-on { opacity: 1; }
.awh-hero__stage.has-video { animation: none; }
.awh-hero__stage.has-video .awh-fx-shine, .awh-hero__stage.has-video .awh-fx-sparks, .awh-hero__stage.has-video .awh-fx-glow { display: none; }
@media (max-width: 1023px) { .awh-hero__video { display: none; } }

/* ---------- ลูกเล่นเคลื่อนไหวบน banner (ผู้ใช้ขอ 26 ต.ค. 2026) — ปิดทั้งหมดเมื่อตั้ง "ลดการเคลื่อนไหว" ---------- */
.awh-fx-shine, .awh-fx-glow, .awh-fx-sparks { position: absolute; pointer-events: none; }
/* แสงวิ่ง: แถบขาวผสมแบบ overlay — บนพื้นดำไม่เห็นอะไร จึงสว่างเฉพาะพรมชมพู/คน เหมือนแสงไล่ไปตามทางเดิน */
/*   เลื่อนด้วย transform (GPU) ไม่ใช่ background-position ที่ต้องวาดใหม่ทั้งภาพทุกเฟรม — มือถือรุ่นเล็กจะกระตุก */
.awh-fx-shine { top: 0; bottom: 0; left: 0; width: 45%; mix-blend-mode: overlay; background: linear-gradient(115deg, transparent 15%, rgb(255 255 255 / .75) 50%, transparent 85%); transform: translateX(-100%); opacity: 0; }
/* แสงที่ถ้วยเต้นช้าๆ */
.awh-fx-glow { left: var(--awh-tx); top: var(--awh-ty); width: 26%; aspect-ratio: 1; translate: -50% -42%; border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(circle, rgb(255 226 140 / .55) 0, rgb(255 190 60 / .2) 35%, transparent 68%); opacity: .55; }
/* ประกายทอง (ตำแหน่ง/ขนาด/จังหวะจาก PHP) · 3 ดวงท้ายอยู่รอบถ้วย */
.awh-fx-sparks { inset: 0; }
.awh-fx-sparks i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); opacity: 0; background: radial-gradient(circle, #fffbe8 0 20%, var(--awh-gold) 42%, transparent 72%); }
.awh-fx-sparks i:nth-child(odd) { clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); width: calc(var(--s) * 1.8); height: calc(var(--s) * 1.8); }
.awh-fx-sparks i:nth-child(even) { border-radius: 50%; }
.awh-fx-sparks i.is-trophy { left: calc(var(--awh-tx) + var(--ox)); top: calc(var(--awh-ty) + var(--oy)); }
.awh-fx-sparks i.is-trophy:nth-last-child(3) { --ox: -5%; --oy: 4%; }
.awh-fx-sparks i.is-trophy:nth-last-child(2) { --ox: 4.5%; --oy: -1%; }
.awh-fx-sparks i.is-trophy:nth-last-child(1) { --ox: 2%; --oy: 8%; }

@media (prefers-reduced-motion: no-preference) {
  .awh-hero__stage { animation: awh-kb 26s ease-in-out infinite alternate; }   /* ซูมเข้าหาถ้วยช้าๆ (Ken Burns) */
  .awh-fx-shine { opacity: 1; animation: awh-shine 7s ease-in-out 1.2s infinite; }
  .awh-fx-glow { animation: awh-glow 3.4s ease-in-out infinite; }
  .awh-fx-sparks i { animation: awh-twinkle var(--d) ease-in-out var(--l) infinite; }
  /* ข้อความค่อยๆ ลอยขึ้นตอนเปิดหน้า */
  .awh-hero--poster .awh-hero__head > *, .awh-hero--poster .awh-hero__body > * { animation: awh-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .awh-hero--poster .awh-hero__head > :nth-child(2) { animation-delay: .12s; }
  .awh-hero--poster .awh-hero__body > :nth-child(1) { animation-delay: .32s; }
  .awh-hero--poster .awh-hero__body > :nth-child(2) { animation-delay: .44s; }
  .awh-hero--poster .awh-hero__body > :nth-child(3) { animation-delay: .56s; }
}
@keyframes awh-kb { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes awh-shine { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(240%); } }
@keyframes awh-glow { 0%, 100% { opacity: .45; scale: .92; } 50% { opacity: 1; scale: 1.08; } }
@keyframes awh-twinkle { 0%, 100% { opacity: 0; transform: translateY(0) scale(.3) rotate(0); } 45% { opacity: 1; transform: translateY(-10px) scale(1) rotate(45deg); } 75% { opacity: .5; } }
@keyframes awh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.awh-hero--poster::after {   /* เงาดำฝั่งขวา ให้ข้อความอ่านง่ายแม้ภาพจะล้นมา */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent 42%, rgb(5 4 6 / .72) 66%, rgb(5 4 6 / .9) 100%), linear-gradient(0deg, var(--awh-bg), transparent 18%);   /* สีเดียวกับ --awh-bg ไม่งั้นเห็นกรอบสว่างกว่า */
}
.awh-hero__head { grid-area: head; display: grid; gap: 18px; justify-items: end; }
.awh-hero__body { grid-area: body; display: grid; gap: 22px; justify-items: end; }
.awh .awh-hero--poster h1.awh-hero__title { font-size: clamp(64px, 7.6vw, 124px); line-height: .92; letter-spacing: -.01em; }
.awh-hero--poster h1.awh-hero__title span { color: var(--awh-hot); }
.awh .awh-hero--poster p.awh-hero__lead { max-width: 30em; }

/* ตัวเลขใน hero */
.awh .awh-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; margin: 4px 0 0; padding: 0; list-style: none; }
.awh-stats li { display: grid; gap: 2px; justify-items: end; padding: 0 22px; border-right: 1px solid var(--awh-line2); }
.awh-stats li:last-child { padding-right: 0; border-right: 0; }
.awh-stat__n { font: 700 clamp(36px, 3.4vw, 50px)/1 var(--awh-head); color: var(--awh-gold); font-variant-numeric: tabular-nums; }
.awh-stat__l { font: 500 14px/1.3 var(--awh-body); color: var(--awh-mute); }

/* ช่องค้นหาใน hero */
.awh-search {
  display: flex; align-items: center; gap: 10px; width: min(100%, 520px);
  padding: 6px 6px 6px 20px; border-radius: 999px; background: rgb(255 255 255 / .07);
  border: 1px solid var(--awh-line2); backdrop-filter: blur(6px); text-align: left;
}
.awh-search > .awh-ic { color: var(--awh-pink-t); }
.awh .awh-search input {
  flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; background: none; box-shadow: none;
  font: 400 16px/1.3 var(--awh-body); color: #fff;
}
.awh .awh-search input::placeholder { color: rgb(255 255 255 / .5); }
.awh .awh-search input:focus { outline: none; }
.awh .awh-search button, .awh .awh-search button:hover, .awh .awh-search button:focus {
  flex: none; height: 46px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--awh-pink); color: #fff; font: 600 16px/1 var(--awh-body); transition: background-color .15s;
}
.awh .awh-search button:hover { background: var(--awh-hot); }
.awh-search:focus-within { border-color: var(--awh-pink-t); box-shadow: 0 0 0 4px rgb(230 0 126 / .25); }

/* ---------- section ---------- */
.awh-sec { max-width: 1200px; margin: 0 auto; padding: 80px 24px 8px; }
.awh-sec__head { display: grid; gap: 6px; justify-items: center; margin-bottom: 28px; text-align: center; }
.awh-sec__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; text-align: left; }
.awh h2.awh-sec__title { margin: 0; font: 700 clamp(34px, 4vw, 48px)/1.1 var(--awh-head); color: #fff; text-wrap: balance; }
.awh h2.awh-sec__title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--awh-pink), var(--awh-gold)); }
.awh-sec__head:not(.awh-sec__head--row) h2.awh-sec__title::after { margin-inline: auto; }
.awh p.awh-sec__sub { margin: 6px 0 0; font: 400 17px/1.5 var(--awh-body); color: var(--awh-mute); }
.awh .awh-link { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1.2 var(--awh-body); color: var(--awh-pink-t); }
.awh .awh-link span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 79 167 / .14); transition: transform .15s; }
.awh .awh-link:hover span { transform: translateX(3px); }

/* ปุ่ม — selector 3 ชั้น ชนะสไตล์ button/[type=button] ของธีม Hello (มุมเหลี่ยม + hover สีแดง) */
.awh .awh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 28px; border-radius: 999px; border: 0; cursor: pointer; font: 600 17px/1.2 var(--awh-body); text-transform: none; transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s; }
.awh .awh-btn.awh-btn--pink, .awh .awh-btn.awh-btn--pink:hover, .awh .awh-btn.awh-btn--pink:focus { background: var(--awh-pink); color: #fff; box-shadow: 0 8px 22px rgb(230 0 126 / .35); }
.awh .awh-btn.awh-btn--line, .awh .awh-btn.awh-btn--line:hover, .awh .awh-btn.awh-btn--line:focus { background: transparent; color: #fff; border: 1px solid var(--awh-line2); }
.awh .awh-btn.awh-btn--line:hover { border-color: var(--awh-pink-t); color: var(--awh-pink-t); }
.awh .awh-btn.awh-btn--gold, .awh .awh-btn.awh-btn--gold:hover { background: linear-gradient(180deg, #ffe08a, var(--awh-gold)); color: #1a1206; box-shadow: 0 8px 22px rgb(255 160 0 / .25); }
.awh .awh-btn:hover { transform: translateY(-2px); }
.awh .awh-btn:focus-visible, .awh-card:focus-visible, .awh-feat:focus-visible, .awh-mini__item:focus-visible, .awh-type:focus-visible, .awh-chip:focus-visible, .awh-link:focus-visible {
  outline: 3px solid var(--awh-gold); outline-offset: 3px;
}

/* ป้ายวันที่ / คณะ บนการ์ด */
.awh-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 600 13px/1.6 var(--awh-body); }
.awh-card__meta time { padding: 2px 10px; border-radius: 999px; background: rgb(255 79 167 / .14); color: var(--awh-pink-t); font-variant-numeric: tabular-nums; }
.awh-card__tag { color: var(--awh-mute); font-weight: 500; }
.awh-card__tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--awh-gold); vertical-align: middle; }

/* ---------- ผลงานล่าสุด: การ์ดใหญ่ซ้าย + รายการ 4 เรื่องขวา ---------- */
.awh-latest { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.awh-feat {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 24px; background: var(--awh-card);
  border: 1px solid var(--awh-line); color: var(--awh-text); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.awh-feat:hover { transform: translateY(-4px); border-color: rgb(255 79 167 / .45); box-shadow: 0 18px 40px rgb(230 0 126 / .18); }
.awh-feat__pic { display: block; aspect-ratio: 768 / 490; background: var(--awh-card2); overflow: hidden; }
.awh .awh-feat__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.awh-feat:hover .awh-feat__pic img { transform: scale(1.03); }
.awh-feat__body { display: grid; gap: 10px; align-content: start; padding: 20px 24px 24px; }
.awh-feat__new { padding: 2px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, var(--awh-gold)); color: #1a1206; }
.awh-feat__title { font: 700 clamp(22px, 2.2vw, 28px)/1.3 var(--awh-head); color: #fff; }
.awh-feat:hover .awh-feat__title { color: var(--awh-pink-t); }
.awh-feat__text { font: 400 16px/1.65 var(--awh-body); color: var(--awh-mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.awh-mini { display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; }
.awh-mini__item {
  display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 14px; align-items: center; overflow: hidden;
  padding: 10px; border-radius: 18px; background: var(--awh-card); border: 1px solid var(--awh-line);
  color: var(--awh-text); transition: transform .15s, border-color .15s;
}
.awh-mini__item:hover { transform: translateX(4px); border-color: rgb(255 79 167 / .45); }
.awh-mini__pic { display: block; aspect-ratio: 768 / 490; border-radius: 12px; overflow: hidden; background: var(--awh-card2); }
.awh .awh-mini__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.awh-mini__body { display: grid; gap: 6px; align-content: center; min-width: 0; }
.awh-mini__body .awh-card__tag { display: none; }
.awh-mini__title { font: 600 15.5px/1.45 "Noto Sans Thai", sans-serif; color: var(--awh-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.awh-mini__item:hover .awh-mini__title { color: var(--awh-pink-t); }

/* ---------- ผลงานทั้งหมด ---------- */
.awh-all { scroll-margin-top: 110px; }   /* header ลอยทับ */
.awh-tools { display: flex; gap: 10px; flex: 0 1 640px; }
.awh-tools__q { position: relative; display: block; flex: 1 1 260px; }
.awh-tools__q .awh-ic { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; color: var(--awh-pink-t); pointer-events: none; }
.awh .awh-tools input, .awh .awh-tools select {
  width: 100%; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--awh-line2); background: var(--awh-card);
  font: 400 16px/1.3 var(--awh-body); color: var(--awh-text);
}
.awh .awh-tools input::placeholder { color: var(--awh-mute); }
.awh .awh-tools select option { background: var(--awh-card); color: var(--awh-text); }
.awh .awh-tools input { padding-left: 44px; }
.awh-tools__y { flex: 0 0 140px; }
.awh-tools__c { flex: 0 0 180px; }
.awh .awh-tools input:focus, .awh .awh-tools select:focus { outline: none; border-color: var(--awh-pink-t); box-shadow: 0 0 0 4px rgb(230 0 126 / .22); }

.awh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.awh .awh-chip, .awh .awh-chip:focus {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--awh-line); background: var(--awh-card); color: var(--awh-text);
  font: 500 15px/1.2 "Noto Sans Thai", sans-serif; text-transform: none; transition: background-color .15s, color .15s, border-color .15s;
}
.awh .awh-chip span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: rgb(255 255 255 / .08); color: var(--awh-mute); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.awh .awh-chip:hover { background: var(--awh-card2); border-color: rgb(255 79 167 / .5); color: var(--awh-pink-t); }
.awh .awh-chip[aria-pressed="true"], .awh .awh-chip[aria-pressed="true"]:hover { background: var(--awh-pink); border-color: var(--awh-pink); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgb(230 0 126 / .35); }
.awh .awh-chip[aria-pressed="true"] span { background: rgb(255 255 255 / .22); color: #fff; }
.awh p.awh-count { margin: 0 0 16px; font: 600 15px/1 var(--awh-body); color: var(--awh-mute); font-variant-numeric: tabular-nums; }

.awh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; transition: opacity .2s; }
.awh-all.is-loading .awh-grid { opacity: .45; }
.awh-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 18px; background: var(--awh-card);
  border: 1px solid var(--awh-line); color: var(--awh-text); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.awh-card:hover { transform: translateY(-4px); border-color: rgb(255 79 167 / .45); box-shadow: 0 16px 34px rgb(230 0 126 / .16); }
.awh-card__pic { display: block; aspect-ratio: 768 / 490; background: linear-gradient(135deg, #24141e, #1c1710); overflow: hidden; }
.awh .awh-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.awh-card:hover .awh-card__pic img { transform: scale(1.04); }
.awh-card__body { display: grid; gap: 8px; align-content: start; padding: 14px 18px 18px; }
.awh-card__title { font: 600 17px/1.45 "Noto Sans Thai", sans-serif; color: var(--awh-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.awh-card:hover .awh-card__title { color: var(--awh-pink-t); }
/* masonry (ผู้ใช้ขอ 26 ต.ค. 2026, จัดโดย awards.js): จอ ≥768 รูปตามสัดส่วนจริง --ar (สูงสุด 1:1.35 จาก PHP/JS)
   .is-masonry = grid แถวละ 4px ไม่มีช่องว่างแถว — การ์ดกินกี่แถวตามความสูงจริง + ระยะห่าง · ไม่มี JS = grid ปกติ รูปสัดส่วนเดิม */
@media (min-width: 768px) {
  .awh-grid.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
  .awh-grid.is-masonry > .awh-card { align-self: start; }
  .awh-grid.is-masonry .awh-card__pic { aspect-ratio: var(--ar, 768 / 490); }
}
.awh-empty { display: grid; gap: 14px; justify-items: center; padding: 48px 20px; border-radius: 20px; background: var(--awh-card); border: 1px dashed var(--awh-line2); text-align: center; }
.awh-empty[hidden] { display: none; }
.awh-empty p { margin: 0; font-size: 17px; color: var(--awh-mute); }
.awh-more-wrap { margin: 32px 0 0; text-align: center; }
.awh .awh-more[hidden] { display: none; }

/* ---------- คลังผลงานตามประเภท (แถบเต็มจอ แสงชมพู/ทองจางๆ) ---------- */
.awh-types { position: relative; isolation: isolate; margin-top: 88px; padding-top: 80px; padding-bottom: 84px; }
.awh-types::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background:
    radial-gradient(40% 60% at 88% 10%, rgb(255 199 44 / .10), transparent 70%),
    radial-gradient(45% 60% at 8% 95%, rgb(230 0 126 / .16), transparent 70%),
    var(--awh-bg2);
  border-top: 1px solid var(--awh-line); border-bottom: 1px solid var(--awh-line);
}
.awh-type-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.awh-type {
  display: grid; gap: 8px; justify-items: center; align-content: start; text-align: center;
  padding: 26px 12px 22px; border-radius: 22px; background: var(--awh-card); border: 1px solid var(--awh-line);
  color: var(--awh-text); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.awh-type:hover { transform: translateY(-4px); border-color: rgb(255 199 44 / .55); box-shadow: 0 16px 34px rgb(255 160 0 / .12); }
.awh-type__ic { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: var(--awh-gold); background: rgb(255 199 44 / .08); box-shadow: inset 0 0 0 1px rgb(255 199 44 / .35); transition: box-shadow .15s; }   /* ไม่ใส่ color/background: พื้น gradient เปลี่ยนทันที ถ้าสีไอคอนค่อยๆ เปลี่ยน ตอนเมาส์ออกไอคอนเข้มจมพื้นเข้มแวบหนึ่ง */
.awh-type__ic .awh-ic { width: 30px; height: 30px; }
.awh-type:hover .awh-type__ic { color: #1a1206; background: radial-gradient(circle at 35% 30%, #fff1c1, var(--awh-gold)); box-shadow: 0 0 26px rgb(255 199 44 / .4); }
.awh-type__name { font: 700 21px/1.15 var(--awh-head); color: #fff; }
.awh-type__n { font: 500 14px/1.3 var(--awh-body); color: var(--awh-mute); }

/* ---------- แถบท้าย: ลิงก์ข่าวผลงานทั้งหมด (แถบชมพูเด่นบนพื้นดำ) ---------- */
.awh-cta { padding: 72px 24px 96px; }
.awh-cta__inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; max-width: 1152px; margin: 0 auto; padding: 28px 32px; border-radius: 26px;
  background: radial-gradient(60% 140% at 100% 0%, rgb(255 199 44 / .28), transparent 65%), linear-gradient(120deg, #ff2d95, #e6007e 45%, #9c0058);
  color: #fff; box-shadow: 0 20px 50px rgb(230 0 126 / .28);
}
.awh-cta__ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #1a1206; background: radial-gradient(circle at 35% 30%, #fff6d8, var(--awh-gold) 50%, var(--awh-gold2)); }
.awh-cta__ic .awh-ic { width: 30px; height: 30px; }
.awh p.awh-cta__text { flex: 1 1 320px; margin: 0; font: 400 16px/1.5 var(--awh-body); color: rgb(255 255 255 / .85); }
.awh-cta__text strong { display: block; font: 700 27px/1.2 var(--awh-head); color: #fff; }

/* ---------- จอเล็ก ---------- */
@media (max-width: 1365px) {
  .awh-hero--poster { padding-top: 284px; }   /* จอ ≤1365 ปุ่มลอยของ header ย้ายลงมาใต้แถบเมนู (ล่างสุด ~256px) */
}
@media (max-width: 1100px) {
  .awh-type-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* จอ 1024–1199 (โน้ตบุ๊กที่ขยายจอ 125% กว้างราว 1060px): ยังวางข้างกัน + เล่นวิดีโอ แต่ภาพเล็กลง (สูงไม่เกิน 60vw) คอลัมน์ข้อความแคบลง
   ไม่ให้ข้อความทับคนในภาพ — ภาพอยู่กึ่งกลางแนวตั้งของ hero */
@media (min-width: 1024px) and (max-width: 1199px) {
  .awh-hero--poster { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
  .awh .awh-hero--poster h1.awh-hero__title { font-size: 78px; }
  .awh .awh-hero--poster p.awh-hero__lead { font-size: 15.5px; }
  .awh-hero__art { display: flex; align-items: center; }
  .awh-hero__stage { flex: none; height: min(100%, 60vw); }
}
@media (max-width: 1023px) {
  /* hero: หัวข้อ -> ภาพ -> ข้อความ/ค้นหา/ตัวเลข เรียงลง ตรงกลาง (จอ <1024 ถ้าวางข้างกัน ข้อความจะทับคนในภาพ) */
  .awh-hero--poster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body"; min-height: 0; row-gap: 0; padding: 130px 24px 56px; text-align: center; }
  .awh-hero--poster::after { background: linear-gradient(0deg, var(--awh-bg), transparent 12%); }
  .awh-hero__art { grid-area: art; position: relative; inset: auto; justify-self: center; width: min(100%, 680px); z-index: 0; margin: 18px 0 22px; aspect-ratio: 5 / 4;   /* ภาพ hero-m 5:4 (ครอปดำว่างด้านบนของภาพสี่เหลี่ยมออก) · ขอบซ้าย/ขวาจางหาย */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .awh-hero__stage { width: 100%; height: auto; aspect-ratio: 5 / 4; --awh-tx: 65.9%; --awh-ty: 12.5%; }
  .awh-hero__head, .awh-hero__body { justify-items: center; }
  .awh .awh-stats { justify-content: center; }
  .awh-stats li { justify-items: center; }
  .awh-stats li:last-child { padding-right: 22px; }
}
@media (max-width: 1023px) {
  .awh-latest { grid-template-columns: 1fr; }
  .awh-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .awh-mini__item { grid-template-columns: 1fr; align-items: start; }
  .awh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .awh-hero { padding: 122px 16px 92px; }
  .awh-hero--poster { padding: 112px 16px 44px; }
  .awh-hero__art { width: auto; justify-self: stretch; margin: 14px -16px 18px; -webkit-mask-image: none; mask-image: none; }
  .awh .awh-hero--poster h1.awh-hero__title { font-size: clamp(54px, 16vw, 76px); }
  .awh-beam { width: 60%; }
  .awh p.awh-hero__eyebrow { font-size: 12px; letter-spacing: .2em; }
  .awh .awh-hero--poster p.awh-hero__lead { font-size: 15.5px; }
  .awh-search { padding-left: 16px; }
  .awh .awh-search button { padding: 0 18px; }
  .awh-stats li { padding: 0 14px; }
  .awh-stats li:last-child { padding-right: 14px; }
  .awh-stat__l { font-size: 12.5px; }
  .awh-sec { padding: 56px 16px 8px; }
  .awh-feat { border-radius: 20px; }
  .awh-feat__body { padding: 16px 16px 18px; }
  .awh-feat__text { font-size: 15px; -webkit-line-clamp: 2; }
  .awh-mini { grid-template-columns: 1fr; gap: 10px; }
  .awh-mini__item { grid-template-columns: 38% minmax(0, 1fr); align-items: center; padding: 8px; gap: 12px; }
  .awh-mini__title { font-size: 14.5px; }
  .awh-tools { flex: 1 1 100%; flex-wrap: wrap; }
  .awh-tools__q { flex: 1 1 100%; }
  .awh-tools__c, .awh-tools__y { flex: 1 1 0; }
  /* ปุ่มคณะ: แถวเดียวเลื่อนข้าง */
  .awh-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }   /* scroll-padding: snap ปุ่มแรกไม่ชิดขอบจอ */
  .awh-chips::-webkit-scrollbar { display: none; }
  .awh .awh-chip { flex: none; white-space: nowrap; scroll-snap-align: start; }
  /* การ์ดแนวนอน (รูปซ้าย ข้อความขวา) — 12 การ์ดแนวตั้งเต็มจอยาวเกินไปบนมือถือ */
  .awh-grid { grid-template-columns: 1fr; gap: 10px; }
  .awh-card { grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: none; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; }
  .awh-card__pic { border-radius: 10px; }
  .awh-card__body { gap: 6px; padding: 0; }
  .awh-card__body .awh-card__tag { display: none; }
  .awh-card__title { font-size: 14.5px; }
  .awh-types { margin-top: 60px; padding-top: 56px; padding-bottom: 60px; }
  .awh-type-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .awh-type { padding: 18px 10px 16px; border-radius: 18px; }
  .awh-type__ic { width: 52px; height: 52px; }
  .awh-type__name { font-size: 19px; }
  .awh-cta { padding: 48px 16px 64px; }
  .awh-cta__inner { padding: 22px 20px; border-radius: 22px; }
  .awh-cta__text strong { font-size: 23px; }
  .awh-cta .awh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .awh *, .awh *::before, .awh *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   หน้าหมวด + หน้าผลงาน (templates/category.php, single.php)
   ===================================================================== */
.awh-hero--sm { padding: 158px 24px 64px; }
.awh-hero--sm .awh-hero__inner { gap: 10px; }
.awh .awh-hero--sm h1.awh-hero__title { font-size: clamp(42px, 5.6vw, 68px); line-height: 1.02; }
.awh-crumb { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font: 400 15px/1.4 var(--awh-body); color: rgb(255 255 255 / .6); }
.awh .awh-crumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .35); }
.awh .awh-crumb a:hover { text-decoration-color: #fff; }
.awh-sec--arch { padding-top: 48px; padding-bottom: 88px; }
.awh-sec--arch .awh-count { margin-bottom: 18px; }

/* หน้าผลงาน 1 เรื่อง — ตัวหนังสือสว่างไม่ขาวจัด อ่านยาวบนพื้นดำได้สบายตา */
.awh-hero--post { padding: 150px 24px 64px; }
.awh .awh-hero--post h1.awh-post__title { margin: 0; max-width: 960px; font: 700 clamp(30px, 3.8vw, 48px)/1.2 var(--awh-head); color: #fff; text-wrap: balance; }
.awh-hero--post .awh-card__meta { justify-content: center; }
.awh-hero--post .awh-card__tag { color: rgb(255 255 255 / .75); }
.awh-hero--post .awh-card__tag a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .3); }
.awh-article { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.awh-article__cover { position: relative; z-index: 1; margin: -32px 0 32px; overflow: hidden; border-radius: 22px; background: var(--awh-card); border: 1px solid var(--awh-line); box-shadow: 0 24px 60px rgb(0 0 0 / .5); }
.awh .awh-article__cover img { display: block; width: 100%; height: auto; }
.awh-article__body { font: 400 18px/1.85 var(--awh-body); color: #e4dce1; }
.awh-article__body > * { margin: 0 0 1.1em; }
.awh-article__body figure { margin: 0 0 1.4em; }
.awh .awh-article__body img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 14px; }
.awh-article__body a { color: var(--awh-pink-t); text-decoration: underline; text-underline-offset: 3px; }
.awh-article__body strong, .awh-article__body b { color: #fff; }
.awh-article__body h2, .awh-article__body h3 { font-family: var(--awh-head); color: #fff; line-height: 1.25; }
.awh-article__back { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--awh-line); display: flex; flex-wrap: wrap; gap: 10px; }
.awh-sec--more { padding-bottom: 96px; }
.awh-sec--more .awh-grid { margin-top: 4px; }

@media (max-width: 767px) {
  .awh-hero--sm { padding: 118px 16px 48px; }
  .awh-hero--post { padding: 112px 16px 48px; }
  .awh-article { padding: 0 16px; }
  .awh-article__cover { margin-top: -22px; border-radius: 16px; }
  .awh-article__body { font-size: 17px; }
}
