/* ==========================================================================
   Digital Government Awards 2026 (ประจำปี 2569)
   Official Stylesheet - Dark Blue & Gold Stage Theme
   ========================================================================== */

@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansThai';
  src: url('../fonts/NotoSansThaiUI-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansThai';
  src: url('../fonts/NotoSansThai-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansUI';
  src: url('../fonts/NotoSansUI-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-navy-dark: #020c1b;
  --bg-navy: #051630;
  --bg-navy-panel: rgba(5, 22, 48, 0.88);
  --bg-navy-card: rgba(6, 24, 54, 0.84);
  --gold-light: #fbe69b;
  --gold-mid: #dfb760;
  --gold-deep: #b3832c;
  --gold-bronze: #4e3b17;
  --gold-gradient: linear-gradient(135deg, #f8e49c 0%, #d9ad53 48%, #a67623 100%);
  --gold-pill-bg: linear-gradient(180deg, #523e16 0%, #2a1f09 55%, #463512 100%);
  --gold-banner-bg: linear-gradient(180deg, #f6de94 0%, #d4a64a 50%, #e7c26c 100%);
  --text-white: #ffffff;
  --text-gold: #ecd078;
  --text-muted: #cbd5e1;
  --header-height: 92px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Kanit', 'NotoSansThai', sans-serif;
  background-color: var(--bg-navy-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   Header / Top Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: linear-gradient(180deg, rgba(2, 11, 26, 0.98) 0%, rgba(5, 22, 48, 0.95) 100%);
  border-bottom: 3px solid #d4a94e;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 1px 12px rgba(223, 183, 96, 0.35);
  z-index: 1000;
}

.header-inner {
  max-width: 1480px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.brand-subtext {
  display: flex;
  flex-direction: column;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-item-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-white);
  border-radius: 8px;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-link.is-active {
  color: var(--gold-light);
  border-color: #dfb760;
  background: rgba(223, 183, 96, 0.12);
  box-shadow: 0 0 14px rgba(223, 183, 96, 0.45), inset 0 0 8px rgba(223, 183, 96, 0.2);
}

/* Winners Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 340px;
  background: rgba(4, 18, 40, 0.98);
  border: 1.5px solid #dfb760;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85), 0 0 18px rgba(223, 183, 96, 0.25);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
  z-index: 1100;
}

.nav-item-wrap:hover .nav-dropdown,
.nav-item-wrap.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 9px 14px;
  font-size: 0.92rem;
  color: var(--text-white);
  border-radius: 7px;
  border-bottom: 1px solid rgba(223, 183, 96, 0.15);
}

.dropdown-link:last-child {
  border-bottom: none;
}

.dropdown-link:hover,
.dropdown-link.is-active {
  background: linear-gradient(90deg, rgba(223, 183, 96, 0.25) 0%, rgba(223, 183, 96, 0.05) 100%);
  color: var(--gold-light);
}

/* Header Right Controls (LIVE button, Search, Organization Logos) */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-live-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-live-btn img {
  height: 36px;
  width: auto;
}

.header-live-btn:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(255, 40, 40, 0.75));
}

.header-org-link {
  display: inline-flex;
  align-items: center;
}

.header-org-link img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.mobile-toggle-btn {
  display: none;
  background: rgba(223, 183, 96, 0.15);
  border: 1.5px solid #dfb760;
  color: var(--gold-light);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100%;
  background: linear-gradient(180deg, #04132a 0%, #020a18 100%);
  border-left: 2px solid #dfb760;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.mobile-drawer-backdrop.is-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(223, 183, 96, 0.3);
}

.mobile-close-btn {
  background: none;
  border: 1px solid rgba(223, 183, 96, 0.5);
  color: var(--gold-light);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1.02rem;
  color: var(--text-white);
  border: 1px solid transparent;
}

.mobile-nav-link.is-active {
  border-color: #dfb760;
  background: rgba(223, 183, 96, 0.14);
  color: var(--gold-light);
}

.mobile-subnav {
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid rgba(223, 183, 96, 0.35);
  margin: 4px 0 8px 12px;
}

.mobile-subnav a {
  padding: 7px 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-radius: 6px;
}

.mobile-subnav a:hover,
.mobile-subnav a.is-active {
  color: var(--gold-light);
  background: rgba(223, 183, 96, 0.1);
}

/* ==========================================================================
   Main Stage & Background Layouts
   ========================================================================== */
.page-main {
  flex: 1;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 36px 20px 54px;
}

.page-main--home {
  background-image: url('../img/bg.jpg');
}

.page-main--sub {
  background-image: url('../img/bg2.jpg');
}

.page-main--stage {
  background-image: url('../img/bg.jpg');
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Page 1: Home (01-AWหน้าหลัก.jpg)
   ========================================================================== */
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.home-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 80px;
}

.home-org-logo {
  height: 54px;
  width: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.home-main-logo-wrap {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin-bottom: 20px;
}

.home-main-logo-wrap img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
}

.home-thai-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: -8px;
  text-align: right;
  padding-right: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Countdown Panel */
.countdown-panel {
  background: linear-gradient(180deg, rgba(16, 40, 78, 0.92) 0%, rgba(7, 22, 48, 0.95) 100%);
  border: 2.5px solid #d7ac54;
  border-radius: 26px;
  padding: 16px 36px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 24px rgba(215, 172, 84, 0.25);
  margin-bottom: 22px;
  max-width: 560px;
  width: 100%;
}

.countdown-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 12px;
}

.countdown-boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-digit-box {
  width: 82px;
  height: 78px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(120, 145, 180, 0.16) 50%, rgba(30, 50, 82, 0.5) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.25), 0 6px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'NotoSansUI', 'Kanit', sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
}

.cd-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: -22px;
  padding: 0 2px;
}

.cd-label {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--text-white);
}

/* Home Action Buttons (รับชม LIVE / ดูผู้ชนะรางวัล) */
.home-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cta-img-btn {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.cta-img-btn img {
  height: 68px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65));
}

.cta-img-btn:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08) drop-shadow(0 0 18px rgba(245, 211, 122, 0.55));
}

