/* ==============================================
   GG MEDIA — Premium News Platform
   Mobile-First | Editorial Magazine Aesthetic
   ============================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,400&family=Instrument+Sans:wght@400;500;600;700&family=Bebas+Neue&display=swap");

:root {
  --ink: #0e0e12;
  --ink-soft: #2c2c38;
  --ink-faint: #5a5a72;
  --paper: #faf9f6;
  --paper-2: #f2f0eb;
  --paper-3: #e8e5de;
  --rule: #d8d4cb;

  --red: #c0392b;
  --red-dark: #96281b;
  --amber: #d4851a;
  --amber-light: #f0a832;
  --teal: #1a7a8a;
  --navy: #142848;
  --navy-mid: #1d3a6b;
  --gold: #c9993a;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-label: 'Bebas Neue', sans-serif;

  --max-w: 1220px;
  --r: 4px;
  --r-lg: 10px;
  --sh: 0 2px 14px rgba(14, 14, 18, 0.07);
  --sh-md: 0 6px 28px rgba(14, 14, 18, 0.11);
  --sh-lg: 0 14px 50px rgba(14, 14, 18, 0.16);
  --t: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ── UTILITIES ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  font-family: var(--font-label);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--ink);
}

.section-head .see-all {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
  transition: var(--t);
}

.section-head .see-all:hover {
  color: var(--red-dark);
}

/* ── CATEGORY BADGES ── */
.badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 2px 10px;
  border-radius: 2px;
  color: white;
  background: var(--red);
  text-transform: uppercase;
}

.badge-amber {
  background: var(--amber);
}

.badge-teal {
  background: var(--teal);
}

.badge-navy {
  background: var(--navy-mid);
}

.badge-green {
  background: #2d7a4f;
}

.badge-purple {
  background: #6b3fa0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.87rem;
  letter-spacing: 0.4px;
  transition: var(--t);
  cursor: pointer;
}

.btn-dark {
  background: var(--ink);
  color: white;
}

.btn-dark:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn-red {
  background: var(--red);
  color: white;
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: white;
}

.btn-ghost {
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── PRELOADER ── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 24px;
  transition: opacity 0.4s ease;
}

.preloader.done {
  opacity: 0;
  pointer-events: none;
}

.pl-logo {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
}

.pl-logo span {
  color: var(--amber-light);
  font-style: italic;
}

.pl-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.pl-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--amber-light), var(--red));
  animation: pl-slide 1s ease-in-out infinite;
}

@keyframes pl-slide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(300%);
  }
}

.pl-text {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-label);
}

/* ── BREAKING NEWS ── */
.breaking-bar {
  background: var(--red);
  display: flex;
  align-items: stretch;
  height: 38px;
  overflow: hidden;
}

.breaking-label {
  background: var(--ink);
  font-family: var(--font-label);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: white;
  flex-shrink: 0;
  white-space: nowrap;
}

.breaking-label .dot {
  width: 7px;
  height: 7px;
  background: var(--amber-light);
  border-radius: 50%;
  animation: blink 1s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 0.8rem;
  color: white;
  font-weight: 500;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-item::before {
  content: '◆';
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── TOPBAR (desktop only) ── */
.topbar {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 7px 0;
  align-items: center;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-family: var(--font-body);
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.topbar-tagline {
  font-style: italic;
  color: var(--ink-faint);
}

/* ── NAVBAR ── */
nav.main-nav {
  background: white;
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(14, 14, 18, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 10px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--amber-light);
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.logo-text-wrap .gg {
  font-family: var(--font-label);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: #2596be;
  line-height: 0.9;
  font-weight: 800;
  white-space: nowrap;
}

.logo-text-wrap .gg span {
  color: #ce6a1c;
  font-weight: 800;
}

.logo-text-wrap .sub {
  font-size: 0.58rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: var(--font-label);
  font-weight: 700;
  display: inline-flex;
  gap: 4px;
}

.logo-text-wrap .sub-primary {
  color: #2596be;
  font-weight: 800;
}

.logo-text-wrap .sub-highlight {
  color: #ce6a1c;
  font-weight: 800;
}

.nav-links {
  display: none;
  gap: 0;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: var(--r);
  transition: var(--t);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.nav-links a.active {
  color: var(--red);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-social {
  display: none;
  gap: 6px;
  align-items: center;
}

.nav-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  transition: var(--t);
}

.nav-social a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.nav-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--t);
  background: none;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--t);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer — hidden by default on ALL screen sizes,
   only shown when JS adds .open (and only rendered at all below 900px,
   see the max-width query further down) */
.mobile-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: white;
  border-top: 1px solid var(--rule);
  box-shadow: var(--sh-md);
  transition: max-height 0.28s ease;
}

.mobile-menu.open {
  display: flex;
  max-height: 80vh;
  overflow-y: auto;
}

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.mobile-menu a {
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--paper-2);
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu a:hover {
  background: var(--paper-2);
  color: var(--red);
  padding-left: 28px;
}

.mobile-menu a.active {
  color: var(--red);
  border-left: 3px solid var(--red);
}

.mobile-menu .mob-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--paper-2);
}

