/* ============================================================
   TechToday 2026 — Landing page redesign
   Hero + Latest News rail, Sponsored banner,
   Numbered Trending grid, dark Most Read sidebar.
   Loaded after theme-2026.css so it wins the cascade.
   ============================================================ */

/* ---------- HERO (large card) + LATEST RAIL ---------- */
.hr-modern .banner-block { padding: 16px 0 8px; }
.hr-modern .banner-block .container { max-width: 1320px; }

.hr-modern .tt-hero2 { margin: 8px 0 20px; }
.hr-modern .tt-hero2-row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.hr-modern .tt-hero2-main-col,
.hr-modern .tt-hero2-rail-col { padding: 0 12px; }

.hr-modern .tt-hero2-main {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 6px 24px rgba(15,23,42,0.08);
  min-height: 400px;
  height: 100%;
}
.hr-modern .tt-hero2-main-link {
  display: block;
  position: relative;
  height: 100%;
  color: #fff;
  text-decoration: none !important;
}
.hr-modern .tt-hero2-media { position: absolute; inset: 0; z-index: 1; }
.hr-modern .tt-hero2-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
}
.hr-modern .tt-hero2-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, rgba(10,15,35,0.92) 0%, rgba(10,15,35,0.72) 38%, rgba(10,15,35,0.10) 62%, rgba(10,15,35,0.00) 78%);
  pointer-events: none;
}
.hr-modern .tt-hero2-overlay { position: absolute; top: 22px; left: 22px; z-index: 4; }
.hr-modern .tt-hero2-featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(79,70,229,0.35);
}
.hr-modern .tt-hero2-body {
  position: absolute;
  left: 32px;
  bottom: 30px;
  right: 45%;
  z-index: 4;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hr-modern .tt-hero2-cat-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: transparent;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 999px;
}
.hr-modern .tt-hero2-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(20px, 2.2vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  color: #fff !important;
  margin: 0 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hr-modern .tt-hero2-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.hr-modern .tt-hero2-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hr-modern .tt-hero2-meta-item .fa { color: rgba(255,255,255,0.75); }
.hr-modern .tt-hero2-meta-dot { opacity: 0.6; }

.hr-modern .tt-hero2-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.78);
  margin-top: 4px;
}
.hr-modern .tt-hero2-byline-item { display: inline-flex; align-items: center; gap: 6px; }
.hr-modern .tt-hero2-byline-sep { opacity: 0.5; }

