/* ============================================================
   PNTV AFRICA — HOMEPAGE CSS
   ============================================================
   Homepage-specific styles only.

   app.css handles:
   - Global reset
   - Base typography
   - Header
   - Navigation
   - Search
   - Footer
   - Shared site elements

   home.css handles:
   - Homepage sections
   - Hero
   - Trending
   - Latest
   - Top Stories
   - County Briefs
   - Editor's Pick
   - Culture & Arts
   - Videos
   - Podcasts
   - Programmes
   - Newsletter
   - Homepage responsive layout

   BRAND
   Navy:       #05305A
   Dark Navy:  #021F3A
   Gold:       #FFCA26
   Orange:     #FF8C1A
   White:      #FFFFFF
   ============================================================ */


/* ============================================================
   1. HOMEPAGE VARIABLES
   ============================================================ */

:root {
  --home-navy: #05305A;
  --home-navy-dark: #021F3A;
  --home-gold: #FFCA26;
  --home-orange: #FF8C1A;

  --home-white: #FFFFFF;
  --home-text: #0F172A;
  --home-muted: #64748B;
  --home-light: #F8FAFC;
  --home-border: #E2E8F0;

  --home-radius-sm: 5px;
  --home-radius-md: 8px;
  --home-radius-lg: 10px;

  --home-shadow-sm: 0 2px 10px rgba(2, 31, 58, 0.06);
  --home-shadow-md: 0 6px 20px rgba(2, 31, 58, 0.10);

  --home-transition: 180ms ease;
}


/* ============================================================
   2. HOMEPAGE BASE
   ============================================================ */

.home-page {
  width: 100%;
  overflow-x: hidden;
  background: #FFFFFF;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page img {
  display: block;
  max-width: 100%;
}

.home-page a {
  text-decoration: none;
}

.home-page p,
.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-page h5,
.home-page h6 {
  margin-top: 0;
}


/* ============================================================
   3. GENERAL HOMEPAGE SECTIONS
   ============================================================ */

.home-section {
  width: 100%;
  padding: 54px 0;
  background: #FFFFFF;
}

.home-section + .home-section {
  border-top: 1px solid rgba(226, 232, 240, 0.55);
}


/* ============================================================
   4. MAIN SECTION HEADERS
   ============================================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--home-navy) !important;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  word-spacing: normal;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  margin-right: 10px;
  flex: 0 0 4px;
  border-radius: 3px;
  background: var(--home-gold);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--home-navy) !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--home-transition);
}

.view-all::after {
  content: "→";
  font-size: 15px;
  transition: transform var(--home-transition);
}

.view-all:hover {
  color: var(--home-orange) !important;
}

.view-all:hover::after {
  transform: translateX(3px);
}


/* ============================================================
   5. SMALL SECTION HEADERS
   ============================================================ */

.section-header-sm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--home-navy) !important;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  word-spacing: normal;
}

.section-title-sm .dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--home-gold);
}

.view-all-sm {
  color: var(--home-muted) !important;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}

.view-all-sm:hover {
  color: var(--home-navy) !important;
}


/* ============================================================
   6. TRENDING + LATEST
   ============================================================ */

.trending-latest-section {
  width: 100%;
  padding: 34px 0 48px;
  background: #FFFFFF;
}

.trending-latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.85fr);
  gap: 38px;
  align-items: start;
}

.trending-col,
.latest-col,
.main-trending-col {
  min-width: 0;
}


/* ============================================================
   TRENDING CARDS
   ============================================================ */

.trending-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trending-card {
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition),
    border-color var(--home-transition);
}

.trending-card:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 48, 90, 0.18);
  box-shadow: var(--home-shadow-md);
}

.trending-image-link {
  display: block;
  overflow: hidden;
  background: #E2E8F0;
}

.trending-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.trending-card:hover .trending-image {
  transform: scale(1.025);
}

.trending-content {
  padding: 13px 14px 15px;
  background: #FFFFFF;
}

.trending-cat {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--home-orange) !important;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.trending-title {
  margin: 0 0 9px;
  color: var(--home-text) !important;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: normal;
  word-spacing: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.trending-title a {
  color: var(--home-text) !important;
}

.trending-title a:hover {
  color: var(--home-navy) !important;
}

.trending-author {
  color: var(--home-muted) !important;
  font-size: 11px;
  line-height: 1.4;
}

.views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--home-muted) !important;
  font-size: 10px;
}


/* ============================================================
   MAIN TRENDING FEATURE
   ============================================================ */

.main-trending-card {
  overflow: hidden;
  background: var(--home-navy);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
}

.main-trending-image-link {
  display: block;
  overflow: hidden;
}