/* Social Row */
.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(245, 211, 122, 0.7));
}

/* Home Trophy Column */
.home-trophy-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-trophy-img {
  max-height: 540px;
  width: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 28px rgba(223, 183, 96, 0.25));
  animation: floatTrophy 5s ease-in-out infinite;
}

@keyframes floatTrophy {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   Page 2: History (02-AW_ประวัติความเป็นมา-01.jpg & 02.jpg)
   ========================================================================== */
.history-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto 36px;
}

.trophy-podium-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 20px;
}

.trophy-podium-img {
  max-height: 450px;
  width: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.85));
}

.golden-podium-base {
  width: 310px;
  height: 76px;
  margin-top: -32px;
  border-radius: 50% / 36%;
  background: linear-gradient(90deg, #a87b28 0%, #fae59c 32%, #fff3c4 50%, #e1b85c 72%, #9a6d1f 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85), 0 0 28px rgba(248, 224, 142, 0.45), inset 0 6px 14px rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 1;
}

.golden-podium-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #fff7d6 0%, #ecd078 65%, #c79a3b 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.history-header {
  text-align: center;
  margin-bottom: 24px;
}

.history-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.history-subtitle {
  font-size: 1.25rem;
  color: var(--text-white);
  line-height: 1.4;
}

/* Accordion List */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(6, 23, 52, 0.9);
  border: 1.5px solid rgba(223, 183, 96, 0.65);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 15px rgba(223, 183, 96, 0.15);
  transition: all 0.25s ease;
}

