/* =========================================================
   BESUFEKAD NEWS — STYLESHEET
   Design: "Firebase Orange" — a flame-orange, amber and white
   editorial brand with an animated pulse/heartbeat line as its
   signature motif (ties to "live" news + the site's tagline).
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* ---- Firebase Orange Palette ----------------------------------- */
  --navy-deep: #e65100; /* deep flame orange — hero/footer/nav   */
  --navy-mid: #f57c00; /* Firebase orange — buttons, links      */
  --teal-abyss: #ffb300; /* bright amber — highlights             */
  --catch-red: #e64a19; /* flame red-orange — primary CTA        */
  --catch-red-dim: #bf360c;
  --amber-gold: #ffc107; /* Firebase amber — badges, stamps       */
  --amber-gold-dim: #ff8f00;
  --bone-cream: #fff6e9; /* warm white — section backgrounds      */
  --foam-white: #ffffff; /* pure white — card surfaces            */
  --ink: #2b1400; /* deep brown-black — body copy          */
  --ink-soft: #8a6142; /* warm brown — secondary copy           */
  --line-soft: rgba(230, 81, 0, 0.14);
  --whatsapp: #25d366;

  /* ---- Type --------------------------------------------------------*/
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* ---- Scale -------------------------------------------------------*/
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --container: 1240px;
  --shadow-s: 0 6px 18px rgba(230, 81, 0, 0.1);
  --shadow-m: 0 16px 40px rgba(230, 81, 0, 0.16);
  --shadow-l: 0 30px 70px rgba(230, 81, 0, 0.28);
  --ease: cubic-bezier(0.22, 0.85, 0.32, 1);

  --header-height: 72px;
}

[data-theme="dark"] {
  --ink: #fff3e0;
  --ink-soft: #d9a876;
  --bone-cream: #2b1400;
  --foam-white: #3d1d00;
  --line-soft: rgba(255, 179, 0, 0.2);
  --navy-mid: #ffa733;
  --teal-abyss: #ffca5c;
  --amber-gold: #ffca28;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html {
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bone-cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.hidden {
  display: none !important;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 56px 20px 24px;
  max-width: calc(var(--container) - 40px);
  margin-left: auto;
  margin-right: auto;
}
.section-heading h2 {
  font-size: clamp(22px, 3vw, 32px);
}
.section-heading a {
  color: var(--navy-mid);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition:
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
  display: inline-block;
}
.section-heading a:hover {
  color: var(--catch-red);
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Cookie banner ---------- */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--bone-cream);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
}
#cookieBanner button {
  background: var(--amber-gold);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 34px;
  z-index: 300;
  background: rgba(240, 248, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
[data-theme="dark"] .site-header {
  background: rgba(43, 20, 0, 0.85);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logo {
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}
.icon-btn:hover {
  background: var(--line-soft);
  transform: translateY(-2px);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--catch-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.lang-switcher {
  position: relative;
}
#langToggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 8px 14px;
  background: var(--foam-white);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--foam-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-m);
  list-style: none;
  margin: 0;
  padding: 6px;
  width: 200px;
  max-height: 340px;
  overflow-y: auto;
}
.lang-menu li {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-menu li:hover {
  background: var(--bone-cream);
  cursor: pointer;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s ease;
}
/* Animates the 3 lines into an X when the menu is open */
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Dark overlay behind the mobile menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
body.no-scroll {
  overflow: hidden;
}

/* Explicit close (X) button inside the mobile menu panel itself */
.nav-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.nav-close svg {
  width: 20px;
  height: 20px;
}
.nav-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-category-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-simple-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 8px;
  position: relative;
}
.nav-simple-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--amber-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-simple-link:hover {
  color: var(--navy-mid);
}
.nav-simple-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: calc(34px + var(--header-height) + 10px);
    right: 14px;
    width: min(360px, 88vw);
    background: linear-gradient(165deg, var(--navy-deep), var(--navy-mid) 85%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease;
    z-index: 250;
    border-radius: var(--radius-m);
    box-shadow: 0 24px 60px rgba(1, 20, 45, 0.45);
  }
  /* Opens downward (vertical reveal) instead of sliding in from the side */
  .main-nav.open {
    max-height: 75vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav::before {
    display: none;
  }
  .nav-close {
    display: none;
  } /* the hamburger icon itself morphs into an X — see .hamburger.active below */

  .nav-category-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 6px;
  }
  .nav-simple-link {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
  }
  .nav-simple-link:last-child {
    border-bottom: none;
  }
  .nav-simple-link::after {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
    gap: 6px;
  }
  .logo-img {
    height: 34px;
    width: auto;
    max-width: 160px;
  }
  .header-actions {
    gap: 4px;
  }
  #langToggle .lang-code {
    display: none;
  }
  #langToggle {
    padding: 8px 10px;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
  }
  .hamburger {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Search ---------- */
.search-bar {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--foam-white);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 20px;
}
.search-bar input {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: block;
  padding: 12px 16px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-pulse-line {
  position: absolute;
  top: -18px;
  left: 20px;
  right: 20px;
  height: 40px;
  pointer-events: none;
  opacity: 0.55;
}
.hero-pulse-line svg {
  width: 100%;
  height: 100%;
}
.hero-pulse-line path {
  fill: none;
  stroke: var(--amber-gold);
  stroke-width: 2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawPulse 3.2s ease-in-out infinite;
}
@keyframes drawPulse {
  0% {
    stroke-dashoffset: 600;
  }
  60% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -600;
  }
}