.main-trending-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms ease;
}

.main-trending-card:hover .main-trending-image {
  transform: scale(1.02);
}

.main-trending-content {
  padding: 18px 20px 20px;
  background: var(--home-navy);
}

.main-trending-cat {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--home-gold) !important;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-trending-title {
  margin: 0 0 10px;
  color: #FFFFFF !important;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: normal;
  word-spacing: normal;
}

.main-trending-title a {
  color: #FFFFFF !important;
}

.main-trending-title a:hover {
  color: var(--home-gold) !important;
}

.main-trending-content .time {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 11px;
}


/* ============================================================
   LATEST LIST
   ============================================================ */

.latest-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--home-border);
}

.latest-list-item {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--home-border);
}

.latest-list-cat {
  display: block;
  margin-bottom: 5px;
  color: var(--home-orange) !important;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.latest-list-title {
  margin: 0;
  color: var(--home-text) !important;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: normal;
  word-spacing: normal;
}

.latest-list-title a {
  color: var(--home-text) !important;
}

.latest-list-title a:hover {
  color: var(--home-navy) !important;
}


/* ============================================================
   7. HERO SECTION
   ============================================================ */

.home-hero {
  width: 100%;
  padding: 48px 0 54px;
  background: var(--home-light);
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
}

.home-hero .section-header {
  margin-bottom: 22px;
}

.home-hero .section-title {
  color: var(--home-navy) !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}


/* ============================================================
   HERO FEATURED
   ============================================================ */

.hero-featured {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background: var(--home-navy);
  border-radius: var(--home-radius-lg);
  box-shadow: var(--home-shadow-md);
}

.hero-image-link {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.hero-featured:hover .hero-image {
  transform: scale(1.025);
}

.hero-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(2, 31, 58, 0.96) 0%,
      rgba(2, 31, 58, 0.74) 34%,
      rgba(2, 31, 58, 0.16) 68%,
      rgba(2, 31, 58, 0.02) 100%
    );
}

.hero-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 34px 30px;
}

.hero-category {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--home-navy) !important;
  background: var(--home-gold);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  max-width: 820px;
  margin: 0 0 12px;
  color: #FFFFFF !important;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: normal;
  word-spacing: normal;
}

.hero-title a {
  color: #FFFFFF !important;
}

.hero-title a:hover {
  color: var(--home-gold) !important;
}

.hero-excerpt {
  max-width: 760px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 13px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 11px;
  line-height: 1.4;
}


/* ============================================================
   HERO SIDE STORIES
   ============================================================ */

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-side-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 112px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition);
}

.hero-side-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.hero-side-image-link {
  display: block;
  overflow: hidden;
}

.hero-side-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.hero-side-item:hover .hero-side-image {
  transform: scale(1.035);
}

.hero-side-content {
  min-width: 0;
  padding: 13px 14px;
  background: #FFFFFF;
}

.hero-side-title {
  margin: 0 0 8px;
  color: var(--home-text) !important;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 750;
  letter-spacing: normal;
  word-spacing: normal;
}

.hero-side-title a {
  color: var(--home-text) !important;
}

.hero-side-title a:hover {
  color: var(--home-navy) !important;
}

.hero-side-date {
  color: var(--home-muted) !important;
  font-size: 10px;
  line-height: 1.3;
}


/* ============================================================
   8. TOP STORIES + COUNTY BRIEFS
   ============================================================ */

.top-county-section {
  width: 100%;
  padding: 54px 0;
  background: #FFFFFF;
}

.top-county-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 38px;
  align-items: start;
}

.top-stories-block,
.county-briefs-block {
  min-width: 0;
}


/* ============================================================
   TOP STORIES
   ============================================================ */

.top-stories-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.top-story-card {
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition);
}

.top-story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.top-story-rank {
  display: none !important;
}

.top-story-image-link {
  display: block;
  overflow: hidden;
}

.top-story-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.top-story-card:hover .top-story-image {
  transform: scale(1.025);
}

.top-story-body {
  padding: 13px 14px 15px;
  background: #FFFFFF;
}

.top-story-title {
  margin: 0 0 8px;
  color: var(--home-text) !important;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: normal;
  word-spacing: normal;
}

.top-story-title a {
  color: var(--home-text) !important;
}

.top-story-title a:hover {
  color: var(--home-navy) !important;
}

.top-story-meta {
  color: var(--home-muted) !important;
  font-size: 10px;
  line-height: 1.4;
}


/* ============================================================
   COUNTY BRIEFS
   ============================================================ */

.county-briefs-list {
  border-top: 1px solid var(--home-border);
}

