:root {
  --ink: #0a0a0f; --cream: #f5f0e8; --gold: #c9a84c;
  --gold-light: #e8c97a; --teal: #1a6b6b; --teal-light: #2a9090;
  --rust: #8b3a1e; --border: rgba(201,168,76,0.25);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--ink); color: var(--cream); overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 4rem; background: rgba(10,10,15,0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family:  sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--gold); letter-spacing: 0.05em; text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--cream); opacity: 0.75; font-size: 0.9rem; text-decoration: none; font-weight: 400; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--ink) !important; padding: 0.55rem 1.4rem; border-radius: 2px; font-weight: 500; opacity: 1 !important; }

/* PAGE HERO */
.page-hero {
  padding: 10rem 4rem 5rem; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: 'BLOG'; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%);
  font-family:  sans-serif; font-size: 18vw; font-weight: 800;
  color: rgba(201,168,76,0.04); pointer-events: none; line-height: 1; white-space: nowrap;
}
.hero-inner { max-width: 1200px; margin: auto; }
.page-tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; }
.page-title { font-family:  sans-serif; font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; color: var(--cream); line-height: 1.05; margin-bottom: 1.25rem; }
.page-title span { color: var(--gold); }
.page-desc { font-size: 1.1rem; color: rgba(245,240,232,0.6); line-height: 1.8; max-width: 560px; }

/* FEATURED POST */
#featured { padding: 5rem 4rem 3rem; }
.featured-inner { max-width: 1200px; margin: auto; }
.section-label { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.5rem; display: block; }

