/* ===== BBC-style home ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Font Faces for BBC Reith Sans */
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 300;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Lt.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 400;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Rg.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 500;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Md.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 700;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Bd.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 900;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_ExBd.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 300;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_LtIt.woff2) format('woff2');
  font-style: italic;
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 400;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_It.woff2) format('woff2');
  font-style: italic;
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 500;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_MdIt.woff2) format('woff2');
  font-style: italic;
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 700;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_BdIt.woff2) format('woff2');
  font-style: italic;
}
@font-face {
  font-family: 'BBC Reith Sans';
  font-display: block;
  font-weight: 900;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_ExBdIt.woff2) format('woff2');
  font-style: italic;
}
@font-face {
  font-family: ReithSans;
  font-display: block;
  font-weight: 300;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Lt.woff2) format('woff2');
}
@font-face {
  font-family: ReithSans;
  font-display: block;
  font-weight: 400;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Rg.woff2) format('woff2');
}
@font-face {
  font-family: ReithSans;
  font-display: block;
  font-weight: 500;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Md.woff2) format('woff2');
}
@font-face {
  font-family: ReithSans;
  font-display: block;
  font-weight: 700;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Bd.woff2) format('woff2');
}
@font-face {
  font-family: ReithSans;
  font-display: block;
  font-weight: 900;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_ExBd.woff2) format('woff2');
}
@font-face {
  font-family: ReithSerif;
  font-display: block;
  font-weight: 300;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_Lt.woff2) format('woff2');
}
@font-face {
  font-family: ReithSerif;
  font-display: block;
  font-weight: 400;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_Rg.woff2) format('woff2');
}
@font-face {
  font-family: ReithSerif;
  font-display: block;
  font-weight: 500;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_Md.woff2) format('woff2');
}
@font-face {
  font-family: ReithSerif;
  font-display: block;
  font-weight: 700;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_Bd.woff2) format('woff2');
}
@font-face {
  font-family: ReithSerif;
  font-display: block;
  font-weight: 900;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_ExBd.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Serif';
  font-display: block;
  font-weight: 300;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_Lt.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Serif';
  font-display: block;
  font-weight: 400;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_Rg.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Serif';
  font-display: block;
  font-weight: 500;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_Md.woff2) format('woff2');
}
@font-face {
  font-family: 'BBC Reith Serif';
  font-display: block;
  font-weight: 700;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_Bd.woff2) format('woff2');
  font-style: italic;
}
@font-face {
  font-family: 'BBC Reith Serif';
  font-display: block;
  font-weight: 900;
  src: url(https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSerif_W_ExBdIt.woff2) format('woff2');
  font-style: italic;
}
@font-face {
  font-family:'Freight Disp Light';
  font-display:swap;
  src:url(/https://static.files.bbci.co.uk/bbcdotcom/web/20260126-113039-ddae8f6031-web-2.38.1-3/Freight_Disp_Light.woff2) format('woff2');
}
@font-face {
  font-family:BBCReithSans-fallback;
  size-adjust:103%;
  ascent-override:normal;
  src:local('Arial');
}
@font-face {
  font-family:BBCReithSans-fallback;
  font-weight:500;
  size-adjust:96%;
  ascent-override:normal;
  src:local('Arial Bold');
}
@font-face {
  font-family:BBCReithSerif-fallback;
  size-adjust:120%;
  ascent-override:75%;
  src:local('Times New Roman');
}
@font-face {
  font-family:BBCReithSerif-fallback;
  font-weight:500;
  size-adjust:110%;
  ascent-override:75%;
  src:local('Times New Roman Bold');
}
/* BBC color palette */
:root {
  --bbc-black: #000000;
  --bbc-white: #ffffff;
  --bbc-bg-dark: #202224;
  --bbc-text-muted: #545658;
  --bbc-border: #e6e8ea;
  --bbc-section-rule: #3a3c3e;
  --bbc-text-secondary: #8a8c8e;
  --bbc-bg-light: #d2d4d6;
  --bbc-red: #EB0000;
  --bbc-bg-page: #141618;
  --bbc-bg-off: #f6f6f6;
}

body {
  margin: 0;
  font-family: 'BBC Reith Sans', BBCReithSans-fallback, sans-serif;
  font-size: 16px;
  line-height: 1.125;
  color: var(--bbc-black);
  background: var(--bbc-bg-off);
}

a { color: var(--bbc-black); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header (BBC: light bar, border, active underline) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bbc-white);
  color: var(--bbc-black);
  border-bottom: 1px solid var(--bbc-border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo {
  font-family: 'BBC Reith Sans', BBCReithSans-fallback, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bbc-black);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-image {
  width: 100px;
  height: auto;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bbc-black);
}
.logo:hover { text-decoration: none; color: var(--bbc-black); opacity: 0.85; }

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--bbc-black);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a:hover { text-decoration: none; opacity: 0.85; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--bbc-black);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { opacity: 1; }