.hero-main {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(230, 81, 0, 0) 30%, rgba(230, 81, 0, 0.85)),
    var(--navy-mid);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-main .tag {
  background: var(--amber-gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 14px;
}
.hero-main h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  max-width: 80%;
}
.hero-main .hero-body {
  padding: 36px;
}
.hero-main .meta {
  opacity: 0.8;
  font-size: 13px;
  margin-top: 10px;
}

.hero-ticker-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-m);
  background: var(--foam-white);
  border: 1px solid var(--line-soft);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.rail-item:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-s);
}
.rail-item img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.rail-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.rail-item .tag-sm {
  font-size: 11px;
  color: var(--navy-mid);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Breaking ticker ---------- */
.breaking-ticker {
  margin-top: 28px;
  background: var(--ink);
  color: var(--bone-cream);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}
.breaking-label {
  background: var(--catch-red);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scrollTicker 32s linear infinite;
  padding-left: 24px;
}
.ticker-track span {
  font-size: 14px;
  font-weight: 500;
}
@keyframes scrollTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Category tabs & News grid ---------- */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 20px;
  max-width: var(--container);
  margin: 0 auto 28px;
}
.tab {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--foam-white);
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    border-color 0.2s;
}
.tab:hover {
  border-color: var(--navy-mid);
  color: var(--navy-mid);
  transform: translateY(-2px);
}
.tab.active {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: #fff;
}
.tab.active:hover {
  color: #fff;
}

