@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap");


:root {
  --red: #bd171b;
  --navy: #06152f;
  --ink: #151923;
  --muted: #777e89;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ============ GLOBAL OVERFLOW GUARD ============ */
/* Prevent any horizontal scrollbar — the fix for mobile seek bar */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

img,
video,
iframe,
amp-img {
  max-width: 100%;
}


body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.65 var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============ TOPBAR ============ */
.topbar {
  background: #050a15;
  color: #fff;
  min-height: 50px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 185px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: 130px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.brand:hover .brand-logo {
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 50px;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.main-nav a {
  height: 50px;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #e4e6eb;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav .active:after {
  content: "";
  height: 2px;
  background: var(--red);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.subscribe {
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.2s ease;
}

.subscribe:hover {
  background: #9e1216;
}

.search-btn {
  color: #fff;
  font-size: 18px;
  transition: color 0.2s ease;
}

.search-btn:hover {
  color: var(--red);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 4px;
  line-height: 1;
  font-size: 24px;
  cursor: pointer;
}

/* ============ TICKER ============ */
.ticker {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #e8e8eb;
  font-family: var(--font-body);
  font-size: 13px;
  color: #4e535c;
}

.ticker-label {
  background: var(--red);
  color: #fff;
  padding: 5px 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ticker-item:before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a8abb2;
  margin: 0 9px 2px 0;
}

.live {
  color: var(--red);
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}

/* ============ PAGE WRAPPER ============ */
.page-wrap {
  background: #f7f8fa;
  padding: 16px 0 24px;
}

/* ============ HERO SECTION ============ */
.hero-intro h1 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
  color: #101a2d;
}

.scribble {
  color: var(--red);
  font-size: 20px;
  margin-bottom: 15px;
}

.hero-intro p {
  color: #5c636e;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.btn-news {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 10px 16px;
  transition: background 0.2s ease;
  margin-top: auto;
}

.btn-news:hover {
  background: #9e1216;
}

.lead-story {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: #071a35;
  height: 100%;
  min-height: 385px;
}

.lead-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.4s ease;
}

.lead-story:hover img {
  transform: scale(1.05);
}

.lead-story:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(2, 12, 31, 0.25) 45%,
    #03112b 100%
  );
  z-index: 2;
}

.lead-copy {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 12px;
}

.pill {
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 8px;
}

.lead-copy h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  transition: color 0.2s ease;
}

.lead-story:hover .lead-copy h2 {
  color: #e1272e;
}

.lead-copy p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: #e3e7ef;
}

.meta {
  font-family: var(--font-body);
  color: #aeb6c5;
  font-size: 12px;
}

/* ============ SIDE STORIES ============ */
.side-story {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px #1720330c;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  height: 100%;
  max-height: 90px;
}