/* ===== Nav search ===== */
.nav-search {
  position: relative;
  flex: 0 0 auto;
}
.nav-search-input {
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  padding-right: 2rem;
  border: 1px solid var(--bbc-border);
  border-radius: 4px;
  min-width: 180px;
  max-width: 220px;
  background: var(--bbc-white);
  color: var(--bbc-black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-search-input::placeholder { color: var(--bbc-muted); }
.nav-search-input:hover { border-color: var(--bbc-black); }
.nav-search-input:focus {
  outline: none;
  border-color: var(--bbc-black);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}
.nav-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bbc-white);
  border: 1px solid var(--bbc-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 9999;
  pointer-events: auto;
}
.nav-search-results:not([hidden]) { display: block; }
.nav-search-results a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--bbc-black);
  text-decoration: none;
  border-bottom: 1px solid var(--bbc-border);
  cursor: pointer;
  pointer-events: auto;
}
.nav-search-results a:last-child { border-bottom: none; }
.nav-search-results a:hover,
.nav-search-results a:focus {
  background: var(--bbc-bg-light);
  outline: none;
}
.nav-search-results .nav-search-no-results {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--bbc-muted);
}

/* ===== Hero (home) ===== */
.hero {
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--bbc-bg-light) 0%, var(--bbc-white) 100%);
  border-bottom: 1px solid var(--bbc-border);
}

.hero-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'BBC Reith Sans', BBCReithSans-fallback, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bbc-black);
  margin: 0 0 0.5rem;
}

.hero-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bbc-black);
  margin: 0 0 0.75rem;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bbc-text-secondary);
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--bbc-red);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hero-cta:hover {
  background: var(--bbc-red-hover, #990000);
}

@media (max-width: 768px) {
  .hero { padding: 2rem 1rem; }
  .hero-desc { font-size: 0.9375rem; }
}

/* ===== Section titles (BBC: rule, uppercase, bold 800, optional chevron) ===== */
.section-title {
  font-family: 'BBC Reith Sans', BBCReithSans-fallback, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: black;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid black;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::after {
  content: '›';
  font-size: 1.25rem;
  font-weight: 400;
}

/* ===== Featured (BBC: left 2 cards | center hero | right text-only list) ===== */
.featured {
  padding: 1.5rem 0 2rem;
  background: var(--bbc-white);
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr minmax(0, 320px);
  gap: 1.25rem;
  align-items: start;
}

.featured-hero {
  background: var(--bbc-white);
  overflow: hidden;
}

.featured-hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.featured-hero-link:hover { text-decoration: none; color: inherit; }

.featured-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bbc-bg-light);
}

.featured-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-hero-body {
  padding: 1rem 0 0;
}

.featured-hero-body .card-category {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bbc-red);
  background: none;
  padding: 0;
}

.featured-hero-title {
  font-family: 'BBC Reith Serif', BBCReithSerif-fallback, serif;
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.14;
  color: var(--bbc-black);
}

.featured-hero-link:hover .featured-hero-title { text-decoration: underline; color: var(--bbc-black); }

.featured-hero-desc {
  font-size: 0.875rem;
  line-height: 1.29;
  margin: 0 0 0.5rem;
  color: var(--bbc-text-muted);
}

.featured-hero-body .card-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bbc-black);
}

/* Left column: two small image cards stacked */
.featured-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-secondary-item {
  background: var(--bbc-white);
  overflow: hidden;
  min-height: 0;
}

