/* =====================================================
   Ewere Okonta Blog (EOB) — Main Stylesheet
   Design: Bold Editorial / Nigerian Newspaper
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=Barlow+Condensed:wght@400;500;600;700;800&family=Barlow:wght@300;400;500&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  /* Brand colours */
  --orange:      #e05a00;
  --orange-lt:   #ff7a2e;
  --orange-dk:   #b34500;
  --orange-glow: rgba(224, 90, 0, 0.15);
  --blue-dk:     #080f1e;
  --blue-md:     #101e38;
  --blue-lt:     #1a3060;
  --blue-accent: #1e4080;
  --cream:       #faf6ef;
  --cream-dk:    #f0e8d8;
  --cream-card:  #fffdf9;
  --white:       #ffffff;
  --grey-dk:     #1e1e1e;
  --grey-md:     #4a4a4a;
  --grey-lt:     #888;
  --grey-rule:   #ddd5c8;
  --border:      #e0d8cc;
  --red:         #c0392b;
  --green:       #1a8a4a;

  /* Typography */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui:   'Barlow Condensed', 'Oswald', sans-serif;
  --font-sans: 'Barlow', sans-serif;

  /* Elevation */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.11);
  --shadow-lg: 0 14px 50px rgba(0,0,0,0.16);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.22);

  /* Spacing / shape */
  --radius:   5px;
  --radius-lg: 10px;
  --transition: 0.22s ease;
  --transition-slow: 0.4s ease;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--grey-dk);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dk); }

/* ====================================================
   UTILITIES
   ==================================================== */
.container       { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-wide  { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.text-center     { text-align: center; }
.text-right      { text-align: right; }
.mt-1 { margin-top: 8px;  }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 28px; }  .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 28px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }

/* ====================================================
   BADGE / LABEL
   ==================================================== */