.news-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.card {
  display: block;
  background: var(--foam-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.25s;
}
.card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  box-shadow: var(--shadow-m);
}
.card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .thumb img {
  transform: scale(1.06);
}
.card .body {
  padding: 18px;
}
.card .tag-sm {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card h3 {
  font-size: 18px;
  margin: 8px 0;
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.card .meta {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.8;
}

.skeleton {
  background: linear-gradient(
    100deg,
    var(--line-soft) 30%,
    #eef0ea 50%,
    var(--line-soft) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-card {
  height: 280px;
  border-radius: var(--radius-m);
}

/* ---------- TikTok section ---------- */
.tiktok-section {
  background: var(--foam-white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 40px;
}
.tiktok-carousel {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.tiktok-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.tiktok-grid.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.tiktok-grid::-webkit-scrollbar {
  display: none;
}
.tiktok-grid > * {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  min-width: 220px;
}
@media (max-width: 1000px) {
  .tiktok-grid > * {
    flex: 0 0 calc(33.333% - 14px);
  }
}
@media (max-width: 700px) {
  .tiktok-grid > * {
    flex: 0 0 calc(60% - 8px);
  }
}
@media (max-width: 460px) {
  .tiktok-grid > * {
    flex: 0 0 78%;
  }
}
.tiktok-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--catch-red);
  border: 3px solid var(--foam-white);
  box-shadow: var(--shadow-m);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: #fff;
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
.tiktok-arrow:hover {
  background: var(--catch-red-dim);
  transform: translateY(-50%) scale(1.1);
}
.tiktok-arrow svg {
  width: 20px;
  height: 20px;
}
.tiktok-arrow.prev {
  left: -8px;
}
.tiktok-arrow.next {
  right: -8px;
}
@media (max-width: 700px) {
  .tiktok-arrow {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }
  .tiktok-arrow.prev {
    left: 6px;
  }
  .tiktok-arrow.next {
    right: 6px;
  }
  .tiktok-arrow svg {
    width: 16px;
    height: 16px;
  }
}
.tiktok-grid blockquote {
  margin: 0;
}

/* ---------- Click-to-play TikTok facade (prevents autoplay) ---------- */
.tiktok-facade {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--radius-m);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
}
.tiktok-facade-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s var(--ease);
}
.tiktok-facade:hover .tiktok-facade-thumb {
  transform: scale(1.05);
}
.tiktok-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.75) 100%
  );
}
.tiktok-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--catch-red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(215, 38, 61, 0.5);
  transition:
    transform 0.25s var(--ease),
    background 0.2s;
  animation: playPulse 2.4s infinite;
}
.tiktok-facade:hover .tiktok-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--catch-red-dim);
}
.tiktok-play-btn svg {
  width: 22px;
  height: 22px;
  color: #fff;
  margin-left: 3px;
}
@keyframes playPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(215, 38, 61, 0.45),
      0 6px 20px rgba(215, 38, 61, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(215, 38, 61, 0),
      0 6px 20px rgba(215, 38, 61, 0.5);
  }
}
.tiktok-facade-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tiktok-facade-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tiktok-facade-badge svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* ---------- Live section ---------- */
.live-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.live-card {
  border-radius: var(--radius-l);
  background: var(--navy-mid);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.live-card.is-live {
  background: var(--catch-red);
}
.live-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-m);
  margin-top: 10px;
}
.notify-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.notify-form input {
  padding: 10px 14px;
  border-radius: 100px;
  border: none;
  min-width: 220px;
}
.notify-form button {
  background: var(--catch-red);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
.notify-form button:hover {
  background: var(--catch-red-dim);
  transform: translateY(-2px);
}

/* ---------- Citizen section ---------- */
.citizen-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 20px;
}
.citizen-section .section-heading p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
#citizenForm {
  background: var(--foam-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 24px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}
#citizenForm textarea {
  grid-column: 1/-1;
  min-height: 100px;
}
#citizenForm .full {
  grid-column: 1/-1;
}
.add-media-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  background: var(--bone-cream);
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-s);
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: 0.2s;
}
.add-media-btn:hover {
  border-color: var(--navy-mid);
  color: var(--navy-mid);
}
.add-media-btn svg {
  width: 16px;
  height: 16px;
}
.media-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.media-fields.hidden {
  display: none;
}
@media (max-width: 600px) {
  .media-fields {
    grid-template-columns: 1fr;
  }
}