.featured-secondary-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.featured-secondary-link:hover { text-decoration: none; color: inherit; }

.featured-secondary-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bbc-bg-light);
}

.featured-secondary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-secondary-body {
  padding: 0.75rem 0 0;
  flex: 1;
}

.featured-secondary-body .card-category {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bbc-red);
  background: none;
  padding: 0;
}

.featured-secondary-title {
  font-family: 'BBC Reith Serif', BBCReithSerif-fallback, serif;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--bbc-black);
}

.featured-secondary-link:hover .featured-secondary-title { text-decoration: underline; color: var(--bbc-black); }

.featured-secondary-body .card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bbc-black);
}

/* Right column: text-only teasers (no images) */
.featured-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-teaser {
  border-bottom: 1px solid var(--bbc-border);
  padding: 0.75rem 0;
}

.featured-teaser:first-child {
  padding-top: 0;
}

.featured-teaser-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.featured-teaser-link:hover { text-decoration: none; color: inherit; }

.featured-teaser-title {
  font-family: 'BBC Reith Serif', BBCReithSerif-fallback, serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  color: var(--bbc-black);
}

.featured-teaser-link:hover .featured-teaser-title { text-decoration: underline; }

.featured-teaser-desc {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--bbc-text-muted);
  margin: 0 0 0.5rem;
}

.featured-teaser-meta,
.featured-teaser-category {
  font-size: 0.75rem;
  display: inline;
}

.featured-teaser-meta {
  color: var(--bbc-text-secondary);
  margin-right: 0.5rem;
}

.featured-teaser-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bbc-red);
}

@media (max-width: 1024px) {
  .featured-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "left hero" "right right";
  }
  .featured-left { grid-area: left; }
  .featured-hero { grid-area: hero; }
  .featured-right {
    grid-area: right;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
    border-top: 1px solid var(--bbc-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
  .featured-teaser { border-bottom: none; border-right: 1px solid var(--bbc-border); padding: 0 1rem 0.75rem 0; }
  .featured-teaser:nth-child(2n) { border-right: none; padding-right: 0; }
}

@media (max-width: 900px) {
  .featured-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "hero" "left" "right";
  }
  .featured-left { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .featured-secondary-item { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
  .featured-right {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--bbc-border);
  }
  .featured-teaser { border-right: none; border-bottom: 1px solid var(--bbc-border); padding: 0.75rem 0; }
  .featured-teaser:nth-child(2n) { border-right: none; }
}

@media (max-width: 560px) {
  .featured-secondary-item { flex: 1 1 100%; }
  .featured-hero-title { font-size: 1.375rem; }
}

/* ===== Latest: mixed layout (lead + horizontal cards + grid) ===== */
.latest {
  padding: 2rem 0;
  background: var(--bbc-white);
  border-top: 1px solid var(--bbc-border);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.latest-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
}

/* Whole card clickable */
.card-link-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.card-link-wrap:hover { color: inherit; text-decoration: none; }

.card {
  overflow: hidden;
  border-radius: 6px;
  background: var(--bbc-white);
  border: 1px solid var(--bbc-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bbc-bg-light);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: 1rem 1rem 1.1rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bbc-red);
  margin-bottom: 0.35rem;
  display: block;
}

.card-title {
  font-family: 'BBC Reith Serif', BBCReithSerif-fallback, serif;
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--bbc-black);
}

.card-link-wrap:hover .card-title { text-decoration: underline; }
.card-title a { color: var(--bbc-black); }
.card-title a:hover { text-decoration: underline; }

.card-desc {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.29;
  color: var(--bbc-text-muted);
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bbc-black);
}
.card-link-wrap:hover .card-link { text-decoration: underline; }