.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 700;
}
.badge-orange  { background: var(--orange); color: #fff; }
.badge-red     { background: var(--red); color: #fff; }
.badge-green   { background: var(--green); color: #fff; }
.badge-blue    { background: var(--blue-lt); color: #fff; }
.badge-outline { border: 1px solid var(--orange); color: var(--orange); background: transparent; }

/* ====================================================
   BREAKING TICKER
   ==================================================== */
.breaking-ticker {
  background: var(--red);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.breaking-ticker .label {
  background: rgba(0,0,0,0.25);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 11px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ticker-wrap { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: ticker 30s linear infinite;
  padding: 0 20px;
}
.ticker-track span { white-space: nowrap; }
.ticker-track span::before {
  content: '◆';
  margin-right: 12px;
  opacity: 0.6;
  font-size: 8px;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====================================================
   TOP BAR
   ==================================================== */
.topbar {
  background: var(--blue-dk);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 7px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left  { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.topbar-right a:hover { color: var(--orange); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.topbar-social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ====================================================
   SITE HEADER
   ==================================================== */
.site-header {
  background: var(--blue-dk);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-img   { width: 52px; height: 52px; object-fit: contain; }
.logo-text a { display: block; text-decoration: none; }
.logo-text .main {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.logo-text .sub {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 2px;
}

/* ====================================================
   MAIN NAVIGATION
   ==================================================== */
.main-nav {
  background: var(--blue-md);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
}
.nav-links li a {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; }

.nav-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.nav-search:focus-within { border-color: var(--orange); background: rgba(255,255,255,0.1); }
.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  padding: 9px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  width: 200px;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search button {
  background: transparent;
  border: none;
  padding: 9px 14px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color var(--transition);
}
.nav-search button:hover { color: var(--orange); }

/* ====================================================
   HERO SECTION
   ==================================================== */
.hero-section { padding: 32px 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 0.7fr;
  gap: 2px;
  background: var(--grey-rule);
  border: 1px solid var(--grey-rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.hero-main > img,
.hero-main > div:first-child {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-main:hover > img { transform: scale(1.03); }

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(5,10,20,0.95) 0%, rgba(5,10,20,0.7) 50%, transparent 100%);
  padding: 32px 24px 24px;
}
.hero-overlay .cat-label {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 2px;
}
.hero-overlay h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-overlay h2 a { color: #fff; }
.hero-overlay h2 a:hover { color: var(--orange-lt); }

.hero-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }
.hero-meta i { color: var(--orange); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--grey-rule);
}

.hero-side-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--grey-rule);
}

/* ====================================================
   ARTICLE CARDS
   ==================================================== */
.article-card {
  background: var(--cream-card);
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); z-index: 1; position: relative; }

.article-card .thumb {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.article-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .thumb img { transform: scale(1.06); }

.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.card-cat {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}

.card-body h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--grey-dk);
}
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--orange); }

.card-body p {
  font-size: 14px;
  color: var(--grey-md);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.card-meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--grey-lt);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* Horizontal card variant */
.article-card.horizontal { flex-direction: row; }
.article-card.horizontal .thumb { flex-shrink: 0; width: 130px; aspect-ratio: auto; height: auto; }
.article-card.horizontal .thumb img { width: 130px; height: 100%; }
.article-card.horizontal .card-body h3 { font-size: 14px; }

/* ====================================================
   SIDEBAR WIDGETS
   ==================================================== */
.sidebar-widget {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.widget-title {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 13px 20px;
  background: var(--blue-dk);
  color: #fff;
  border-left: 4px solid var(--orange);
}
.widget-body { padding: 20px; }

/* Popular posts */
.popular-list { list-style: none; }
.popular-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.popular-list li:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 800;
  color: var(--cream-dk);
  line-height: 1;
  flex-shrink: 0;
  min-width: 30px;
}
.popular-info h4 { font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.popular-info h4 a { color: var(--grey-dk); }
.popular-info h4 a:hover { color: var(--orange); }
.popular-info small { font-family: var(--font-sans); font-size: 11px; color: var(--grey-lt); }

/* Category list */
.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--grey-dk);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: color var(--transition);
}
.cat-list li a:hover { color: var(--orange); }
.cat-list li a span {
  background: var(--cream-dk);
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-ui);
  font-weight: 600;
}

/* Newsletter widget */
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.newsletter-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.newsletter-form p { font-size: 12px; color: var(--grey-lt); }

/* ====================================================
   SECTION TITLES
   ==================================================== */
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.section-head h2 {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-dk);
}
.section-head .accent-bar { width: 36px; height: 3px; background: var(--orange); flex-shrink: 0; }
.section-head .view-all {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 5px 14px;
  border-radius: 2px;
  transition: all var(--transition);
}
.section-head .view-all:hover { background: var(--orange); color: #fff; }

/* ====================================================
   POST GRIDS & LAYOUT
   ==================================================== */
.posts-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.posts-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.posts-list   { display: flex; flex-direction: column; gap: 16px; }

.main-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 44px;
  padding: 44px 0;
}
.main-content { min-width: 0; }

/* ====================================================
   SINGLE POST PAGE
   ==================================================== */
.post-header { margin-bottom: 32px; }
.post-category-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
}
.post-title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.12;
  color: var(--blue-dk);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--grey-lt);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.post-meta .author-info { display: flex; align-items: center; gap: 10px; }
.post-meta .author-info img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.post-meta .author-info strong { color: var(--grey-dk); font-weight: 500; }
.post-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}
.post-content {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.9;
  color: #1a1a1a;
}
.post-content p { margin-bottom: 24px; }
.post-content h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--blue-dk);
  padding-left: 16px;
  border-left: 4px solid var(--orange);
}
.post-content h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 32px 0 14px; color: var(--blue-dk); }
.post-content blockquote {
  border-left: 5px solid var(--orange);
  margin: 36px 0;
  padding: 22px 28px;
  background: var(--cream-dk);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}
.post-content blockquote::before {
  content: '"';
  font-size: 80px;
  line-height: 1;
  color: var(--orange);
  opacity: 0.2;
  position: absolute;
  top: 8px; left: 12px;
  font-family: var(--font-head);
}
.post-content ul, .post-content ol { margin: 0 0 24px 24px; }
.post-content li { margin-bottom: 8px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.post-tags a {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 2px;
  color: var(--grey-md);
  transition: all var(--transition);
}
.post-tags a:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-glow); }

/* ====================================================
   COMMENTS
   ==================================================== */