.featured-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: rgba(245,240,232,0.03); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: box-shadow 0.3s; text-decoration: none; color: inherit;
}
.featured-card:hover { box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.featured-card:hover .featured-img-inner { transform: scale(1.04); }

.featured-img {
  height: 420px; overflow: hidden; background: linear-gradient(135deg, #0f2020 0%, #1a3a2a 50%, #0a1a14 100%);
  position: relative;
}
.featured-img-inner { width: 100%; height: 100%; transition: transform 0.5s ease; display: flex; align-items: center; justify-content: center; }
.post-illustration { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }

/* Unique SVG illustrations per category */
.illus-edtech { background: linear-gradient(135deg, #0d2233 0%, #1a3a50 100%); }
.illus-cyber { background: linear-gradient(135deg, #0f1f0f 0%, #1a3a1a 100%); }
.illus-product { background: linear-gradient(135deg, #1a1a0d 0%, #2a2a0a 100%); }
.illus-ai { background: linear-gradient(135deg, #1a0d1a 0%, #2a1a2a 100%); }
.illus-web { background: linear-gradient(135deg, #0d1a2a 0%, #1a2a3a 100%); }
.illus-nigeria { background: linear-gradient(135deg, #1a0f00 0%, #2a2010 100%); }

.featured-content { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.post-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.post-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; padding: 0.3rem 0.85rem; border-radius: 2px; }
.cat-edtech { background: rgba(42,144,144,0.2); color: var(--teal-light); }
.cat-cyber { background: rgba(201,168,76,0.15); color: var(--gold); }
.cat-product { background: rgba(139,58,30,0.25); color: #e88a5a; }
.cat-ai { background: rgba(130,90,200,0.2); color: #b899f5; }
.cat-web { background: rgba(42,100,144,0.2); color: #5ab4e8; }
.cat-nigeria { background: rgba(76,160,76,0.2); color: #7dd87d; }
.post-date { font-size: 0.82rem; color: rgba(245,240,232,0.4); }
.post-read { font-size: 0.82rem; color: rgba(245,240,232,0.4); }
.featured-title { font-family:  sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--cream); line-height: 1.3; margin-bottom: 1rem; }
.featured-excerpt { font-size: 1rem; color: rgba(245,240,232,0.65); line-height: 1.8; margin-bottom: 2rem; }
.read-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family:  sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--gold); text-decoration: none; letter-spacing: 0.04em; transition: gap 0.2s; }
.read-link:hover { gap: 0.85rem; }

/* FILTERS */
#blog-grid-section { padding: 1rem 4rem 5rem; }
.blog-inner { max-width: 1200px; margin: auto; }
.filter-row { display: flex; gap: 0.75rem; margin-bottom: 3rem; flex-wrap: wrap; }
.ftab { padding: 0.55rem 1.25rem; border-radius: 3px; cursor: pointer; font-size: 0.85rem; font-weight: 600; font-family:  sans-serif; border: 1px solid var(--border); color: rgba(245,240,232,0.6); background: transparent; transition: all 0.2s; }
.ftab:hover { border-color: var(--gold); color: var(--gold); }
.ftab.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* BLOG GRID */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  background: rgba(245,240,232,0.03); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: all 0.35s ease;
}
.blog-card:hover { background: rgba(245,240,232,0.055); border-color: rgba(201,168,76,0.4); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.blog-card:hover .card-img-inner { transform: scale(1.06); }
.card-img { height: 200px; overflow: hidden; position: relative; }
.card-img-inner { width: 100%; height: 100%; transition: transform 0.45s ease; }
.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.card-title { font-family:  sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--cream); line-height: 1.45; margin-bottom: 0.75rem; flex: 1; }
.card-excerpt { font-size: 0.88rem; color: rgba(245,240,232,0.55); line-height: 1.7; margin-bottom: 1.5rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(245,240,232,0.07); }
.card-author { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: rgba(245,240,232,0.5); }
.author-dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--teal-light)); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; color: var(--ink); flex-shrink: 0; }
.card-arrow { color: var(--gold); font-size: 1rem; transition: transform 0.2s; }
.blog-card:hover .card-arrow { transform: translateX(4px); }
.blog-card.hidden { display: none; }

/* NEWSLETTER */
#newsletter { padding: 5rem 4rem; background: rgba(201,168,76,0.05); border-top: 1px solid var(--border); }
.nl-inner { max-width: 600px; margin: auto; text-align: center; }
.nl-title { font-family:  sans-serif; font-size: 2rem; font-weight: 800; color: var(--cream); margin-bottom: 0.75rem; }
.nl-title span { color: var(--gold); }
.nl-desc { color: rgba(245,240,232,0.6); line-height: 1.75; margin-bottom: 2rem; }
.nl-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; }
.nl-input { flex: 1; background: rgba(245,240,232,0.06); border: 1px solid var(--border); border-right: none; padding: 0.9rem 1.25rem; color: var(--cream); font-family: 'DM Sans', sans-serif; font-size: 0.95rem; border-radius: 4px 0 0 4px; outline: none; transition: border-color 0.2s; }
.nl-input:focus { border-color: rgba(201,168,76,0.5); }
.nl-input::placeholder { color: rgba(245,240,232,0.3); }
.nl-btn { background: var(--gold); color: var(--ink); border: none; padding: 0.9rem 1.5rem; font-family:  sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; border-radius: 0 4px 4px 0; transition: background 0.2s; white-space: nowrap; }
.nl-btn:hover { background: var(--gold-light); }

footer { background: rgba(245,240,232,0.03); border-top: 1px solid var(--border); padding: 3rem 4rem; }
.footer-inner { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family:  sans-serif; font-weight: 800; color: var(--gold); font-size: 1rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(245,240,232,0.5); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: rgba(245,240,232,0.35); font-size: 0.85rem; }

@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  nav { padding: 1rem 1.5rem; } .nav-links { display: none; }
  .page-hero, #featured, #blog-grid-section, #newsletter { padding-left: 1.5rem; padding-right: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { height: 240px; }
  .featured-content { padding: 2rem; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .nl-form { flex-direction: column; }
  .nl-input, .nl-btn { border-radius: 4px; border-right: 1px solid var(--border); }
  .nl-btn { border-top: none; }
}
