/* ========================================
   Twic Media Reports (TMR) — News Site
   ======================================== */

:root {
  /* Primary from TMR logo — deep for UI */
  --navy: #002b75;
  --navy-deep: #001a4d;
  --navy-mid: #003ea8;
  --red: #e10600;
  --red-dark: #c00500;
  --white: #ffffff;
  --off-white: #f4f6fa;
  --gray-100: #eef1f6;
  --gray-200: #dde2ec;
  --gray-400: #9aa3af;
  --gray-600: #5a6570;
  --gray-800: #1a2332;
  --text: #1a2332;
  --tag-blue: #002b75;
  --tag-navy: #001a4d;
  --tag-purple: #6b3fa0;
  --tag-sky: #2a9fd6;
  --tag-orange: #e67e22;
  --tag-red: #c0392b;
  --tag-teal: #16a085;
  --tag-gold: #c4920f;
  --whatsapp: #25d366;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --container: 1200px;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 26, 77, 0.14);
  --header-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Live pulse */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.5);
  animation: pulse 1.6s infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.3;
}

.tag--blue { background: var(--tag-blue); }
.tag--navy { background: var(--tag-navy); }
.tag--purple { background: var(--tag-purple); }
.tag--sky { background: var(--tag-sky); }
.tag--orange { background: var(--tag-orange); }
.tag--red { background: var(--tag-red); }
.tag--teal { background: var(--tag-teal); }
.tag--gold { background: var(--tag-gold); }

/* Meta */
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.meta--sm {
  color: var(--gray-600);
  font-size: 12px;
  margin-top: 6px;
}

.meta__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.meta__dot { opacity: 0.6; }

/* Icon buttons */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--navy);
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--gray-100);
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
  background: #5a6570;
  color: var(--white);
  font-size: 12px;
  padding: 7px 0;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar__trending {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.top-bar__label {
  color: #ffc107;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.top-bar__link {
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar__link:hover {
  text-decoration: underline;
}

.top-bar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.top-bar__sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
}

.top-bar__location,
.top-bar__weather {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar__social a {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  transition: color 0.2s;
}

.top-bar__social a:hover {
  color: var(--white);
}

/* ========================================
   SITE HEADER
   ======================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  line-height: 0;
}

.logo__img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 4px;
}

.logo--mobile .logo__img {
  height: 40px;
  max-width: 120px;
}

.logo__img--drawer {
  height: 40px;
  max-width: 130px;
  border-radius: 3px;
}

.logo__img--footer {
  height: 64px;
  max-width: 180px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  padding: 8px 12px;
  line-height: 1;
  border-radius: 2px;
}

.logo__mark--light {
  background: var(--white);
  color: var(--navy);
  font-size: 28px;
  padding: 10px 14px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.15;
}

.logo__tagline {
  font-size: 11px;
  color: var(--gray-600);
  max-width: 260px;
  line-height: 1.3;
  margin-top: 3px;
}

.header-banner {
  flex: 1;
  display: flex;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
  margin-left: auto;
  text-decoration: none;
  color: inherit;
}

.header-banner img {
  width: 55%;
  object-fit: cover;
  height: 100%;
}

.header-banner__cta {
  width: 45%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo--mobile .logo__img {
  height: 40px;
  max-width: 140px;
}

/* ========================================
   MAIN NAV
   ======================================== */
.main-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 90;
}

.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  transition: background 0.2s;
}

.main-nav__list > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-live {
  gap: 6px !important;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s;
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
}