.accordion-item.is-open {
  border-color: #f3d27a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 22px rgba(223, 183, 96, 0.35);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, rgba(8, 28, 62, 0.96) 0%, rgba(12, 36, 76, 0.92) 100%);
  border: none;
  color: var(--text-white);
  cursor: pointer;
  text-align: left;
  min-height: 62px;
  position: relative;
}

.accordion-icon-badge {
  width: 88px;
  background: linear-gradient(135deg, #f6df92 0%, #d3a649 100%);
  color: #5a3f0c;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
  padding-right: 12px;
  flex-shrink: 0;
}

.accordion-icon-badge svg {
  width: 30px;
  height: 30px;
}

.accordion-label {
  flex: 1;
  padding: 12px 18px;
  font-family: 'Kanit', sans-serif;
  font-size: 1.22rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  line-height: 1.35;
}

.accordion-arrow {
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ebd07a;
  transition: transform 0.28s ease;
}

.accordion-item.is-open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 22px 26px;
  background: rgba(3, 15, 35, 0.95);
  border-top: 1.5px solid rgba(223, 183, 96, 0.55);
  font-size: 0.98rem;
  line-height: 1.72;
  color: #f1f5f9;
}

.accordion-item.is-open .accordion-content {
  display: block;
}

.accordion-content p {
  margin-bottom: 12px;
  text-indent: 1.8em;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ol,
.accordion-content ul {
  padding-left: 24px;
  margin: 8px 0 12px;
}

.accordion-content ol {
  list-style: decimal;
}

.accordion-content ul {
  list-style: disc;
}

.accordion-content li {
  margin-bottom: 6px;
}

/* History Timeline Bar (2562 - 2569) */
.timeline-bar {
  max-width: 1180px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.timeline-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.timeline-nav-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-nav-btn:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(245, 211, 122, 0.8));
}

.timeline-track-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 16px 10px;
}

.timeline-line {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  height: 5px;
  background: linear-gradient(90deg, #b88a32 0%, #f5dc8b 50%, #b88a32 100%);
  border-radius: 3px;
  z-index: 1;
}

.timeline-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.timeline-year-pill {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  padding: 3px 16px;
  border-radius: 999px;
  transition: all 0.22s ease;
}

.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5c8 0%, #dfb760 60%, #9b6e1c 100%);
  border: 2px solid #fbe69b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  transition: all 0.22s ease;
}

.timeline-node:hover .timeline-year-pill,
.timeline-node.is-active .timeline-year-pill {
  background: linear-gradient(180deg, #f8e296 0%, #cfa140 100%);
  color: #041227;
  box-shadow: 0 0 16px rgba(248, 226, 150, 0.75);
}

.timeline-node:hover .timeline-dot,
.timeline-node.is-active .timeline-dot {
  transform: scale(1.25);
  background: #ffffff;
  box-shadow: 0 0 20px #fbe69b, 0 0 32px #dfb760;
}

/* ==========================================================================
   Page 4: Winners Overview (04-AW_รางวัลรัฐบาลดิจิทัลระดับประจำปี.jpg)
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-title-gold {
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(180deg, #fff3c4 0%, #e4bc63 55%, #c59233 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.75));
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.22rem;
  color: var(--text-white);
  margin-top: 4px;
}

/* Top Row: 3 Trophy Cards */
.winners-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto 32px;
}

.winner-trophy-card {
  background: radial-gradient(circle at 50% 55%, rgba(160, 120, 40, 0.25) 0%, rgba(4, 15, 34, 0.92) 70%);
  border: 2.5px solid #d9ae54;
  border-radius: 24px;
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8), 0 0 20px rgba(217, 174, 84, 0.2);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.winner-trophy-card:hover {
  transform: translateY(-8px);
  border-color: #fff0b8;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.9), 0 0 32px rgba(245, 211, 122, 0.5);
}

.laurel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 76px;
  margin-bottom: 10px;
  width: 100%;
}

