/*
Theme Name: NCCE Astra Child
Description: Custom Astra child theme for NCCE — Republic of The Gambia. Built by KMF Technologies.
Author: KMF Technologies
Template: astra
Version: 1.0.2
Text Domain: ncce-astra-child
*/

:root {
  --ncce-flag-red: #CE1126; --ncce-flag-red-dark: #8B0A18;
  --ncce-flag-blue: #0C1C8C; --ncce-flag-blue-dark: #061163; --ncce-flag-blue-tint: #EEF0F9;
  --ncce-flag-green: #3A7728;
  --ncce-gold: #C9A94A; --ncce-gold-dark: #8B6D1E;
  --ncce-ink: #14162B; --ncce-slate: #3D4056; --ncce-mist: #7A7D91;
  --ncce-cream: #FBF8F0; --ncce-cream-2: #F3EEE0; --ncce-paper: #FFFFFF;
  --ncce-line: #E0DBCC; --ncce-line-soft: #EEE9DA;
  --ncce-serif: 'Fraunces', Georgia, serif;
  --ncce-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Aggressive reset of Astra defaults that fight the design */
body { margin: 0 !important; padding: 0 !important; font-family: var(--ncce-sans) !important; font-size: 17px; font-weight: 450; line-height: 1.65; color: var(--ncce-ink); background: var(--ncce-paper); -webkit-font-smoothing: antialiased; }
body.page, body.home { background: var(--ncce-paper); }
* { box-sizing: border-box; }
a { color: var(--ncce-flag-blue); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ncce-serif); font-weight: 600; letter-spacing: -0.025em; color: var(--ncce-ink); font-variation-settings: 'opsz' 96, 'wght' 600; margin: 0; }
em { color: var(--ncce-flag-blue); font-style: italic; }

.ncce-container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.ncce-flag-strip { display: inline-flex; height: 12px; border-radius: 2px; overflow: hidden; vertical-align: middle; }
.ncce-flag-strip span { display: block; width: 18px; height: 100%; }
.ncce-flag-strip .r { background: var(--ncce-flag-red); }
.ncce-flag-strip .b { background: var(--ncce-flag-blue); }
.ncce-flag-strip .g { background: var(--ncce-flag-green); }