.upload-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upload-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.upload-field input[type="file"] {
  font-size: 13px;
  padding: 9px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-s);
  background: var(--foam-white);
  color: var(--ink-soft);
}
.link-instead-btn {
  align-self: flex-start;
  font-size: 12px;
  color: var(--navy-mid);
  font-weight: 600;
  text-decoration: underline;
}
.link-instead-btn:hover {
  color: var(--catch-red);
}
.upload-progress {
  background: var(--amber-gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  text-align: center;
}
#citizenForm input,
#citizenForm textarea {
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-soft);
  font-family: inherit;
  font-size: 14px;
}
#citizenForm button {
  grid-column: 1/-1;
  background: var(--catch-red);
  color: #fff;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-s);
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
#citizenForm button:hover {
  background: var(--catch-red-dim);
  transform: translateY(-2px);
}
.disclaimer {
  grid-column: 1/-1;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.8;
}
.citizen-feed {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.citizen-post {
  display: block;
  background: var(--foam-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 18px;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.citizen-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-s);
}
.citizen-post h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.citizen-post p {
  font-size: 13px;
  color: var(--ink-soft);
}
.citizen-post .byline {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-mid);
  margin-top: 8px;
}

/* ---------- Modals (promo + MK) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 20, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  padding: 20px;
}
.modal-box {
  background: var(--foam-white);
  border-radius: var(--radius-l);
  max-width: 420px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-m);
  animation: modalPop 0.3s ease;
}
@keyframes modalPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-box .close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 18px;
}
.modal-box img {
  border-radius: var(--radius-s);
  margin-bottom: 14px;
}
.modal-box h3 {
  margin-bottom: 8px;
}
.modal-box p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.modal-box .btn-primary {
  background: var(--catch-red);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 100px;
  display: inline-block;
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
.modal-box .btn-primary:hover {
  background: var(--catch-red-dim);
  transform: translateY(-2px);
}

.mk-modal .modal-box {
  max-width: 300px;
  text-align: center;
}
.mk-modal .contact-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.mk-modal .contact-row a {
  padding: 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
}
.mk-modal .contact-row a.call {
  background: var(--navy-mid);
  color: #fff;
}
.mk-modal .contact-row a.whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bone-cream);
  margin-top: 60px;
  padding: 50px 20px 30px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
}
@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-inner h4 {
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--amber-gold);
}
.footer-inner a,
.footer-inner p {
  font-size: 13px;
  opacity: 0.85;
  display: block;
  margin-bottom: 8px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
.footer-social a:hover {
  background: var(--catch-red);
  transform: translateY(-3px);
}
.newsletter-form {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
}
.newsletter-form button {
  background: var(--catch-red);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
.newsletter-form button:hover {
  background: var(--catch-red-dim);
  transform: translateY(-2px);
}
.powered-by-mk {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}
.powered-by-mk button {
  text-decoration: underline;
  font-weight: 700;
}

/* ---------- Floating contact FAB ---------- */
.fab-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.fab-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-m);
  transition:
    transform 0.2s var(--ease),
    opacity 0.25s,
    box-shadow 0.2s;
}
.fab-circle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-l);
}
.fab-circle svg {
  width: 22px;
  height: 22px;
}
.fab-top {
  background: var(--foam-white);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  width: 44px;
  height: 44px;
}
.fab-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fab-call {
  background: #0077b6;
  color: #fff;
}
.fab-telegram {
  background: #229ed9;
  color: #fff;
}
.fab-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  animation: fabPulse 2.4s infinite;
}
@keyframes fabPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}
@media (max-width: 600px) {
  .fab-stack {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }
  .fab-circle {
    width: 46px;
    height: 46px;
  }
  .fab-circle svg {
    width: 19px;
    height: 19px;
  }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 404 ---------- */
.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px;
}
.page-404 h1 {
  font-size: 80px;
  color: var(--navy-mid);
}

/* =========================================================
   NEW: Utility bar (date + Latest/About/Contact/Archive)
   ========================================================= */