.laurel-wing {
  width: 34px;
  height: 64px;
  flex-shrink: 0;
  fill: url(#goldGrad);
}

.laurel-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
}

.card-trophy-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.card-trophy-img {
  height: 230px;
  width: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(245, 208, 107, 0.35));
}

.card-podium {
  width: 190px;
  height: 44px;
  margin-top: -18px;
  border-radius: 50% / 38%;
  background: linear-gradient(90deg, #9c7021 0%, #fae59c 35%, #fff5cc 50%, #ddb357 70%, #92661a 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8), 0 0 16px rgba(245, 211, 122, 0.4);
  position: relative;
  z-index: 1;
}

/* Bottom Row: 5 Certificate Cards */
.winners-bottom-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1340px;
  margin: 0 auto;
}

.winner-cert-card {
  background: linear-gradient(180deg, rgba(12, 34, 68, 0.95) 0%, rgba(5, 18, 40, 0.96) 100%);
  border: 2px solid #d7ac54;
  border-radius: 18px;
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.winner-cert-card:hover {
  transform: translateY(-6px);
  border-color: #fff0b8;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 211, 122, 0.45);
}

.cert-card-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-white);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.32;
  margin-bottom: 10px;
}

.cert-card-img-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(223, 183, 96, 0.5);
  background: #ffffff;
}

.cert-card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Winner Subpages (SUB1 - SUB9)
   ========================================================================== */
.subpage-header-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 26px;
}

.gold-capsule-title {
  display: inline-block;
  background: linear-gradient(180deg, #4b3914 0%, #241a07 52%, #3f2f0f 100%);
  border: 2.5px solid #e7c26c;
  border-radius: 999px;
  padding: 12px 44px;
  font-size: 2.15rem;
  font-weight: 700;
  color: #f4d37d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 22px rgba(231, 194, 108, 0.35), inset 0 2px 10px rgba(255, 232, 163, 0.25);
}

.gold-count-pill {
  display: inline-block;
  background: linear-gradient(180deg, #4d3b15 0%, #251b07 55%, #413110 100%);
  border: 2px solid #e2bc64;
  border-radius: 999px;
  padding: 6px 36px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(226, 188, 100, 0.3);
}

/* SUB1: CEO Showcase */
.ceo-stage-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 290px;
  align-items: end;
  gap: 20px;
}

.ceo-frame-box {
  border: 2px solid rgba(230, 190, 98, 0.85);
  background: linear-gradient(135deg, rgba(4, 18, 42, 0.88) 0%, rgba(7, 27, 58, 0.94) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 28px rgba(230, 190, 98, 0.25);
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  padding: 24px 32px 0 24px;
  position: relative;
  min-height: 410px;
}

.ceo-portrait-wrap {
  align-self: end;
  display: flex;
  justify-content: center;
}

.ceo-portrait-wrap img {
  max-height: 385px;
  width: auto;
  object-fit: contain;
}

.ceo-info-col {
  text-align: center;
  padding: 20px 16px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ceo-name {
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.ceo-position {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.38;
}

.ceo-org-logo {
  margin-top: 14px;
  height: 105px;
  width: auto;
}

/* SUB2: Government Department Awards */
.dept-group-box {
  max-width: 1080px;
  margin: 0 auto 32px;
  background: rgba(4, 18, 42, 0.92);
  border: 3px solid #e7c26c;
  border-radius: 24px;
  padding: 36px 32px 28px;
  position: relative;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8), 0 0 22px rgba(231, 194, 108, 0.2);
}

.dept-group-header {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #4b3914 0%, #231906 55%, #3f2f0f 100%);
  border: 2px solid #e7c26c;
  border-radius: 999px;
  padding: 7px 36px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
}

.dept-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
  row-gap: 16px;
  margin-top: 8px;
}

.dept-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.dept-rank {
  font-family: 'NotoSansUI', 'Kanit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ebd07a;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.dept-logo-box {
  width: 78px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  padding-right: 14px;
}

.dept-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dept-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.35;
}

/* SUB3: Province Awards */
.province-stage-box {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(4, 18, 42, 0.92);
  border: 4px solid #e7c26c;
  border-radius: 32px;
  padding: 42px 28px 36px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85), 0 0 28px rgba(231, 194, 108, 0.25);
}

