/* kenya-visa.co.uk static blog. Keeps the look of the former WordPress theme
   (cards, sidebar, hero banner) with the header/footer colours of the main site. */
:root {
  --yellow: #f2b632;
  --navy: #252839;
  --green: #308d30;
  --green-dark: #24702a;
  --red: #c12424;
  --gold: #d4a64f;
  --bg: #f3f5f3;
  --card: #fff;
  --text: #333;
  --muted: #6b6f75;
  --line: #e4e7ea;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .04);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 Poppins, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s, background .2s; }
a:hover { color: var(--green-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: Poppins, sans-serif; color: #111; line-height: 1.3; font-weight: 600; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* header (matches main site) */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.logo img { height: 74px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a { font: 500 14px/1 Raleway, sans-serif; color: #000; padding: 38px 0 34px; display: block; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: #000; text-decoration: none; border-bottom-color: var(--navy); }
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* hero */
.hero { position: relative; background: var(--navy); }
.hero img { width: 100%; height: 46vh; min-height: 260px; max-height: 520px; object-fit: cover; opacity: .9; }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); padding: 0 16px; }
.hero-title { font-size: 54px; font-weight: 700; margin: 0; line-height: 1.1; }
.hero-sub { font-size: 20px; margin: 8px 0 0; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; padding-top: 42px; padding-bottom: 60px; }
.page-title { font-size: 28px; margin: 0 0 24px; }

/* cards (blog list) */
.card { background: var(--card); margin-bottom: 28px; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 24px 30px 30px; }
.card-title { font-size: 24px; margin: 0 0 6px; }
.card-title a { color: #111; }
.card-title a:hover { color: var(--green); text-decoration: none; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.card-body > p:not(.meta) { font-size: 15px; margin: 0 0 20px; }

/* buttons */
.btn { display: inline-block; background: var(--yellow); color: var(--red); font: 700 14px/1 Raleway, sans-serif; text-transform: uppercase; padding: 16px 36px; border-radius: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.btn:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-read { background: var(--gold); color: #fff; text-transform: none; font: 600 15px/1 Poppins, sans-serif; padding: 13px 25px; border-radius: 3px; box-shadow: none; }
.btn-green { background: var(--green); color: #fff; text-transform: none; font: 600 18px/1 Poppins, sans-serif; padding: 14px 28px; border-radius: 10px; width: 100%; text-align: center; }
.btn-green:hover { background: var(--green-dark); }

/* sidebar */
.sidebar .widget { background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.widget-title { font-size: 18px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.widget-apply { text-align: center; }
.widget-apply img { margin: 0 auto 10px; width: 128px; }
.widget-apply .widget-title { border: 0; padding: 0; }
.steps { text-align: left; margin: 0 0 20px; padding-left: 22px; }
.steps li { margin: 4px 0; }
.mini-posts, .cat-list { list-style: none; margin: 0; padding: 0; }
.mini-posts li + li { margin-top: 14px; }
.mini-posts a { display: flex; gap: 12px; align-items: center; color: #222; font-size: 14px; font-weight: 500; line-height: 1.4; }
.mini-posts a:hover { color: var(--green); text-decoration: none; }
.mini-posts img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.cat-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cat-list span { color: var(--muted); }

/* single post */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 4px; }
.featured { margin: 0; }
.featured img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.post { background: var(--card); padding: 30px 30px 26px; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); }
.post-header h1 { font-size: 34px; margin: 0 0 8px; }
.entry { font-size: 16px; overflow-wrap: break-word; }
.entry h2 { font-size: 26px; margin: 1.8em 0 .6em; scroll-margin-top: 110px; }
.entry h3 { font-size: 21px; margin: 1.6em 0 .5em; scroll-margin-top: 110px; }
.entry h4 { font-size: 18px; margin: 1.4em 0 .5em; }
.entry p { margin: 0 0 1.1em; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry li { margin: .35em 0; }
.entry img { border-radius: 4px; margin: 1em auto; }
.entry blockquote { margin: 1.4em 0; padding: 16px 20px; background: #f2f8f1; border-left: 4px solid var(--green); border-radius: 0 4px 4px 0; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry th { background: #f6f7f6; }
.entry input[type="text"] { width: 100% !important; }
.entry input[type="submit"], .entry button { background: var(--green); color: #fff; border: 0; padding: 12px 24px; border-radius: 6px; font: 600 15px Poppins, sans-serif; cursor: pointer; }
.map-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; border-radius: 6px; overflow: hidden; background: #eee; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry center { display: block; text-align: center; }
.entry iframe:not(.map-embed iframe) { max-width: 100%; }
.post-cats { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* table of contents (replaces the WP plugin; no JS) */
.toc { display: inline-block; min-width: 280px; max-width: 100%; background: #f4f8fc; border: 1px solid #c9d8e6; border-radius: 4px; padding: 12px 20px; margin: 0 0 1.4em; }
.toc summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.toc ol { counter-reset: item; list-style: none; padding-left: 0; margin: 8px 0 0; }
.toc ol ol { padding-left: 1.4em; margin: 2px 0 4px; }
.toc li { margin: 4px 0; font-size: 15px; font-weight: 500; line-height: 1.45; }
.toc li::before { content: counters(item, ".") ". "; counter-increment: item; color: var(--muted); }

/* prev / next, author, related */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.post-nav a { background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 16px 20px; color: #111; font-weight: 600; font-size: 15px; line-height: 1.4; }
.post-nav a:hover { color: var(--green); text-decoration: none; }
.post-nav span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; }
.author-box img { border-radius: 50%; flex: none; width: 100px; height: 100px; }
.author-box h3 { margin: 0 0 6px; font-size: 18px; }
.author-box p { margin: 0; font-size: 15px; }
.related h3 { font-size: 22px; margin: 0 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel { background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.rel img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.rel > div { padding: 14px 16px 18px; }
.rel h4 { font-size: 15px; margin: 0 0 4px; line-height: 1.4; }
.rel h4 a { color: #111; }
.rel .meta { font-size: 13px; margin-bottom: 8px; }
.read-more { font-size: 14px; font-weight: 600; }

/* footer (matches main site) */
.site-footer { background: var(--navy); color: #c9cbd6; padding: 56px 0 30px; font-family: Raleway, sans-serif; }
.foot-cta { text-align: center; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-cta-title { color: #fff; font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.foot-cta p { margin: 0 0 22px; }
.foot-links { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.foot-links li:not(:last-child)::after { content: "|"; color: #fff; margin: 0 10px; }
.foot-links a { color: #fff; font-weight: 600; font-size: 15px; }
.foot-legal { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-legal a { color: #c9cbd6; font-size: 14px; }
.legal-wrap { max-width: 900px; padding-top: 36px; padding-bottom: 60px; }
.legal { border-radius: var(--radius); }
.legal .entry h2 { font-size: 22px; margin-top: 1.6em; }
.legal .entry h3 { font-size: 18px; }
.legal-updated { color: var(--muted); font-size: 14px; }
.disclaimer { font-size: 13px; line-height: 1.6; margin: 26px 0 0; color: #a9acba; }
.disclaimer a, .site-footer a:hover { color: #fff; }
.copyright { text-align: center; margin: 30px 0 0; font-size: 14px; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.to-top:hover { color: #fff; text-decoration: none; background: #000; }

/* responsive */
@media (max-width: 1100px) {
  .main-nav ul { gap: 18px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .widget-apply { position: static; }
  .nav-toggle-btn { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .08); }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-inner { position: relative; min-height: 72px; }
  .logo img { height: 54px; }
  .widget-apply { top: auto; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .card-body, .post { padding: 20px 18px; }
  .card-title { font-size: 20px; }
  .post-header h1 { font-size: 26px; }
  .entry h2 { font-size: 22px; }
  .entry h3 { font-size: 19px; }
  .related-grid, .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .author-box { flex-direction: column; }
  .toc { min-width: 0; width: 100%; }
}