.county-brief-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--home-border);
}

.county-brief-title {
  min-width: 0;
  margin: 0;
  color: var(--home-text) !important;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: normal;
  word-spacing: normal;
}

.county-brief-title a {
  color: var(--home-text) !important;
}

.county-brief-title a:hover {
  color: var(--home-navy) !important;
}

.county-brief-county {
  display: block;
  margin-top: 5px;
  color: var(--home-orange) !important;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.county-brief-date {
  align-self: center;
  color: var(--home-muted) !important;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.view-all-small {
  display: inline-flex;
  margin-top: 15px;
  color: var(--home-navy) !important;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 750;
}

.view-all-small:hover {
  color: var(--home-orange) !important;
}


/* ============================================================
   9. EDITOR'S PICK
   ============================================================ */

.editors-pick-section {
  width: 100%;
  padding: 54px 0;
  background: var(--home-light);
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
}

.editors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.editors-card {
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition);
}

.editors-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-md);
}

.editors-image-link {
  display: block;
  overflow: hidden;
}

.editors-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.editors-card:hover .editors-image {
  transform: scale(1.025);
}

.editors-content {
  min-height: 170px;
  padding: 17px 17px 18px;
  background: var(--home-navy) !important;
}

.editors-title {
  margin: 0 0 9px;
  color: #FFFFFF !important;
  font-size: 15px;
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: normal;
  word-spacing: normal;
}

.editors-title a {
  color: #FFFFFF !important;
}

.editors-title a:hover {
  color: var(--home-gold) !important;
}

.editors-excerpt {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 11px;
  line-height: 1.55;
}

.editors-meta {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 10px;
  line-height: 1.35;
}


/* ============================================================
   10. CULTURE & ARTS
   ============================================================ */

.culture-section {
  width: 100%;
  padding: 54px 0;
  background: #FFFFFF;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.culture-card {
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition);
}

.culture-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.culture-image-link {
  display: block;
  overflow: hidden;
}

.culture-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.culture-card:hover .culture-image {
  transform: scale(1.025);
}

.culture-content {
  padding: 14px 15px 16px;
  background: #FFFFFF;
}

.culture-title {
  margin: 0 0 8px;
  color: var(--home-text) !important;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: normal;
  word-spacing: normal;
}

.culture-title a {
  color: var(--home-text) !important;
}

.culture-title a:hover {
  color: var(--home-navy) !important;
}

.culture-meta {
  color: var(--home-muted) !important;
  font-size: 10px;
  line-height: 1.35;
}


/* ============================================================
   11. MULTIMEDIA — Videos + Podcasts (Vertical Cards)
   ============================================================ */
.multimedia-section {
  width: 100%;
  padding: 60px 0;
  background: #021F3A !important;
  color: #FFFFFF;
}

.multimedia-section .section-title {
  color: #FFFFFF !important;
}

.multimedia-section .section-title::before {
  background: #FFCA26;
}

.multimedia-section .view-all {
  color: rgba(255, 255, 255, 0.75) !important;
}

.multimedia-section .view-all:hover {
  color: #FFCA26 !important;
}

.multimedia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.multimedia-block {
  min-width: 0;
}

/* ---------- VIDEOS (vertical cards) ---------- */
.video-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.video-mini-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.video-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.video-mini-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0F172A;
}

.video-mini-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.video-mini-card:hover .video-mini-thumb {
  transform: scale(1.05);
}

.video-mini-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* No thumbnail / play button state */
.video-mini-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #05305A, #021F3A);
}

.video-mini-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 202, 38, 0.12);
  border: 2px solid #FFCA26;
  border-radius: 50%;
  color: #FFCA26;
  font-size: 22px;
  transition: transform 200ms ease, background 200ms ease;
}

.video-mini-card:hover .video-mini-placeholder {
  transform: scale(1.08);
  background: rgba(255, 202, 38, 0.2);
}

.video-mini-title {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #0F172A !important;
}

.video-mini-title a {
  color: #0F172A !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-mini-title a:hover {
  color: #FF8C1A !important;
}

/* ---------- PODCASTS (vertical cards) ---------- */
.podcast-mini-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.podcast-mini-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.podcast-mini-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.podcast-mini-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0F172A;
}

.podcast-mini-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.podcast-mini-item:hover .podcast-mini-art {
  transform: scale(1.05);
}

.podcast-mini-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.podcast-mini-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #0F172A !important;
}

.podcast-mini-title a {
  color: #0F172A !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-mini-title a:hover {
  color: #FF8C1A !important;
}