.mobile-menu .mob-social {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  align-items: center;
  font-size: 1.1rem;
  color: var(--ink-faint);
}

.mobile-menu .mob-social a {
  border: none;
  padding: 0;
  font-size: 1.1rem;
  transition: var(--t);
}

.mobile-menu .mob-social a:hover {
  color: var(--red);
  padding-left: 0;
  background: none;
  border: none;
}

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 18, 0.9);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-overlay.open {
  display: flex;
}

.search-box {
  width: 100%;
  max-width: 640px;
  background: white;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-lg);
  position: relative;
}

.search-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
  color: var(--ink-faint);
  cursor: pointer;
  background: none;
  border: none;
}

.search-input-wrap {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
}

.search-input-wrap input::placeholder {
  color: var(--ink-faint);
}

.search-input-wrap button {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 1.1rem;
  cursor: pointer;
}

.search-hint {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* Make search hint more visible inside the white search box */
.search-box .search-hint {
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.9rem;
}

/* Ensure the search input and button are accessible and large on mobile */
.search-input-wrap input {
  font-size: 1.05rem;
  padding: 10px 8px;
}

.search-input-wrap button {
  font-size: 1.05rem;
}

/* ── HERO SECTION ── */
.hero {
  background: var(--ink);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-main {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-main-img:hover {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 18, 0.95) 0%, rgba(14, 14, 18, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px 22px;
}

.hero-content {
  color: white;
}

.hero-content .badge {
  margin-bottom: 10px;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-content .hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.hero-content .hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 10px 0 18px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-sidebar {
  background: var(--ink);
  padding: 0;
}

.hero-sidebar-item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: var(--t);
}

.hero-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hsi-img {
  width: 100px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
  opacity: 0.8;
}

.hsi-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hsi-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hsi-title:hover {
  color: var(--amber-light);
}

.hsi-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Placeholder hero when no image */
.hero-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--red) 100%);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-placeholder::before {
  content: 'GG';
  font-family: var(--font-head);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  right: 20px;
  bottom: -20px;
  line-height: 1;
}

/* Featured grid below hero */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px 0 36px;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(20, 24, 46, 0.08);
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(20, 24, 46, 0.12);
}

.featured-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-card:hover img {
  transform: scale(1.04);
}

.featured-card .fc-body {
  padding: 18px;
}

.featured-card .fc-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}

.featured-card .fc-excerpt {
  color: var(--ink-faint);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.featured-card .fc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 28px 0 44px;
  }

  .featured-card img {
    height: 180px;
  }
}

/* ── ARTICLE CARDS ── */
.card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: var(--t);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.card-img {
  position: relative;
  height: 196px;
  overflow: hidden;
  background: var(--paper-2);
}

.card-img img {
  height: 100%;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-img .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.card-img .feat-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--amber);
  color: white;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 2px 8px;
  border-radius: 2px;
}

.card-placeholder-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--t);
}

.card-title:hover {
  color: var(--red);
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--paper-2);
  font-size: 0.73rem;
  color: var(--ink-faint);
}

.card-foot span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-foot a {
  color: var(--red);
  font-weight: 600;
  font-size: 0.73rem;
}

.card-foot a:hover {
  color: var(--red-dark);
}

/* ── HORIZONTAL CARD ── */
.h-card {
  display: flex;
  gap: 0;
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: var(--t);
}

.h-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.h-card-img {
  width: 110px;
  flex-shrink: 0;
  background: var(--paper-2);
  overflow: hidden;
}

.h-card-img img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.h-card:hover .h-card-img img {
  transform: scale(1.05);
}