.utility-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 301;
}
.utility-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-links {
  display: flex;
  gap: 18px;
}
.utility-links a {
  opacity: 0.9;
}
.utility-links a:hover {
  opacity: 1;
  color: var(--amber-gold);
}
@media (max-width: 700px) {
  .utility-date {
    display: none;
  }
  .utility-links {
    gap: 12px;
  }
}

/* =========================================================
   NEW: Logo image
   ========================================================= */
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  transition: transform 0.3s var(--ease);
}
.logo-dark {
  display: none;
}
[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="dark"] .logo-dark {
  display: block;
}
.logo:hover .logo-img {
  transform: scale(1.08);
}

/* =========================================================
   NEW: Mega-menu category dropdowns (click to open, works on
   desktop AND mobile the same way — more reliable than hover)
   ========================================================= */
.nav-item {
  position: relative;
}
.nav-item-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-item-trigger:hover {
  color: var(--navy-mid);
  background: var(--bone-cream);
}
.nav-icon {
  display: flex;
  color: var(--navy-mid);
}
.nav-icon svg {
  width: 16px;
  height: 16px;
}
.chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
  color: var(--ink-soft);
}
.nav-item.open .chevron {
  transform: rotate(180deg);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  background: var(--foam-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 20px;
  width: 420px;
  z-index: 250;
}
.nav-item.open .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.mega-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.mega-panel-head .nav-icon svg {
  width: 20px;
  height: 20px;
}
.mega-panel-head strong {
  flex: 1;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.mega-panel-head .view-all {
  font-size: 12px;
  color: var(--navy-mid);
  font-weight: 700;
  white-space: nowrap;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 22px;
}
.mega-grid a {
  font-size: 14px;
  color: var(--ink-soft);
  transition:
    color 0.15s,
    transform 0.15s;
  display: inline-block;
}
.mega-grid a:hover {
  color: var(--navy-mid);
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .nav-item-trigger {
    color: #fff;
    width: 100%;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
  }
  .nav-item-trigger:hover {
    background: none;
    color: #fff;
  }
  .nav-icon {
    color: var(--amber-gold);
  }
  .mega-panel {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    box-shadow: none;
    padding: 0 12px;
    border-radius: 10px;
    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
  }
  .nav-item.open .mega-panel {
    max-height: 700px;
    pointer-events: auto;
    padding: 14px 12px;
    margin: 0 0 6px;
    transform: none;
  }
  .mega-panel-head strong {
    color: #fff;
  }
  .mega-panel-head {
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }
  .mega-panel-head .view-all {
    color: var(--amber-gold);
  }
  .mega-grid a {
    color: rgba(255, 255, 255, 0.82);
  }
  .mega-grid a:hover {
    color: #fff;
  }
}

/* =========================================================
   NEW: "Today" status bar (breaking-news pulse strip)
   ========================================================= */
.status-bar {
  max-width: var(--container);
  margin: 22px auto 0;
  padding: 14px 22px;
  background: var(--foam-white);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-s);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
#statusText {
  min-width: 0;
  overflow-wrap: break-word;
}

/* =========================================================
   NEW: small-screen pass — tighter spacing, single-column
   forms, nothing wider than the viewport anywhere.
   ========================================================= */
@media (max-width: 600px) {
  #citizenForm {
    grid-template-columns: 1fr;
  }
  .hero-main .hero-body {
    padding: 22px;
  }
  .hero-main {
    min-height: 340px;
  }
  .live-card {
    padding: 26px 22px;
  }
  .status-bar {
    margin: 16px auto 0;
    padding: 12px 16px;
    font-size: 13px;
    border-radius: var(--radius-m);
  }
  .status-bar .status-date {
    display: none;
  }
  .section-heading {
    margin: 40px 16px 18px;
  }
}
@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
.status-bar.is-breaking {
  background: var(--catch-red);
  color: #fff;
  border-color: var(--catch-red);
  font-weight: 700;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy-mid);
  flex-shrink: 0;
  animation: pulseDot 1.6s infinite;
}
.status-bar.is-breaking .status-dot {
  background: #fff;
}
.status-bar .status-date {
  opacity: 0.65;
  font-weight: 600;
  flex-shrink: 0;
}