.podcast-mini-episode {
  color: #64748B !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* ============================================================
   12. PROGRAMMES
   ============================================================ */

.programmes-section {
  width: 100%;
  padding: 54px 0;
  background: #FFFFFF;
}

.programmes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.programme-card {
  min-width: 0;
  overflow: hidden;
  background: #05305A !important;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(2, 31, 58, 0.10);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.programme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(2, 31, 58, 0.16);
}

.programme-image-link {
  display: block;
  overflow: hidden;
}

.programme-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.programme-content {
  padding: 15px 16px 17px;
  background: #05305A !important;
}

.programme-name {
  margin: 0 0 6px;
  color: #FFFFFF !important;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: normal;
  word-spacing: normal;
}

.programme-name a {
  color: #FFFFFF !important;
}

.programme-name a:hover {
  color: #FFCA26 !important;
}

.programme-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 11px;
  line-height: 1.5;
}


/* ============================================================
   13. NEWSLETTER — Light background + clear readable card
   ============================================================ */
.newsletter-section {
  width: 100%;
  padding: 70px 0 80px;
  background: #F1F5F9 !important;          /* light background */
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.newsletter-cta {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 36px;
  background: #FFFFFF !important;          /* solid white card */
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(2, 31, 58, 0.12);
  text-align: center;
  border: 1px solid #E2E8F0;
}

/* Heading - dark & strong */
.newsletter-cta h3 {
  margin: 0 0 12px !important;
  color: #05305A !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

/* Description - dark readable text */
.newsletter-cta > p {
  margin: 0 0 28px !important;
  color: #334155 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* Form labels */
.newsletter-cta label,
.newsletter-form label {
  display: block;
  margin-bottom: 8px;
  color: #05305A !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: left;
}

/* Email input */
.newsletter-cta input[type="email"],
.newsletter-form input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  color: #0F172A !important;
  background: #F8FAFC !important;
  border: 2px solid #CBD5E1 !important;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-cta input[type="email"]:focus,
.newsletter-form input[type="email"]:focus {
  border-color: #FFCA26 !important;
  box-shadow: 0 0 0 4px rgba(255, 202, 38, 0.25);
  background: #FFFFFF !important;
}

/* Subscribe button */
.newsletter-cta button,
.newsletter-form button {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  color: #021F3A !important;
  background: linear-gradient(90deg, #FFCA26, #FF8C1A) !important;
  border: none !important;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 140, 26, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.newsletter-cta button:hover,
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 140, 26, 0.45);
}

/* Privacy text */
.newsletter-cta p:last-child,
.newsletter-form + p,
.newsletter-cta .privacy-text {
  margin-top: 18px !important;
  font-size: 13px !important;
  color: #64748B !important;
}

.newsletter-cta a {
  color: #FF8C1A !important;
  font-weight: 600;
  text-decoration: underline;
}

.newsletter-cta a:hover {
  color: #05305A !important;
}

/* Force no gap between newsletter and footer */
.newsletter-section + footer,
.home-page .newsletter-section {
  margin-bottom: 0 !important;
  padding-bottom: 80px;
}

footer {
  margin-top: 0 !important;
}

/* ============================================================
   14. EMPTY STATES
   ============================================================ */

.home-empty {
  padding: 30px;
  color: var(--home-muted);
  background: var(--home-light);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  text-align: center;
  font-size: 13px;
}


/* ============================================================
   15. LARGE TABLETS
   ============================================================ */

@media (max-width: 1199px) {

  .home-section,
  .top-county-section,
  .editors-pick-section,
  .culture-section,
  .programmes-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .home-hero {
    padding-top: 42px;
    padding-bottom: 46px;
  }

  .trending-latest-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    gap: 28px;
  }

  .top-county-grid {
    gap: 28px;
  }

  .hero-featured {
    min-height: 410px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .editors-grid,
  .culture-grid,
  .programmes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-mini-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .podcast-mini-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }
}


/* ============================================================
   16. TABLET
   ============================================================ */

@media (max-width: 900px) {

  .trending-latest-grid,
  .top-county-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .trending-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-featured {
    min-height: 440px;
  }

  .hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-side-item {
    min-height: 110px;
  }

  .top-stories-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .multimedia-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .video-mini-card {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .podcast-mini-card {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .newsletter-section .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter-content {
    max-width: 100%;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-form input {
    flex: 1;
    width: auto;
  }
}


/* ============================================================
   17. MOBILE
   ============================================================ */

@media (max-width: 700px) {

  .home-section,
  .top-county-section,
  .editors-pick-section,
  .culture-section,
  .programmes-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .trending-latest-section {
    padding-top: 28px;
    padding-bottom: 38px;
  }

  .home-hero {
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .section-header,
  .section-header-sm {
    margin-bottom: 17px;
  }

  .section-title {
    font-size: 21px;
  }

  .section-title::before {
    width: 3px;
    height: 19px;
    margin-right: 8px;
    flex-basis: 3px;
  }

  .section-title-sm {
    font-size: 17px;
  }

  .view-all {
    font-size: 11px;
  }


  /* ----------------------------------------------------------
     TRENDING
     ---------------------------------------------------------- */

  .trending-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trending-card {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .trending-image {
    height: 100%;
    min-height: 105px;
    aspect-ratio: auto;
  }

  .trending-content {
    padding: 12px 13px;
  }

  .trending-title {
    font-size: 14px;
  }

  .main-trending-title {
    font-size: 19px;
  }


  /* ----------------------------------------------------------
     HERO
     ---------------------------------------------------------- */

  .hero-featured {
    min-height: 390px;
  }

  .hero-content {
    padding: 23px 21px 22px;
  }

  .hero-title {
    font-size: 27px;
    line-height: 1.15;
  }

  .hero-excerpt {
    font-size: 12px;
    line-height: 1.5;
  }

  .hero-side {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-side-item {
    grid-template-columns: 115px minmax(0, 1fr);
    min-height: 105px;
  }

  .hero-side-image {
    min-height: 105px;
  }


  /* ----------------------------------------------------------
     TOP STORIES
     ---------------------------------------------------------- */

  .top-stories-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .top-story-card {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .top-story-image {
    height: 100%;
    min-height: 105px;
    aspect-ratio: auto;
  }

  .top-story-body {
    padding: 12px 13px;
  }


  /* ----------------------------------------------------------
     COUNTY BRIEFS
     ---------------------------------------------------------- */

  .county-brief-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .county-brief-date {
    align-self: auto;
  }


  /* ----------------------------------------------------------
     EDITOR'S PICK / CULTURE / PROGRAMMES
     ---------------------------------------------------------- */

  .editors-grid,
  .culture-grid,
  .programmes-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .editors-content {
    min-height: 0;
  }

  .editors-title,
  .culture-title {
    font-size: 14px;
  }


  /* ----------------------------------------------------------
     MULTIMEDIA
     ---------------------------------------------------------- */

  .multimedia-section {
    padding: 40px 0;
  }

  .multimedia-grid {
    gap: 26px;
  }

  .multimedia-column-title {
    font-size: 16px;
  }

  .video-mini-card {
    grid-template-columns: 155px minmax(0, 1fr);
    min-height: 110px;
  }

  .video-mini-image-link,
  .video-mini-image {
    min-height: 110px;
  }

  .video-mini-content {
    padding: 13px 14px;
  }

  .video-mini-title {
    font-size: 13px;
  }

  .podcast-mini-card {
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 110px;
  }

  .podcast-mini-image-link,
  .podcast-mini-image {
    min-height: 110px;
  }

  .podcast-mini-content {
    padding: 13px 14px;
  }

  .podcast-mini-title {
    font-size: 13px;
  }


  /* ----------------------------------------------------------
     NEWSLETTER
     ---------------------------------------------------------- */

  .newsletter-section {
    padding: 38px 0;
  }

  .newsletter-section h3 {
    font-size: 21px;
  }

  .newsletter-section p {
    font-size: 12px;
    line-height: 1.55;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}


/* ============================================================
   18. SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

  .section-title {
    font-size: 19px;
  }

  .section-header {
    gap: 12px;
  }


  /* Trending */

  .trending-card,
  .top-story-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .trending-image,
  .top-story-image {
    min-height: 100px;
  }

  .trending-content,
  .top-story-body {
    padding: 10px 11px;
  }

  .trending-title,
  .top-story-title {
    font-size: 13px;
    line-height: 1.35;
  }

  .trending-cat,
  .latest-list-cat {
    font-size: 9px;
  }


  /* Hero */

  .hero-featured {
    min-height: 350px;
  }

  .hero-content {
    padding: 19px 17px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-excerpt {
    display: none;
  }

  .hero-side-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .hero-side-image {
    min-height: 100px;
  }


  /* Multimedia */

  .video-mini-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .video-mini-image-link,
  .video-mini-image {
    min-height: 100px;
  }

  .video-mini-content {
    padding: 11px 12px;
  }

  .video-mini-title {
    font-size: 12px;
  }

  .podcast-mini-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .podcast-mini-image-link,
  .podcast-mini-image {
    min-height: 100px;
  }

  .podcast-mini-content {
    padding: 11px 12px;
  }

  .podcast-mini-title {
    font-size: 12px;
  }
}


/* ============================================================
   19. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}