.province-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: start;
}

.province-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.province-seal-ring {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #fbe69b 0%, #c89638 50%, #fbe69b 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75), 0 0 18px rgba(231, 194, 108, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.province-seal-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
}

.province-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  position: relative;
  padding-bottom: 10px;
}

.province-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 2px;
  background: radial-gradient(circle, #fbe69b 0%, transparent 100%);
}

/* SUB4 - SUB9: Certificate & Icon Subpages */
.cert-showcase-center {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-halo-wrap {
  position: relative;
  padding: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-halo-wrap::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 3px solid rgba(246, 218, 132, 0.75);
  box-shadow: 0 0 36px rgba(246, 218, 132, 0.45), inset 0 0 28px rgba(246, 218, 132, 0.25);
  pointer-events: none;
}

.cert-preview-img {
  position: relative;
  z-index: 2;
  max-width: 320px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  border: 2px solid #e7c26c;
}

.cert-icon-only {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpage-gold-heading {
  font-size: 2.3rem;
  font-weight: 700;
  color: #ecd078;
  line-height: 1.3;
  margin-bottom: 14px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
}

.gold-bullet-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 680px;
}

.gold-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.4;
}

.gold-bullet-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbe69b 0%, #c89638 100%);
  box-shadow: 0 0 8px rgba(251, 230, 155, 0.7);
  margin-top: 9px;
  flex-shrink: 0;
}

/* SUB9: 2-Column Split for Improvement Awards */
.improvement-split-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 36px;
  max-width: 1040px;
  width: 100%;
  margin-top: 24px;
  text-align: left;
}

.improvement-divider {
  background: linear-gradient(180deg, transparent 0%, #e7c26c 20%, #e7c26c 80%, transparent 100%);
}

.improvement-col-title {
  font-size: 1.28rem;
  font-weight: 600;
  color: #ecd078;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ==========================================================================
   Page 5: Hall of Fame (AWหอเกียรตยศ 2019 - 2026)
   ========================================================================== */
.hof-top-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.hof-year-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hof-year-tab {
  padding: 7px 20px;
  border-radius: 999px;
  border: 1.5px solid #d7ac54;
  background: rgba(6, 24, 54, 0.85);
  color: var(--text-white);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.hof-year-tab:hover,
.hof-year-tab.is-active {
  background: linear-gradient(180deg, #f7df94 0%, #cf9f3e 100%);
  color: #041227;
  box-shadow: 0 0 18px rgba(247, 223, 148, 0.65);
}

.hof-year-logo {
  height: 110px;
  width: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.75));
}

.hof-gold-banner {
  background: linear-gradient(180deg, #f8e39c 0%, #d4a649 50%, #e8c36d 100%);
  border: 3px solid #fff2c2;
  border-radius: 999px;
  padding: 12px 48px;
  font-size: 1.85rem;
  font-weight: 700;
  color: #061838;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 24px rgba(232, 195, 109, 0.4);
  margin-bottom: 28px;
  max-width: 960px;
  width: 100%;
}

.hof-main-frame {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(3, 14, 34, 0.92);
  border: 3px solid #dfb760;
  border-radius: 26px;
  padding: 36px 32px 32px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.85), 0 0 26px rgba(223, 183, 96, 0.22);
  position: relative;
}

.hof-two-col {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 32px;
}

.hof-col-divider {
  background: linear-gradient(180deg, transparent 0%, rgba(223, 183, 96, 0.65) 10%, rgba(223, 183, 96, 0.65) 90%, transparent 100%);
}

.hof-col {
  position: relative;
}

.hof-badge-pill {
  display: inline-block;
  background: linear-gradient(180deg, #f7df94 0%, #cf9f3e 100%);
  border: 2px solid #fff3c4;
  border-radius: 999px;
  padding: 5px 30px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #061838;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
}

.hof-group {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(223, 183, 96, 0.45);
}

.hof-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hof-group-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ecd078;
  margin-bottom: 10px;
  line-height: 1.4;
}

.hof-agency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 6px;
}

.hof-agency-grid--single {
  grid-template-columns: 1fr;
}

.hof-agency-grid li {
  font-size: 0.92rem;
  color: var(--text-white);
  position: relative;
  padding-left: 14px;
  line-height: 1.45;
}

.hof-agency-grid li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ecd078;
}