.side-story:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.side-story img {
  width: 40%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.side-story:hover img {
  transform: scale(1.05);
}

.side-copy {
  width: 60%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-category {
  color: var(--red);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.side-copy h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 5px;
  transition: color 0.2s ease;
}

.side-story:hover .side-copy h3 {
  color: var(--red);
}

.lead-story-link,
.side-story-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.lead-story-link:hover,
.side-story-link:hover {
  text-decoration: none;
  color: inherit;
}

/* ============ TABS ============ */
/* .topic-bar {
  margin: 0 0 16px;
  background: var(--navy);
  border-radius: 5px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.topic {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 110px;
  height: 48px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  padding: 0 10px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.topic:hover {
  background: #142541;
}

.topic i {
  font-size: 14px;
  color: #dce2ed;
}

.topic.active {
  background: #142541;
  border-bottom-color: var(--red);
} */

/* ============ TABS ============ */
.topic-bar {
  margin: 0 0 16px;
  background: var(--navy);
  border-radius: 5px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.topic {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 110px;
  height: 48px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  padding: 0 10px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.topic:hover {
  background: #142541;
}

.topic i {
  font-size: 14px;
  color: #dce2ed;
}

.topic.active {
  background: #142541;
  border-bottom-color: var(--red);
}

/* ============ SECTION HEADING ============ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--navy);
}

.section-heading a {
  color: var(--red);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.section-heading a:hover {
  color: #9e1216;
}

/* ============ ARTICLE CARDS ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.article-card-link {
  display: flex;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.article-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 5px #1720330c;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  height: 155px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 7px;
  transition: color 0.2s ease;
}

.article-card:hover .article-body h3 {
  color: var(--red);
}

.article-body p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #626974;
  margin: 0 0 8px;
  flex: 1;
}

.article-body .meta {
  font-family: var(--font-body);
  color: #8f949d;
  margin-top: auto;
}

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 21, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.search-overlay.active {
  display: flex;
}

.search-form-container {
  width: 100%;
  max-width: 700px;
  position: relative;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 36px;
  padding: 15px 50px 15px 0;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-submit-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-submit-btn:hover {
  color: var(--red);
}

.search-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-close-btn:hover {
  color: var(--red);
}

/* ============ FOOTER ============ */
.site-footer {
  background: #050a15;
  color: #c9d1de;
  font-family: var(--font-body);
  font-size: 15px;
  padding-top: 0;
  border-top: 3px solid var(--red);
}

.footer-top {
  background: #0b1526;
  border-bottom: 1px solid #1c2740;
  padding: 22px 0;
}

.footer-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-top h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.footer-top p {
  color: #9aa4b6;
  margin: 0;
  font-size: 14px;
}

.footer-main {
  padding: 44px 0 20px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.footer-brand i {
  color: #e1272e;
  font-size: 28px;
  margin-right: 8px;
}

.footer-about {
  max-width: 360px;
  color: #9aa4b6;
  margin: 16px 0 20px;
  line-height: 1.8;
  font-size: 15px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #9aa4b6;
  margin: 10px 0;
  font-size: 14px;
}

.footer-contact i {
  color: var(--red);
  font-size: 15px;
  margin-top: 3px;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  font-weight: 700;
  margin: 2px 0 18px;
  padding-bottom: 10px;
  position: relative;
}

.site-footer h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.site-footer .footer-links a {
  display: block;
  color: #9aa4b6;
  margin: 10px 0;
  font-size: 14px;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 4px;
  border: 1px solid #253044;
  background: #0c1526;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
}

.footer-newsletter input::placeholder {
  color: #6b7688;
}

.footer-newsletter button {
  border: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.footer-newsletter button:hover {
  background: #9e1216;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #253044;
  border-radius: 50%;
  color: #c4ccd9;
  font-size: 15px;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.footer-apps {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.footer-apps a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #253044;
  border-radius: 4px;
  padding: 7px 11px;
  color: #c9d1de;
  font-size: 12px;
  transition: all 0.2s ease;
}

.footer-apps a:hover {
  border-color: #3a4a68;
  color: #fff;
}

.footer-apps i {
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid #1c2740;
  margin-top: 30px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #8b96a8;
  font-size: 13px;
  align-items: center;
}

.footer-bottom a {
  color: #c9d1de;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #8b96a8;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ============ PAGE HEADER (all pages) ============ */
.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: #101a2d;
  margin-bottom: 20px;
}

.page-header p {
  font-family: var(--font-body);
  font-size: 20px;
  color: #626974;
  line-height: 1.6;
}

/* ============ THEME TOGGLE ============ */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ============ AD BANNER (draggable) ============ */
.ad-banner-wrapper {
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: grab;
  transition:
    opacity 0.4s ease,
    margin 0.4s ease,
    max-height 0.4s ease;
  max-height: 300px;
}

.ad-banner-wrapper:active {
  cursor: grabbing;
}

.ad-banner-wrapper.closed {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.ad-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.ad-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  color: #fff;
  user-select: none;
}

.ad-slide-content {
  max-width: 70%;
}

.ad-tag {
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}

.ad-slide h3 {
  font:
    700 26px/1.2 Georgia,
    serif;
  margin: 0 0 8px;
}

.ad-slide p {
  font-size: 15px;
  margin: 0 0 15px;
  opacity: 0.9;
}

.ad-cta {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
}

.ad-slide img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  pointer-events: none;
}

.ad-slide-1 {
  background: linear-gradient(135deg, #06152f 0%, #1a3a6e 100%);
}
.ad-slide-2 {
  background: linear-gradient(135deg, #bd171b 0%, #8a1013 100%);
}
.ad-slide-3 {
  background: linear-gradient(135deg, #2c2c2c 0%, #0d0d0d 100%);
}

.ad-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.ad-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.ad-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.ad-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ============ SKELETON LOADERS ============ */
.skeleton-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 5px #1720330c;
  min-width: 0;
}

.skeleton-img,
.skeleton-line {
  background: linear-gradient(90deg, #eef1f5 25%, #e2e6ed 50%, #eef1f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-img {
  height: 155px;
  width: 100%;
}

.skeleton-body {
  padding: 12px;
}

.skeleton-line {
  height: 12px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.skeleton-line.title {
  height: 18px;
  width: 90%;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.tiny {
  width: 40%;
  height: 10px;
  margin-top: 12px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(189, 23, 27, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #9e1216;
  transform: translateY(-3px);
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #050a15;
  color: #c9d1de;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: none;
  border-top: 3px solid var(--red);
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.cookie-accept:hover {
  background: #9e1216;
}

.cookie-decline {
  background: transparent;
  color: #c9d1de;
  border: 1px solid #2a3a5a;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.cookie-decline:hover {
  background: #1a2742;
  color: #fff;
}

/* ================================================================
   DARK MODE — ALL PAGES
   ================================================================ */
body.dark-mode {
  --ink: #e6e9f0;
  --navy: #e6e9f0;
  --muted: #9aa4b6;
  background: #0b1220;
  color: var(--ink);
}

body.dark-mode .page-wrap {
  background: #0b1220;
}

body.dark-mode .hero-intro h1,
body.dark-mode .section-heading h2,
body.dark-mode .page-header h1,
body.dark-mode .category-title,
body.dark-mode .article-title,
body.dark-mode .job-info h3,
body.dark-mode .apply-card h2,
body.dark-mode .info-box h2,
body.dark-mode .content-card h2,
body.dark-mode .ad-card h2,
body.dark-mode .contact-card h2,
body.dark-mode .contact-box h2,
body.dark-mode .team-card h3 {
  color: #e6e9f0 !important;
}

body.dark-mode .hero-intro p,
body.dark-mode .page-header p,
body.dark-mode .category-description,
body.dark-mode .job-info p,
body.dark-mode .apply-card .subtitle,
body.dark-mode .info-box p,
body.dark-mode .content-card p,
body.dark-mode .ad-card p,
body.dark-mode .contact-box p,
body.dark-mode .team-card .bio {
  color: #a0a8b8 !important;
}

body.dark-mode .article-card,
body.dark-mode .side-story,
body.dark-mode .topic-bar,
body.dark-mode .sidebar-widget,
body.dark-mode .apply-card,
body.dark-mode .contact-card,
body.dark-mode .job-card,
body.dark-mode .content-card,
body.dark-mode .ad-card,
body.dark-mode .contact-box,
body.dark-mode .info-box,
body.dark-mode .team-card,
body.dark-mode .error-box {
  background: #131c2e;
  color: #c9d1de;
}

body.dark-mode .article-card:hover,
body.dark-mode .job-card:hover,
body.dark-mode .team-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .article-body h3,
body.dark-mode .side-copy h3 {
  color: #e6e9f0;
}

body.dark-mode .article-body p,
body.dark-mode .side-copy p {
  color: #a0a8b8;
}

body.dark-mode .article-body .meta,
body.dark-mode .meta {
  color: #8892a4;
}

body.dark-mode .job-meta,
body.dark-mode .side-category,
body.dark-mode .category-tag,
body.dark-mode .section-heading a,
body.dark-mode .team-card p {
  color: #e1272e;
}

body.dark-mode .topic-bar {
  background: #06152f;
}

body.dark-mode .topic {
  color: #c9d1de;
}

body.dark-mode .topic.active {
  background: #1a2742;
}

body.dark-mode .article-content {
  color: #c9d1de;
}

body.dark-mode .article-content h2,
body.dark-mode .article-content blockquote,
body.dark-mode .article-content strong {
  color: #e6e9f0;
}

body.dark-mode .article-meta-bar {
  color: #a0a8b8;
  border-bottom-color: #2a3a5a;
}

body.dark-mode .article-meta-bar .author {
  color: #e6e9f0;
}

body.dark-mode .btn-meta-action {
  border-color: #2a3a5a;
  color: #c9d1de;
}

body.dark-mode .btn-meta-action:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

body.dark-mode .btn-apply {
  background: #e1272e;
  color: #fff;
}

body.dark-mode .btn-apply:hover {
  background: var(--red);
}

body.dark-mode .sidebar-widget h3 {
  color: #e6e9f0;
  border-bottom-color: #2a3a5a;
}

body.dark-mode .related-story h4 {
  color: #e6e9f0;
}

body.dark-mode .related-story:hover h4 {
  color: var(--red);
}

body.dark-mode .category-link {
  background: #1a2742;
  color: #c9d1de;
  border-color: #2a3a5a;
}

body.dark-mode .category-link:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

body.dark-mode .category-link i {
  color: #e1272e;
}

body.dark-mode .category-link:hover i {
  color: #fff;
}

body.dark-mode .category-link .count {
  background: rgba(255, 255, 255, 0.08);
  color: #a0a8b8;
}

body.dark-mode .category-link:hover .count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

body.dark-mode .comments-section {
  border-top-color: #2a3a5a;
}

body.dark-mode .comments-header h2 {
  color: #e6e9f0;
}

body.dark-mode .comment-form {
  background: #131c2e;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .comment-form .form-control {
  background: #1a2742;
  color: #e6e9f0;
  border-color: #2a3a5a;
}

body.dark-mode .comment-form .form-control::placeholder {
  color: #8f949d;
}

body.dark-mode .comment-form .form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(189, 23, 27, 0.2);
}

body.dark-mode .comment-form-footer .hint {
  color: #8892a4;
}

body.dark-mode .comment-item {
  background: #131c2e;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .comment-item:hover {
  border-left-color: var(--red);
}

body.dark-mode .comment-avatar {
  background: #1a2742;
  color: #e6e9f0;
}

body.dark-mode .comment-author {
  color: #e6e9f0;
}

body.dark-mode .comment-time {
  color: #8892a4;
}

body.dark-mode .comment-body {
  color: #c9d1de;
}

body.dark-mode .btn-comment-action {
  color: #8892a4;
}

body.dark-mode .btn-comment-action:hover {
  color: var(--red);
}

body.dark-mode .comment-replies {
  border-left-color: #2a3a5a;
}

body.dark-mode .comment-replies .comment-item {
  background: #1a2742;
}

body.dark-mode .reply-form-container .comment-form {
  background: #1a2742;
  border-color: #2a3a5a;
}

body.dark-mode .no-comments {
  color: #8892a4;
}

body.dark-mode .no-comments i {
  color: #2a3a5a;
}

body.dark-mode .ticker {
  border-bottom-color: #2a3a5a;
  color: #c9d1de;
}

body.dark-mode .ticker-label {
  background: var(--red);
  color: #ffffff;
}

body.dark-mode .ticker-item:before {
  background: #6b7688;
}

body.dark-mode .live {
  color: #e1272e;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
  background: #1a2742;
  color: #e6e9f0;
  border-color: #2a3a5a;
}

body.dark-mode .form-control::placeholder {
  color: #6b7688;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
  background: #1a2742;
  color: #e6e9f0;
  border-color: var(--red);
  box-shadow: 0 0 0 0.2rem rgba(189, 23, 27, 0.25);
}

body.dark-mode .form-label {
  color: #e6e9f0;
}

body.dark-mode .file-upload-box {
  background: #1a2742;
  border-color: #2a3a5a;
}

body.dark-mode .file-upload-box:hover {
  background: #22304d;
  border-color: var(--red);
}

body.dark-mode .file-upload-box p {
  color: #a0a8b8;
}

body.dark-mode .file-upload-box strong {
  color: #e6e9f0;
}

body.dark-mode .file-name {
  color: #e1272e;
}

body.dark-mode .footer-newsletter input {
  background: #1a2742;
}

body.dark-mode .search-input {
  color: #e6e9f0;
}

body.dark-mode .stat-box {
  background: #131c2e;
  border: 1px solid #2a3a5a;
}

body.dark-mode .stat-box h3 {
  color: #e1272e;
}

body.dark-mode .stat-box p {
  color: #a0a8b8;
}

body.dark-mode .page-item {
  background: #131c2e;
  border-color: #2a3a5a;
  color: #c9d1de;
}

body.dark-mode .page-item:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

body.dark-mode .page-item.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

body.dark-mode .article-card-link {
  color: inherit;
}

body.dark-mode .cat-link {
  background: #1a2742;
  color: #c9d1de;
  border-color: #2a3a5a;
}

body.dark-mode .cat-link:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

body.dark-mode .search-recovery input {
  background: #1a2742;
  color: #e6e9f0;
  border-color: #2a3a5a;
}

body.dark-mode .error-code i {
  color: #e6e9f0;
}

body.dark-mode .skeleton-card {
  background: #131c2e;
}

body.dark-mode .skeleton-img,
body.dark-mode .skeleton-line {
  background: linear-gradient(90deg, #1a2742 25%, #22304d 50%, #1a2742 75%);
  background-size: 200% 100%;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .brand-logo {
    height: 38px;
    max-width: 120px;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .side-story {
    max-height: 100px;
  }
}

@media (max-width: 767px) {
  /* Topbar - Keep flex, just align items */
  .topbar .container {
    flex-wrap: wrap;
    align-items: center !important;
    min-height: 60px;
  }

  /* Lock Logo width and height so it NEVER shakes */
  .brand {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    height: 44px;
  }
  
  .brand-logo {
    height: 34px;
    width: 160px; /* Locks the size */
    margin: 0;
  }

  .nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 44px;
  }

  /* Force the hamburger button to stay visible and sized */
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  /* The Menu - Drop it below the topbar */
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    height: auto;
    padding: 10px 0;
    overflow: visible;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex-basis: 100%; /* Forces it to take a new line */
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .main-nav a {
    height: auto;
    min-height: 40px;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid #202b3e;
  }

  .main-nav a.active:after {
    display: none;
  }

  /* Ticker - Fixed */
  .ticker {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 12px;
    overflow: hidden;
  }

  /* Hide ALL ticker items by default on mobile */
  .ticker-item {
    display: none; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Show ONLY the first ticker item */
  .ticker-item:nth-of-type(1) {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .live {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Tabs */
  /* .topic-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .topic {
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #253044;
    border-right: 1px solid #253044;
  }
  .topic:nth-child(even) {
    border-right: none;
  }
  .topic:last-child {
    grid-column: span 2;
    border-bottom: none;
    border-right: none;
  } */
     /* Tabs */
  .topic-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topic {
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #253044;
    border-right: 1px solid #253044;
  }

  .topic:nth-child(even) {
    border-right: none;
  }

  /* Perfectly balances the 8 tabs without standing alone */
  .topic:last-child {
    border-bottom: none;
    border-right: none;
  }

  /* Grid */
  .article-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Search */
  .search-input {
    font-size: 24px;
  }

  /* Page header */
  .page-header h1 {
    font-size: 32px;
  }

  /* Ad banner */
  /* .ad-slide {
    flex-direction: column;
    text-align: center;
    padding: 35px 20px 40px;
  }
  .ad-slide-content {
    max-width: 100%;
  }
  .ad-slide h3 {
    font-size: 20px;
  }
  .ad-slide p {
    font-size: 13px;
  }
  .ad-slide img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    order: -1;
  } */

    /* Ad banner */
  .ad-banner-wrapper {
    max-height: 500px; /* Give it room to grow so the button doesn't get cut off */
  }
  
  .ad-slide {
    flex-direction: column;
    text-align: center;
    padding: 40px 15px 50px; /* Extra bottom padding so dots don't overlap the button */
    height: auto;
    min-height: 250px; /* Ensures enough vertical space */
  }
  
  .ad-slide-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .ad-slide h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .ad-slide p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .ad-slide img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    order: -1;
  }
  
  .ad-cta {
    display: inline-block;
    width: auto;
    flex-shrink: 0; 
    margin-bottom: 10px;
  }

  /* Cookie & back-to-top */
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-buttons {
    flex-direction: column;
  }
  .cookie-accept,
  .cookie-decline {
    width: 100%;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 30px;
    max-width: 140px;
  }
  .ticker {
    gap: 8px;
    font-size: 11px;
  }
  .ticker-item:nth-of-type(n + 2) {
    display: none;
  }
  .ticker-item {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}