/*
Theme Name:        Growth Nexus Hub
Theme URI:         https://growthnexus.live
Description:       Custom bilingual English–Arabic WordPress theme for Growth Nexus Capacity Building Hub.
Version:           1.0.0
Author:            Growth Nexus
Author URI:        https://growthnexus.live
Text Domain:        growth-nexus-hub
Requires at least: 6.4
Requires PHP:       8.0
License:            GPL-2.0-or-later
License URI:        https://www.gnu.org/licenses/gpl-2.0.html
Tags:               custom-logo, featured-images, rtl-language-support, translation-ready, full-width-template
*/

:root { --gnx-teal: #0f766e; --gnx-ink: #12201f; --gnx-muted: #5d6866; --gnx-sand: #f5f8f7; --gnx-orange: #c75d12; --gnx-line: #dce8e4; --gnx-white: #fff; --gnx-shadow: 0 18px 44px rgba(17, 72, 67, .12); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--gnx-white); color: var(--gnx-ink); font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.62; }
body.rtl, [dir="rtl"] { font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif; }
a { color: var(--gnx-teal); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #08534d; }
img { max-width: 100%; height: auto; }
.gnx-container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.gnx-screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gnx-screen-reader-text:focus { position: fixed; z-index: 100; width: auto; height: auto; clip: auto; padding: .5rem 1rem; background: #fff; color: #000; }
.gnx-site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--gnx-line); backdrop-filter: blur(10px); }
.gnx-header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gnx-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--gnx-ink); text-decoration: none; }
.gnx-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--gnx-teal); font-size: 1.45rem; font-weight: 800; }
.gnx-brand strong, .gnx-brand span { display: block; line-height: 1.18; }
.gnx-brand span { color: var(--gnx-teal); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.gnx-nav { display: flex; align-items: center; gap: 1.15rem; }
.gnx-nav a { color: #3e504c; text-decoration: none; font-size: .91rem; font-weight: 700; }
.gnx-nav a:hover { color: var(--gnx-teal); }
.gnx-header-actions { display: flex; align-items: center; gap: .55rem; }
.gnx-lang-switcher { display: inline-flex; border: 1px solid var(--gnx-line); border-radius: 999px; overflow: hidden; }
.gnx-lang-switcher a { padding: .35rem .6rem; color: #3e504c; font-size: .75rem; font-weight: 800; text-decoration: none; }
.gnx-lang-switcher a[aria-current="true"] { background: #e5f4f1; color: var(--gnx-teal); }
.gnx-button, button.gnx-button, input[type="submit"].gnx-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.05rem; border: 1px solid var(--gnx-teal); border-radius: .55rem; background: var(--gnx-teal); color: #fff; font: inherit; font-size: .9rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.gnx-button:hover { background: #095c55; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,118,110,.2); }
.gnx-button--light { border-color: #fff; background: #fff; color: var(--gnx-teal); }
.gnx-button--ghost { border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
.gnx-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, #104f4b 0%, #0f766e 55%, #159287 100%); }
.gnx-hero:before { content: ""; position: absolute; right: -9rem; bottom: -12rem; width: 38rem; height: 38rem; border-radius: 50%; background: rgba(255,255,255,.08); filter: blur(5px); }
.gnx-hero-content { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6.5rem); max-width: 800px; }
.gnx-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .75rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: inherit; background: rgba(255,255,255,.09); font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.gnx-hero h1 { max-width: 760px; margin: 1.2rem 0; font-size: clamp(2.35rem, 5.5vw, 4.75rem); line-height: 1.08; letter-spacing: -.045em; }
.gnx-hero h1 em { color: #c5f0e8; font-style: normal; }
.gnx-hero p { max-width: 710px; margin: 0 0 1.8rem; color: #d8f2ee; font-size: clamp(1rem, 2vw, 1.22rem); }
.gnx-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.gnx-section { padding: clamp(3.75rem, 8vw, 6.8rem) 0; }
.gnx-section--soft { background: var(--gnx-sand); }
.gnx-section-title { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.gnx-section-title h2 { margin: .55rem 0 .65rem; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -.035em; }
.gnx-section-title p { margin: 0; color: var(--gnx-muted); }
.gnx-eyebrow { margin: 0; color: var(--gnx-teal); font-size: .79rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.gnx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.2rem; position: relative; z-index: 2; }
.gnx-stat { padding: 1.25rem; border: 1px solid var(--gnx-line); border-radius: .85rem; background: #fff; box-shadow: 0 10px 26px rgba(11, 64, 59, .08); text-align: center; }
.gnx-stat strong { display: block; color: var(--gnx-teal); font-size: 1.7rem; line-height: 1.1; }
.gnx-stat span { color: var(--gnx-muted); font-size: .8rem; font-weight: 700; }
.gnx-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gnx-card { min-width: 0; overflow: hidden; border: 1px solid var(--gnx-line); border-radius: .9rem; background: #fff; box-shadow: 0 7px 19px rgba(11, 64, 59, .06); transition: transform .22s ease, box-shadow .22s ease; }
.gnx-card:hover { transform: translateY(-5px); box-shadow: var(--gnx-shadow); }
.gnx-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #e2efec; }
.gnx-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gnx-card:hover .gnx-card-image img { transform: scale(1.035); }
.gnx-card-body { padding: 1.2rem; }
.gnx-card h3 { margin: 0 0 .45rem; font-size: 1.15rem; line-height: 1.28; }
.gnx-card h3 a { color: var(--gnx-ink); text-decoration: none; }
.gnx-card p { margin: 0; color: var(--gnx-muted); font-size: .91rem; }
.gnx-tags { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .95rem; }
.gnx-tag { padding: .25rem .47rem; border: 1px solid #cce7e1; border-radius: 999px; color: #21695f; background: #effaf7; font-size: .69rem; font-weight: 800; }
.gnx-card-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.05rem; font-size: .82rem; font-weight: 800; }
.gnx-card-links a { text-decoration: none; }
.gnx-section-action { margin-top: 2rem; text-align: center; }
.gnx-split { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.gnx-split h2 { margin: .5rem 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.14; letter-spacing: -.04em; }
.gnx-split p { color: var(--gnx-muted); }
.gnx-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.gnx-point { padding: 1.25rem; border-radius: .8rem; background: #e9f7f4; color: #0a4e48; font-weight: 800; }
.gnx-team-card .gnx-team-top { display: flex; align-items: center; gap: .9rem; }
.gnx-team-image { width: 4rem; height: 4rem; flex: 0 0 4rem; overflow: hidden; border-radius: 50%; background: var(--gnx-teal); }
.gnx-team-image img { width: 100%; height: 100%; object-fit: cover; }
.gnx-team-image span { display: grid; width: 100%; height: 100%; place-items: center; color: #fff; font-size: 1.35rem; font-weight: 900; }
.gnx-role { margin: .2rem 0 0; color: var(--gnx-teal); font-size: .82rem; font-weight: 900; }
.gnx-cta { color: #fff; background: linear-gradient(115deg, #075f59, #0f8a7e); text-align: center; }
.gnx-cta h2 { margin: .6rem 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.14; }
.gnx-cta p { max-width: 650px; margin: 0 auto 1.5rem; color: #d6f0ec; }
.gnx-cta .gnx-actions { justify-content: center; }
.gnx-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gnx-contact-card { padding: 1.35rem; border: 1px solid var(--gnx-line); border-radius: .85rem; background: #fff; }
.gnx-contact-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.gnx-contact-card p { margin: 0; color: var(--gnx-muted); }
.gnx-site-footer { padding: 3rem 0 1.2rem; color: #dcece9; background: #102d2b; }
.gnx-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.gnx-site-footer h2, .gnx-site-footer h3 { margin: 0 0 .7rem; color: #fff; font-size: 1rem; }
.gnx-site-footer p, .gnx-site-footer li { color: #b9d1cd; font-size: .87rem; }
.gnx-site-footer ul { margin: 0; padding: 0; list-style: none; }
.gnx-site-footer a { color: #cfebe5; }
.gnx-registration { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; color: #dcece9; font-size: .76rem; font-weight: 800; }
.gnx-registration img { width: 48px; height: 48px; padding: 3px; border-radius: .35rem; background: #fff; }
.gnx-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); color: #a8c4bf; font-size: .76rem; }
.gnx-catalogue-group + .gnx-catalogue-group { margin-top: 4.5rem; padding-top: 4.5rem; border-top: 1px solid var(--gnx-line); }
.gnx-group-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.gnx-group-header h2 { margin: .35rem 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.14; }
.gnx-group-header p { max-width: 740px; margin: 0; color: var(--gnx-muted); }
.gnx-portfolio-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.gnx-portfolio-links a { padding: .45rem .7rem; border: 1px solid #cce7e1; border-radius: .45rem; background: #effaf7; color: #126a61; text-decoration: none; font-size: .8rem; font-weight: 800; }
.gnx-portal, .gnx-contact-form { max-width: 1020px; margin: 2rem auto; padding: clamp(1.5rem, 4vw, 3.2rem); border: 1px solid var(--gnx-line); border-radius: 1rem; background: #fff; box-shadow: var(--gnx-shadow); }
.gnx-portal h2, .gnx-contact-form h2 { margin: .25rem 0 .55rem; font-size: 2rem; }
.gnx-portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.gnx-portal-grid article { padding: 1.1rem; border: 1px solid var(--gnx-line); border-radius: .7rem; background: #f8fbfa; }
.gnx-portal-grid h3 { margin: 0 0 .5rem; font-size: 1rem; }
.gnx-portal-grid p { margin: 0; color: var(--gnx-muted); font-size: .88rem; }
.gnx-portal-grid a { display: inline-block; margin-top: .75rem; font-weight: 800; }
.gnx-contact-form form { display: grid; gap: .9rem; margin-top: 1.25rem; }
.gnx-contact-form p { margin: 0; }
.gnx-contact-form label { display: block; margin-bottom: .25rem; color: #35524e; font-size: .86rem; font-weight: 800; }
.gnx-contact-form input, .gnx-contact-form textarea { display: block; width: 100%; padding: .72rem .8rem; border: 1px solid #c8dcd7; border-radius: .5rem; background: #fff; color: var(--gnx-ink); font: inherit; }
.gnx-contact-form input:focus, .gnx-contact-form textarea:focus { outline: 3px solid rgba(15,118,110,.16); border-color: var(--gnx-teal); }
.gnx-honeypot { position: absolute!important; left: -9999px!important; }
.gnx-notice { padding: .75rem 1rem; border-radius: .5rem; color: #075f59; background: #e7f7f3; font-weight: 700; }
@media (max-width: 900px) { .gnx-nav { display: none; } .gnx-stats, .gnx-card-grid { grid-template-columns: repeat(2, 1fr); } .gnx-split { grid-template-columns: 1fr; } .gnx-footer-grid { grid-template-columns: 1fr 1fr; } .gnx-portal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .gnx-header-row { min-height: 64px; } .gnx-brand span { display: none; } .gnx-header-actions .gnx-button { display: none; } .gnx-stats, .gnx-card-grid, .gnx-contact, .gnx-points, .gnx-footer-grid, .gnx-portal-grid { grid-template-columns: 1fr; } .gnx-group-header, .gnx-footer-bottom { align-items: start; flex-direction: column; } .gnx-hero-content { padding-top: 4rem; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto!important; transition-duration: .01ms!important; animation-duration: .01ms!important; } }
