/*
Theme Name: GENDERATION Editorial v4 (Complete Edition)
Theme URI: https://genderation.co/
Author: GENDERATION Editorial Team
Author URI: https://genderation.co/
Description: ธีม WordPress ฉบับสมบูรณ์ (v4.0) สำหรับ GENDERATION — สื่อความหลากหลายทางเพศ วัฒนธรรมป๊อป และสังคม มาพร้อมระบบเมนูรอง Dropdown (Multi-level Sub-menu) ที่จัดระเบียบสวยงาม, หน้าหมวดหมู่หลักและหมวดหมู่ย่อย (category.php / archive.php) ที่กรองตามเนื้อหาจริง, หน้าเพจครบทุกหมวด (Gallery, Video, Gender Vocabulary, Events, Archive Hub, About, Contact), ระบบ 1-Click Auto Setup สร้างหมวดหมู่และเมนูอัตโนมัติ และ Global Footer 4 คอลัมน์ครบตาม Mock Up 100%
Version: 4.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: genderation
*/

:root {
  --bg-page: #F6F4F0;
  --bg-surface: #FFFFFF;
  --bg-stone: #DAD5D1;
  --bg-muted: #EFECE6;
  --text-main: #141311;
  --text-muted: #57534E;
  --border-soft: rgba(20, 19, 17, 0.11);
  --grad-topbar: linear-gradient(90deg, #89C4E5 0%, #B8C0AD 30%, #F6B26B 68%, #F79A92 100%);
  --grad-pill: linear-gradient(90deg, #F89C24 0%, #F79B70 28%, #E99DA9 55%, #B5A3C3 78%, #7AAAD7 100%);
  --grad-line: linear-gradient(90deg, #7AAAD7 0%, #B8C0AD 48%, #F89C24 100%);
  --grad-mesh-card: radial-gradient(circle at 18% 30%, rgba(247, 155, 112, 0.42) 0%, rgba(233, 157, 169, 0.34) 35%, rgba(122, 170, 215, 0.42) 75%, rgba(255, 255, 255, 0.94) 100%);
  --font-heading: 'Anuphan', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Sarabun', 'Anuphan', 'Inter', sans-serif;
  --font-ui: 'Inter', 'Anuphan', sans-serif;
  --gdrt-logo-height: 40px;
  }

[data-theme="stone"] {
  --bg-page: #E4E0DC;
  --bg-surface: #F7F5F2;
  --bg-muted: #DAD5D1;
  --text-main: #121110;
  --text-muted: #4A4642;
  --border-soft: rgba(18, 17, 16, 0.13);
}

[data-theme="dark"] {
  --bg-page: #121216;
  --bg-surface: #1C1C22;
  --bg-muted: #26262E;
  --text-main: #F5F3EF;
  --text-muted: #A6A39E;
  --border-soft: rgba(245, 243, 239, 0.14);
  --grad-mesh-card: radial-gradient(circle at 18% 30%, rgba(248, 156, 36, 0.25) 0%, rgba(233, 157, 169, 0.22) 40%, rgba(122, 170, 215, 0.25) 85%, rgba(28, 28, 34, 0.95) 100%);
}

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

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-heading);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

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

/* Containers */
.gdrt-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.gdrt-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Brand Signature Elements */
.brand-topbar {
  background: var(--grad-topbar);
  color: #11100E;
  font-size: 0.76rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.brand-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-topbar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
}

.brand-topbar-links a:hover {
  text-decoration: underline;
}

.brand-pill {
  background: var(--grad-pill);
  color: #11100E !important;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  line-height: 1.3;
  border: 0;
}

.brand-pill-dark {
  background: rgba(20, 19, 17, 0.85);
  color: #FFFFFF !important;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.brand-pill-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  padding: 0.32rem 0.88rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  cursor: pointer;
}

.brand-pill-outline:hover {
  border-color: var(--text-main);
  background: var(--bg-muted);
}

.brand-divider {
  height: 2.5px;
  width: 100%;
  background: var(--grad-line);
}

.brand-mesh-box {
  background: var(--grad-mesh-card);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   HEADER & ORGANIZED MULTI-LEVEL DROPDOWN NAVIGATION (FIXES SUB-MENU SPILL!)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-surface) 95%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.site-branding {
  flex-shrink: 0;
}

.brand-logo {
  font-family: var(--font-ui);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: var(--grad-pill);
  color: #11100E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-logo-text {
  line-height: 1;
}

.brand-logo-text strong {
  font-weight: 800;
}

.brand-logo-text span {
  font-weight: 300;
}

.brand-logo-sub {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 3px;
  font-weight: 600;
}

.custom-logo-link img {
  max-height: var(--gdrt-logo-height);
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

/* Primary Desktop Navigation & Organized Sub-Menu Dropdowns */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

/* Top-level menu list ONLY */
.main-nav > ul,
.main-nav > div > ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.main-nav > ul > li,
.main-nav > div > ul > li {
  position: relative;
  margin: 0;
  padding: 0.35rem 0;
}

.main-nav > ul > li > a,
.main-nav > div > ul > li > a {
  padding: 0.42rem 0.78rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  color: var(--text-main);
}

.main-nav > ul > li:hover > a,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-parent > a,
.main-nav > ul > li.current-menu-ancestor > a,
.main-nav > div > ul > li:hover > a,
.main-nav > div > ul > li.current-menu-item > a {
  background: var(--grad-pill);
  color: #11100E !important;
  font-weight: 700;
}

/* Dropdown Caret Indicator for Parent Items */
.main-nav li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.75;
  margin-left: 0.15rem;
  transition: transform 0.2s ease;
}

.main-nav li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Organized Floating Sub-Menu (Dropdown Panel) */
.main-nav ul.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  box-shadow: 0 18px 40px -10px rgba(20, 19, 17, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}

.main-nav ul.sub-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2.5px;
  border-radius: 999px;
  background: var(--grad-line);
}

.main-nav li.menu-item-has-children:hover > ul.sub-menu,
.main-nav li.menu-item-has-children:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav ul.sub-menu li {
  position: relative;
  width: 100%;
}

.main-nav ul.sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

.main-nav ul.sub-menu a::before {
  content: "✦";
  font-size: 0.65rem;
  opacity: 0.45;
  margin-right: 0.45rem;
}

.main-nav ul.sub-menu a:hover,
.main-nav ul.sub-menu li.current-menu-item > a {
  background: var(--grad-mesh-card);
  color: var(--text-main) !important;
  font-weight: 700;
  transform: translateX(2px);
}

/* 3rd-level nested sub-menu support */
.main-nav ul.sub-menu ul.sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0.35rem;
}