.h-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.h-card-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h-card-title:hover {
  color: var(--red);
}

.h-card-meta {
  font-size: 0.7rem;
  color: var(--ink-faint);
}

/* ── TRENDING LIST ── */
.trend-list {
  display: flex;
  flex-direction: column;
}

.trend-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-2);
  align-items: flex-start;
  transition: var(--t);
}

.trend-item:last-child {
  border: none;
}

.trend-item:hover {
  padding-left: 4px;
}

.trend-num {
  font-family: var(--font-label);
  font-size: 2.2rem;
  color: var(--paper-3);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  padding-top: 2px;
}

.trend-item:nth-child(1) .trend-num {
  color: var(--red);
}

.trend-item:nth-child(2) .trend-num {
  color: var(--amber);
}

.trend-item:nth-child(3) .trend-num {
  color: var(--teal);
}

.trend-content {
  flex: 1;
}

.trend-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.trend-title:hover {
  color: var(--red);
}

.trend-meta {
  font-size: 0.7rem;
  color: var(--ink-faint);
}

/* ── GRIDS ── */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hcards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── SIDEBAR ── */
.sidebar-widget {
  background: white;
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh);
  margin-bottom: 22px;
}

.widget-title {
  font-family: var(--font-label);
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--rule);
  color: var(--ink-soft);
  transition: var(--t);
  cursor: pointer;
}

.cat-pill:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.cat-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.nl-widget {
  background: var(--ink);
  color: white;
}

.nl-widget .widget-title {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.nl-widget .widget-title::before {
  background: var(--amber-light);
}

.nl-widget p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
  line-height: 1.6;
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nl-form input {
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.85rem;
  outline: none;
}

.nl-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.nl-form input:focus {
  border-color: var(--amber-light);
}

.nl-form button {
  padding: 10px;
  border-radius: var(--r);
  background: var(--amber);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--t);
}

.nl-form button:hover {
  background: var(--amber-light);
}

.join-widget {
  background: var(--red);
  color: white;
}

.join-widget .widget-title {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.join-widget .widget-title::before {
  background: white;
}

.join-widget p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  line-height: 1.6;
}

.join-widget a.btn {
  display: block;
  text-align: center;
  background: white;
  color: var(--red);
  font-weight: 700;
  border-radius: var(--r);
  padding: 11px;
  transition: var(--t);
}

.join-widget a.btn:hover {
  background: var(--ink);
  color: white;
  transform: none;
  box-shadow: none;
}

/* ── HERO BANNER (homepage top section) ── */
.site-banner {
  background: linear-gradient(135deg, #073fb6 0%, #0f81da 48%, #06d1fa 100%);
  padding: 54px 0 62px;
  position: relative;
  overflow: hidden;
}

.site-banner::before {
  content: 'GG';
  position: absolute;
  right: 24px;
  top: 8%;
  font-family: var(--font-head);
  font-size: 8.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  letter-spacing: -5px;
  pointer-events: none;
}

.site-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 209, 108, 0.18), transparent 26%);
  pointer-events: none;
}

.banner-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(250, 184, 64);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 3px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}



.banner-tag .dot {
  width: 7px;
  height: 7px;
  background: var(--amber-light);
  border-radius: 50%;
  animation: blink 1s ease infinite;
}

.banner-tag {
  font-weight: 800;
}

.banner-tag {
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}

.banner-h1 {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 620px;
}

.banner-h1 em {
  font-style: italic;
  color: var(--amber-light);
}

.banner-p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 28px;
}

.banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.banner-logo-box {
  display: flex;
  justify-content: center;
}

.banner-logo-box img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-16px)
  }
}

.banner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.banner-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  color: white;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.banner-stat strong {
  display: block;
  font-family: var(--font-label);
  font-size: 1.7rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.banner-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .banner-stats {
    grid-template-columns: 1fr;
  }
}

/* Banner CTA variation */
.site-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.site-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

/* Lead paragraph */
.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 760px;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Fallback hero style */
.hero-fallback {
  background: var(--ink);
  color: white;
  padding: 60px 0;
  text-align: center;
}

/* ── ABOUT PAGE ── */
.page-hero {
  background: var(--ink);
  padding: 56px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, transparent 30%, rgba(192, 57, 43, 0.15));
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--amber-light);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  max-width: 540px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  font-family: var(--font-label);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.25);
}

.about-section {
  padding: 50px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh);
}