/* =========================================================
   NEW: TikTok follower badge
   ========================================================= */
.follower-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bone-cream);
  border: 1px solid var(--line-soft);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.follower-badge svg {
  width: 16px;
  height: 16px;
  color: var(--navy-mid);
}

/* =========================================================
   NEW: Card byline / read-time / share button
   ========================================================= */
.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.card-byline {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.85;
}
.share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bone-cream);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s ease;
  color: var(--ink-soft);
}
.share-btn:hover {
  background: var(--navy-mid);
  color: #fff;
  border-color: var(--navy-mid);
  transform: scale(1.08);
}
.share-btn svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   NEW: Toast (used for "Link copied!")
   ========================================================= */
.toast {
  position: fixed;
  bottom: 96px;
  right: 22px;
  background: var(--ink);
  color: var(--bone-cream);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  z-index: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s ease;
  pointer-events: none;
  box-shadow: var(--shadow-m);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NEW: entrance + stagger animations
   ========================================================= */
@keyframes headerDrop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.site-header {
  animation: headerDrop 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.utility-bar {
  animation: headerDrop 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.hero-main .tag {
  animation: floatY 3s ease-in-out infinite;
}

/* =========================================================
   NEW: Article page
   ========================================================= */
.article-hero {
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 20px;
}
.article-hero-inner {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  height: 52vh;
  min-height: 320px;
  max-height: 560px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-deep);
  display: flex;
  align-items: flex-end;
  animation: heroFadeIn 0.7s var(--ease) both;
  box-shadow: var(--shadow-l);
}
.article-hero-inner.hidden {
  display: none;
}
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.article-hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43, 20, 0, 0) 35%,
    rgba(43, 20, 0, 0.92) 100%
  );
}
.article-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 36px;
  color: #fff;
  width: 100%;
}
.article-hero-overlay .tag {
  background: var(--amber-gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-hero-overlay h1 {
  font-size: clamp(24px, 4.6vw, 48px);
  color: #fff;
  margin: 0;
  line-height: 1.18;
  max-width: 900px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* When there's no image, the hero collapses and title/category move into the plain content area instead */
.article-hero-inner.no-image {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  height: auto;
  min-height: 0;
  padding: 40px 0;
}
.article-hero-inner.no-image::after {
  display: none;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 10px;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
}
.article-meta-row .meta {
  font-size: 13px;
  color: var(--ink-soft);
}
.see-more-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-mid);
  white-space: nowrap;
  margin-right: auto;
  transition:
    color 0.2s,
    transform 0.2s var(--ease);
  display: inline-block;
}
.see-more-link:hover {
  color: var(--catch-red);
  transform: translateX(3px);
}
.article-body p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 22px;
  color: var(--ink);
}
#relatedSection {
  max-width: var(--container);
  margin: 50px auto 0;
  padding: 0 20px 60px;
}

@media (max-width: 700px) {
  .article-hero {
    margin: 14px auto 0;
    padding: 0 14px;
  }
  .article-hero-inner {
    height: 36vh;
    min-height: 240px;
    border-radius: var(--radius-m);
  }
  .article-hero-overlay {
    padding: 20px;
  }
  .article-content {
    padding: 26px 20px 10px;
  }
  .article-meta-row {
    gap: 10px;
  }
}
@media (max-width: 420px) {
  .article-hero-inner {
    height: 30vh;
    min-height: 200px;
  }
}

/* Google Translate widget — keep hidden, we drive it via our own dropdown */
.goog-te-banner-frame,
.goog-te-gadget-icon {
  display: none !important;
}
body {
  top: 0 !important;
}
#google_translate_element {
  position: absolute;
  left: -9999px;
}
