/* KU Television and Radio Services (kutv.co.ke) - colours from the KUTV site: red, blush page, charcoal bar, deep red footer */
:root {
  --red: #dd3333; --red-dark: #a3221f; --blush: #ffc9c9; --blush-soft: #fff1f1;
  --charcoal: #2b2b2b; --ink: #333; --muted: #666; --white: #fff; --line: #f0b9b9;
  --radius: 8px; --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Open Sans', Arial, sans-serif; color: var(--ink); background: var(--blush); line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--red-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.topbar { background: #111; color: #ddd; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.brand { padding: 22px 0; }
.logo { display: inline-flex; align-items: flex-end; gap: 14px; text-decoration: none; color: var(--red); }
.logo .ku { font-size: 3.4rem; font-weight: 800; letter-spacing: -2px; line-height: .9; position: relative; padding-right: 30px; }
.logo .tv { position: absolute; right: -6px; top: -14px; background: var(--red); color: #fff; font-size: 1.05rem; letter-spacing: 0;
  border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.logo .tag { font-style: italic; font-weight: 700; font-size: 1.25rem; color: var(--red-dark); padding-bottom: 4px; }
.logo small { display: block; font-style: normal; font-weight: 600; font-size: .8rem; color: var(--charcoal); letter-spacing: .02em; }
.nav { background: var(--charcoal); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: var(--wrap); display: flex; flex-wrap: wrap; }
.nav a { display: block; color: #fff; text-decoration: none; padding: 13px 16px; font-size: .95rem; }
.nav a:hover, .nav a:focus { background: var(--red); }
.nav .yt { margin-left: auto; background: var(--red); }
.nav .yt:hover { background: var(--red-dark); }

/* hero */
.hero { background: var(--red-dark); color: #fff; position: relative; overflow: hidden; }
/* studio photos cross-fading behind a red wash (CSS only, no script) */
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; }
.hero-bg img:nth-child(2) { opacity: 0; animation: heroFade 14s infinite; }   /* first photo always shows; the second fades over it */
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(120,18,16,.92) 0%, rgba(163,34,31,.78) 45%, rgba(163,34,31,.35) 100%); }
@keyframes heroFade { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-bg img:nth-child(2) { animation: none; } }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero h1 { margin: 0 0 .4em; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; }
.hero p { margin: 0 0 1.2em; font-size: 1.05rem; opacity: .95; }
.hero .facts { display: grid; gap: 12px; }
.hero .fact { background: rgba(0,0,0,.18); border-radius: var(--radius); padding: 14px 18px; }
.hero .fact strong { display: block; font-size: 1.15rem; }
.btn { display: inline-block; background: var(--charcoal); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 20px;
  border-radius: 4px; margin: 0 8px 8px 0; border: 2px solid transparent; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; border-color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.15); }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-dark); }

/* sections */
.section { padding: 52px 0; }
.section.white { background: var(--white); }
.section.soft { background: var(--blush-soft); }
.section h2 { margin: 0 0 .3em; font-size: 1.7rem; color: var(--charcoal); }
.section h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-top: 10px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 .4em; font-size: 1.05rem; color: var(--charcoal); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--red); color: #fff; text-align: left; padding: 11px 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
td { padding: 11px 12px; border-top: 1px solid #f3d5d5; vertical-align: top; }
tbody tr:nth-child(even) td { background: #fff7f7; }
td.num, th.num { white-space: nowrap; }
td.num { font-weight: 700; color: var(--red-dark); }
td small { display: block; color: var(--muted); font-style: italic; }
.note { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* watch */
.watch { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.watch .screen { background: var(--charcoal); border-radius: var(--radius); aspect-ratio: 16 / 9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-decoration: none; color: #fff; gap: 10px; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.watch .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.watch .screen::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); z-index: 1; transition: background .3s; }
.watch .screen:hover::before { background: rgba(0,0,0,.1); }
.watch .screen:hover img { transform: scale(1.03); }
.watch .screen .caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px 14px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.watch .play { width: 76px; height: 54px; background: var(--red); border-radius: 14px; position: relative; z-index: 2; }
.watch .play::after { content: ""; position: absolute; left: 31px; top: 15px; border-left: 20px solid #fff; border-top: 12px solid transparent;
  border-bottom: 12px solid transparent; }

/* footer */
.footer { background: var(--red-dark); color: #f6dada; padding: 44px 0 0; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.social { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.social li > a, .social li > span:first-child { text-decoration: none; }
.social li, .social li > a { display: flex; align-items: center; gap: 12px; color: #fff; }
.social li > a:hover strong { text-decoration: underline; }
.social strong { display: block; font-size: .92rem; }
.social span span, .social li > span:last-child { color: #f6dada; font-size: .88rem; }
.social .ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.social .ico.yt { background: #fff; color: var(--red); font-size: .85rem; }
.footer h2 { color: #fff; font-size: 1.3rem; font-weight: 600; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer h2::after { display: none; }
.footer dl { margin: 0; }
.footer dt { font-weight: 700; color: #fff; margin-top: 10px; }
.footer dd { margin: 0; }
.footer a { color: #fff; }
.footer .bottom { margin-top: 36px; background: rgba(0,0,0,.2); padding: 14px 0; font-size: .82rem; }
.footer .bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.notfound { text-align: center; padding: 80px 16px; }
.notfound .code { font-size: 5rem; font-weight: 800; color: var(--red); line-height: 1; }

@media (max-width: 980px) and (min-width: 761px) {
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero .wrap, .watch, .footer .cols { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  .nav a { padding: 11px 12px; font-size: .9rem; }
  .nav .yt { margin-left: 0; }
  .logo .ku { font-size: 2.6rem; }
}