.about-card h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 14px;
}

.about-card h2 em {
  font-style: italic;
  color: var(--red);
}

.about-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.about-card p:last-child {
  margin: 0;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.val-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--paper);
  border-radius: var(--r);
  border-left: 3px solid var(--red);
}

.val-item strong {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}

.val-item span {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 20px;
}

.stat-item {
  background: white;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-num {
  font-family: var(--font-label);
  font-size: 2rem;
  color: var(--red);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.team-card {
  text-align: center;
  padding: 18px 12px;
  background: var(--paper);
  border-radius: var(--r-lg);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 10px;
}

.team-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.team-role {
  font-size: 0.74rem;
  color: var(--ink-faint);
}

/* ── ARTICLE PAGE ── */
.article-hero {
  background: var(--ink);
  padding: 42px 0 0;
  color: white;
}

.article-hero-inner {
  padding-bottom: 28px;
}

.article-hero h1 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 14px 0;
}

.article-hero h1 em {
  font-style: italic;
  color: var(--amber-light);
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.article-hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  margin-top: 24px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 30px 0 60px;
}

.article-body {
  background: white;
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh);
}

.article-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.article-body h2,
.article-body h3 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-body h2 {
  font-size: 1.4rem;
}

.article-body h3 {
  font-size: 1.15rem;
}

.article-body img {
  border-radius: var(--r);
  margin: 22px 0;
}

.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 20px;
  background: var(--paper);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  margin: 24px 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--paper-2);
  margin-top: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  transition: var(--t);
  cursor: pointer;
}

.share-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.categories-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.categories-sidebar li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-2);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: var(--t);
}

.categories-sidebar li:hover {
  color: var(--red);
  padding-left: 4px;
}

.categories-sidebar li:last-child {
  border: none;
}

.categories-sidebar .count {
  background: var(--paper-2);
  color: var(--ink-faint);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 500;
}

/* ── FOOTER ── */
footer.main-footer {
  background: var(--ink);
  color: white;
  margin-top: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 50px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand .f-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .f-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand .f-logo-text {
  font-family: var(--font-label);
  font-size: 1.6rem;
  letter-spacing: 2px;
}

.footer-brand .f-logo-text .gg {
  color: white;
}

.footer-brand .f-logo-text .med {
  color: var(--amber-light);
}

.footer-brand p {
  color: #ffffff;
  font-size: 0.83rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  transition: var(--t);
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.footer-col h5 {
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.83rem;
  color: #ffffff;
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--red);
}

.footer-links a:hover {
  color: white;
  padding-left: 3px;
}

.footer-nl input {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 0.83rem;
  outline: none;
}

.footer-nl input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.footer-nl input:focus {
  border-color: var(--amber-light);
}

.footer-nl button {
  width: 100%;
  padding: 10px;
  border-radius: var(--r);
  background: var(--amber);
  color: white;
  font-weight: 700;
  font-size: 0.83rem;
  transition: var(--t);
}

.footer-nl button:hover {
  background: var(--amber-light);
}

.footer-nl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.footer-nl .input-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.footer-nl .input-group input {
  flex: 1;
  margin: 0;
}

.footer-nl .input-group button {
  flex: 0 0 170px;
}

.footer-nl-msg,
#sidebar-nl-msg {
  display: none;
  font-size: 0.85rem;
  margin-top: 6px;
}

.footer-nl-msg.success,
#sidebar-nl-msg.success {
  color: #ffffff;
  display: block;
}

.footer-nl-msg.error,
#sidebar-nl-msg.error {
  color: #991b1b;
  display: block;
}

/* Sidebar NL form (dark) */
.nl-widget .nl-form {
  display: flex;
  gap: 8px;
}

.nl-widget .nl-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nl-widget .nl-form button {
  flex: 0 0 auto;
  padding: 10px 14px;
}

/* Desktop: show footer inline */
@media (min-width: 768px) {
  .footer-nl {
    flex-direction: row;
    align-items: center;
  }

  .footer-nl form {
    flex: 1;
  }

  .footer-nl .input-group button {
    flex: 0 0 200px;
  }

  .footer-nl p#footer-nl-msg {
    margin-left: 12px;
  }
}

.footer-bottom {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a:hover {
  color: white;
}

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 28px 0;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 0.83rem;
  font-weight: 600;
  background: white;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  transition: var(--t);
}