/* ==========================================================================
   Page 3: Committee & Experts (committee.html) - 2026 AW Design
   ========================================================================== */
.committee-section-bar {
  max-width: 1240px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(223, 183, 96, 0.7);
}

.committee-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #fae59b 0%, #d4a648 100%);
  border: 2px solid #fff3c4;
  border-radius: 999px;
  padding: 7px 26px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c1e04;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 18px rgba(247, 223, 148, 0.35);
}

.committee-section-pill svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.committee-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
}

.committee-slide-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #dfb760;
  color: #fbe69b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(223, 183, 96, 0.14);
  cursor: pointer;
  transition: all 0.22s ease;
}

.committee-slide-btn:hover {
  background: linear-gradient(180deg, #fae59b 0%, #d4a648 100%);
  color: #1e1300;
  box-shadow: 0 0 12px rgba(247, 223, 148, 0.65);
  transform: scale(1.08);
}

.committee-mobile-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -24px auto 34px;
}

.committee-mobile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(223, 183, 96, 0.35);
  border: 1px solid #dfb760;
  padding: 0;
  cursor: pointer;
  transition: all 0.22s ease;
}

.committee-mobile-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: #fbe69b;
  box-shadow: 0 0 10px rgba(251, 230, 155, 0.8);
}

/* 6 Committee Members Row */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto 44px;
}

.committee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 6px;
  position: relative;
  transition: transform 0.28s ease;
}

.committee-card:hover {
  transform: translateY(-8px);
}

.committee-avatar-ring {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #fff3c4 0%, #d8ab4e 45%, #8c5e14 85%, #fbe69b 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8), 0 0 24px rgba(235, 196, 108, 0.45);
  margin-bottom: 14px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.committee-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2b3548 0%, #0d1627 75%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.committee-avatar-inner img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  transition: transform 0.3s ease;
}

.committee-card:hover .committee-avatar-inner img {
  transform: scale(1.06);
}

.committee-name {
  font-size: 1.04rem;
  font-weight: 700;
  color: #fbe69b;
  margin-bottom: 6px;
  line-height: 1.3;
}

.committee-role {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.42;
}

/* 15 Experts Text Frame Grid (5 columns x 3 rows on Desktop, 1 column x 3 rows per slide on Mobile) */
.experts-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (4 * 16px)) / 5);
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

.expert-pill {
  background: linear-gradient(180deg, rgba(12, 34, 70, 0.92) 0%, rgba(5, 17, 39, 0.96) 100%);
  border: 1.8px solid rgba(223, 183, 96, 0.78);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), inset 0 0 12px rgba(223, 183, 96, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Page 6: Gallery (06-ภาพบรรยากาศ.jpg)
   ========================================================================== */
.gallery-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto 28px;
}