/* ---- LATEST NEWS RAIL (right column) ---- */
.hr-modern .tt-latest-rail {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(15,23,42,0.04);
}
.hr-modern .tt-latest-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}
.hr-modern .tt-latest-rail-title {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0F172A !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hr-modern .tt-latest-rail-icon { color: #F59E0B; font-size: 16px; }
.hr-modern .tt-latest-rail-link {
  font-size: 12px;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  white-space: nowrap;
}
.hr-modern .tt-latest-rail-link:hover { text-decoration: underline; }

.hr-modern .tt-latest-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hr-modern .tt-latest-rail-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
}
.hr-modern .tt-latest-rail-item:last-child { padding-bottom: 0; border-bottom: none; }
.hr-modern .tt-latest-rail-thumb {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #F3F4F6;
}
.hr-modern .tt-latest-rail-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
}
.hr-modern .tt-latest-rail-body { display: flex; flex-direction: column; gap: 6px; }
.hr-modern .tt-latest-rail-meta { display: none !important; }
.hr-modern .tt-latest-rail-source {
  display: inline-block;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #6D28D9;
  border-radius: 4px;
  line-height: 1.5;
}
.hr-modern .tt-latest-rail-item:nth-child(1) .tt-latest-rail-source,
.hr-modern .tt-latest-rail-item:nth-child(2) .tt-latest-rail-source { background: #5B21B6; }
.hr-modern .tt-latest-rail-item:nth-child(3) .tt-latest-rail-source,
.hr-modern .tt-latest-rail-item:nth-child(4) .tt-latest-rail-source { background: #DC2626; }

.hr-modern .tt-latest-rail-date { font-size: 11px; color: #6B7280; }
.hr-modern .tt-latest-rail-headline {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #0F172A !important;
}
.hr-modern .tt-latest-rail-headline a { color: inherit !important; text-decoration: none; }
.hr-modern .tt-latest-rail-headline a:hover { color: #2563EB !important; }

/* ---------- HERO AD SLOT (replaces the old sponsored banner) ---------- */
.hr-modern .tt-hero-ad-slot {
  margin: 10px 0 24px;
}
.hr-modern .tt-hero-ad-slot .tt-ad-unit {
  margin: 0 !important;
  border-radius: 12px;
  overflow: hidden;
}

/* ---------- SPONSORED BANNER (legacy, unused) ---------- */
.hr-modern .tt-sponsored-banner {
  margin: 10px 0 24px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(49,46,129,0.35);
  position: relative;
}
.hr-modern .tt-sponsored-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 50%, rgba(165,180,252,0.18) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(99,102,241,0.35) 0%, transparent 60%);
  pointer-events: none;
}
.hr-modern .tt-sponsored-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.hr-modern .tt-sponsored-copy { color: #fff; flex: 1 1 420px; }
.hr-modern .tt-sponsored-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.hr-modern .tt-sponsored-title {
  font-family: "Inter", sans-serif !important;
  font-size: clamp(20px, 2.4vw, 28px) !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 6px !important;
  line-height: 1.2 !important;
}
.hr-modern .tt-sponsored-sub { margin: 0; font-size: 14px; color: rgba(255,255,255,0.78); }
.hr-modern .tt-sponsored-cta { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.hr-modern .tt-sponsored-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: #fff;
  color: #1e1b4b !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.hr-modern .tt-sponsored-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.hr-modern .tt-sponsored-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  color: #0050b3;
  line-height: 1;
  min-width: 76px;
}
.hr-modern .tt-sponsored-brand-mark {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0067b8;
  letter-spacing: -0.02em;
}
.hr-modern .tt-sponsored-brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: #0067b8;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.hr-modern .tt-sponsored-brand-tier {
  font-size: 9px;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

/* ---------- TRENDING NOW — numbered overlay grid ---------- */
.hr-modern .tt-trending-section .tt-section-head { align-items: center; }
.hr-modern .tt-trending-section .tt-section-title {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: "Inter", sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0F172A !important;
}
.hr-modern .tt-trending-fire { font-size: 20px; }
.hr-modern .tt-trending-sub {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #6B7280;
  margin-left: 6px;
}

.hr-modern .tt-trending-grid-ranked {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hr-modern .tt-trending-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #F1F5F9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hr-modern .tt-trending-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.hr-modern .tt-trending-card-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.hr-modern .tt-trending-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
}
.hr-modern .tt-trending-rank {
  position: absolute;
  top: 6px;
  left: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow:
    -2px 0 0 #0F172A, 2px 0 0 #0F172A,
    0 -2px 0 #0F172A, 0 2px 0 #0F172A,
    0 6px 16px rgba(0,0,0,0.4);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}
.hr-modern .tt-trending-card-body { padding: 12px 14px 16px; }
.hr-modern .tt-trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #DC2626;
  border-radius: 4px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.hr-modern .tt-trending-pill-dot { font-size: 11px; line-height: 1; }
.hr-modern .tt-trending-card-title {
  font-family: "Inter", sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0F172A !important;
  margin: 0 0 12px !important;
}
.hr-modern .tt-trending-card-title a { color: inherit !important; text-decoration: none; }
.hr-modern .tt-trending-card-title a:hover { color: #2563EB !important; }
.hr-modern .tt-trending-card-meta { display: none !important; }
.hr-modern .tt-trending-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.hr-modern .tt-trending-meta-item .fa { font-size: 11px; opacity: 0.85; }

/* ---------- MOST READ THIS WEEK (sidebar, dark) ---------- */
.hr-modern .tt-mostread-widget {
  background: linear-gradient(180deg, #0B1224 0%, #0F172A 100%);
  border-radius: 14px;
  padding: 22px 18px;
  color: #E2E8F0;
  border: 1px solid #1E293B;
  margin-bottom: 22px;
}
.hr-modern .tt-mostread-head { margin-bottom: 16px; }
.hr-modern .tt-mostread-title {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F8FAFC !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hr-modern .tt-mostread-fire { font-size: 16px; }

.hr-modern .tt-mostread-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.hr-modern .tt-mostread-item {
  display: grid;
  grid-template-columns: 38px 72px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148,163,184,0.15);
}
.hr-modern .tt-mostread-item:last-child { border-bottom: none; }
.hr-modern .tt-mostread-rank {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #94A3B8;
  line-height: 1;
  text-align: left;
}
.hr-modern .tt-mostread-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #1E293B;
}
.hr-modern .tt-mostread-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
}
.hr-modern .tt-mostread-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hr-modern .tt-mostread-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hr-modern .tt-mostread-source {
  display: inline-block;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #6D28D9;
  border-radius: 4px;
  line-height: 1.5;
}
.hr-modern .tt-mostread-item:nth-child(3) .tt-mostread-source,
.hr-modern .tt-mostread-item:nth-child(4) .tt-mostread-source { background: #DC2626; }
.hr-modern .tt-mostread-date { display: none !important; }
.hr-modern .tt-mostread-headline {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #F1F5F9 !important;
}
.hr-modern .tt-mostread-headline a { color: inherit !important; text-decoration: none; }
.hr-modern .tt-mostread-headline a:hover { color: #93C5FD !important; }

.hr-modern .tt-mostread-viewall {
  display: block;
  margin-top: 14px;
  padding: 11px 16px;
  text-align: center;
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 8px;
  color: #E2E8F0 !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}
.hr-modern .tt-mostread-viewall:hover { background: rgba(148,163,184,0.22); }

/* ============================================================
   Responsive breakpoints — keep landing page tight on mobile
   ============================================================ */

/* ── ≤1200px: small desktop — hero gets tighter padding ── */
@media (max-width: 1200px) {
  .hr-modern .tt-hero2-body { right: 38%; bottom: 24px; left: 26px; }
  .hr-modern .tt-trending-grid-ranked { gap: 14px; }
}

/* ── ≤1024px: tablet — hero stacks above rail, trending → 2-col ── */
@media (max-width: 1024px) {
  .hr-modern .banner-block { padding: 12px 0 4px; }
  .hr-modern .tt-hero2 { margin: 4px 0 16px; }
  .hr-modern .tt-hero2-row { flex-direction: column; margin: 0 -8px; }
  .hr-modern .tt-hero2-main-col,
  .hr-modern .tt-hero2-rail-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 8px;
  }
  .hr-modern .tt-hero2-main { min-height: 380px; }
  .hr-modern .tt-hero2-body { right: 30%; }
  .hr-modern .tt-latest-rail { margin-top: 14px; }
  .hr-modern .tt-trending-grid-ranked { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ── ≤768px: phone landscape & small tablets ── */
@media (max-width: 768px) {
  /* Hero: drop the right-side cutoff so text fills the card */
  .hr-modern .tt-hero2-main { min-height: 360px; border-radius: 12px; }
  .hr-modern .tt-hero2-main::after {
    background: linear-gradient(0deg,
      rgba(10,15,35,0.95) 0%,
      rgba(10,15,35,0.78) 35%,
      rgba(10,15,35,0.25) 70%,
      rgba(10,15,35,0.05) 100%);
  }
  .hr-modern .tt-hero2-body {
    left: 18px;
    right: 18px;
    bottom: 18px;
    gap: 10px;
  }
  .hr-modern .tt-hero2-overlay { top: 14px; left: 14px; }
  .hr-modern .tt-hero2-featured-pill { padding: 5px 10px; font-size: 10px; }
  .hr-modern .tt-hero2-cat-pill { padding: 4px 11px; font-size: 9.5px; letter-spacing: 0.14em; }
  .hr-modern .tt-hero2-title {
    font-size: 20px !important;
    line-height: 1.22 !important;
  }
  .hr-modern .tt-hero2-meta { font-size: 12px; flex-wrap: wrap; gap: 8px; }
  .hr-modern .tt-hero2-byline { font-size: 11.5px; gap: 6px; }

  /* Latest rail */
  .hr-modern .tt-latest-rail { padding: 14px; border-radius: 12px; }
  .hr-modern .tt-latest-rail-title { font-size: 12px !important; }
  .hr-modern .tt-latest-rail-item { gap: 10px; padding-bottom: 12px; }

  /* Sponsored banner stacks vertically */
  .hr-modern .tt-sponsored-banner { border-radius: 12px; margin: 8px 0 18px; }
  .hr-modern .tt-sponsored-inner {
    padding: 18px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }
  .hr-modern .tt-sponsored-copy { flex: 1 1 100%; width: 100%; }
  .hr-modern .tt-sponsored-title { font-size: 19px !important; }
  .hr-modern .tt-sponsored-sub { font-size: 13px; }
  .hr-modern .tt-sponsored-cta {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
  .hr-modern .tt-sponsored-btn { padding: 11px 22px; font-size: 12px; flex: 1; justify-content: center; }
  .hr-modern .tt-sponsored-brand { padding: 6px 12px; min-width: 64px; }
  .hr-modern .tt-sponsored-brand-mark { font-size: 16px; }

  /* Trending: 2-col still readable */
  .hr-modern .tt-trending-section .tt-section-head {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hr-modern .tt-trending-section .tt-section-title {
    font-size: 16px !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hr-modern .tt-trending-sub { font-size: 11.5px; }
  .hr-modern .tt-trending-rank {
    font-size: 44px;
    top: 4px;
    left: 8px;
  }
  .hr-modern .tt-trending-card-body { padding: 10px 12px 14px; }
  .hr-modern .tt-trending-card-title { font-size: 13.5px !important; margin: 0 0 10px !important; }
  .hr-modern .tt-trending-card-meta { font-size: 11px; gap: 10px; }
  .hr-modern .tt-trending-pill { font-size: 9.5px; padding: 2px 7px; }

  /* Most-read sidebar */
  .hr-modern .tt-mostread-widget { padding: 18px 14px; border-radius: 12px; }
  .hr-modern .tt-mostread-title { font-size: 12px !important; }
  .hr-modern .tt-mostread-item { grid-template-columns: 30px 64px 1fr; gap: 10px; padding: 12px 0; }
  .hr-modern .tt-mostread-thumb { width: 64px; height: 64px; }
  .hr-modern .tt-mostread-rank { font-size: 24px; }
  .hr-modern .tt-mostread-headline { font-size: 12.5px !important; }
}

/* ── ≤640px: phone portrait ── */
@media (max-width: 640px) {
  .hr-modern .banner-block .container { padding-left: 12px; padding-right: 12px; }

  .hr-modern .tt-hero2-main { min-height: 320px; }
  .hr-modern .tt-hero2-title { font-size: 18px !important; }
  .hr-modern .tt-hero2-body { gap: 8px; bottom: 16px; }
  .hr-modern .tt-hero2-meta { font-size: 11.5px; }
  .hr-modern .tt-hero2-byline { font-size: 11px; }

  /* Trending collapses to single column with horizontal card */
  .hr-modern .tt-trending-grid-ranked {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hr-modern .tt-trending-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: stretch;
  }
  .hr-modern .tt-trending-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 110px;
  }
  .hr-modern .tt-trending-rank {
    font-size: 36px;
    top: 4px;
    left: 6px;
  }
  .hr-modern .tt-trending-card-body { padding: 10px 12px; }
  .hr-modern .tt-trending-card-title { font-size: 13px !important; margin: 0 0 8px !important; }

  /* Latest rail thumbnails tighter */
  .hr-modern .tt-latest-rail-item { grid-template-columns: 72px 1fr; gap: 10px; }
  .hr-modern .tt-latest-rail-thumb { width: 72px; height: 72px; border-radius: 8px; }
  .hr-modern .tt-latest-rail-headline { font-size: 12.5px !important; }
  .hr-modern .tt-latest-rail-source { font-size: 9px; padding: 2px 6px; }
  .hr-modern .tt-latest-rail-date { font-size: 10.5px; }

  /* Sponsored */
  .hr-modern .tt-sponsored-title { font-size: 17px !important; }
  .hr-modern .tt-sponsored-sub { font-size: 12.5px; }

  /* Most read */
  .hr-modern .tt-mostread-item { grid-template-columns: 26px 58px 1fr; gap: 10px; padding: 11px 0; }
  .hr-modern .tt-mostread-thumb { width: 58px; height: 58px; }
  .hr-modern .tt-mostread-rank { font-size: 21px; }
  .hr-modern .tt-mostread-headline { font-size: 12px !important; }
  .hr-modern .tt-mostread-date { font-size: 10px; }
}

/* ── ≤480px: small phones (iPhone SE etc.) ── */
@media (max-width: 480px) {
  .hr-modern .banner-block { padding: 8px 0 2px; }
  .hr-modern .tt-hero2-main { min-height: 280px; }
  .hr-modern .tt-hero2-title { font-size: 17px !important; line-height: 1.25 !important; }
  .hr-modern .tt-hero2-meta { font-size: 11px; gap: 6px; }
  .hr-modern .tt-hero2-meta-dot { display: none; }

  .hr-modern .tt-trending-card { grid-template-columns: 110px 1fr; }
  .hr-modern .tt-trending-card-media { min-height: 95px; }
  .hr-modern .tt-trending-rank { font-size: 30px; }
  .hr-modern .tt-trending-card-title { font-size: 12.5px !important; }
  .hr-modern .tt-trending-card-meta { gap: 8px; }
  .hr-modern .tt-trending-section .tt-section-title { font-size: 14.5px !important; }
  .hr-modern .tt-trending-sub { display: block; width: 100%; margin-left: 0; }

  .hr-modern .tt-sponsored-inner { padding: 16px 14px; }
  .hr-modern .tt-sponsored-cta { flex-wrap: wrap; gap: 10px; }
  .hr-modern .tt-sponsored-btn { width: auto; padding: 10px 18px; }

  .hr-modern .tt-mostread-widget { padding: 16px 12px; }
  .hr-modern .tt-mostread-item { grid-template-columns: 22px 52px 1fr; gap: 8px; }
  .hr-modern .tt-mostread-thumb { width: 52px; height: 52px; }
  .hr-modern .tt-mostread-rank { font-size: 18px; }
  .hr-modern .tt-mostread-headline { font-size: 11.5px !important; line-height: 1.35 !important; }
}

/* ── ≤380px: very small phones — preserve readability ── */
@media (max-width: 380px) {
  .hr-modern .tt-hero2-main { min-height: 260px; }
  .hr-modern .tt-hero2-body { left: 14px; right: 14px; bottom: 14px; }
  .hr-modern .tt-hero2-title { font-size: 15.5px !important; }
  .hr-modern .tt-hero2-featured-pill { padding: 4px 8px; font-size: 9.5px; }

  .hr-modern .tt-trending-card { grid-template-columns: 96px 1fr; }
  .hr-modern .tt-trending-card-media { min-height: 84px; }
  .hr-modern .tt-trending-rank { font-size: 26px; }

  .hr-modern .tt-latest-rail-item { grid-template-columns: 64px 1fr; }
  .hr-modern .tt-latest-rail-thumb { width: 64px; height: 64px; }

  .hr-modern .tt-sponsored-title { font-size: 15.5px !important; }
  .hr-modern .tt-sponsored-cta { flex-direction: column; align-items: stretch; }
  .hr-modern .tt-sponsored-btn { width: 100%; }
  .hr-modern .tt-sponsored-brand { align-self: center; }
}

/* ── Hero excerpt paragraph (below the title on the overlay) ── */
.hr-modern .tt-hero2-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 480px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
  /* Hide excerpt on small screens to avoid crowding the overlay */
  .hr-modern .tt-hero2-excerpt { display: none; }
}

/* ── ≤320px: ultra-small phones (e.g. 310–320px viewports) ── */
@media (max-width: 320px) {
  /* Container & body — no horizontal scroll */
  .hr-modern, .hr-modern body { overflow-x: hidden; }
  .hr-modern .banner-block .container,
  .hr-modern .tt-container { padding-left: 10px !important; padding-right: 10px !important; }

  /* Header — keep logo readable even at 310px */
  .hr-modern .tt-header-main { padding: 0 10px !important; min-height: 64px !important; }
  .hr-modern .tt-brand img { height: 52px !important; max-height: 52px !important; }
  .hr-modern .tt-utility-inner { font-size: 10.5px; padding: 4px 10px; }
  .hr-modern .tt-utility-left span:not(:first-child),
  .hr-modern .tt-utility .tt-dot { display: none; }
  .hr-modern .tt-cat-strip { font-size: 12px; }
  .hr-modern .tt-cat-scroll a { padding: 6px 8px; }

  /* Breaking ticker */
  .hr-modern .tt-breaking-label { font-size: 10px; padding: 4px 8px; }
  .hr-modern .tt-breaking-track a { font-size: 11px; }

  /* Hero */
  .hr-modern .tt-hero2 { margin: 4px 0 12px; }
  .hr-modern .tt-hero2-row { margin: 0 -4px; }
  .hr-modern .tt-hero2-main-col,
  .hr-modern .tt-hero2-rail-col { padding: 0 4px; }
  .hr-modern .tt-hero2-main { min-height: 230px; border-radius: 10px; }
  .hr-modern .tt-hero2-body { left: 12px; right: 12px; bottom: 12px; gap: 6px; }
  .hr-modern .tt-hero2-overlay { top: 10px; left: 10px; }
  .hr-modern .tt-hero2-featured-pill { padding: 3px 7px; font-size: 9px; }
  .hr-modern .tt-hero2-cat-pill { padding: 3px 8px; font-size: 8.5px; letter-spacing: 0.1em; }
  .hr-modern .tt-hero2-title { font-size: 14px !important; line-height: 1.25 !important; }
  .hr-modern .tt-hero2-meta { font-size: 10.5px; gap: 5px; }
  .hr-modern .tt-hero2-byline { font-size: 10px; gap: 4px; margin-top: 2px; }
  .hr-modern .tt-hero2-byline-sep { display: none; }

  /* Latest rail */
  .hr-modern .tt-latest-rail { padding: 12px; border-radius: 10px; }
  .hr-modern .tt-latest-rail-head { margin-bottom: 10px; padding-bottom: 8px; }
  .hr-modern .tt-latest-rail-title { font-size: 11px !important; gap: 6px; }
  .hr-modern .tt-latest-rail-link { font-size: 10.5px; }
  .hr-modern .tt-latest-rail-list { gap: 10px; }
  .hr-modern .tt-latest-rail-item { grid-template-columns: 56px 1fr; gap: 8px; padding-bottom: 10px; }
  .hr-modern .tt-latest-rail-thumb { width: 56px; height: 56px; border-radius: 6px; }
  .hr-modern .tt-latest-rail-headline { font-size: 11.5px !important; line-height: 1.32 !important; }
  .hr-modern .tt-latest-rail-source { font-size: 8.5px; padding: 1px 5px; }
  .hr-modern .tt-latest-rail-date { font-size: 9.5px; }

  /* Sponsored banner */
  .hr-modern .tt-sponsored-banner { margin: 6px 0 14px; border-radius: 10px; }
  .hr-modern .tt-sponsored-inner { padding: 14px 12px; gap: 10px; }
  .hr-modern .tt-sponsored-title { font-size: 14.5px !important; }
  .hr-modern .tt-sponsored-sub { font-size: 11.5px; }
  .hr-modern .tt-sponsored-label { font-size: 9px; }
  .hr-modern .tt-sponsored-btn { padding: 9px 14px; font-size: 11.5px; }
  .hr-modern .tt-sponsored-brand-mark { font-size: 14px; }
  .hr-modern .tt-sponsored-brand-sub { font-size: 9px; }
  .hr-modern .tt-sponsored-brand-tier { font-size: 8px; }

  /* Trending */
  .hr-modern .tt-trending-section .tt-section-head { gap: 4px; }
  .hr-modern .tt-trending-section .tt-section-title { font-size: 13px !important; gap: 6px; }
  .hr-modern .tt-trending-sub { font-size: 10.5px; }
  .hr-modern .tt-trending-grid-ranked { gap: 10px; }
  .hr-modern .tt-trending-card { grid-template-columns: 82px 1fr; border-radius: 10px; }
  .hr-modern .tt-trending-card-media { min-height: 74px; }
  .hr-modern .tt-trending-card-body { padding: 8px 10px; }
  .hr-modern .tt-trending-card-title { font-size: 11.5px !important; margin: 0 0 6px !important; line-height: 1.3 !important; }
  .hr-modern .tt-trending-card-meta { font-size: 10px; gap: 8px; }
  .hr-modern .tt-trending-pill { font-size: 8.5px; padding: 2px 6px; margin-bottom: 6px; }

  /* Most read sidebar */
  .hr-modern .tt-mostread-widget { padding: 14px 10px; border-radius: 10px; }
  .hr-modern .tt-mostread-title { font-size: 11px !important; }
  .hr-modern .tt-mostread-item { grid-template-columns: 20px 46px 1fr; gap: 7px; padding: 9px 0; }
  .hr-modern .tt-mostread-thumb { width: 46px; height: 46px; }
  .hr-modern .tt-mostread-rank { font-size: 15px; }
  .hr-modern .tt-mostread-headline { font-size: 11px !important; line-height: 1.32 !important; }
  .hr-modern .tt-mostread-source { font-size: 8px; padding: 1px 5px; }
  .hr-modern .tt-mostread-date { font-size: 9px; }
  .hr-modern .tt-mostread-viewall { padding: 9px 12px; font-size: 11px; }

  /* Footer */
  .hr-modern .tt-footer-inner { padding-left: 12px; padding-right: 12px; }
  .hr-modern .tt-footer-top { grid-template-columns: 1fr !important; gap: 18px !important; }
  .hr-modern .tt-footer-brand img { height: 56px !important; }
}

/* ============================================================
   MOST READ THIS WEEK — wide variant (main column, horizontal 4-up)
   ============================================================ */
.hr-modern .tt-mostread-wide {
  background: linear-gradient(180deg, #0B1224 0%, #0F172A 100%);
  border-radius: 14px;
  padding: 22px 22px 18px;
  border: 1px solid #1E293B;
  margin: 22px 0;
  color: #E2E8F0;
}
.hr-modern .tt-mostread-wide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148,163,184,0.15);
}
.hr-modern .tt-mostread-wide-title {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F8FAFC !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hr-modern .tt-mostread-wide-fire { font-size: 18px; }
.hr-modern .tt-mostread-wide-link {
  font-size: 12px;
  font-weight: 600;
  color: #93C5FD !important;
  text-decoration: none;
  white-space: nowrap;
}
.hr-modern .tt-mostread-wide-link:hover { color: #DBEAFE !important; text-decoration: underline; }

.hr-modern .tt-mostread-wide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}
.hr-modern .tt-mostread-wide-card {
  display: grid;
  grid-template-columns: 40px 92px 1fr;
  align-items: center;
  gap: 12px;
}
.hr-modern .tt-mostread-wide-rank {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #94A3B8;
  line-height: 1;
  text-align: left;
}
.hr-modern .tt-mostread-wide-thumb {
  display: block;
  width: 92px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: #1E293B;
}
.hr-modern .tt-mostread-wide-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
}
.hr-modern .tt-mostread-wide-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hr-modern .tt-mostread-wide-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hr-modern .tt-mostread-wide-source {
  display: inline-block;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #6D28D9;
  border-radius: 4px;
  line-height: 1.5;
}
.hr-modern .tt-mostread-wide-card:nth-child(3) .tt-mostread-wide-source,
.hr-modern .tt-mostread-wide-card:nth-child(4) .tt-mostread-wide-source { background: #DC2626; }
.hr-modern .tt-mostread-wide-date { font-size: 11px; color: #94A3B8; }
.hr-modern .tt-mostread-wide-headline {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #F1F5F9 !important;
}
.hr-modern .tt-mostread-wide-headline a { color: inherit !important; text-decoration: none; }
.hr-modern .tt-mostread-wide-headline a:hover { color: #93C5FD !important; }

@media (max-width: 1024px) {
  .hr-modern .tt-mostread-wide-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .hr-modern .tt-mostread-wide { padding: 18px 14px 14px; border-radius: 12px; }
  .hr-modern .tt-mostread-wide-title { font-size: 12px !important; }
  .hr-modern .tt-mostread-wide-card { grid-template-columns: 30px 72px 1fr; gap: 10px; }
  .hr-modern .tt-mostread-wide-rank { font-size: 24px; }
  .hr-modern .tt-mostread-wide-thumb { width: 72px; height: 66px; }
  .hr-modern .tt-mostread-wide-headline { font-size: 12.5px !important; }
}
@media (max-width: 380px) {
  .hr-modern .tt-mostread-wide-card { grid-template-columns: 24px 60px 1fr; gap: 8px; }
  .hr-modern .tt-mostread-wide-rank { font-size: 19px; }
  .hr-modern .tt-mostread-wide-thumb { width: 60px; height: 56px; }
  .hr-modern .tt-mostread-wide-headline { font-size: 11.5px !important; }
}

/* ============================================================
   MOST READ SIDEBAR — MINIMAL LIGHT THEME
   Overrides the dark gradient to a clean white card
   ============================================================ */
.hr-modern .tt-mostread-widget {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(15,23,42,0.05) !important;
  color: #0f172a !important;
}
.hr-modern .tt-mostread-head {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 12px !important;
}
.hr-modern .tt-mostread-title {
  color: #0f172a !important;
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
}
.hr-modern .tt-mostread-title .tt-mostread-fire { font-size: 16px; }

.hr-modern .tt-mostread-item {
  border-bottom-color: #f1f5f9 !important;
}
.hr-modern .tt-mostread-rank {
  font-size: 28px;
  font-weight: 800;
  color: #e2e8f0 !important;
  -webkit-text-stroke: 1px #cbd5e1;
  font-family: 'Inter', sans-serif;
}
.hr-modern .tt-mostread-source { display: none !important; }
.hr-modern .tt-mostread-date { color: #94a3b8 !important; font-size: 11px; }
.hr-modern .tt-mostread-headline {
  color: #0f172a !important;
}
.hr-modern .tt-mostread-headline a { color: #1e293b !important; }
.hr-modern .tt-mostread-headline a:hover { color: #2563eb !important; }

.hr-modern .tt-mostread-viewall {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 600;
}
.hr-modern .tt-mostread-viewall:hover {
  background: #eff6ff !important;
  color: #2563eb !important;
}
.hr-modern .tt-mostread-viewall .fa { color: #2563eb; }

/* ============================================================
   NEWS CARD — CLEAN META (date + read time only, no source link)
   ============================================================ */
.hr-modern .tt-meta-clean {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}
.hr-modern .tt-meta-clean .tt-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
}
.hr-modern .tt-meta-clean .tt-meta-date .fa { font-size: 11px; opacity: 0.7; }
.hr-modern .tt-meta-clean .tt-read-time {
  color: #94a3b8;
  font-size: 11.5px;
}
.hr-modern .tt-meta-clean .tt-read-time::before { content: '·'; margin-right: 4px; color: #cbd5e1; }

/* ============================================================
   NEWS HEADLINE FONT — Serif for proper newspaper feel
   Card titles use Georgia/serif; body remains sans-serif
   ============================================================ */
.hr-modern .tt-card-title,
.hr-modern .tt-card-title a {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  color: #0f172a !important;
}
.hr-modern .tt-card-title a:hover { color: #1d4ed8 !important; }

/* Category section card titles also get serif */
.hr-modern .tod-card-title,
.hr-modern .tod-card-title a,
.hr-modern .tod-card-title-lg,
.hr-modern .tod-strip-title a {
  font-family: Georgia, 'Noto Serif', 'Times New Roman', serif !important;
}

/* ============================================================
   HERO IMAGE MOBILE FIX
   height:100% on the link doesn't inherit min-height from the parent,
   so the absolutely-positioned image collapses to 0px height on mobile.
   Adding min-height directly to the link fixes this.
   ============================================================ */
.hr-modern .tt-hero2-main-link { min-height: 400px; }
@media (max-width: 1024px) { .hr-modern .tt-hero2-main-link { min-height: 340px; } }
@media (max-width: 768px)  { .hr-modern .tt-hero2-main-link { min-height: 310px; } }
@media (max-width: 640px)  { .hr-modern .tt-hero2-main-link { min-height: 280px; } }
@media (max-width: 480px)  { .hr-modern .tt-hero2-main-link { min-height: 250px; } }
@media (max-width: 380px)  { .hr-modern .tt-hero2-main-link { min-height: 230px; } }
@media (max-width: 320px)  { .hr-modern .tt-hero2-main-link { min-height: 200px; } }

/* ============================================================
   TOPICS EXPLORE STRIP + INLINE WEATHER
   ============================================================ */

/* Inline weather next to section title */
.hr-modern .tt-inline-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  padding: 5px 14px;
}
.hr-modern .tt-iw-icon { font-size: 16px; line-height: 1; }
.hr-modern .tt-iw-temp {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}
.hr-modern .tt-iw-sep { color: #cbd5e1; }
.hr-modern .tt-iw-city {
  font-size: 13px;
  color: #94a3b8;
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Topic pill row */
.hr-modern .tt-topics-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hr-modern .tt-topics-row::-webkit-scrollbar { display: none; }
.hr-modern .tt-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hr-modern .tt-topic-pill:hover {
  background: var(--tt-primary);
  border-color: var(--tt-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29,78,216,0.18);
  text-decoration: none !important;
}
.hr-modern .tt-topic-emoji { font-size: 14px; line-height: 1; }
.hr-modern .tt-topic-pill-all {
  background: transparent;
  color: var(--tt-primary);
  border-color: var(--tt-primary);
}
.hr-modern .tt-topic-pill-all:hover {
  background: var(--tt-primary);
  color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
  .hr-modern .tt-iw-city { display: none; }
  .hr-modern .tt-iw-sep  { display: none; }
  .hr-modern .tt-topic-pill { padding: 6px 11px; font-size: 12px; gap: 4px; }
  .hr-modern .tt-topic-emoji { font-size: 13px; }
}
@media (max-width: 380px) {
  .hr-modern .tt-topic-pill { padding: 5px 10px; font-size: 12px; }
}

/* ============================================================
   FOOTER LOGO FIX
   (theme-2026.css "don't-squish" rule sets height:auto !important
    which removes the 64px — re-assert it here, loaded after theme)
   ============================================================ */
.hr-modern .tt-footer-brand img {
  height: 52px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}
