/*
Theme Name: NabadNexus
Theme URI: https://example.org/
Author: NabadNexus
Description: Peacebuilding, research and communications website theme inspired by the NabadNexus brochure.
Version: 1.4.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: nabadnexus
*/

:root{--navy:#092b4b;--blue:#0e6481;--teal:#087d91;--gold:#f6c24b;--ink:#172e4d;--muted:#657487;--pale:#eff8fb;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:15px/1.55 Arial, sans-serif;color:var(--ink)}h1,h2,h3{font-family:Georgia,serif;line-height:1.12;margin:0 0 .55em}h1{font-size:clamp(2.6rem,6vw,5rem)}h2{font-size:clamp(2rem,4vw,3.1rem)}h3{font-size:1.22rem}p{margin:.4em 0 1em;color:var(--muted)}a{color:inherit;text-decoration:none}.wrap{width:min(1180px,92%);margin:auto}.top{height:76px;background:#fff;display:flex;align-items:center;position:sticky;top:0;z-index:5;box-shadow:0 2px 12px #102b4410}.nav{display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-size:1.55rem;font-weight:800;color:var(--navy);letter-spacing:-1px}.brand span{color:#14869a}.tag{display:block;font-size:.55rem;letter-spacing:1px;color:#6b7884;font-weight:500}.links{display:flex;gap:25px;align-items:center;font-size:.88rem;font-weight:700}.links a:hover{color:var(--teal)}.menu{display:none;background:none;border:0;font-size:1.5rem;color:var(--navy)}.hero{position:relative;overflow:hidden;color:#fff;background:linear-gradient(105deg,#092a4beF 2%,#0b3e62dd 45%,#12627a44),radial-gradient(ellipse at 75% 25%,#c1e8f7 0 13%,transparent 14%),linear-gradient(170deg,#5ba9d1 0 38%,#2e7892 39% 47%,#0c4763 48% 100%);min-height:560px;display:flex;align-items:center}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,#092c4d 100%),repeating-linear-gradient(90deg,transparent 0 75px,#ffffff12 76px 77px);opacity:.5}.hero:after{content:"";position:absolute;right:4%;bottom:-22px;width:48%;height:74%;background:linear-gradient(130deg,#c69b69,#f0ceb0 35%,#244e6c 36% 53%,#d4a781 54% 68%,#092a49 69%);clip-path:polygon(10% 24%,35% 0,58% 16%,66% 8%,91% 22%,100% 100%,0 100%);opacity:.85;filter:drop-shadow(0 0 22px #001c33)}.hero .wrap{position:relative;z-index:1}.hero-copy{max-width:610px;padding:70px 0}.hero h1{letter-spacing:-1.8px}.hero h1 span{color:var(--gold)}.hero p{color:#e7f2f7;font-size:1.08rem;max-width:520px}.btn{display:inline-flex;align-items:center;gap:9px;border:0;border-radius:5px;background:var(--gold);color:#173653;padding:12px 18px;font-weight:800;font-size:.9rem;margin:8px 7px 0 0}.btn.alt{background:transparent;border:1px solid #ffffff80;color:white}.btn.blue{background:var(--teal);color:white}.section{padding:62px 0}.about{background:linear-gradient(90deg,#fff 0 48%,#eaf6fb 100%);position:relative;overflow:hidden}.about .wrap{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px}.visual{height:260px;border-radius:14px;background:radial-gradient(circle at 50% 40%,#e6b583 0 8%,transparent 8.5%),radial-gradient(ellipse at 52% 67%,#12375d 0 25%,transparent 26%),linear-gradient(135deg,#b2e2f3,#387fa2 45%,#f1d8bd 46% 52%,#19738e);position:relative;overflow:hidden}.visual:after{content:'Somali Voices\A Stronger Communities\A Brighter Futures';white-space:pre;position:absolute;right:8%;top:20%;font:italic 1.1rem Georgia;color:#124f7b;transform:rotate(-8deg)}.head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.head p{max-width:720px;margin:0}.textlink{color:var(--teal);font-weight:800;white-space:nowrap}.expertise{background:linear-gradient(180deg,#eff8fb,#e6f4f8)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border-radius:9px;overflow:hidden;box-shadow:0 5px 18px #1238540c}.thumb{height:150px;background:linear-gradient(135deg,#f0c89a,#3587a2);position:relative;overflow:hidden}.thumb:before{content:"";position:absolute;width:120px;height:140px;border-radius:50% 50% 8% 8%;background:linear-gradient(100deg,#0c3156 0 45%,#d3a786 46% 70%,#e8d8c7 71%);bottom:-42px;left:25%;box-shadow:85px 10px 0 -8px #a4543b,170px 4px 0 -12px #193e63}.thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,#092b4b40)}.thumb.t2{background:linear-gradient(130deg,#b1dff0,#428bad 55%,#ead3b6)}.thumb.t3{background:linear-gradient(140deg,#a8d9e7,#f2d4a7 45%,#0c536a)}.thumb.t4{background:linear-gradient(140deg,#d9c49d,#2d765f 52%,#b7e4ed)}.thumb.t5{background:linear-gradient(140deg,#dfb08a,#6db3c5,#083f67)}.thumb.t6{background:linear-gradient(140deg,#0b3159,#1684a1,#b9e1ec)}.cardbody{padding:15px}.cardbody h3{font-size:1.16rem}.cardbody p{font-size:.92rem;margin:0}.circle{float:right;border:1px solid var(--teal);color:var(--teal);border-radius:50%;width:27px;height:27px;text-align:center;line-height:25px;margin-top:8px}.stories{background:linear-gradient(110deg,#082b4b,#0c5272);color:#fff;position:relative;overflow:hidden}.stories p{color:#d5e4ed}.stories .head{align-items:start}.storygrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.storycard{border:1px solid #d4e7ee;background:white;color:var(--ink);border-radius:8px;overflow:hidden}.storycard .thumb{height:170px}.storycard .cardbody p{color:var(--muted)}.program{background:linear-gradient(90deg,#fff 0 45%,#e9f7fb)}.program .wrap{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:30px}.program-art{height:245px;border-radius:50% 0 0 50%;background:radial-gradient(circle at 30% 33%,#f6c24b 0 7%,transparent 8%),linear-gradient(140deg,#def2f7,#63a9c2 45%,#0c4162 46% 67%,#d7b189 68%)}.research{background:#eff8fb}.research .thumb{height:125px}.footer{background:#082b4b;color:#eaf4f8;padding:38px 0 14px}.footgrid{display:grid;grid-template-columns:2fr 1fr 1.4fr 1.2fr;gap:30px}.footer p,.footer a{color:#c4d5de;font-size:.83rem}.footer h3{font:700 1rem Arial;color:#fff}.footer .brand{color:#fff}.footer-bottom{border-top:1px solid #ffffff20;margin-top:25px;padding-top:12px;font-size:.78rem;color:#a9c0cd;display:flex;justify-content:space-between}.social{display:flex;gap:10px;margin:12px 0}.social a{border:1px solid #a9c0cd;border-radius:50%;width:30px;height:30px;text-align:center;line-height:28px}@media(max-width:800px){.links{display:none;position:absolute;top:76px;left:0;right:0;background:white;padding:20px 5%;flex-direction:column;align-items:flex-start;box-shadow:0 8px 12px #1233}.links.open{display:flex}.menu{display:block}.hero{min-height:520px}.hero:after{right:-22%;width:80%;opacity:.45}.about .wrap,.program .wrap{grid-template-columns:1fr}.visual{height:220px}.grid{grid-template-columns:repeat(2,1fr)}.footgrid{grid-template-columns:1fr 1fr}}@media(max-width:540px){.section{padding:44px 0}.head{display:block}.head .textlink{display:inline-block;margin-top:12px}.grid,.storygrid{grid-template-columns:1fr}.hero-copy{padding:58px 0}.hero:after{width:105%;right:-42%}.footgrid{grid-template-columns:1fr 1fr}.thumb{height:170px}.program-art{height:200px}}


/* Hero image follows the reference composition while keeping its text editable. */
.hero{min-height:clamp(430px,39vw,600px);background-size:cover;background-position:center 44%}
.hero:before{background:linear-gradient(0deg,rgba(5,34,59,.2),transparent 42%);opacity:1}
.hero:after{display:none}
@media(max-width:800px){.hero{min-height:500px;background-position:62% center}}
@media(max-width:540px){.hero{min-height:540px;background-position:64% center}.hero-copy{max-width:480px}}

/* Images selected in the Customizer replace the illustrated placeholders. */
.thumb[style]:before,.thumb[style]:after{display:none}.visual[style]:after{display:none}.hero[style]:after{display:none}.hero[style],.visual[style],.thumb[style],.program-art[style]{background-size:cover;background-position:center}


/* Editable WordPress navigation, logo and content pages */
.links{list-style:none;margin:0;padding:0}.links li{display:block}.site-brand .custom-logo-link{display:inline-block;line-height:0}.site-brand .custom-logo{width:auto;max-width:220px;max-height:55px}.footer-brand .custom-logo{max-height:52px}.footer-links{list-style:none;margin:0;padding:0}.footer-links li{margin:2px 0}.page-shell{background:linear-gradient(180deg,#f0f8fb,#fff 330px);padding:58px 0 76px;min-height:60vh}.page-heading{margin:0 auto 32px;max-width:940px}.page-heading h1{color:var(--navy);font-size:clamp(2.5rem,5vw,4rem)}.page-featured-image{margin-top:25px;max-height:430px;overflow:hidden;border-radius:12px}.page-featured-image img{display:block;width:100%;height:auto;object-fit:cover}.page-content{max-width:900px;margin:0 auto;background:#fff;padding:clamp(22px,5vw,56px);border-radius:10px;box-shadow:0 8px 28px #092b4b0b}.page-content h2{margin-top:1.5em;color:var(--navy);font-size:clamp(1.6rem,3vw,2.25rem)}.page-content p{font-size:1.05rem;line-height:1.8}.page-content img{height:auto;max-width:100%;border-radius:8px}.page-content .wp-block-cover{border-radius:10px;overflow:hidden}.wp-block-button__link{background:var(--teal);border-radius:5px}


.work-highlights{background:#fff}.breadcrumbs{font-size:.86rem;color:var(--muted);margin-bottom:24px}.breadcrumbs a{color:var(--teal);font-weight:700}.page-posts,.page-related{max-width:980px;margin:48px auto 0}.page-posts h2,.page-related h2{color:var(--navy);margin-bottom:20px}.page-post-image{display:block;height:165px;overflow:hidden}.page-post-image img{width:100%;height:100%;object-fit:cover}.post-date{font-size:.78rem;margin:0 0 5px}.related-links{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.related-card{padding:17px 18px;background:#fff;border:1px solid #dcebf0;border-radius:8px;display:flex;flex-direction:column;gap:8px}.related-card strong{color:var(--navy)}.related-card span{font-size:.85rem;color:var(--teal);font-weight:700}.page-content h2:first-child{margin-top:0}@media(max-width:650px){.related-links{grid-template-columns:1fr 1fr}}

/* Keep the Home 2 card proportions adjustable without changing the main homepage. */
.page-template-homepage-two .thumb{height:var(--nn-home2-image-height,170px)}
.page-template-homepage-two .cardbody p{font-size:var(--nn-home2-text-size,14px)}
/* Keep the footer logo and gold call-to-action readable on the dark footer. */
.footer-brand .custom-logo{filter:brightness(0) invert(1)}
.footer a.btn,.footer a.btn:visited{color:#092b4b}
.footer a.btn:hover,.footer a.btn:focus{color:#092b4b;background:#ffd36b}
.blog .page-shell{overflow-x:clip}
.blog .page-shell .page-heading{flex-wrap:wrap;align-content:center;gap:0}
.blog .page-shell .page-heading h1{width:100%;margin:0}
.blog .page-shell .page-heading p{position:relative;z-index:1;color:#e7f2f7;max-width:620px;margin:12px 0 0;font-size:1.02rem;line-height:1.6}


/* Individual news and update posts */
.single-post-shell{padding-top:32px}
.single-update{max-width:980px;margin:0 auto}
.single-update-header{max-width:900px;margin:0 auto 28px}
.single-update-header h1{color:var(--navy);font-size:clamp(2.4rem,5vw,4rem);margin:.2em 0 .35em}
.single-update-excerpt{font-size:1.12rem;line-height:1.7;max-width:760px}
.single-update-image{margin:0 auto 28px;max-height:560px;overflow:hidden;border-radius:12px}
.single-update-image img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}
.single-update-content{min-height:120px}
.single-update-nav{max-width:900px;margin:24px auto 0;display:flex;align-items:center;justify-content:space-between;gap:20px}
.single-update-neighbours{display:flex;gap:18px;color:var(--teal);font-size:.9rem;font-weight:700}
@media(max-width:650px){.single-update-nav{align-items:flex-start;flex-direction:column}.single-update-neighbours{flex-wrap:wrap}}