.dropdown a:hover {
  background: var(--off-white);
  color: var(--red);
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-support:hover {
  background: var(--red-dark);
}

/* ========================================
   BREAKING NEWS
   ======================================== */
.breaking {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 0;
}

.breaking__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breaking__badge {
  flex-shrink: 0;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 2px;
}

.breaking__track {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.breaking__scroll {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.breaking__scroll:hover {
  animation-play-state: paused;
}

.breaking__scroll a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.breaking__scroll a:hover {
  color: var(--red);
}

.breaking__scroll time {
  font-weight: 400;
  color: var(--gray-600);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   MAIN LAYOUT
   ======================================== */
.main {
  padding: 16px 0 40px;
  background: var(--off-white);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}

.content-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.hero-feature {
  position: relative;
  min-height: 360px;
  border: none;
  background: #0a1628;
}

.hero-feature__link {
  display: block;
  position: relative;
  height: 100%;
  min-height: 360px;
}

.hero-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.hero-feature__link:hover .hero-feature__img {
  transform: scale(1.03);
}

.hero-feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 26, 77, 0.94) 0%,
    rgba(0, 43, 117, 0.55) 42%,
    rgba(0, 43, 117, 0.12) 68%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  color: var(--white);
}

.hero-feature__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  margin: 8px 0 6px;
  letter-spacing: -0.015em;
}

.hero-feature__excerpt {
  font-size: 13.5px;
  opacity: 0.9;
  margin-bottom: 10px;
  max-width: 95%;
  line-height: 1.45;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  border-left: 1px solid var(--gray-200);
  background: var(--white);
}

.story-row {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--gray-200);
  flex: 1;
  align-items: center;
  min-height: 0;
}

.story-row:last-child {
  border-bottom: none;
}

.story-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-row__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 5px;
}

.story-row__title a:hover {
  color: var(--red);
}

.story-row__thumb {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 2px;
}

.story-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.story-row__thumb:hover img {
  transform: scale(1.06);
}

/* Home: top stories sits under hero, fills beside sidebar */
.content-main > .top-stories {
  margin-top: 0;
}

.stories-grid--home {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sidebar--home {
  position: sticky;
  top: 58px;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 12px 14px;
}

.widget__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--navy);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

/* Latest news list */
.latest-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.latest-list li:first-child {
  padding-top: 0;
}

.latest-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.latest-list__num {
  font-size: 17px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
  min-width: 16px;
}

.latest-list__body {
  flex: 1;
  min-width: 0;
}

.latest-list__body h3 {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.latest-list__body h3 a:hover {
  color: var(--red);
}

.latest-list__body time {
  font-size: 11px;
  color: var(--gray-600);
  margin-top: 3px;
  display: block;
}

.latest-list__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 2px;
}

.latest-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Watch Live widget */
.widget-live {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 14px;
}

.widget-live__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}

.widget-live__head h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.widget-live__brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 2px 0 4px;
}

.widget-live__desc {
  font-size: 11.5px;
  opacity: 0.85;
  margin-bottom: 10px;
  line-height: 1.35;
}

.widget-live__preview {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.widget-live__preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(225, 6, 0, 0.92);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}

.play-btn:hover {
  transform: scale(1.08);
  background: var(--red);
}

.btn-watch {
  display: block;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-watch:hover {
  background: var(--red-dark);
}

/* Follow us */
.follow-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 4px;
}

.follow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-600);
  width: calc(20% - 4px);
  min-width: 40px;
}

.follow-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.2s;
}

.follow-item:hover .follow-item__icon {
  transform: scale(1.08);
}