/* Header Right Action Controls (Never Squish!) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.18s ease;
}

.header-btn:hover {
  border-color: var(--text-main);
}

.header-btn-gradient {
  background: var(--grad-pill);
  color: #11100E;
  border: 0;
}

/* Collapsible Search Bar Panel */
.header-search-panel {
  display: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  padding: 1rem 0;
}

.header-search-panel.open {
  display: block;
}

.header-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.header-search-input {
  flex: 1;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

/* Mobile & Tablet Collapsible Menu Drawer with Accordion Sub-menus */
.mobile-menu-toggle {
  display: none;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 0;
  background: var(--grad-pill);
  color: #11100E;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-surface);
  padding: 1.25rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-height: 82vh;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer > .gdrt-container > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.mobile-drawer > .gdrt-container > ul > li {
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 0.65rem 0.85rem;
}

.mobile-drawer > .gdrt-container > ul > li > a {
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer ul.sub-menu {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-drawer ul.sub-menu a {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  padding: 0.25rem 0.4rem;
  border-radius: 0.5rem;
  display: block;
}

.mobile-drawer ul.sub-menu a::before {
  content: "↳ ";
  opacity: 0.6;
}

.mobile-drawer ul.sub-menu a:hover {
  background: var(--grad-pill);
  color: #11100E;
  font-weight: 700;
}

/* ==========================================================================
   HERO SLIDER (WITH DOTS, PREV/NEXT & AUTO-ROTATION)
   ========================================================================== */
.hero-slider {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  overflow: hidden;
  margin: 1.75rem 0 2.5rem;
  box-shadow: 0 12px 32px -12px rgba(20, 19, 17, 0.12);
}

.hero-slide {
  display: none;
  grid-template-columns: 7fr 5fr;
  align-items: stretch;
}

.hero-slide.active {
  display: grid;
}

.hero-media {
  position: relative;
  background: #181715;
  min-height: 320px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
}

.hero-meta {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.68;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.32;
  margin: 0.75rem 0;
}

.hero-title a:hover {
  text-decoration: underline;
}

.hero-excerpt {
  font-size: 0.95rem;
  opacity: 0.82;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-footer {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-controls-bar {
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-dot {
  height: 9px;
  width: 9px;
  border-radius: 9999px;
  border: 0;
  background: rgba(120, 115, 110, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--grad-pill);
}

.hero-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.hero-circle-btn.primary {
  background: var(--grad-pill);
  color: #11100E;
  border: 0;
}

/* ==========================================================================
   SECTION HEADERS, FILTER PILLS & EDITORIAL CARDS
   ========================================================================== */
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0.25rem 0 0;
  line-height: 1.25;
}

.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-pill {
  padding: 0.38rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--grad-pill);
  color: #11100E;
  border-color: transparent;
  font-weight: 700;
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 3rem;
}

.banner-3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 1.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -10px rgba(20, 19, 17, 0.14);
}

.post-card-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}

.post-card-media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.post-card-body {
  padding: 1.25rem 1.35rem 1rem;
}

.post-card-meta {
  font-size: 0.74rem;
  opacity: 0.65;
  margin-bottom: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.post-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.42;
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a:hover {
  text-decoration: underline;
}

.post-card-excerpt {
  font-size: 0.85rem;
  opacity: 0.78;
  line-height: 1.58;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  padding: 0.75rem 1.35rem 1.1rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
}

.score-badge {
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(248, 156, 36, 0.16);
  color: #D97706;
  font-weight: 800;
  font-size: 0.74rem;
}

/* ==========================================================================
   HOMEPAGE BENTO SPLIT: VOCABULARY SPOTLIGHT (7 COLS) + POPULAR POSTS (5 COLS)
   ========================================================================== */
.bento-split-12 {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.75rem;
  margin: 3rem 0;
  align-items: start;
}

.surface-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  padding: 1.75rem;
}

.vocab-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.vocab-mini-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.vocab-mini-card:hover {
  border-color: #F89C24;
  transform: translateY(-2px);
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.popular-item:first-child {
  padding-top: 0;
}

.popular-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.popular-rank {
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 800;
  opacity: 0.32;
  line-height: 1;
  min-width: 28px;
}

/* ==========================================================================
   CATEGORY & SUB-CATEGORY ARCHIVE HEADER
   ========================================================================== */
.category-hero-banner {
  background: var(--grad-mesh-card);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  padding: 2.25rem;
  margin: 1.5rem 0 2rem;
}

.subcategories-bar {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(20, 19, 17, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

/* ==========================================================================
   SINGLE POST READER + READING PROGRESS + SCORECARD
   ========================================================================== */
#gdrtReadingProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--grad-pill);
  z-index: 200;
  transition: width 0.12s ease-out;
}

.entry-content {
  font-family: var(--font-body);
  font-size: calc(1.12rem * var(--article-font-scale));
  line-height: 1.85;
}

.entry-content p {
  margin: 0 0 1.35rem;
}

.entry-content h2, .entry-content h3 {
  font-family: var(--font-heading);
  margin: 2rem 0 0.85rem;
}

.review-scorecard,
.takeaways-box {
  background: var(--grad-mesh-card);
  border: 1px solid var(--border-soft);
  border-radius: 1.35rem;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.score-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 19, 17, 0.12);
  overflow: hidden;
  margin-top: 5px;
}

.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-pill);
}

/* ==========================================================================
   COMPLETE 4-COLUMN GLOBAL FOOTER (MATCHING MOCKUP 100%)
   ========================================================================== */
.site-footer {
  margin-top: 4.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 2.5fr 2.5fr;
  gap: 2.25rem;
  padding: 3.25rem 0 2.5rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin: 0 0 1rem;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.footer-links-list a:hover {
  text-decoration: underline;
  font-weight: 600;
}

.footer-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-pill {
  padding: 0.42rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.social-fb { background: #1877F2; }
.social-ig { background: linear-gradient(45deg, #F59E0B, #EC4899, #8B5CF6); }
.social-x  { background: #14171A; }
.social-yt { background: #FF0000; }
.social-tt { background: #000000; border: 1px solid rgba(255,255,255,0.2); }

.footer-bottom {
  padding: 1.35rem 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  opacity: 0.72;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
}

@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner-3-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner-3-grid > *:first-child {
    grid-column: 1 / -1;
  }
  .bento-split-12 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-topbar-tagline {
    display: none;
  }
  .cards-grid,
  .banner-3-grid,
  .vocab-mini-grid,
  .footer-grid,
  .mobile-drawer > .gdrt-container > ul {
    grid-template-columns: 1fr;
  }
  .banner-3-grid > *:first-child {
    grid-column: auto;
  }
  .hero-body {
    padding: 1.35rem;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .category-hero-banner,
  .brand-mesh-box,
  .surface-box {
    padding: 1.35rem;
  }
}