.pagination a:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pagination .active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

/* ── ADMIN PANEL ── */
.admin-body {
  background: #f0f2f5;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--ink);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.admin-sidebar.open {
  transform: translateX(0);
}

.sidebar-logo {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-text {
  font-family: var(--font-label);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: white;
}

.sidebar-logo-text span {
  color: var(--amber-light);
}

.sidebar-logo-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.sidebar-section {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  padding: 14px 20px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.87rem;
  font-weight: 500;
  transition: var(--t);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: white;
  background: rgba(192, 57, 43, 0.2);
  border-color: var(--red);
}

.sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 50px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.83rem;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: white;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
}

.sidebar-user-name {
  font-weight: 600;
  color: white;
  font-size: 0.85rem;
}

.sidebar-user-role {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.admin-topbar {
  height: 60px;
  background: white;
  border-bottom: 1px solid #e0e0e6;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(14, 14, 18, 0.06);
}

.admin-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-soft);
  padding: 4px;
}

.admin-topbar-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.admin-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar-right a,
.admin-topbar-right button {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 1px solid #e0e0e6;
  padding: 6px 14px;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t);
}

.admin-topbar-right a:hover,
.admin-topbar-right button:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.admin-topbar-right .notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid white;
}

.admin-main {
  padding: 24px 18px;
  min-height: calc(100vh - 60px);
}

/* Admin stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh);
  border-top: 3px solid var(--red);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card:nth-child(2) {
  border-color: var(--amber);
}

.stat-card:nth-child(3) {
  border-color: var(--teal);
}

.stat-card:nth-child(4) {
  border-color: var(--navy-mid);
}

.stat-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.stat-card-value {
  font-family: var(--font-label);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.1;
}

.stat-card-change {
  font-size: 0.73rem;
  color: #2d7a4f;
  font-weight: 600;
}

.stat-card-change.down {
  color: var(--red);
}

.stat-card-icon {
  font-size: 1.4rem;
  color: var(--paper-3);
  margin-bottom: 4px;
}

/* Admin table */
.admin-table-wrap {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
  margin-bottom: 20px;
}

/* ── RESPONSIVE LAYOUT (Tablet+) ──
   Single breakpoint from here on for the public navbar so the
   hamburger / desktop-links switch happens exactly once, with no
   overlap or duplicated rules between two different breakpoints. */
@media (min-width: 900px) {
  .topbar {
    display: flex;
  }

  .nav-inner {
    height: 80px;
    gap: 20px;
  }

  .nav-links {
    display: flex;
    gap: 8px;
  }

  .nav-social {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 2fr 1fr;
    gap: 20px;
  }

  .hero-main {
    height: 520px;
  }

  .hero-sidebar .hsi-img {
    width: 140px;
    height: 100px;
  }

  .banner-inner {
    grid-template-columns: 1fr minmax(240px, 320px);
    align-items: center;
  }

  .banner-h1 {
    font-size: 2.6rem;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .about-grid {
    grid-template-columns: 2fr 1fr;
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── LARGE SCREENS (Desktop) ── */
@media (min-width: 1024px) {
  .nav-inner {
    height: 86px;
  }

  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
  }

  .hero-main {
    height: 640px;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  .hcards-list {
    gap: 18px;
  }

  .site-banner {
    padding: 64px 0 80px;
  }

  .banner-h1 {
    font-size: 3.3rem;
  }

  .article-layout {
    grid-template-columns: 2fr 360px;
    gap: 28px;
  }

  .categories-sidebar {
    position: sticky;
    top: 100px;
  }

  footer.main-footer .footer-top {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

/* Small polish */
.admin-table-head {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-table-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-right: auto;
}

.table-search {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e0e0e6;
  border-radius: var(--r);
  padding: 6px 12px;
  font-size: 0.83rem;
  color: var(--ink-faint);
  background: #fafafa;
}

.table-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.83rem;
  color: var(--ink);
  width: 140px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: #fafafa;
  border-bottom: 1px solid #f0f0f5;
}

.admin-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-bottom: 1px solid #f8f8fa;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border: none;
}

.admin-table tr:hover td {
  background: #fafafa;
}

.admin-table .article-title-cell {
  font-weight: 600;
  color: var(--ink);
  max-width: 240px;
}

.admin-table .article-title-cell span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 50px;
}

.status-published {
  background: #d1fae5;
  color: #065f46;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.status-archived {
  background: #f3f4f6;
  color: #6b7280;
}

.action-btns {
  display: flex;
  gap: 6px;
}

.action-btn {
  padding: 5px 10px;
  border-radius: var(--r);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e0e0e6;
  color: var(--ink-soft);
  background: none;
  transition: var(--t);
}

.action-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.action-btn.del:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Admin form */
.admin-form-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh);
  margin-bottom: 20px;
}