/* ================ UTILITY BAR ================ */
.ncce-util-bar { background: var(--ncce-ink); color: rgba(255,255,255,0.82); font-size: 13px; font-weight: 500; padding: 10px 0; }
.ncce-util-bar .ncce-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ncce-util-left { display: flex; gap: 14px; align-items: center; }
.ncce-util-social { display: flex; gap: 4px; }
.ncce-util-social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; transition: background 0.15s; }
.ncce-util-social a:hover { background: rgba(255,255,255,0.15); }
.ncce-util-social svg { width: 15px; height: 15px; fill: currentColor; }
.ncce-util-right { display: flex; gap: 20px; align-items: center; }
.ncce-util-right a { color: rgba(255,255,255,0.82); font-weight: 500; }
.ncce-util-right a:hover { color: #fff; }
.ncce-webmail-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; background: var(--ncce-flag-red); color: #fff !important; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: background 0.15s; }
.ncce-webmail-btn:hover { background: var(--ncce-flag-red-dark); }
.ncce-webmail-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ================ HEADER (single row, brand + nav right) ================ */
.ncce-header { background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ncce-line); padding: 18px 0; position: sticky; top: 0; z-index: 50; }
.ncce-header .ncce-container { display: flex; align-items: center; gap: 32px; }
.ncce-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ncce-brand img { height: 52px; width: auto; display: block; }
.ncce-brand-text .name { font-family: var(--ncce-serif); font-size: 17px; font-weight: 600; line-height: 1.15; color: var(--ncce-ink); letter-spacing: -0.01em; white-space: nowrap; }
.ncce-brand-text .sub { font-size: 10.5px; color: var(--ncce-slate); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; font-weight: 700; white-space: nowrap; }
.ncce-header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.ncce-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; white-space: nowrap; list-style: none; margin: 0; padding: 0; }
.ncce-nav a { color: var(--ncce-ink); padding: 8px 0; position: relative; transition: color 0.15s; line-height: 1; letter-spacing: -0.005em; }
.ncce-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; background: var(--ncce-flag-red); transform: scaleX(0); transition: transform 0.2s; }
.ncce-nav a:hover, .ncce-nav a.active { color: var(--ncce-flag-blue); }
.ncce-nav a:hover::after, .ncce-nav a.active::after { transform: scaleX(1); }
.ncce-cta-pill { display: inline-flex; align-items: center; padding: 9px 18px; background: var(--ncce-flag-blue); color: #fff !important; border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1; transition: background 0.15s; padding-left: 14px; border-left: 1px solid var(--ncce-line); margin-left: 4px; padding-left: 18px; }
.ncce-cta-pill:hover { background: var(--ncce-flag-blue-dark); }

/* ================ HERO ================ */
.ncce-hero { position: relative; min-height: 640px; color: #fff; overflow: hidden; background: var(--ncce-ink); }
.ncce-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(12,28,140,0.9) 0%, rgba(6,17,99,0.78) 50%, rgba(20,22,43,0.9) 100%); }
.ncce-hero-content { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 96px 32px 88px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; min-height: 640px; }
.ncce-hero-crest { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; margin-bottom: 32px; }
.ncce-hero-crest img { height: 32px; width: auto; }
.ncce-hero-crest .txt { font-size: 12.5px; color: rgba(255,255,255,0.9); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.ncce-hero h1 { font-family: var(--ncce-serif); font-size: clamp(44px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -0.028em; color: #fff; font-weight: 500; margin: 0 0 28px; font-variation-settings: 'opsz' 144, 'wght' 500; }
.ncce-hero h1 em { color: var(--ncce-gold); font-weight: 500; font-style: italic; }
.ncce-hero-motto { display: inline-flex; align-items: center; gap: 14px; font-family: var(--ncce-serif); font-size: 22px; color: #fff; font-style: italic; margin-bottom: 32px; font-weight: 500; }
.ncce-hero-lede { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,0.92); max-width: 580px; margin: 0 0 40px; font-weight: 500; }
.ncce-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ncce-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-size: 15.5px; font-weight: 600; text-decoration: none !important; transition: transform 0.12s, background 0.15s, border-color 0.15s; cursor: pointer; }
.ncce-btn-primary { background: #fff; color: var(--ncce-flag-blue); }
.ncce-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.ncce-btn-outline { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,0.5); }
.ncce-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.ncce-hero-feature { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 28px; color: #fff !important; text-decoration: none; display: block; transition: background 0.2s, transform 0.2s; }
.ncce-hero-feature:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.ncce-hero-feature .tag { display: inline-block; background: var(--ncce-gold); color: #3D2F0A; font-size: 11px; padding: 5px 12px; border-radius: 999px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.ncce-hero-feature .date { font-size: 12.5px; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.ncce-hero-feature h3 { font-family: var(--ncce-serif); font-size: 24px; line-height: 1.22; color: #fff; margin: 0 0 12px; font-weight: 600; }
.ncce-hero-feature p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.82); margin: 0 0 16px; font-weight: 500; }
.ncce-hero-feature .read { font-size: 14px; color: var(--ncce-gold); font-weight: 600; }

/* ================ FOOTER ================ */
.ncce-footer { background: var(--ncce-ink); color: rgba(255,255,255,0.82); padding: 80px 0 28px; font-size: 15px; }
.ncce-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.ncce-footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.ncce-footer-brand img { height: 64px; width: auto; }
.ncce-footer-brand .name { font-family: var(--ncce-serif); font-size: 19px; color: #fff; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.ncce-footer-brand .sub { font-size: 11px; color: var(--ncce-gold); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.ncce-footer-brand address { font-style: normal; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.72); margin-bottom: 20px; }
.ncce-footer-social { display: flex; gap: 6px; }
.ncce-footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); color: #fff; border-radius: 50%; transition: background 0.15s, color 0.15s; }
.ncce-footer-social a:hover { background: var(--ncce-gold); color: #3D2F0A; }
.ncce-footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.ncce-footer-col h6 { font-family: var(--ncce-sans); font-size: 12px; color: var(--ncce-gold); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px; font-weight: 700; }
.ncce-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ncce-footer-col li { margin-bottom: 11px; }
.ncce-footer-col a { color: rgba(255,255,255,0.82); font-size: 14px; }
.ncce-footer-col a:hover { color: #fff; }
.ncce-footer-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 16px; }

/* Hide any residual Astra chrome we don't want */
.site-header, header.entry-header, .ast-container, .ast-primary-header-bar { display: none !important; }
#content, .site-content, .content-area, .site-main, .ast-container-fluid, .site-content > .ast-container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.entry-content > * { margin-left: 0 !important; margin-right: 0 !important; }
article.page { margin: 0 !important; padding: 0 !important; }

@media (max-width: 900px) {
  .ncce-hero-content { grid-template-columns: 1fr; padding: 64px 20px; }
  .ncce-nav { display: none; }
  .ncce-footer-top { grid-template-columns: 1fr; gap: 32px; }
}