.follow-item__icon--fb { background: #1877f2; }
.follow-item__icon--x { background: #000; }
.follow-item__icon--yt { background: #ff0000; }
.follow-item__icon--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.follow-item__icon--wa { background: var(--whatsapp); }
.follow-item__icon--tt { background: #000; }

/* Newsletter */
.widget-newsletter__text {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.35;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  padding: 9px;
  border-radius: 2px;
  margin-bottom: 8px;
  transition: filter 0.2s;
}

.btn-whatsapp:hover {
  filter: brightness(0.95);
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-right: none;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.newsletter-form input:focus {
  border-color: var(--navy);
}

.newsletter-form button {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  padding: 8px 12px;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--navy-mid);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 14px 16px 16px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

.section__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--navy);
}

.section__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.section__more:hover {
  text-decoration: underline;
}

/* Top stories grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.story-card__img {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 10;
  margin-bottom: 8px;
}

.story-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.story-card:hover .story-card__img img {
  transform: scale(1.05);
}

.story-card .tag {
  margin-bottom: 6px;
}

.story-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.story-card__title a:hover {
  color: var(--red);
}

.story-card__time {
  font-size: 12px;
  color: var(--gray-600);
}

/* Category tiles */
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.category-tile {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
  background: var(--navy) center / cover no-repeat;
  background-image: linear-gradient(rgba(0, 26, 77, 0.55), rgba(0, 43, 117, 0.65)), var(--bg);
  transition: transform 0.25s;
}

.category-tile:hover {
  transform: translateY(-3px);
}

.category-tile span {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 6px 8px;
  background: rgba(0, 43, 117, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   MOBILE DRAWER
   ======================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 16px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mobile-drawer__nav a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--navy);
}

.mobile-drawer__nav .btn-support {
  margin-top: 16px;
  justify-content: center;
  border: none;
}

/* ========================================
   BOTTOM NAV (mobile)
   ======================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  background: none;
  border: none;
  font-family: inherit;
}

.bottom-nav__item.is-active,
.bottom-nav__item:hover {
  color: var(--white);
}

/* ========================================
   DARK MODE
   ======================================== */
body.dark {
  --white: #0d1520;
  --off-white: #081018;
  --gray-100: #152030;
  --gray-200: #1e2d40;
  --text: #e8edf4;
  --gray-600: #9aa8b8;
  background: var(--off-white);
  color: var(--text);
}

body.dark .site-header,
body.dark .mobile-header,
body.dark .hero,
body.dark .widget,
body.dark .section,
body.dark .breaking {
  background: #0d1520;
  border-color: #1e2d40;
}

body.dark .logo__name {
  color: #e8edf4;
}

body.dark .logo__mark {
  background: #e8edf4;
  color: var(--navy);
}

body.dark .icon-btn {
  color: #e8edf4;
}

body.dark .dropdown {
  background: #0d1520;
  border-color: #1e2d40;
}

body.dark .dropdown a {
  color: #e8edf4;
  border-color: #1e2d40;
}

body.dark .widget__title,
body.dark .section__title {
  color: #e8edf4;
  border-color: #e8edf4;
}

body.dark .newsletter-form input {
  background: #152030;
  color: #e8edf4;
  border-color: #1e2d40;
}

body.dark .mobile-drawer__panel {
  background: #0d1520;
}

body.dark .mobile-drawer__nav a {
  color: #e8edf4;
  border-color: #1e2d40;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .hero {
    grid-template-columns: 1.2fr 1fr;
  }

  .stories-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .header-banner {
    max-width: 360px;
  }

  .logo__tagline {
    display: none;
  }
}

@media (max-width: 960px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar--home {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .widget-newsletter {
    grid-column: 1 / -1;
  }

  .hero-feature,
  .hero-feature__link {
    min-height: 300px;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-secondary {
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }
}

@media (max-width: 768px) {
  .top-bar,
  .site-header,
  .main-nav {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .bottom-nav {
    display: flex;
  }

  .main {
    padding: 12px 0 80px;
  }

  .breaking {
    background: var(--red);
    border: none;
    padding: 8px 0;
  }

  .breaking__badge {
    display: none;
  }

  .breaking__scroll a {
    color: var(--white);
  }

  .breaking__scroll time {
    color: rgba(255, 255, 255, 0.75);
  }

  .breaking__track {
    mask-image: none;
  }

  .hero {
    padding: 0;
    border: none;
    gap: 0;
  }

  .hero {
    border: 1px solid var(--gray-200);
  }

  .hero-feature,
  .hero-feature__link {
    min-height: 280px;
  }

  .hero-feature__title {
    font-size: 20px;
  }

  .hero-feature__excerpt {
    display: none;
  }

  .hero-secondary {
    border-left: none;
    border-top: 1px solid var(--gray-200);
    padding: 0;
  }

  .sidebar,
  .sidebar--home {
    display: flex;
    flex-direction: column;
    position: static;
  }

  .stories-grid,
  .stories-grid--home {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 16px;
    margin-top: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    padding-bottom: 70px;
  }
}

@media (max-width: 480px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-row__thumb {
    width: 72px;
    height: 72px;
  }

  .hero-feature__overlay {
    padding: 16px;
  }

  .top-bar__meta {
    display: none;
  }
}
