/*
Theme Name: The History of Nakuru
Theme URI:   https://gicinga.com
Description: A fully self-contained WordPress theme for Nakuru County historical events. Built-in custom post type, taxonomies, shortcodes, newsletter, quiz, timeline, membership, embeddable widget, AdSense, and bilingual English/Swahili support. No separate plugin required. Colours drawn from the official Nakuru County flag: Rift Valley blue, earth brown, savanna green, and flamingo pink.
Version:     1.0.0
Author:      Martin Gichinga
Author URI:  https://gicinga.com
Text Domain: nakuru-history
Tags:        history, nakuru, kenya, rift-valley, flamingo, editorial, custom-menu, custom-logo, featured-images, post-thumbnails, threaded-comments, translation-ready
License:     GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ═══════════════════════════════════════════════
   NAKURU COUNTY DESIGN TOKENS
   Source: Nakuru County official flag (blue/brown/green)
   + Lake Nakuru flamingo identity (pink)
   + Rift Valley landscape (earth/ochre)
═══════════════════════════════════════════════ */
:root {
  /* Nakuru County Flag */
  --blue:        #1B6CA8;
  --blue-deep:   #0F4A78;
  --blue-lt:     #E8F4FD;
  --brown:       #7B4F2E;
  --brown-deep:  #5C3820;
  --brown-lt:    #F5EDE3;
  --green:       #2D7A3A;
  --green-deep:  #1E5228;
  --green-lt:    #EAF5EC;

  /* Flamingo pink — Lake Nakuru */
  --pink:        #E8668A;
  --pink-deep:   #C4476A;
  --pink-lt:     #FDF0F4;
  --pink-pale:   #FAD7E3;

  /* Rift Valley earth tones */
  --ochre:       #C4882A;
  --dust:        #F2E8D8;
  --mist:        #EDF3F7;

  /* Typography */
  --ink:         #1A1208;
  --ink-soft:    #3A2E1A;
  --ink-muted:   #7A6A50;
  --ink-pale:    #B8A898;

  /* UI */
  --border:      rgba(123,79,46,.15);
  --shadow-sm:   0 2px 10px rgba(27,108,168,.10);
  --shadow-md:   0 6px 28px rgba(27,108,168,.16);
  --shadow-lg:   0 16px 60px rgba(27,108,168,.22);
  --r:           4px;
  --rl:          10px;
  --rxl:         16px;

  /* Fonts */
  --serif:  'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --body:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --ui:     'DM Sans', 'Trebuchet MS', sans-serif;

  /* Layout */
  --max:    1140px;
  --gap:    clamp(16px, 4vw, 40px);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--dust);
  color: var(--ink);
  line-height: 1.78;
  background-image:
    radial-gradient(ellipse at 80% 0%,   rgba(27,108,168,.04) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(45,122,58,.04)  0%, transparent 60%);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink-deep); }