.comments-section { margin-top: 52px; padding-top: 44px; border-top: 2px solid var(--border); }
.comments-section h3 { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-bottom: 32px; color: var(--blue-dk); }
.comment-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.comment-avatar { flex-shrink: 0; }
.comment-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.comment-body .author { font-weight: 600; font-family: var(--font-sans); margin-bottom: 4px; color: var(--grey-dk); }
.comment-body .date { font-size: 12px; color: var(--grey-lt); font-family: var(--font-sans); margin-bottom: 8px; }
.comment-body .text { font-size: 15px; line-height: 1.7; }
.comment-form { background: var(--cream-dk); padding: 32px; border-radius: var(--radius); margin-top: 36px; border: 1px solid var(--border); }
.comment-form h4 { font-family: var(--font-head); font-size: 22px; margin-bottom: 22px; color: var(--blue-dk); }

/* ====================================================
   FORMS
   ==================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
  color: var(--grey-dk);
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--grey-dk);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-hint { font-size: 12px; color: var(--grey-lt); margin-top: 4px; font-family: var(--font-sans); }

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary   { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(224,90,0,0.35); }
.btn-dark      { background: var(--blue-dk); color: #fff; }
.btn-dark:hover { background: var(--blue-md); color: #fff; }
.btn-outline   { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a93226; color: #fff; }
.btn-success   { background: var(--green); color: #fff; }
.btn-success:hover { background: #15723c; color: #fff; }
.btn-ghost     { background: transparent; color: var(--grey-md); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm  { padding: 7px 16px; font-size: 10px; }
.btn-lg  { padding: 15px 38px; font-size: 13px; }

/* ====================================================
   PAGINATION
   ==================================================== */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 44px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-dk);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ====================================================
   FLASH MESSAGES
   ==================================================== */
