/*
Theme Name: Nexgen Legal Aid - Dark Authority
Theme URI: https://nexgenlegalaid.com/
Author: OpenAI
Description: Premium dark legal editorial WordPress theme for Nexgen Legal Aid.
Version: 1.1.0
Text Domain: nexgen-legal-aid
*/
:root{--bg:#071014;--panel:#0d171c;--panel2:#111e24;--text:#f4f1e8;--muted:#aeb9bc;--gold:#d9a640;--line:#26343b;--white:#fff;--max:1180px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(7,16,20,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}.header-inner{height:76px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:11px;min-width:180px}.brand-mark{width:36px;height:42px;border:2px solid var(--gold);clip-path:polygon(50% 0,100% 18%,88% 82%,50% 100%,12% 82%,0 18%);display:grid;place-items:center;color:var(--gold);font-size:18px;font-weight:700}.brand-text{font-family:Georgia,serif;font-size:22px;line-height:.95}.brand-text small{display:block;font:600 8px Arial,sans-serif;letter-spacing:2px;color:var(--muted);margin-top:5px}.nav{display:flex;align-items:center;gap:24px;margin-left:auto;font-size:13px}.nav a{color:#e9eceb}.nav a:hover{color:var(--gold)}.search-toggle{margin-left:8px;color:var(--gold);font-size:18px}
.hero{border-bottom:1px solid var(--line)}.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;min-height:430px}.hero-copy{padding:58px 34px 54px 0;display:flex;flex-direction:column;justify-content:center}.eyebrow{color:var(--gold);font-size:11px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase}.hero h1{font-family:Georgia,serif;font-size:64px;line-height:.92;margin:12px 0 18px;max-width:520px}.hero p{color:#d2d9da;max-width:560px;margin:0 0 24px}.btns{display:flex;gap:12px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border:1px solid var(--gold);font-weight:700;font-size:13px}.btn.primary{background:var(--gold);color:#101619}.hero-media{position:relative;min-height:430px;background:linear-gradient(90deg,#0a1418 0%,transparent 24%),url('assets/images/hero.png') center/cover no-repeat}.hero-media:after{content:"";position:absolute;inset:auto 0 0;background:linear-gradient(transparent,#071014);height:100px}
.categories{padding:0 0 28px;border-bottom:1px solid var(--line)}.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.cat-card{background:linear-gradient(180deg,#101c22,#0b151a);border:1px solid var(--line);padding:18px 12px;text-align:center;min-height:90px;display:flex;flex-direction:column;justify-content:center;transition:.25s}.cat-card:hover{transform:translateY(-2px);border-color:#7f6530}.cat-icon{color:var(--gold);font-size:20px;margin-bottom:5px}.cat-card strong{font-size:12px}
.content-section{padding:34px 0 44px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.section-head h2{font-family:Georgia,serif;font-size:28px;margin:0}.section-head a{font-size:12px;color:var(--gold)}.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.post-card{background:#0d171c;border:1px solid var(--line);overflow:hidden}.post-card img{width:100%;height:170px;object-fit:cover}.post-card .pad{padding:14px}.post-card .tag{font-size:9px;color:var(--gold);letter-spacing:1px;text-transform:uppercase;font-weight:700}.post-card h3{font-family:Georgia,serif;font-size:20px;line-height:1.1;margin:8px 0 8px}.post-card p{font-size:13px;color:var(--muted);margin:0 0 10px}.meta{font-size:11px;color:#7e8b8f}
.site-footer{border-top:1px solid var(--line);padding:28px 0;background:#071014}.footer-inner{display:grid;grid-template-columns:1.4fr 2fr auto;align-items:center;gap:30px}.footer-brand{display:flex;align-items:center;gap:10px}.footer-links{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:#cbd1d1}.social{display:flex;gap:12px;color:var(--gold)}
.article-wrap{width:min(900px,calc(100% - 40px));margin:48px auto}.article-wrap h1{font-family:Georgia,serif;font-size:52px;line-height:1.05}.article-wrap h2,.article-wrap h3{font-family:Georgia,serif}.article-wrap p,.article-wrap li{color:#d4dada;font-size:17px}.article-wrap a{color:#60b7ff}.article-wrap a[href^="/"]{color:#d9a640}.article-wrap img{border:1px solid #31424a;box-shadow:0 14px 40px rgba(0,0,0,.25)}
@media(max-width:900px){.nav{display:none}.hero-grid{grid-template-columns:1fr}.hero-copy{padding-right:0}.hero h1{font-size:48px}.hero-media{min-height:300px}.cat-grid{grid-template-columns:repeat(2,1fr)}.posts-grid{grid-template-columns:1fr 1fr}.footer-inner{grid-template-columns:1fr}.article-wrap h1{font-size:40px}}
@media(max-width:560px){.wrap{width:min(100% - 24px,1180px)}.hero h1{font-size:40px}.hero-grid{min-height:auto}.cat-grid,.posts-grid{grid-template-columns:1fr}.header-inner{height:68px}.brand-text{font-size:20px}.hero-copy{padding:40px 0}.article-wrap{width:min(100% - 24px,900px)}}

/* v1.1 — expanded homepage + modern category experience */
.section-kicker{color:var(--gold);font-size:10px;font-weight:800;letter-spacing:2px;text-transform:uppercase;margin-bottom:8px}.modern-categories{padding:46px 0 48px;background:linear-gradient(180deg,#071014,#091317)}.category-head{align-items:start;margin-bottom:24px}.category-head h2{max-width:620px;font-size:36px;line-height:1.05}.category-head p{max-width:420px;margin:5px 0 0;color:var(--muted);font-size:14px}.cat-grid-modern{grid-template-columns:repeat(5,1fr);gap:14px}.modern-cat-card{padding:0;min-height:250px;text-align:left;justify-content:flex-start;border-radius:12px;overflow:hidden;background:#0e191e;box-shadow:0 14px 30px rgba(0,0,0,.16)}.modern-cat-card:hover{transform:translateY(-5px);border-color:#9a7833;box-shadow:0 20px 42px rgba(0,0,0,.28)}.cat-thumb{height:120px;background-size:cover;background-position:center;position:relative}.cat-thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(5,12,15,.28))}.cat-body{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;padding:16px}.cat-body .cat-icon{width:38px;height:38px;border-radius:10px;background:rgba(217,166,64,.12);border:1px solid rgba(217,166,64,.45);display:grid;place-items:center;margin:0}.cat-body strong{display:block;font-family:Georgia,serif;font-size:17px;line-height:1.15;margin-bottom:6px}.cat-body small{display:block;color:var(--muted);font-size:11px;line-height:1.4}.cat-arrow{color:var(--gold);font-size:20px;line-height:38px}.featured-section{padding-top:48px}.featured-section .section-head h2,.visual-library .section-head h2{font-size:36px;line-height:1.05}.post-card{border-radius:10px;box-shadow:0 14px 32px rgba(0,0,0,.18)}.post-card img{height:210px}.visual-library{padding:48px 0 56px;border-top:1px solid var(--line);background:#091317}.visual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.visual-card{background:linear-gradient(180deg,#0f1a20,#0b151a);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 14px 32px rgba(0,0,0,.18)}.visual-card-wide{grid-column:span 2}.visual-image{display:block;height:220px;overflow:hidden}.visual-card-wide .visual-image{height:300px}.visual-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.visual-card:hover .visual-image img{transform:scale(1.035)}.visual-copy{padding:18px}.visual-copy h3{font-family:Georgia,serif;font-size:22px;line-height:1.1;margin:8px 0}.visual-copy p{color:var(--muted);font-size:13px;margin:0}.resource-band{border-top:1px solid #2a3940;background:linear-gradient(110deg,#101c22,#111b1f 65%,#7f6124);padding:42px 0}.resource-band-inner{display:flex;align-items:center;justify-content:space-between;gap:28px}.resource-band h2{font-family:Georgia,serif;font-size:34px;margin:2px 0 10px}.resource-band p{color:#c6cecf;max-width:700px;margin:0}
@media(max-width:1000px){.cat-grid-modern{grid-template-columns:repeat(2,1fr)}.visual-grid{grid-template-columns:1fr 1fr}.visual-card-wide{grid-column:span 2}}@media(max-width:620px){.category-head{display:block}.category-head h2,.featured-section .section-head h2,.visual-library .section-head h2{font-size:30px}.cat-grid-modern{grid-template-columns:1fr}.visual-grid{grid-template-columns:1fr}.visual-card-wide{grid-column:auto}.visual-card-wide .visual-image,.visual-image{height:210px}.resource-band-inner{display:block}.resource-band .btn{margin-top:20px}.modern-cat-card{min-height:0}}

/* v1.3 — proper reference-style homepage */
.hero-proper .hero-grid{min-height:470px}.hero-proper .hero-copy{padding-top:46px;padding-bottom:48px}.hero-proper h1{font-size:68px}.hero-proper h1 span{color:var(--gold)}.hero-proper .mission{border-color:transparent;padding-left:0}.play-dot{width:38px;height:38px;border:2px solid #fff;border-radius:50%;display:inline-grid;place-items:center;font-size:12px;color:#fff}.proper-categories{padding:20px 0 34px;background:linear-gradient(180deg,#071014,#081217)}.category-title-row{align-items:end}.category-title-row h2{font-size:34px;line-height:1.05}.category-title-row p{max-width:390px;color:var(--muted);font-size:13px;margin:0 0 4px}.proper-cat-grid{grid-template-columns:repeat(5,1fr);gap:10px}.proper-cat-card{min-height:150px;padding:20px 18px;text-align:left;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;align-content:start;position:relative;border-radius:4px;background:linear-gradient(180deg,#0e1a20,#0a151a);box-shadow:none}.proper-cat-card .cat-icon{grid-column:1 / -1;font-size:28px;margin:0 0 12px}.proper-cat-card .cat-content{grid-column:1}.proper-cat-card strong{display:block;font-family:Georgia,serif;font-size:16px;line-height:1.15;margin-bottom:7px}.proper-cat-card small{display:block;color:var(--muted);font-size:11px;line-height:1.35}.proper-cat-card .cat-arrow{position:absolute;right:14px;top:48px;font-size:24px}.proper-featured{padding:26px 0 34px}.proper-featured .section-head h2,.proper-library .section-head h2{font-size:34px}.proper-feature-grid{gap:16px}.proper-post-card{border-radius:4px}.proper-post-card .post-img{display:block;height:170px;overflow:hidden}.proper-post-card .post-img img,.proper-post-card>img{height:170px;width:100%;object-fit:cover}.proper-post-card .pad{padding:12px 14px 13px}.proper-post-card h3{font-size:20px;margin:6px 0 6px}.proper-post-card p{font-size:12px}.proper-post-card .meta{display:flex;justify-content:space-between;align-items:center}.proper-post-card .meta span{color:var(--gold);font-size:18px}.proper-library{padding:28px 0 34px;background:#081217;border-top:1px solid var(--line)}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.library-card{display:grid;grid-template-columns:116px 1fr;min-height:118px;border:1px solid var(--line);background:#0c171c;border-radius:4px;overflow:hidden}.library-thumb{height:100%;min-height:118px}.library-thumb img{width:100%;height:100%;object-fit:cover}.library-copy{padding:10px 12px}.library-copy h3{font-family:Georgia,serif;font-size:15px;line-height:1.15;margin:4px 0}.library-copy p{font-size:11px;color:var(--muted);line-height:1.35;margin:0 0 8px}.library-copy .meta{display:flex;justify-content:space-between}.library-copy .meta span{color:var(--gold)}.proper-resource-band{padding:25px 0;background:linear-gradient(90deg,rgba(7,16,20,.88),rgba(7,16,20,.72)),url('assets/images/hero.png') center 44%/cover}.proper-resource-band h2{font-size:31px;margin:0 0 4px}.proper-resource-band p{font-size:13px}.site-footer{padding-top:22px}
@media(max-width:1000px){.proper-cat-grid{grid-template-columns:repeat(2,1fr)}.library-grid{grid-template-columns:1fr 1fr}.hero-proper h1{font-size:56px}}
@media(max-width:620px){.proper-cat-grid,.library-grid{grid-template-columns:1fr}.category-title-row{display:block}.category-title-row p{margin-top:12px}.hero-proper h1{font-size:44px}.library-card{grid-template-columns:100px 1fr}.proper-resource-band .resource-band-inner{display:block}.proper-resource-band .btn{margin-top:16px}}
