:root {
    --black: #04080F;
    --deep: #080E1A;
    --panel: #0D1526;
    --border: rgba(20,40,255,0.18);
    --blue: #1428FF;
    --blue-dim: rgba(20,40,255,0.10);
    --orange: #FF8A00;
    --orange-dim: rgba(255,138,0,0.12);
    --white: #EEF4FF;
    --muted: rgba(200,215,240,0.55);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--black); color: var(--white); font-family: 'Poppins', sans-serif; overflow-x: hidden; line-height: 1.6; }

  /* HEX CANVAS */
  #hexCanvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
  nav, section, footer, .page-header, .blog-body { position: relative; z-index: 1; }

  /* NAV */
  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 1rem 5vw; background: rgba(4,8,15,0.88); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: background .3s; }
  .nav-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--white); }
  .logo-img { height: 2rem; width: auto; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(255,138,0,0.25)); }
  .nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
  .nav-links a { font-family: 'Poppins', sans-serif; font-size: .76rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-decoration: none; text-transform: uppercase; transition: color .25s; }
  .nav-links a:hover, .nav-links a.active-page { color: var(--white); }
  .nav-links a.active-page { position: relative; }
  .nav-links a.active-page::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--orange); }
  .nav-dropdown { position: relative; }
  .nav-dropdown > a { display: flex; align-items: center; gap: .35rem; cursor: pointer; }
  .nav-dropdown > a::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--muted); transition: transform .2s; }
  .nav-dropdown:hover > a::after { transform: rotate(180deg); border-top-color: var(--white); }
  .nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 0.8rem; z-index: 300; }
  .nav-dropdown-panel { background: rgba(8,14,26,0.97); backdrop-filter: blur(24px); border: 1px solid rgba(20,40,255,0.22); border-radius: 8px; padding: .5rem; min-width: 180px; box-shadow: 0 16px 40px rgba(0,0,0,.5); position: relative; }
  .nav-dropdown-panel::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: rgba(8,14,26,0.97); border-left: 1px solid rgba(20,40,255,0.22); border-top: 1px solid rgba(20,40,255,0.22); transform: translateX(-50%) rotate(45deg); }
  .nav-dropdown:hover .nav-dropdown-menu { display: block; animation: dropIn .18s ease; }
  @keyframes dropIn { from { opacity:0; transform: translateX(-50%) translateY(-4px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
  .nav-dropdown-menu a { display: flex; align-items: center; gap: .7rem; font-family: 'Poppins', sans-serif; font-size: .74rem; font-weight: 500; color: rgba(200,215,240,0.75); text-decoration: none; padding: .6rem .9rem; border-radius: 5px; transition: background .18s, color .18s; text-transform: none; letter-spacing: .02em; white-space: nowrap; }
  .nav-dropdown-menu a:hover { background: var(--blue-dim); color: #fff; }
  .nav-dropdown-menu a .dd-icon { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
  .nav-dropdown-menu a:first-child .dd-icon { background: rgba(20,40,255,0.15); }
  .nav-dropdown-menu a:last-child .dd-icon { background: rgba(255,138,0,0.15); }
  .dd-sep { height: 1px; background: rgba(20,40,255,0.18); margin: .3rem .5rem; }
  .nav-right { display: flex; align-items: center; gap: .8rem; }
  .nav-cta { font-family: 'Poppins', sans-serif; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .5rem 1.4rem; border: 1px solid var(--blue); color: var(--blue); background: transparent; border-radius: 4px; cursor: pointer; transition: background .25s, color .25s; text-decoration: none; }
  .nav-cta:hover { background: var(--blue); color: #fff; }
  .theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: border-color .2s, background .2s; color: var(--muted); flex-shrink: 0; }
  .theme-toggle:hover { border-color: var(--orange); background: var(--orange-dim); color: var(--orange); }
  .hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: transparent; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; padding: 7px; }
  .hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s, opacity .3s, width .3s; transform-origin: center; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #mobileMenu { display: none; position: fixed; top: 62px; left: 0; right: 0; z-index: 190; background: rgba(4,8,15,0.98); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); padding: 1.2rem 5vw 1.6rem; }
  #mobileMenu.open { display: block; animation: mobileIn .25s ease forwards; }
  @keyframes mobileIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  .mob-links { list-style: none; margin-bottom: 1.2rem; }
  .mob-links li { border-bottom: 1px solid var(--border); }
  .mob-links li:last-child { border-bottom: none; }
  .mob-links a { display: flex; align-items: center; justify-content: space-between; font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: .9rem 0; transition: color .2s; text-transform: uppercase; letter-spacing: .04em; }
  .mob-links a:hover { color: var(--white); }
  .mob-sub { list-style: none; padding: 0 0 .5rem 1rem; display: none; }
  .mob-services-toggle.open + .mob-sub { display: block; }
  .mob-sub a { font-size: .8rem; text-transform: none; letter-spacing: .02em; color: rgba(200,215,240,.5); padding: .5rem 0; display: flex; align-items: center; gap: .6rem; }
  .mob-sub .dd-icon { width: 24px; height: 24px; border-radius: 5px; font-size: .75rem; display:flex; align-items:center; justify-content:center; }
  .mob-sub a:first-child .dd-icon { background: var(--blue-dim); }
  .mob-sub a:last-child .dd-icon { background: var(--orange-dim); }
  .mob-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }

  /* LIGHT MODE */
  body.light { --black:#F0F4FF; --deep:#E4EAFF; --panel:#FFFFFF; --border:rgba(20,40,255,0.14); --white:#0A0F24; --muted:rgba(20,30,70,0.55); --blue-dim:rgba(20,40,255,0.08); --orange-dim:rgba(255,138,0,0.10); }
  body.light nav { background: rgba(230,236,255,0.95) !important; }
  body.light footer { background: #E4EAFF; }
  body.light .nav-dropdown-panel { background: #0D1526; border-color: rgba(20,40,255,0.3); }
  body.light .nav-dropdown-panel::before { background: #0D1526; border-color: rgba(20,40,255,0.3); }
  body.light #mobileMenu { background: rgba(225,232,255,0.98); }
  body.light #hexCanvas { opacity: 0.18; }

  /* PAGE HEADER */
  .page-header { padding: 8rem 5vw 4rem; text-align: center; }
  .page-tag { font-family: 'Poppins', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--border); border-radius: 3px; padding: .35rem .85rem; margin-bottom: 1.5rem; background: var(--blue-dim); }
  .page-tag::before { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 8px var(--orange); }
  .page-header h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 1rem; }
  .page-header h1 em { font-style: normal; color: var(--blue); }
  .page-header p { font-size: 1rem; font-weight: 300; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.8; }

  /* BLOG BODY */
  .blog-body { padding: 0 5vw 6rem; }

  /* CATEGORY FILTER */
  .cat-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 3rem; }
  .cat-btn { font-family: 'Poppins', sans-serif; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .45rem 1rem; border-radius: 100px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: all .2s; }
  .cat-btn:hover { border-color: var(--blue); color: var(--white); }
  .cat-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
  .cat-btn.orange.active { background: var(--orange); border-color: var(--orange); }

  /* FEATURED POST */
  .featured-post { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 3rem; transition: border-color .3s; cursor: pointer; }
  .featured-post:hover { border-color: rgba(20,40,255,.4); }
  .feat-img { background: linear-gradient(135deg, rgba(20,40,255,.18) 0%, rgba(255,138,0,.12) 100%); min-height: 320px; display: flex; align-items: center; justify-content: center; font-size: 5rem; position: relative; overflow: hidden; }
  .feat-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(20,40,255,.2), transparent 60%), radial-gradient(circle at 80% 70%, rgba(255,138,0,.15), transparent 50%); }
  .feat-img-emoji { position: relative; z-index: 1; }
  .feat-content { padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
  .feat-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
  .post-cat { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 100px; }
  .post-cat.web3 { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(20,40,255,.25); }
  .post-cat.education { background: rgba(0,200,100,.1); color: #00c864; border: 1px solid rgba(0,200,100,.25); }
  .post-cat.career { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,138,0,.25); }
  .post-cat.africa { background: rgba(155,89,182,.15); color: #C39BD3; border: 1px solid rgba(155,89,182,.3); }
  .post-cat.defi { background: rgba(52,152,219,.15); color: #7FB3D3; border: 1px solid rgba(52,152,219,.3); }
  .post-cat.ai { background: rgba(26,188,156,.12); color: #1ABC9C; border: 1px solid rgba(26,188,156,.3); }
  .post-date { font-size: .66rem; color: var(--muted); }
  .feat-content h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--white); margin-bottom: .8rem; }
  .feat-content p { font-size: .88rem; font-weight: 300; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; flex: 1; }
  .feat-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
  .author-row { display: flex; align-items: center; gap: .6rem; }
  .author-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-dim); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: var(--blue); flex-shrink: 0; }
  .author-name { font-size: .74rem; font-weight: 600; color: var(--white); }
  .read-time { font-size: .64rem; color: var(--muted); margin-top: .1rem; }
  .read-btn { font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); text-decoration: none; display: flex; align-items: center; gap: .3rem; transition: gap .2s; }
  .read-btn:hover { gap: .6rem; }

  /* POST GRID */
  .posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 3rem; }
  .post-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .3s, transform .3s; cursor: pointer; display: flex; flex-direction: column; }
  .post-card:hover { border-color: rgba(20,40,255,.35); transform: translateY(-4px); }
  .post-thumb { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; position: relative; overflow: hidden; }
  .post-thumb.t-blue { background: linear-gradient(135deg, rgba(20,40,255,.15), rgba(20,40,255,.05)); }
  .post-thumb.t-orange { background: linear-gradient(135deg, rgba(255,138,0,.15), rgba(255,138,0,.05)); }
  .post-thumb.t-green { background: linear-gradient(135deg, rgba(0,200,100,.12), rgba(0,200,100,.04)); }
  .post-thumb.t-purple { background: linear-gradient(135deg, rgba(155,89,182,.15), rgba(155,89,182,.05)); }
  .post-thumb.t-teal { background: linear-gradient(135deg, rgba(26,188,156,.12), rgba(26,188,156,.04)); }
  .post-thumb.t-red { background: linear-gradient(135deg, rgba(231,76,60,.12), rgba(231,76,60,.04)); }
  .post-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
  .post-body .post-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; flex-wrap: wrap; }
  .post-body h3 { font-size: .94rem; font-weight: 700; line-height: 1.35; color: var(--white); margin-bottom: .6rem; }
  .post-body p { font-size: .78rem; font-weight: 300; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
  .post-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; border-top: 1px solid var(--border); }

  /* SIDEBAR-STYLE SECONDARY POSTS */
  .blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
  .sidebar { position: sticky; top: 90px; }
  .sidebar-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; margin-bottom: 1.2rem; }
  .sidebar-title { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
  .sidebar-title::before { content: ''; flex: 0 0 16px; height: 1px; background: var(--blue); }
  .trend-item { display: flex; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: opacity .2s; }
  .trend-item:last-child { border-bottom: none; }
  .trend-item:hover { opacity: .75; }
  .trend-num { font-size: 1.1rem; font-weight: 800; color: rgba(20,40,255,.25); flex-shrink: 0; width: 24px; line-height: 1.2; }
  .trend-text { font-size: .78rem; font-weight: 600; color: var(--white); line-height: 1.4; }
  .trend-cat { font-size: .6rem; color: var(--muted); margin-top: .15rem; }

  /* NEWSLETTER CTA */
  .newsletter-cta { background: linear-gradient(135deg, rgba(20,40,255,.12), rgba(255,138,0,.08)); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; text-align: center; margin-top: 3rem; }
  .newsletter-cta h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
  .newsletter-cta h3 em { font-style: normal; color: var(--orange); }
  .newsletter-cta p { font-size: .86rem; color: var(--muted); margin-bottom: 1.5rem; font-weight: 300; }
  .newsletter-form { display: flex; gap: .6rem; max-width: 420px; margin: 0 auto; }
  .newsletter-form input { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 5px; padding: .75rem 1rem; color: var(--white); font-family: 'Poppins', sans-serif; font-size: .84rem; font-weight: 300; outline: none; transition: border-color .2s; }
  .newsletter-form input:focus { border-color: var(--blue); }
  .newsletter-form button { background: var(--orange); color: #fff; border: none; border-radius: 5px; padding: .75rem 1.4rem; font-family: 'Poppins', sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: opacity .2s; white-space: nowrap; }
  .newsletter-form button:hover { opacity: .85; }

  /* PAGINATION */
  .pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
  .pg-btn { width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; }
  .pg-btn:hover { border-color: var(--blue); color: var(--white); }
  .pg-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
  .pg-btn.pg-arrow { font-size: 1rem; }

  /* REVEAL */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
  .reveal.visible { opacity: 1; transform: none; }

  /* FOOTER */
  footer { background: var(--deep); border-top: 1px solid var(--border); padding: 4rem 5vw 2rem; }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
  .footer-brand p { font-family: 'Poppins', sans-serif; color: var(--muted); font-size: .86rem; font-weight: 300; margin-top: .8rem; max-width: 220px; line-height: 1.65; }
  .footer-col h4 { font-family: 'Poppins', sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.2rem; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: .6rem; }
  .footer-col a { font-family: 'Poppins', sans-serif; color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 300; transition: color .2s; }
  .footer-col a:hover { color: var(--white); }
  .newsletter-row { display: flex; gap: .5rem; margin-top: .8rem; }
  .newsletter-input { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: .6rem .8rem; color: var(--white); font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 300; outline: none; }
  .newsletter-input:focus { border-color: var(--blue); }
  .newsletter-btn { background: var(--blue); color: #fff; border: none; border-radius: 4px; padding: .6rem 1rem; font-family: 'Poppins', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: opacity .2s; }
  .newsletter-btn:hover { opacity: .85; }
  .social-row { display: flex; gap: .7rem; margin-top: 1.2rem; }
  .social-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; background: var(--panel); color: var(--muted); font-size: .8rem; text-decoration: none; transition: border-color .2s, color .2s; }
  .social-btn img { width: 24px; height: 24px; }
  .social-btn:hover { border-color: var(--blue); color: var(--blue); }
  .footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
  .footer-bottom p { font-family: 'Poppins', sans-serif; font-size: .6rem; font-weight: 500; letter-spacing: .08em; color: var(--muted); }

  /* RESPONSIVE */
  @media(max-width:900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-right .nav-cta { display: none; }
    .featured-post { grid-template-columns: 1fr; }
    .feat-img { min-height: 200px; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media(max-width:560px) {
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
  }