.gallery-card {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #132d46;
  border: 2px solid rgba(223, 183, 96, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #fbe69b;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 211, 122, 0.4);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.gallery-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(235, 208, 122, 0.4);
  border: 1.5px solid #ebd07a;
  cursor: pointer;
  transition: all 0.22s ease;
}

.gallery-dot:hover,
.gallery-dot.is-active {
  background: #f5d77f;
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(245, 215, 127, 0.85);
}

/* ==========================================================================
   Modals (LIVE Stream Modal & Gallery Lightbox)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 8, 20, 0.86);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 900px;
  background: #04132c;
  border: 2.5px solid #dfb760;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 32px rgba(223, 183, 96, 0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(90deg, #4b3914 0%, #241a07 50%, #4b3914 100%);
  border-bottom: 1.5px solid #dfb760;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fbe69b;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(251, 230, 155, 0.5);
  color: var(--text-white);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.Lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-height: 82vh;
  max-width: 100%;
  border-radius: 12px;
  border: 2px solid #dfb760;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(4, 19, 44, 0.85);
  border: 2px solid #dfb760;
  color: #fbe69b;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: -16px;
}

.lightbox-next {
  right: -16px;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(4, 19, 44, 0.9);
  border: 1.5px solid #dfb760;
  color: #fbe69b;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
}

/* ==========================================================================
   Animations & Interactive Stage Effects (2026 Golden Stage)
   ========================================================================== */

/* Floating Golden Dust Canvas */
#goldParticleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Entrance Keyframes */
@keyframes fadeUpReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes goldShimmerSweep {
  0% {
    transform: translateX(-140%) skewX(-22deg);
  }

  40%,
  100% {
    transform: translateX(240%) skewX(-22deg);
  }
}

@keyframes haloSpin {
  0% {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 36px rgba(246, 218, 132, 0.45), inset 0 0 28px rgba(246, 218, 132, 0.25);
  }

  50% {
    transform: rotate(180deg) scale(1.04);
    box-shadow: 0 0 54px rgba(251, 230, 155, 0.75), inset 0 0 36px rgba(251, 230, 155, 0.45);
  }

  100% {
    transform: rotate(360deg) scale(1);
    box-shadow: 0 0 36px rgba(246, 218, 132, 0.45), inset 0 0 28px rgba(246, 218, 132, 0.25);
  }
}

@keyframes liveBadgePulse {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 45, 45, 0.45));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(255, 60, 60, 0.95));
    transform: scale(1.05);
  }
}

@keyframes digitTick {
  0% {
    transform: translateY(-6px) scale(1.08);
    border-color: #fbe69b;
    box-shadow: 0 0 18px rgba(251, 230, 155, 0.75), inset 0 2px 10px rgba(255, 255, 255, 0.45);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes podiumGlowPulse {

  0%,
  100% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85), 0 0 24px rgba(248, 224, 142, 0.4), inset 0 6px 14px rgba(255, 255, 255, 0.75);
  }

  50% {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.9), 0 0 42px rgba(251, 230, 155, 0.75), inset 0 8px 18px rgba(255, 255, 255, 0.9);
  }
}

@keyframes colonBlink {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(251, 230, 155, 0.8);
  }

  50% {
    opacity: 0.35;
    text-shadow: none;
  }
}