/* Lead card: spans 2 columns and 2 rows (left); right column has 2 cards stacked; then 3 in a row */
.card-lead {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.card-lead .card-body { padding: 1.25rem 1.25rem 1.35rem; }

.card-lead .card-title {
  font-size: 1.5rem;
  line-height: 1.2;
}

.card-lead .card-desc {
  font-size: 0.9375rem;
  line-height: 1.35;
}

/* Latest responsive */
@media (max-width: 900px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .card-lead { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 600px) {
  .latest-grid { grid-template-columns: 1fr; }
  .card-lead { grid-column: auto; grid-row: auto; }
  .card-lead .card-title { font-size: 1.25rem; }
}

/* ===== Categories (BBC: section title + grid of cards) ===== */
.categories {
  padding: 2rem 0 2.5rem;
  background: #fff;
}

.category-block {
  margin-bottom: 2.5rem;
}

.category-block:last-child { margin-bottom: 0; }

/* Category header: name + arrows in same row */
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid black;
}

.category-name {
  font-family: 'BBC Reith Sans', BBCReithSans-fallback, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: black;
  margin: 0;
}

.category-carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.carousel-prev,
.carousel-next {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--bbc-border);
  border-radius: 4px;
  background: var(--bbc-white);
  color: var(--bbc-section-rule);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--bbc-section-rule);
  color: var(--bbc-white);
  border-color: var(--bbc-section-rule);
}

/* Carousel: horizontal scroll, scrollbar hidden (arrows used instead) */
.category-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
.category-carousel::-webkit-scrollbar {
  display: none;
}

.category-carousel .category-grid.category-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  grid-template-columns: none;
  padding-bottom: 0.5rem;
}

.category-carousel .card-small {
  flex: 0 0 auto;
  min-width: 280px;
  max-width: 280px;
}

.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-small .card-title { font-size: 1rem; }
.card-small .card-desc { font-size: 0.875rem; }
.card-small .card-category { font-size: 0.6875rem; }
.card-image-small { aspect-ratio: 16 / 9; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Footer (integrated newsletter + main) ===== */
.site-footer {
  background: var(--bbc-white);
  color: var(--bbc-black);
  margin-top: 0;
  border-top: 4px solid var(--bbc-black);
}

.footer-newsletter {
  padding: 2.5rem 0;
  border-bottom: 2px solid var(--bbc-border);
}

.footer-newsletter .newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bbc-bg-off);
  border-radius: 8px;
  border: 1px solid var(--bbc-border);
}

.footer-newsletter .newsletter-title {
  font-family: 'BBC Reith Sans', BBCReithSans-fallback, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bbc-black);
  margin: 0 0 0.5rem;
}

.footer-newsletter .newsletter-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--bbc-text-muted);
  margin: 0 0 1.25rem;
}

.footer-newsletter .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
}

.footer-newsletter .newsletter-input {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 320px;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--bbc-border);
  border-radius: 6px;
  background: var(--bbc-white);
  color: var(--bbc-black);
}

.footer-newsletter .newsletter-input::placeholder {
  color: var(--bbc-text-secondary);
}

.footer-newsletter .newsletter-input:focus {
  outline: none;
  border-color: var(--bbc-black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.footer-newsletter .newsletter-btn {
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bbc-white);
  background: var(--bbc-black);
  border: 2px solid var(--bbc-black);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.footer-newsletter .newsletter-btn:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-1px);
}

.footer-newsletter .newsletter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bbc-white), 0 0 0 4px var(--bbc-black);
}

.footer-main {
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--bbc-black);
  margin: 0 0 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bbc-black);
  margin: 0;
  line-height: 1.4;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-nav a {
  color: var(--bbc-black);
  font-size: 0.9375rem;
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--bbc-black);
  text-decoration: underline;
}

.footer-info {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--bbc-black);
}

.footer-address,
.footer-phone,
.footer-corporate {
  margin: 0 0 0.35rem;
}

.footer-phone a {
  color: var(--bbc-black);
  font-weight: 600;
  text-decoration: none;
}
.footer-phone a:hover {
  color: var(--bbc-black);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bbc-text-muted);
  margin: 0;
  text-align: center;
  padding-top: 1rem;
  border-top: 2px solid var(--bbc-border);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { min-height: 48px; }
  .main-nav ul { gap: 1rem; }
  .main-nav a { font-size: 0.875rem; }
  .section-title { font-size: 0.8125rem; }
  .latest-grid { grid-template-columns: 1fr; }
  .category-carousel .card-small { min-width: 260px; max-width: 260px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-nav ul { justify-content: center; }
}