.admin-form-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1.5px solid #e0e0e6;
  font-size: 0.88rem;
  color: var(--ink);
  background: #fafafa;
  outline: none;
  transition: var(--t);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: white;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Admin login */
.login-page {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: 'GG';
  position: absolute;
  font-family: var(--font-head);
  font-size: 30vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 38px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--sh-lg);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.login-logo h2 {
  font-family: var(--font-label);
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.login-logo h2 span {
  color: var(--red);
}

.login-logo p {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r);
  border: 1.5px solid #e0e0e6;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: var(--t);
  margin-top: 5px;
}

.login-form input:focus {
  border-color: var(--red);
}

.login-form button {
  padding: 12px;
  background: var(--ink);
  color: white;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--t);
  cursor: pointer;
  border: none;
}

.login-form button:hover {
  background: var(--red);
}

.login-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.login-footer a {
  color: var(--red);
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .banner-h1 {
    font-size: 2.6rem;
  }

  .hero-main {
    height: 480px;
  }
}

@media (min-width: 900px) {
  .banner-logo-box img {
    width: 220px;
    height: 220px;
  }

  .banner-h1 {
    font-size: 3.1rem;
  }

  .articles-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
  }

  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .article-hero h1 {
    font-size: 2.5rem;
  }

  .article-hero-img {
    height: 400px;
  }

  .article-layout {
    grid-template-columns: 1fr 290px;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .admin-sidebar {
    transform: translateX(0);
  }

  .admin-wrap {
    margin-left: 260px;
  }

  .admin-menu-toggle {
    display: none;
  }

  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .banner-h1 {
    font-size: 3.6rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}



/* ── BANNER CAROUSEL ── */
.banner-carousel-box {
  background: rgba(0, 0, 0, 0.30);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  min-height: 280px;
}

.bcb-header {
  padding: 13px 16px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.bcb-title {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--amber-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bcb-title .dot {
  background: var(--amber-light);
}

.bcb-date {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
}

.bcb-carousel {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.bcb-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.bcb-slide {
  min-width: 100%;
  position: relative;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.bcb-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.bcb-img-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.10);
}

.bcb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.30) 60%, transparent 100%);
  padding: 16px 16px 14px;
}

.bcb-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  color: white;
  margin-bottom: 7px;
}

.bcb-headline {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: white;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t);
}

.bcb-slide:hover .bcb-headline {
  color: var(--amber-light);
}

.bcb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.bcb-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.bcb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.bcb-dot.active {
  background: var(--amber-light);
  width: 18px;
  border-radius: 3px;
}

.bcb-arrows {
  display: flex;
  gap: 6px;
}

.bcb-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}

.bcb-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
}

.bcb-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.28);
  gap: 10px;
  padding: 20px;
}

.bcb-empty i {
  font-size: 2rem;
}

.bcb-empty p {
  font-size: 0.82rem;
}

@media (min-width: 900px) {
  .banner-inner {
    grid-template-columns: 1fr 360px;
    gap: 0;
    align-items: stretch;
  }

  .banner-left-content {
    padding-right: 36px;
  }
}

@media (max-width: 899px) {
  .banner-carousel-box {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--r-lg);
    margin-top: 24px;
    min-height: 260px;
  }
}

/* Full-width banner carousel (left content removed) */
.banner-full-carousel {
  grid-template-columns: 1fr !important;
}

.banner-carousel-full {
  border-left: none;
  border-radius: var(--r-lg);
  min-height: 460px;
}

.banner-carousel-full .bcb-img,
.banner-carousel-full .bcb-img-placeholder {
  min-height: 380px;
}

.banner-carousel-full .bcb-headline {
  font-size: 1.3rem;
}

@media (max-width: 900px) {
  .banner-carousel-full {
    min-height: 320px;
    margin-top: 0;
  }
  .banner-carousel-full .bcb-img,
  .banner-carousel-full .bcb-img-placeholder {
    min-height: 260px;
  }
}