p   { margin-bottom: 1.3em; }
h1,h2,h3,h4,h5,h6 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.wrap        { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
.content-row { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 36px 0 64px; }
.content-row.full { grid-template-columns: 1fr; }

/* ═══════════════════════════════════════════════
   COUNTY FLAG RIBBON
═══════════════════════════════════════════════ */
.flag-ribbon { display: flex; height: 7px; }
.fr-blue  { background: var(--blue);  flex: 2; }
.fr-white { background: #fff;         flex: .3; }
.fr-brown { background: var(--brown); flex: 2; }
.fr-white2{ background: #fff;         flex: .3; }
.fr-green { background: var(--green); flex: 2; }

/* ═══════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════ */
.topbar {
  background: var(--blue-deep);
  color: rgba(255,255,255,.75);
  font-family: var(--ui);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-flamingo { color: var(--pink); font-size: .95rem; }
.topbar-left { display: flex; gap: 16px; align-items: center; }

/* ═══════════════════════════════════════════════
   MASTHEAD
═══════════════════════════════════════════════ */
.site-header {
  background: var(--blue-deep);
  position: relative;
  overflow: hidden;
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg,transparent 0 18px,rgba(255,255,255,.02) 18px 20px);
  pointer-events: none;
}
.header-inner {
  padding: 28px var(--gap) 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.site-branding  { display: flex; align-items: center; gap: 18px; }
.logo-icon {
  width: 66px; height: 66px;
  background: var(--pink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.2);
}
.logo-icon img  { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.site-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem,4vw,2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.site-name em   { color: var(--pink); font-style: italic; }
.site-desc {
  font-family: var(--ui);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
  text-align: center;
}
.header-deco { position: absolute; right: 60px; bottom: 0; font-size: 7rem; opacity: .05; pointer-events: none; }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.site-nav {
  background: var(--brown);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.site-nav::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--pink) 33% 66%, var(--blue) 66% 100%);
}
.nav-inner  { display: flex; align-items: center; max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
#main-menu  { list-style: none; display: flex; flex-wrap: wrap; flex: 1; }
#main-menu > li > a {
  display: block;
  color: rgba(255,255,255,.85);
  font-family: var(--ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 15px 16px;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
#main-menu > li > a:hover,
#main-menu > li.current-menu-item > a { color: #fff; border-bottom-color: var(--pink); background: rgba(255,255,255,.08); }
#main-menu li { position: relative; }
#main-menu li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--brown-deep); min-width: 200px; list-style: none;
  border-top: 3px solid var(--pink); box-shadow: var(--shadow-lg); z-index: 200;
}
#main-menu li:hover > ul { display: block; }
#main-menu li ul a { display: block; color: rgba(255,255,255,.8); font-family: var(--ui); font-size: .78rem; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06); transition: background .15s; }
#main-menu li ul a:hover { background: var(--pink-deep); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,.12); border-radius: 20px; overflow: hidden;
}
.nav-search:focus-within { background: rgba(255,255,255,.2); }
.nav-search input {
  background: none; border: none; outline: none; color: #fff;
  font-family: var(--ui); font-size: .8rem; padding: 7px 14px;
  width: 0; transition: width .3s;
}
.nav-search:focus-within input { width: 150px; }
.nav-search input::placeholder { color: rgba(255,255,255,.5); }
.nav-search button { background: none; border: none; color: rgba(255,255,255,.8); padding: 7px 12px; cursor: pointer; }
.lang-sw { display: flex; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
.lang-sw button { background: none; border: none; color: rgba(255,255,255,.6); font-family: var(--ui); font-size: .7rem; font-weight: 700; padding: 5px 10px; cursor: pointer; transition: all .15s; }
.lang-sw button.on, .lang-sw button:hover { background: var(--pink); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 12px; }

/* ═══════════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════════ */
.hero {
  background: var(--blue-deep);
  min-height: 340px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; filter: saturate(.8); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(27,108,168,.8) 0%,rgba(232,102,138,.25) 100%); z-index: 1; }
.hero-body { position: relative; z-index: 2; padding: 52px var(--gap) 46px; max-width: var(--max); margin: 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-kicker { font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--pink); }
.hero-title { font-family: var(--serif); font-size: clamp(1.8rem,5vw,3.4rem); font-weight: 700; color: #fff; line-height: 1.1; max-width: 760px; text-shadow: 0 2px 24px rgba(0,0,0,.4); margin-bottom: 18px; }
.hero-meta  { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--ui); font-size: .8rem; color: rgba(255,255,255,.75); }
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; background: var(--pink); color: #fff; font-family: var(--ui); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 12px 26px; border-radius: var(--r); width: fit-content; transition: background .2s, transform .15s; }
.hero-btn:hover { background: var(--pink-deep); color: #fff; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   DATE RIBBON
═══════════════════════════════════════════════ */
.date-ribbon { background: var(--green); color: #fff; padding: 12px var(--gap); }
.date-ribbon-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.date-ribbon h2 { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; font-style: italic; }
.date-ribbon h2 span { font-family: var(--ui); font-style: normal; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-left: 10px; }
.date-picker { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-size: .8rem; }
.date-picker input[type="date"] { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 10px; border-radius: var(--r); font-family: var(--ui); font-size: .78rem; }
.date-picker input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.date-picker button { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 16px; border-radius: var(--r); font-family: var(--ui); font-size: .78rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.date-picker button:hover { background: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════
   SECTION HEADING
═══════════════════════════════════════════════ */
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.sec-head h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; font-style: italic; white-space: nowrap; }
.sec-head::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
.sec-head::after  { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,var(--brown) 0%,transparent 100%); opacity: .22; }

/* ═══════════════════════════════════════════════
   CATEGORY BADGES
═══════════════════════════════════════════════ */
.cat-badge { display: inline-block; font-family: var(--ui); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--blue); color: #fff; padding: 3px 10px; border-radius: 2px; margin-bottom: 10px; width: fit-content; }
.cat-politics  { background: var(--blue-deep); }
.cat-wildlife  { background: var(--green-deep); }
.cat-flamingo  { background: var(--pink-deep); }
.cat-sports    { background: var(--ochre); color: var(--ink); }
.cat-culture   { background: var(--brown); }
.cat-disaster  { background: #8B2020; }
.cat-economy   { background: #1A5C3A; }
.cat-births    { background: var(--green); }
.cat-deaths    { background: #4a4a4a; }

/* ═══════════════════════════════════════════════
   EVENT CARDS
═══════════════════════════════════════════════ */
.card-lead {
  display: grid; grid-template-columns: 1.1fr 1fr;
  border-radius: var(--rxl); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-md);
  margin-bottom: 30px; border: 1px solid var(--border);
  transition: box-shadow .25s;
}
.card-lead:hover { box-shadow: var(--shadow-lg); }
.card-lead .c-img { aspect-ratio: 4/3; overflow: hidden; }
.card-lead .c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-lead:hover .c-img img { transform: scale(1.04); }
.card-lead .c-body { padding: 28px 30px; display: flex; flex-direction: column; }

.events-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-bottom: 30px; }

.event-card { background: #fff; border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .2s; display: flex; flex-direction: column; border-top: 3px solid var(--pink); }
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-card .c-img { aspect-ratio: 16/9; overflow: hidden; background: var(--mist); }
.event-card .c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .c-img img { transform: scale(1.05); }
.c-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg,var(--blue-lt),var(--pink-lt)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--pink); opacity: .55; }
.c-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.c-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; flex: 1; }
.c-title a { color: var(--ink); }
.c-title a:hover { color: var(--pink-deep); }
.c-title-lg { font-size: 1.5rem; line-height: 1.2; }
.c-meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--ui); font-size: .72rem; color: var(--ink-muted); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.m-year { background: var(--blue-lt); border: 1px solid rgba(27,108,168,.22); border-radius: 3px; padding: 2px 8px; font-weight: 700; color: var(--blue-deep); }
.m-ago  { color: var(--pink-deep); font-weight: 700; }
.m-loc  { color: var(--green); display: flex; align-items: center; gap: 3px; }
.c-excerpt { font-size: .88rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 14px; }
.c-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-deep); margin-top: auto; transition: gap .2s; }
.c-more:hover { color: var(--blue); gap: 10px; }
.c-share { display: flex; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.sh { font-family: var(--ui); font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 3px; text-decoration: none; }
.sh:hover { opacity: .85; color: #fff; }
.sh-wa { background: #25D366; color: #fff; }
.sh-tw { background: #000; color: #fff; }
.sh-fb { background: #1877F2; color: #fff; }
.premium-lock { background: linear-gradient(135deg,var(--pink-lt),var(--pink-pale)); border: 1px solid var(--pink); border-radius: var(--r); padding: 12px 16px; font-family: var(--ui); font-size: .82rem; text-align: center; }
.premium-lock a { color: var(--pink-deep); font-weight: 700; }
.sponsor-row { display: flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: .7rem; color: var(--ink-muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.sponsor-row img { height: 20px; width: auto; border-radius: 2px; }

/* ═══════════════════════════════════════════════
   NAKURU FACTS STRIP
═══════════════════════════════════════════════ */
.nak-strip { background: linear-gradient(135deg,var(--pink-lt),var(--blue-lt)); border: 1px solid rgba(232,102,138,.2); border-radius: var(--rl); padding: 16px 22px; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.nak-fact  { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-size: .8rem; }
.nak-fact .icon { font-size: 1.4rem; }
.nak-fact .lbl  { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); display: block; }
.nak-fact .val  { font-weight: 700; color: var(--ink); font-size: .9rem; }

/* ═══════════════════════════════════════════════
   SINGLE EVENT
═══════════════════════════════════════════════ */
.e-title   { font-family: var(--serif); font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.e-metabar { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 0; border-top: 2px solid var(--pink-pale); border-bottom: 2px solid var(--pink-pale); font-family: var(--ui); font-size: .8rem; margin-bottom: 26px; }
.e-meta    { display: flex; flex-direction: column; gap: 2px; }
.e-meta .lbl { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-pale); }
.e-meta .val { color: var(--ink); font-weight: 600; }
.e-meta .val.pink  { color: var(--pink-deep); }
.e-meta .val.blue  { color: var(--blue); }
.e-meta .val.green { color: var(--green); }
.e-feat-img { margin-bottom: 26px; border-radius: var(--rl); overflow: hidden; box-shadow: var(--shadow-md); }
/* Featured Image */

/* ==================================
   FEATURED IMAGE
================================== */

.e-feat-img{
    margin:40px 0;
}

.e-feat-img img{
    width:100%;
    height:auto;
    max-height:none;
    display:block;
    border-radius:20px;
    object-fit:contain;
}

.e-feat-img figcaption{
    margin-top:12px;
    font-size:.95rem;
    font-style:italic;
    color:#666;
    text-align:center;
}

@media(max-width:768px){

    .e-feat-img{
        margin:20px 0;
    }

    .e-feat-img img{
        border-radius:12px;
    }

}

.e-feat-img figcaption { background: var(--blue-deep); color: rgba(255,255,255,.8); font-family: var(--ui); font-size: .72rem; padding: 8px 16px; font-style: italic; }
.e-content { font-size: 1.04rem; line-height: 1.82; color: var(--ink-soft); }
.e-content blockquote { border-left: 5px solid var(--pink); padding: 14px 22px; margin: 26px 0; background: var(--pink-lt); border-radius: 0 var(--r) var(--r) 0; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--ink-soft); }
.e-sources { background: var(--blue-lt); border: 1px solid rgba(27,108,168,.18); border-radius: var(--rl); padding: 18px 22px; margin-top: 28px; }
.e-sources h4 { font-family: var(--ui); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-deep); margin-bottom: 10px; }
.e-sources a  { display: block; font-size: .82rem; word-break: break-all; padding: 3px 0; color: var(--blue); }
.lang-tog { display: inline-flex; border: 2px solid var(--pink); border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.lang-tog button { padding: 7px 18px; background: none; border: none; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--pink-deep); font-family: var(--ui); transition: all .15s; }
.lang-tog button.on { background: var(--pink); color: #fff; }
.breadcrumbs { font-family: var(--ui); font-size: .74rem; color: var(--ink-muted); margin-bottom: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs span { opacity: .4; }

/* ═══════════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════════ */
.timeline { position: relative; padding-left: 48px; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(to bottom,var(--blue) 0 30px,var(--pink) 30px 60px,var(--brown) 60px 90px,var(--green) 90px 120px); border-radius: 4px; }
.tl-item  { position: relative; margin-bottom: 26px; animation: tl-in .4s ease both; }
@keyframes tl-in { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:translateX(0); } }
.tl-dot   { position: absolute; left: -37px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: var(--pink); border: 3px solid var(--dust); box-shadow: 0 0 0 2px var(--pink); transition: transform .2s; }
.tl-item:hover .tl-dot { transform: scale(1.3); }
.tl-card  { background: transparent; border: 1px solid var(--border); border-radius: var(--rl); padding: 16px 20px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.tl-card:hover { box-shadow: var(--shadow-md); }
.tl-date  { font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 5px; display: block; }
.tl-card h4 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 5px; }
.tl-card h4 a { color: var(--ink); }
.tl-card h4 a:hover { color: var(--pink-deep); }
.tl-loc { font-size: .78rem; color: var(--green); font-family: var(--ui); margin-bottom: 6px; }
.tl-card p { font-size: .85rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ═══════════════════════════════════════════════
   QUIZ
═══════════════════════════════════════════════ */
.quiz-block { background: linear-gradient(135deg,var(--blue-deep),#0a2a3a); color: #fff; border-radius: var(--rl); padding: 26px; position: relative; overflow: hidden; }
.quiz-block::before { content: '🦩'; position: absolute; right: 8px; bottom: -16px; font-size: 7rem; opacity: .07; pointer-events: none; }
.quiz-kicker { font-family: var(--ui); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; }
.quiz-q  { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; line-height: 1.35; }
.quiz-opts { display: flex; flex-direction: column; gap: 9px; }
.quiz-btn { text-align: left; padding: 10px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); color: #fff; font-family: var(--ui); font-size: .88rem; cursor: pointer; transition: all .15s; }
.quiz-btn:hover:not(:disabled) { background: rgba(232,102,138,.25); border-color: var(--pink); }
.quiz-btn.q-correct { background: var(--green); border-color: var(--green); }
.quiz-btn.q-wrong   { background: #8B2020; border-color: #8B2020; }
.quiz-result { margin-top: 14px; padding: 10px 16px; border-radius: var(--r); font-family: var(--ui); font-size: .87rem; font-weight: 600; }
.q-win  { background: rgba(45,122,58,.4);   border: 1px solid var(--green); }
.q-lose { background: rgba(139,32,32,.3);   border: 1px solid #8B2020; }

/* ═══════════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════════ */
.nl-block { background: var(--pink); color: #fff; border-radius: var(--rl); padding: 28px 24px; text-align: center; position: relative; overflow: hidden; }
.nl-block::after { content: '📬'; position: absolute; right: 10px; bottom: -14px; font-size: 5.5rem; opacity: .12; pointer-events: none; }
.nl-block h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 6px; color: #fff; }
.nl-block p  { opacity: .88; font-size: .86rem; margin-bottom: 16px; }
.nl-form { display: flex; flex-direction: column; gap: 9px; }
.nl-form input, .nl-form select { padding: 10px 14px; border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--r); background: rgba(255,255,255,.15); color: #fff; font-family: var(--ui); font-size: .86rem; }
.nl-form input::placeholder { color: rgba(255,255,255,.65); }
.nl-form select option { color: var(--ink); }
.nl-submit { padding: 11px; background: var(--blue-deep); color: #fff; border: none; border-radius: var(--r); font-family: var(--ui); font-size: .86rem; font-weight: 700; cursor: pointer; letter-spacing: .05em; text-transform: uppercase; transition: background .2s; }
.nl-submit:hover { background: var(--brown-deep); }
.nl-ok   { background: rgba(255,255,255,.2); border-radius: var(--r); padding: 10px; margin-bottom: 10px; font-size: .86rem; }
.nl-err  { background: rgba(0,0,0,.2); border-radius: var(--r); padding: 10px; margin-bottom: 10px; font-size: .86rem; }

/* ═══════════════════════════════════════════════
   MEMBERSHIP / PRICING
═══════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 22px; margin: 28px 0; }
.price-card   { border: 2px solid var(--border); border-radius: var(--rl); padding: 28px 24px; background: #fff; text-align: center; position: relative; box-shadow: var(--shadow-sm); }
.price-card.feat { border-color: var(--pink); box-shadow: 0 8px 40px rgba(232,102,138,.18); }
.price-badge  { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font-family: var(--ui); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 16px; border-radius: 12px; white-space: nowrap; }
.price-name   { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; }
.price-amt    { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--pink-deep); line-height: 1; }
.price-amt small { font-size: .82rem; color: var(--ink-muted); display: block; margin-top: 4px; font-family: var(--ui); }
.price-perks  { list-style: none; margin: 16px 0; text-align: left; }
.price-perks li { padding: 6px 0; font-family: var(--ui); font-size: .84rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.price-btn    { display: block; padding: 12px; background: var(--blue); color: #fff; border-radius: var(--r); font-family: var(--ui); font-weight: 700; font-size: .84rem; letter-spacing: .05em; text-transform: uppercase; transition: background .2s; }
.price-btn:hover  { background: var(--blue-deep); color: #fff; }
.feat .price-btn  { background: var(--pink); }
.feat .price-btn:hover { background: var(--pink-deep); }
.donate-box   { background: var(--green-lt); border: 1px solid rgba(45,122,58,.2); border-radius: var(--rl); padding: 24px; text-align: center; margin-top: 26px; }
.donate-box h3 { font-family: var(--serif); margin-bottom: 8px; color: var(--green-deep); }
.donate-btns   { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.donate-btn { padding: 10px 20px; border-radius: var(--r); font-family: var(--ui); font-weight: 700; font-size: .84rem; text-decoration: none; }
.d-paypal  { background: #003087; color: #fff; }
.d-patreon { background: #FF424D; color: #fff; }
.d-mpesa   { font-size: .86rem; color: var(--ink); font-family: var(--ui); }

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sw { background: #fff; border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; box-shadow: var(--shadow-sm); }
.sw-head { background: var(--blue); color: #fff; font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.sw-body { padding: 16px; }
.today-ctr { text-align: center; padding: 22px 18px; background: linear-gradient(160deg,var(--blue-deep) 0%,var(--brown-deep) 100%); color: #fff; }
.ctr-date  { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--pink); }
.ctr-month { font-family: var(--ui); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.ctr-label { font-family: var(--ui); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.ctr-count { margin-top: 14px; background: rgba(232,102,138,.2); border: 1px solid rgba(232,102,138,.3); border-radius: 20px; padding: 5px 14px; font-family: var(--ui); font-size: .78rem; color: var(--pink-pale); display: inline-block; }
.cat-list  { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--border); padding: 8px 0; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; font-family: var(--ui); font-size: .83rem; color: var(--ink-soft); }
.cat-list a:hover { color: var(--pink-deep); }
.cat-cnt  { background: var(--pink-lt); border-radius: 10px; font-size: .7rem; font-weight: 700; padding: 2px 8px; color: var(--pink-deep); }

/* ═══════════════════════════════════════════════
   AD BLOCKS
═══════════════════════════════════════════════ */
.ad-unit { text-align: center; padding: 6px 0; margin: 22px 0; }
.ad-lbl  { font-family: var(--ui); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-pale); margin-bottom: 5px; }

/* ═══════════════════════════════════════════════
   LEADERBOARD
═══════════════════════════════════════════════ */
.lb-list { list-style: none; }
.lb-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.lb-rank { font-size: 1.2em; min-width: 30px; }
.lb-name { flex: 1; font-weight: 600; font-family: var(--ui); font-size: .88rem; }
.lb-pts  { background: var(--pink); color: #fff; padding: 2px 10px; border-radius: 12px; font-size: .8rem; font-weight: 700; font-family: var(--ui); }

/* ═══════════════════════════════════════════════
   WIDGET EMBED
═══════════════════════════════════════════════ */
.embed-box { background: var(--green-lt); border: 1px solid rgba(45,122,58,.2); border-radius: var(--rl); padding: 22px; }
.embed-box h3 { font-family: var(--serif); color: var(--blue-deep); margin-bottom: 8px; }
.embed-box textarea { width: 100%; padding: 10px; font-size: .82rem; border: 1px solid #ccc; border-radius: 6px; font-family: monospace; margin-top: 10px; }

/* ═══════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 34px 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--r); font-family: var(--ui); font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: #fff; transition: all .15s; }
.page-numbers:hover, .page-numbers.current { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ═══════════════════════════════════════════════
   SCROLL-TO-TOP
═══════════════════════════════════════════════ */
#back-top { position: fixed; bottom: 24px; right: 24px; background: var(--pink); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; opacity: 0; transition: opacity .3s, transform .2s; z-index: 500; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; }
#back-top.show { opacity: 1; }
#back-top:hover { transform: translateY(-3px); background: var(--pink-deep); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.78); margin-top: 60px; }
.footer-flag { display: flex; height: 5px; }
.ff-blue { background: var(--blue);  flex: 2; }
.ff-w    { background: #fff;         flex: .3; }
.ff-brn  { background: var(--brown); flex: 2; }
.ff-w2   { background: #fff;         flex: .3; }
.ff-grn  { background: var(--green); flex: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 38px; padding: 46px var(--gap) 38px; max-width: var(--max); margin: 0 auto; }
.ft-brand .ft-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.ft-brand .ft-name em { color: var(--pink); font-style: italic; }
.ft-brand p { font-size: .83rem; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 16px; }
.ft-col h4  { font-family: var(--ui); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ft-col ul  { list-style: none; }
.ft-col ul li { margin-bottom: 8px; }
.ft-col ul a { color: rgba(255,255,255,.55); font-size: .83rem; font-family: var(--ui); transition: color .15s; }
.ft-col ul a:hover { color: var(--pink); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.07); padding: 17px var(--gap); max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--ui); font-size: .72rem; color: rgba(255,255,255,.34); }
.footer-bar a { color: rgba(255,255,255,.5); }
.footer-bar a:hover { color: var(--pink); }

/* ═══════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════ */
.comments-area { margin-top: 38px; padding-top: 30px; border-top: 3px double var(--border); }
.comment-list  { list-style: none; }
.comment       { padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-meta  { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-meta img { width: 40px; height: 40px; border-radius: 50%; }
.comment-author{ font-family: var(--ui); font-weight: 700; font-size: .86rem; }
.comment-date  { font-family: var(--ui); font-size: .72rem; color: var(--ink-muted); }
.comment-body  { font-size: .9rem; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════
   SEARCH RESULTS
═══════════════════════════════════════════════ */
.search-title { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.search-title em { color: var(--pink-deep); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width:900px) {
  .content-row { grid-template-columns: 1fr; }
  .card-lead   { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width:640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  #main-menu    { display: none; flex-direction: column; width: 100%; }
  #main-menu.open { display: flex; }
  .nav-toggle   { display: block; }
  .footer-grid  { grid-template-columns: 1fr; gap: 26px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-nav,.site-footer,.sidebar,.ad-unit,.c-share,#back-top { display: none !important; }
  .content-row { grid-template-columns: 1fr; }
}
.event-scroll-menu {
  background: #8B5E3C;
  padding: 10px 0;
  overflow: hidden;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 12px;
  padding: 0 15px;
  scroll-behavior: smooth;
}

/* Hide scrollbar */
.scroll-container::-webkit-scrollbar {
  display: none;
}
.scroll-container {
  scrollbar-width: none;
}

.scroll-container a {
  display: inline-block;
  padding: 8px 18px;
  background: #fff;
  color: #333;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  flex-shrink: 0;
  transition: 0.3s;
}

.scroll-container a:hover {
  background: #f4e1d2;
}
.event-scroll-menu {
  position: sticky;
  top: 0;
  z-index: 999;
}
.events-page {
  padding: 20px;
}

/* GRID */
.events-grid {
  display: grid;
  gap: 20px;
}

/* Desktop */
@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.event-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

/* IMAGE */
.event-image img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* 🔥 fixes image stretching */
  display: none;
}

/* CONTENT */
.event-content {
  padding: 15px;
}

/* TITLE + YEAR */
.event-title {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

event-title a {
    text-decoration: blue;
    color: #910678;
    font-weight: 900;
}

.event-title a:hover {
  color: #8B5E3C;
}

.event-year {
  font-size: 12px;
  color: #fff;
  background: #8B5E3C;
  padding: 3px 8px;
  border-radius: 6px;
}

/* TEXT */
.event-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.views {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 5px;
}
.views {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
  display: block;
}

/* INTRO */
.intro {
  text-align: center; 
  padding: 40px 20px;
}

/* SECTIONS */
.featured-events,
.popular-events {
  padding: 40px 20px;
}

/* GRID reuse */
.events-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}
.site-content {
  padding-left: 20px;
  padding-right: 20px;
}
.event-image img,
.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.event-card {
  overflow: hidden;
}

.events-grid {
  width: 100%;
}
@media (max-width: 768px) {
  .event-image img,
  .event-card img {
    height: 180px;
  }
}
.home .event-image {
  display: none;
}
.year {
  font-style: italic;
  color: #8B5E3C; /* Nakuru earthy tone */
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
}
.event-card {
  background: transparent;
  padding: 10px 0;
}
.site-founded {
  text-align: center;
  font-style: italic;
  font-size: 12px;
  color: #ddd; /* adjust depending on header background */
  margin-top: 4px;
}
.quiz-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.answers {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.answer-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  transition: all 0.2s ease;
}
.answer-btn:hover {
  background: #eee;
}

.answer-btn:active {
  transform: scale(0.98);
}

#nextBtn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #8B5E3C;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#scoreBox button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .quiz-container {
    padding: 15px;
  }

  .answer-btn {
    font-size: 13px;
    padding: 12px;
  }
}
#quiz-box h3 {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.quiz-container {
  max-width: 600px;
  margin: 0 auto;
}

#quiz-box {
  background: rgba(255,255,255,0.6);
  padding: 15px;
  border-radius: 12px;
}
/* TODAY IN HISTORY WRAPPER */
.today-history {
  padding: 25px 20px;
  margin-bottom: 30px;

  background: #7deea5; /* soft warm contrast */
  border-radius: 12px;
}
@media (max-width: 768px) {
  .today-history {
    padding: 20px 15px;
  }
}
/* LAYOUT */
.content-area {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  padding: 20px;
}

/* MAIN CONTENT */
.main-content {
  max-width: 100%;
}

/* SIDEBAR */
.sidebar {
  background: #f2f2df;
  padding: 10px;
  border-radius: 10px;
}

/* WIDGETS */
.widget {
  margin-bottom: 20px;
}

.widget h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

/* LISTS */
.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  margin-bottom: 8px;
}

.widget a {
  text-decoration: blue;
  color: #057a9e;
}

.widget a:hover {
  color: #8B5E3C;
}

/* MOBILE */
@media (max-width: 768px) {
  .content-area {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin-top: 20px;
  }
  
  .widget a {
  text-decoration: blue;
  color: #057a9e;

}
.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.post-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 15px;
}

.share-buttons {
  margin-top: 25px;
}

.share-buttons a {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 12px;
  background: #8B5E3C;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

.related-posts {
  margin-top: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.related-item img {
  width: 100%;
  border-radius: 6px;
}
.author-page {
  padding: 20px;
}

.author-header {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.author-avatar img {
  border-radius: 50%;
}

.author-bio {
  color: #555;
  max-width: 500px;
}

.author-post {
  margin-bottom: 10px;
}
.author-box {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  padding: 15px;
  background: #f5efe6;
  border-radius: 10px;
}

.author-avatar img {
  border-radius: 50%;
}
.author {
  font-size: 13px;
  color: #777;
  align: center;
}

.author a {
  color: #8B5E3C;
  text-decoration: none;
  font-weight: 500;
}

.author a:hover {
  text-decoration: underline;
}

.brand {
  color: #999;
  font-style: italic;
}

.site-visits {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 12px;
  color: #ccc;
}
.event-date {
  font-size: 20px;
  font-weight: bold;
}

.time-ago {
  color: #8B5E3C;
  font-weight: bold;
  margin-bottom: 10px;
}

.views {
  font-size: 13px;
  color: #777;
}

.highlight-box {
  background: #f4e1d2;
  padding: 15px;
  border-radius: 10px;
}

.related-events .grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
}

.share {
  padding: 8px 12px;
  color: #fff;
  border-radius: 5px;
  margin-right: 5px;
}

.whatsapp { background:#25D366; }
.facebook { background:#1877F2; }
.twitter { background:#000; }

@media (max-width: 768px) {

  .content-area {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin-top: 20px;
  }

  .related-events .grid {
    grid-template-columns: 1fr;
  }

  .event-date {
    font-size: 18px;
  }

  .time-ago {
    font-size: 14px;
  }

}.e-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.e-metabar {
  font-size: 0.85rem;
  opacity: 0.8;
}
.e-feat-img {
  margin: 16px 0;
  overflow: hidden;
  border-radius: 12px;
}

.e-feat-img img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
}
.nh-random-events .sw-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.random-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.random-event-item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.re-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.re-content {
  flex: 1;
}

.re-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.re-meta {
  font-size: 0.75rem;
  color: #777;
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.re-years-ago {
  color: #e91e63;
  font-weight: 600;
}
/* Improved version: SEO, mobile-first, optimized */

.event-card.compact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.event-card.compact .c-img img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
}

.event-card.compact .c-body {
  flex: 1;
}

.event-card.compact .c-excerpt,
.event-card.compact .c-more,
.event-card.compact .sponsor-row,
.event-card.compact .cat-badge {
  display: none;
}

/* Make featured image small like an icon */
.random-event-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.random-event-item img {
  width: 20px;       /* icon size */
  height: 20px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Keep content aligned nicely */
.re-content {
  flex: 1;
}
/* Make featured image small like an icon */
.random-event-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.random-event-item img {
  width: 60px;       /* icon size */
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Keep content aligned nicely */
.re-content {
  flex: 1;
}

.blog-archive {
  padding: 30px 0;
}

/* Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Tablet */
@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-thumb img {
  width: 100%;
  display: block;
}

.post-content {
  padding: 15px;
}

.post-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 8px;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #555;
}

/* FEATURED */
.featured-post {
  margin-bottom: 40px;
}

.featured-post img {
  width: 100%;
  border-radius: 12px;
}

.featured-content {
  padding: 15px 0;
}

.featured-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* GRID */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Tablet */
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CARD */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-thumb img {
  width: 100%;
}

.news-content {
  padding: 12px;
}

.news-date {
  font-size: 0.8rem;
  color: #777;
}

.hero {
  padding: 80px 20px;
  text-align: center;
  background: #1f3d2b;
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
}

.btn-primary {
  background: #2e7d32;
  color: #fff;
  padding: 12px 20px;
  margin: 10px;
  display: inline-block;
}

.btn-secondary {
  border: 1px solid #fff;
  padding: 12px 20px;
}

.explore-grid,
.events-grid,
.places-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .explore-grid,
  .events-grid,
  .places-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-age{
    display:inline-block;
    margin-top:8px;
    padding:4px 12px;
    background:#f4efe5;
    color:#A65A3A;
    border-radius:20px;
    font-size:0.9rem;
    font-weight:600;
}

.event-label{
display:inline-block;
background:#d8ead8;
color:#1d4f3c;
padding:8px 16px;
border-radius:20px;
margin-bottom:20px;
font-weight:600;
}

.event-meta-grid{
display:flex;
flex-wrap:wrap;
gap:15px;
margin:20px 0 30px;
}

.meta-item{
background:#f4f4f4;
padding:10px 15px;
border-radius:8px;
font-size:.95rem;
}

.e-feat-img{
margin:30px 0;
}

.e-feat-img img{
width:100%;
height:auto;
display:block;
border-radius:16px;
}

.e-feat-img figcaption{
margin-top:10px;
color:#666;
font-style:italic;
font-size:.95rem;
}

@media(max-width:768px){

```
.e-title{
    font-size:2.4rem;
    line-height:1.15;
}

.event-meta-grid{
    flex-direction:column;
    gap:10px;
}
```

}

/* ==================================
   EVENT HEADER
================================== */

.event-label{
    display:inline-block;
    background:#d8ead8;
    color:#1d4f3c;
    padding:8px 16px;
    border-radius:20px;
    font-weight:600;
    margin-bottom:20px;
}

.e-title{
    font-size:clamp(2rem,5vw,4rem);
    line-height:1.1;
    margin-bottom:25px;
    color:#0f2c24;
}

.event-meta-grid{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:30px;
}

.meta-item{
    background:#f5f5f5;
    border:1px solid #e5e5e5;
    padding:10px 16px;
    border-radius:10px;
    font-size:.95rem;
}

@media(max-width:768px){

    .event-meta-grid{
        flex-direction:column;
    }

}
.event-section{
    margin:40px 0;
}

.section-title{
    font-size:1.8rem;
    margin-bottom:20px;
    color:#0f2c24;
    border-bottom:2px solid #e5e5e5;
    padding-bottom:10px;
}

/* ==================================
   KEY FACTS CARD
================================== */

.event-facts-card{
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:18px;
    padding:25px;
    margin:30px 0;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.event-facts-card h3{
    margin:0 0 20px;
    color:#0f2c24;
    font-size:1.4rem;
}

.facts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:15px;
}

.fact-item{
    background:#f8f8f8;
    padding:15px;
    border-radius:12px;
}

.fact-label{
    display:block;
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:.05em;
    color:#777;
    margin-bottom:6px;
}

.fact-value{
    display:block;
    font-weight:600;
    color:#222;
}

@media(max-width:768px){

    .facts-grid{
        grid-template-columns:1fr;
    }

}

/* ==================================
   HISTORICAL CONTEXT
================================== */

.event-context-section{
    margin:35px 0;
}

.event-context-box{
    background:#f8f6f1;
    border-left:5px solid #2E5D50;
    padding:25px;
    border-radius:12px;
    line-height:1.8;
    font-size:1rem;
}

.event-context-box p:last-child{
    margin-bottom:0;
}

.section-title{
    margin-bottom:15px;
    color:#0f2c24;
    font-size:1.5rem;
}

/* ===================================
HISTORICAL EVENT PAGE
=================================== */

.event-page{
padding:30px 0 60px;
}

.event-container{
max-width:900px;
margin:0 auto;
padding:0 20px;
}

.event-breadcrumbs{
margin-bottom:25px;
font-size:.95rem;
}

.event-breadcrumbs a{
text-decoration:none;
}

.event-badge{
display:inline-block;
background:#d8ead8;
color:#1d4f3c;
padding:8px 16px;
border-radius:20px;
margin-bottom:20px;
font-weight:600;
}

.event-title{
font-size:clamp(2rem,5vw,4rem);
line-height:1.1;
margin-bottom:25px;
}

.event-meta{
display:flex;
flex-wrap:wrap;
gap:15px;
margin-bottom:30px;
}

.meta-item{
background:#f5f5f5;
padding:10px 15px;
border-radius:10px;
}

.event-image{
margin:30px 0;
}

.event-image img{
width:100%;
height:auto;
display:block;
border-radius:20px;
}

.event-image figcaption{
margin-top:10px;
font-style:italic;
color:#666;
}

.archive-section{
border-top:1px solid #ddd;
padding:15px 0;
}

.archive-section summary{
cursor:pointer;
font-size:1.4rem;
font-weight:700;
}

.archive-content{
margin-top:15px;
line-height:1.9;
}

.facts-list{
margin:0;
padding-left:20px;
}

@media(max-width:768px){

```
.event-meta{
    flex-direction:column;
    gap:10px;
}

.event-title{
    font-size:2.4rem;
}
```

}