@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; min-height: 48px; gap: 0.5rem; }
  .nav-search { order: 2; width: 100%; }
  .nav-search-input { max-width: 100%; min-width: 0; }
  .main-nav ul { flex-wrap: wrap; justify-content: flex-end; }
}

/* ===== Article page ===== */
.article-page main {
  padding: 1.5rem 0 3rem;
  background: var(--bbc-white);
}

.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--bbc-text-muted);
  margin-bottom: 0.5rem;
}

.article-meta .article-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bbc-red);
  margin-right: 0.75rem;
}

.article-title {
  font-family: 'BBC Reith Serif', BBCReithSerif-fallback, serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bbc-black);
  margin: 0 0 1rem;
}

.article-lead {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--bbc-text-muted);
  margin: 0 0 2rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-family: 'BBC Reith Sans', BBCReithSans-fallback, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bbc-black);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--bbc-border);
}

.article-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bbc-black);
  margin: 0 0 1rem;
}

.article-body .article-img {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bbc-bg-light);
}

.article-body .article-img img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.article-body .article-img figcaption {
  font-size: 0.8125rem;
  color: var(--bbc-text-secondary);
  padding: 0.5rem 0 0;
}

.article-back {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bbc-black);
  margin-bottom: 1.5rem;
}
.article-back:hover { text-decoration: underline; }

/* About page */
.about-page .about-quote {
  font-family: 'BBC Reith Serif', BBCReithSerif-fallback, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--bbc-black);
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--bbc-red);
  background: var(--bbc-bg-light);
  border-radius: 0 6px 6px 0;
}

.about-page .article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.about-page .article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.about-page .about-themes {
  list-style: none;
  padding-left: 0;
}

.about-page .about-themes li {
  margin-bottom: 0.85rem;
  padding-left: 1rem;
  border-left: 3px solid var(--bbc-border);
}

.about-page .about-picks {
  list-style: none;
  padding-left: 0;
}

.about-page .about-picks li {
  margin-bottom: 0.6rem;
}

.about-page .about-picks a {
  font-weight: 600;
  color: var(--bbc-black);
}

.about-page .about-picks a:hover {
  text-decoration: underline;
  color: var(--bbc-red);
}

.about-page .about-values {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bbc-bg-light);
  border-radius: 8px;
  border: 1px solid var(--bbc-border);
}

.about-page .about-values h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.about-page .about-values ul {
  margin-bottom: 0;
  padding-left: 1.35rem;
}

/* Contact page */
.contact-page .contact-intro {
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--bbc-black);
}

.contact-page .contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  margin-bottom: 3rem;
  background: var(--bbc-bg-light);
  border: 1px solid var(--bbc-border);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .contact-page .contact-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.contact-page .contact-form-wrap {
  min-width: 0;
}

.contact-page .contact-form-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.contact-page .contact-info-block {
  min-width: 0;
  padding-left: 0;
}

.contact-page .contact-info-block h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.contact-page .contact-info-block p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-page .contact-info-block p:last-child {
  margin-bottom: 0;
}

.contact-page .contact-info-block .contact-note {
  font-size: 0.9375rem;
  color: var(--bbc-text-secondary);
  margin-top: 1rem;
}

.contact-page .contact-info-block a {
  color: var(--bbc-black);
  font-weight: 600;
}

.contact-page .contact-info-block a:hover {
  color: var(--bbc-red);
  text-decoration: underline;
}

.contact-page .contact-form {
  max-width: 100%;
}

.contact-page .form-row {
  margin: 0 0 1.25rem;
}

.contact-page .form-row label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bbc-black);
  margin-bottom: 0.35rem;
}

.contact-page .form-row .required {
  color: var(--bbc-red);
}

.contact-page .form-row input,
.contact-page .form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--bbc-border);
  border-radius: 6px;
  background: #fff;
}

.contact-page .form-row input:focus,
.contact-page .form-row textarea:focus {
  outline: 2px solid var(--bbc-red);
  outline-offset: 2px;
  border-color: var(--bbc-red);
}

.contact-page .form-row textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-page .form-row.form-submit {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.contact-page .contact-submit {
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--bbc-red);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-page .contact-submit:hover {
  background: var(--bbc-red-hover, #990000);
}