.flash-msg {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid;
}
.flash-success { background: #e8f5e9; color: #1b5e20; border-color: var(--green); }
.flash-error   { background: #fce4e4; color: #7b1515; border-color: var(--red); }
.flash-info    { background: #e3f2fd; color: #0d47a1; border-color: #2196f3; }
.flash-warning { background: #fff8e1; color: #5d3e00; border-color: #f59e0b; }

/* ====================================================
   AUTH PAGES
   ==================================================== */
.auth-page {
  min-height: 100vh;
  background: var(--blue-dk);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(224,90,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(30,64,128,0.3) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: authFadeUp 0.4s ease both;
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-header {
  background: var(--blue-md);
  padding: 36px 36px 28px;
  text-align: center;
  border-bottom: 3px solid var(--orange);
  position: relative;
  overflow: hidden;
}
.auth-header::before {
  content: 'EOB';
  position: absolute;
  font-family: var(--font-head);
  font-size: 120px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  top: -20px; right: -10px;
  pointer-events: none;
  letter-spacing: -5px;
}
.auth-header img { width: 60px; margin: 0 auto 14px; }
.auth-header h1 { font-family: var(--font-head); font-size: 24px; color: #fff; font-weight: 700; }
.auth-header p { color: rgba(255,255,255,0.5); font-size: 13px; font-family: var(--font-sans); margin-top: 5px; }
.auth-body { padding: 36px; }
.auth-footer {
  padding: 18px 36px;
  background: var(--cream);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--grey-lt);
  border-top: 1px solid var(--border);
}
.auth-footer a { color: var(--orange); font-weight: 500; }

/* ====================================================
   SITE FOOTER
   ==================================================== */
.site-footer {
  background: var(--blue-dk);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
  margin-top: 64px;
  border-top: 3px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
.footer-widget h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-widget p { font-size: 14px; line-height: 1.75; }
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.footer-brand-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 10px; }
.footer-widget ul li a { color: rgba(255,255,255,0.55); font-size: 14px; transition: color var(--transition); }
.footer-widget ul li a:hover { color: var(--orange); padding-left: 4px; }
.footer-widget ul li a { transition: color var(--transition), padding-left var(--transition); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--orange); color: var(--orange); background: rgba(224,90,0,0.1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--orange); }

/* ====================================================
   ADMIN — LAYOUT
   ==================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f1f3f6;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--blue-dk);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.admin-sidebar-logo {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.2);
}
.admin-sidebar-logo img { width: 38px; height: 38px; object-fit: contain; }
.admin-sidebar-logo span {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  display: block;
}
.admin-sidebar-logo small {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  display: block;
}

.admin-nav { flex: 1; padding: 14px 0; overflow-y: auto; }
.admin-nav::-webkit-scrollbar { width: 4px; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.admin-nav-section { margin-bottom: 6px; }
.admin-nav-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 12px 20px 4px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.62);
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
}
.admin-nav a:hover,
.admin-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-left-color: var(--orange);
}
.admin-nav a i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }

.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; }

.admin-topbar {
  background: #fff;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #e4e7ec;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.admin-topbar h1 {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-dk);
  font-weight: 700;
}
.admin-topbar-right { display: flex; align-items: center; gap: 20px; }
.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--grey-md);
}
.admin-user-badge img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }

.admin-content { padding: 28px; flex: 1; }

/* ====================================================
   ADMIN — STAT CARDS
   ==================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid var(--orange);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .info h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--grey-lt);
  margin-bottom: 8px;
  font-weight: 500;
}
.stat-card .info .value {
  font-family: var(--font-ui);
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-dk);
  line-height: 1;
}
.stat-card .icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon-orange { background: rgba(224,90,0,0.1); color: var(--orange); }
.stat-icon-blue   { background: rgba(11,26,46,0.08); color: var(--blue-dk); }
.stat-icon-green  { background: rgba(26,138,74,0.1); color: var(--green); }
.stat-icon-red    { background: rgba(192,57,43,0.1); color: var(--red); }

/* ====================================================
   ADMIN — TABLES
   ==================================================== */
.admin-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  border: 1px solid #eaecf0;
}
.admin-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #eaecf0;
}
.admin-table-head h3 {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-dk);
  font-weight: 700;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: #f8f9fb;
  text-align: left;
  padding: 11px 16px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-lt);
  border-bottom: 1px solid #eaecf0;
  font-weight: 700;
}
.admin-table td {
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  border-bottom: 1px solid #f4f5f7;
  vertical-align: middle;
  color: var(--grey-dk);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafbfc; }

/* Role badges */
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-family: var(--font-ui);
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}
.role-admin      { background: rgba(11,26,46,0.1); color: var(--blue-dk); }
.role-editor     { background: rgba(26,138,74,0.12); color: #155c30; }
.role-author     { background: rgba(224,90,0,0.12); color: var(--orange-dk); }
.role-subscriber { background: rgba(100,100,100,0.08); color: var(--grey-md); }

/* Status badges */
.status-published { background: rgba(26,138,74,0.12); color: #155c30; }
.status-draft     { background: rgba(100,100,100,0.08); color: var(--grey-md); }
.status-pending   { background: rgba(224,90,0,0.12); color: var(--orange-dk); }
.status-rejected  { background: rgba(192,57,43,0.12); color: var(--red); }

/* ====================================================
   ADMIN — FORM BOXES
   ==================================================== */
.admin-form-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  border: 1px solid #eaecf0;
}
.admin-form-box .box-head {
  padding: 18px 24px;
  border-bottom: 1px solid #eaecf0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-form-box .box-head h3 {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-dk);
  font-weight: 700;
}
.admin-form-box .box-body { padding: 24px; }

/* ====================================================
   SCROLL TO TOP
   ==================================================== */
#scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 18px rgba(224,90,0,0.4);
  border: none;
  font-size: 18px;
  transition: all var(--transition);
}
#scroll-top:hover { background: var(--orange-dk); transform: translateY(-3px); }
#scroll-top.visible { display: flex; }

/* ====================================================
   LOADING SKELETON
   ==================================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-side-right { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-layout  { grid-template-columns: 1fr; }
  .hero-grid    { grid-template-columns: 1fr; }
  .posts-grid-3 { grid-template-columns: 1fr; }
  .posts-grid-2 { grid-template-columns: 1fr; }
  .post-title   { font-size: 30px; }
  .nav-links    { display: none; }
  .admin-sidebar { transform: translateX(-260px); transition: transform 0.3s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main   { margin-left: 0; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 12px; text-align: center; }
  .nav-search input { width: 150px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-overlay h2 { font-size: 20px; }
  .auth-body { padding: 24px; }
  .auth-header { padding: 28px 24px 22px; }
}

/* ====================================================
   PRINT
   ==================================================== */
@media print {
  .site-header, .main-nav, .breaking-ticker, .topbar, .site-footer, aside { display: none !important; }
  .main-layout { display: block; }
  .post-content { font-size: 12pt; }
}