/* Scroll / Entrance Reveal Utility Classes */
.reveal-item {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Shimmer Overlay on Golden Pills, Capsules & Banners */
.gold-capsule-title,
.hof-gold-banner,
.hof-badge-pill,
.countdown-panel {
  position: relative;
  overflow: hidden;
}

.gold-capsule-title::after,
.hof-gold-banner::after,
.hof-badge-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: translateX(-140%) skewX(-22deg);
  animation: goldShimmerSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* Live Button Pulse */
.header-live-btn {
  animation: liveBadgePulse 2.4s ease-in-out infinite;
}

/* Countdown Colon Blink & Digit Tick */
.cd-sep {
  animation: colonBlink 1s ease-in-out infinite;
}

.cd-digit-box {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cd-digit-box.is-ticking {
  /* animation: digitTick 0.35s cubic-bezier(0.22, 1, 0.36, 1); */
}

/* Podium Glow & Halo Spin */
.golden-podium-base,
.card-podium {
  animation: podiumGlowPulse 3.5s ease-in-out infinite;
}

.cert-halo-wrap::before {
  border-style: solid;
  border-color: rgba(246, 218, 132, 0.85) rgba(246, 218, 132, 0.35) rgba(246, 218, 132, 0.85) rgba(246, 218, 132, 0.35);
  animation: haloSpin 14s linear infinite;
}

/* 3D Interactive Card Spotlight & Hover Micro-Interactions */
.winner-trophy-card::before,
.winner-cert-card::before,
.committee-card::before,
.dept-group-box::before,
.province-stage-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(251, 230, 155, 0.16),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.winner-trophy-card:hover::before,
.winner-cert-card:hover::before,
.committee-card:hover::before,
.dept-group-box:hover::before,
.province-stage-box:hover::before {
  opacity: 1;
}

.dept-item {
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border-radius: 10px;
}

.dept-item:hover {
  transform: translateX(6px);
  background: rgba(231, 194, 108, 0.1);
  border-bottom-color: rgba(251, 230, 155, 0.65);
}

.province-item {
  transition: transform 0.28s ease;
}

.province-item:hover {
  transform: translateY(-8px) scale(1.04);
}

.province-item:hover .province-seal-ring {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9), 0 0 28px rgba(251, 230, 155, 0.75);
}

.gold-bullet-list li {
  transition: transform 0.22s ease, color 0.22s ease;
}

.gold-bullet-list li:hover {
  transform: translateX(8px);
  color: #fbe69b;
}

.expert-pill {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.expert-pill:hover {
  transform: translateY(-3px);
  border-color: #fbe69b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75), 0 0 16px rgba(251, 230, 155, 0.35);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-center-col {
    padding-left: 0;
  }

  .home-trophy-img {
    max-height: 380px;
  }

  .history-layout {
    grid-template-columns: 1fr;
  }

  .trophy-podium-wrap {
    order: 2;
  }

  .winners-bottom-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .committee-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .experts-grid {
    grid-auto-columns: calc((100% - (2 * 16px)) / 3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .experts-grid::-webkit-scrollbar {
    display: none;
  }

  .province-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ceo-stage-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 76px;
  }

  .brand-logo img {
    height: 46px;
  }

  .header-org-link img {
    height: 34px;
  }

  .winners-top-grid,
  .winners-bottom-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Committee: 1 column horizontal swipe slider */
  .committee-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 4px 16px;
    scrollbar-width: none;
  }

  /* Mobile Experts: 1 column with 3 stacked rows per slide (5 slides total) */
  .experts-grid {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 8px 4px 16px;
    scrollbar-width: none;
  }

  .committee-grid::-webkit-scrollbar,
  .experts-grid::-webkit-scrollbar {
    display: none;
  }

  .committee-grid .committee-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    background: rgba(6, 22, 50, 0.78);
    border: 1.5px solid rgba(223, 183, 96, 0.55);
    border-radius: 20px;
    padding: 22px 18px;
  }

  .experts-grid .expert-pill {
    scroll-snap-align: start;
    min-height: 70px;
    font-size: 1.08rem;
    padding: 16px 18px;
  }

  .committee-mobile-dots {
    display: flex;
    flex-wrap: wrap;
  }

  .dept-grid-2col,
  .hof-two-col,
  .improvement-split-grid {
    grid-template-columns: 1fr;
  }

  .hof-col-divider,
  .improvement-divider {
    display: none;
  }

  .ceo-frame-box {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .province-grid-5,
  .gallery-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cd-digit-box {
    width: 64px;
    height: 62px;
    font-size: 1.75rem;
  }

  .section-title-gold,
  .history-title {
    font-size: 2rem;
  }

  .gold-capsule-title {
    font-size: 1.45rem;
    padding: 10px 24px;
  }

  .timeline-track-wrap {
    overflow-x: auto;
    gap: 18px;
  }
}