/*
Theme Name: NAWEC Theme
Theme URI: https://nawec.gm
Description: Modern utility website for the National Water & Electricity Company of The Gambia
Author: NAWEC Digital Team
Version: 2.0.0
Template: hello-elementor
Text Domain: nawec-theme
*/

/* ========== DESIGN TOKENS ========== */
:root {
  /* NAWEC Brand Palette */
  --n-primary: #003366;          /* NAWEC dark blue (headings/text) */
  --n-primary-dark: #002244;
  --n-primary-mid: #004080;
  --n-primary-light: #006BB6;    /* NAWEC blue (logo arc) */
  --n-accent: #ED1C24;           /* NAWEC red (site accent) */
  --n-accent-dark: #C41820;
  --n-accent-light: #F04850;

  /* NAWEC Logo Colors */
  --n-red: #ED1C24;              /* NAWEC red (logo text) */
  --n-green: #009370;            /* NAWEC green (logo arc) */
  --n-blue: #006BB6;             /* NAWEC blue (logo arc) */

  /* Functional */
  --n-success: #009370;          /* Uses NAWEC green */
  --n-success-light: #E8F5E9;
  --n-warning: #FF8F00;
  --n-warning-light: #FFF8E1;
  --n-energy: #ED1C24;           /* NAWEC red */
  --n-water: #006BB6;            /* NAWEC blue */
  --n-sewer: #009370;            /* NAWEC green */

  /* Neutrals */
  --n-white: #FFFFFF;
  --n-gray-25: #FAFBFC;
  --n-gray-50: #F4F5F7;
  --n-gray-100: #EBECF0;
  --n-gray-200: #DFE1E6;
  --n-gray-300: #C1C7D0;
  --n-gray-400: #A5ADBA;
  --n-gray-500: #6B778C;
  --n-gray-600: #505F79;
  --n-gray-700: #344563;
  --n-gray-800: #253858;
  --n-gray-900: #172B4D;
  --n-black: #091E42;

  /* Effects */
  --n-shadow-xs: 0 1px 2px rgba(9,30,66,0.06);
  --n-shadow-sm: 0 1px 3px rgba(9,30,66,0.08), 0 1px 2px rgba(9,30,66,0.04);
  --n-shadow-md: 0 4px 8px -2px rgba(9,30,66,0.08), 0 2px 4px rgba(9,30,66,0.04);
  --n-shadow-lg: 0 8px 16px -4px rgba(9,30,66,0.08), 0 4px 8px rgba(9,30,66,0.04);
  --n-shadow-xl: 0 20px 32px -8px rgba(9,30,66,0.1), 0 8px 16px rgba(9,30,66,0.06);
  --n-radius: 8px;
  --n-radius-lg: 12px;
  --n-radius-xl: 16px;
  --n-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --n-transition: 0.25s var(--n-ease);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--n-gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: var(--n-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--n-primary);
  letter-spacing: -0.01em;
}

p { color: var(--n-gray-600); }

a {
  color: var(--n-blue);
  text-decoration: none;
  transition: color var(--n-transition);
}
a:hover { color: var(--n-primary); }

img { max-width: 100%; height: auto; display: block; }

.n-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== UTILITY BAR ========== */
.n-utilbar {
  background: var(--n-primary-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.n-utilbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}
.n-utilbar-left,
.n-utilbar-right { display: flex; align-items: center; gap: 24px; }
.n-utilbar a,
.n-utilbar span {
  color: rgba(255,255,255,0.65);
  transition: color var(--n-transition);
}
.n-utilbar a:hover { color: var(--n-accent); }
.n-utilbar i { margin-right: 6px; font-size: 11px; }
.n-utilbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.12);
}
.n-utilbar .n-emergency {
  color: var(--n-accent);
  font-weight: 600;
}
.n-utilbar .n-emergency i { color: var(--n-accent); }

/* ========== HEADER ========== */
.n-header {
  background: var(--n-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--n-transition);
}
.n-header.scrolled { box-shadow: var(--n-shadow-lg); }
.n-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.n-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.n-logo img { height: 44px; width: auto; }
.n-logo-img { height: 42px; width: auto; }
.n-logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--n-primary), var(--n-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
}
.n-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.n-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--n-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}
.n-logo-sub {
  font-size: 10.5px;
  color: var(--n-gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== NAVIGATION ========== */
.n-nav { display: flex; align-items: center; gap: 4px; }
.n-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}
.n-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--n-gray-700);
  border-radius: 6px;
  transition: all var(--n-transition);
  white-space: nowrap;
}
.n-nav > ul > li > a:hover,
.n-nav > ul > li.current-menu-item > a {
  color: var(--n-primary);
  background: var(--n-gray-50);
}
.n-nav > ul > li > a .fa-chevron-down {
  font-size: 9px;
  opacity: 0.4;
  transition: transform var(--n-transition);
}
.n-nav > ul > li:hover > a .fa-chevron-down { transform: rotate(180deg); }

/* Dropdown */
.n-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -8px;
  background: var(--n-white);
  min-width: 220px;
  border-radius: var(--n-radius-lg);
  box-shadow: var(--n-shadow-xl);
  padding: 8px;
  padding-top: 12px;
  z-index: 100;
  list-style: none;
  border: 1px solid var(--n-gray-100);
  animation: dropIn 0.2s var(--n-ease);
}
/* Invisible bridge to keep hover when moving to submenu */
.n-nav .sub-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.n-nav li { position: relative; }
.n-nav li:hover > .sub-menu { display: block; }
.n-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--n-gray-700);
  border-radius: 6px;
  transition: all var(--n-transition);
}
.n-nav .sub-menu a:hover {
  background: var(--n-gray-50);
  color: var(--n-primary);
}

.n-header-actions { display: flex; align-items: center; gap: 8px; }
.n-header-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--n-gray-50);
  color: var(--n-gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--n-transition);
  font-size: 14px;
}
.n-header-search:hover {
  background: var(--n-gray-100);
  color: var(--n-primary);
}

.n-header-alert-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(220,38,38,0.08);
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
}
.n-header-alert-btn:hover {
  background: rgba(220,38,38,0.15);
}
.n-header-alert-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 100px;
  background: #DC2626;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.n-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--n-primary);
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* ========== BUTTONS ========== */
.n-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--n-radius);
  border: none;
  cursor: pointer;
  transition: all var(--n-transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.n-btn-lg { padding: 16px 32px; font-size: 15px; }
.n-btn-sm { padding: 8px 16px; font-size: 13px; }

.n-btn-primary {
  background: var(--n-accent);
  color: var(--n-primary-dark);
}
.n-btn-primary:hover {
  background: var(--n-accent-light);
  color: var(--n-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247,197,30,0.4);
}
.n-btn-dark {
  background: var(--n-primary);
  color: var(--n-white);
}
.n-btn-dark:hover {
  background: var(--n-primary-mid);
  color: var(--n-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,51,102,0.3);
}
.n-btn-outline {
  background: transparent;
  color: var(--n-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.n-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--n-white);
}
.n-btn-ghost {
  background: transparent;
  color: var(--n-blue);
  padding: 8px 0;
}
.n-btn-ghost:hover { color: var(--n-primary); }
.n-btn-ghost i { transition: transform var(--n-transition); }
.n-btn-ghost:hover i { transform: translateX(3px); }
.n-btn-white {
  background: var(--n-white);
  color: var(--n-primary);
}
.n-btn-white:hover {
  background: var(--n-gray-50);
  color: var(--n-primary);
  transform: translateY(-1px);
  box-shadow: var(--n-shadow-lg);
}

/* ========== HERO ========== */
.n-hero {
  position: relative;
  background: var(--n-primary);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.n-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0,114,188,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0,133,74,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(247,197,30,0.05) 0%, transparent 60%),
    linear-gradient(160deg, var(--n-primary-dark) 0%, var(--n-primary) 40%, #004C8C 100%);
}
.n-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.5) 60px, rgba(255,255,255,0.5) 61px),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.5) 60px, rgba(255,255,255,0.5) 61px);
}
.n-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.n-hero-content { max-width: 560px; }
.n-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247,197,30,0.12);
  border: 1px solid rgba(247,197,30,0.25);
  color: var(--n-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.n-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--n-success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.n-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--n-white);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.n-hero h1 span { color: var(--n-accent); }
.n-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.n-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero right - Quick Action Cards */
.n-hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.n-hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--n-radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  transition: all var(--n-transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.n-hero-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}
.n-hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.n-hero-card-icon.pay { background: rgba(247,197,30,0.15); color: var(--n-accent); }
.n-hero-card-icon.outage { background: rgba(212,32,39,0.15); color: #FF6B6B; }
.n-hero-card-icon.connect { background: rgba(0,133,74,0.15); color: #5CDB95; }
.n-hero-card-icon.track { background: rgba(0,114,188,0.15); color: #64B5F6; }
.n-hero-card h4 {
  color: var(--n-white);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.n-hero-card p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

/* ========== ANNOUNCEMENT BAR ========== */
.n-announce {
  background: var(--n-accent);
  color: var(--n-white);
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
}
.n-announce-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.n-announce i { font-size: 16px; }
.n-announce a { color: var(--n-white); text-decoration: underline; font-weight: 600; }

/* ========== SERVICES ========== */
.n-services { padding: 96px 0; }
.n-section-head {
  margin-bottom: 56px;
}
.n-section-head.center { text-align: center; }
.n-section-head.center p { margin-left: auto; margin-right: auto; }
.n-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--n-green);
  margin-bottom: 12px;
}
.n-overline::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--n-green);
  border-radius: 1px;
}
.n-section-head.center .n-overline::before { display: none; }
.n-section-head h2 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.n-section-head p {
  font-size: 16px;
  color: var(--n-gray-500);
  max-width: 520px;
  line-height: 1.6;
}

.n-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.n-service-card {
  position: relative;
  background: var(--n-white);
  border: 1px solid var(--n-gray-100);
  border-radius: var(--n-radius-xl);
  padding: 40px 32px 36px;
  transition: all var(--n-transition);
  overflow: hidden;
}
.n-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  transition: height var(--n-transition);
}
.n-service-card.electricity::before { background: var(--n-red); }
.n-service-card.water::before { background: var(--n-blue); }
.n-service-card.sewerage::before { background: var(--n-green); }

.n-service-card:hover {
  border-color: transparent;
  box-shadow: var(--n-shadow-xl);
  transform: translateY(-4px);
}
.n-service-card:hover::before { height: 4px; }
.n-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}
.n-service-card.electricity .n-service-icon {
  background: rgba(212,32,39,0.08);
  color: var(--n-red);
}
.n-service-card.water .n-service-icon {
  background: rgba(0,114,188,0.08);
  color: var(--n-blue);
}
.n-service-card.sewerage .n-service-icon {
  background: rgba(0,133,74,0.08);
  color: var(--n-green);
}
.n-service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.n-service-card > p {
  font-size: 14.5px;
  color: var(--n-gray-500);
  line-height: 1.65;
  margin-bottom: 24px;
}
.n-service-features {
  list-style: none;
  margin-bottom: 28px;
}
.n-service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--n-gray-700);
  border-bottom: 1px solid var(--n-gray-50);
}
.n-service-features li:last-child { border-bottom: none; }
.n-service-features li i {
  color: var(--n-success);
  font-size: 12px;
  flex-shrink: 0;
}

/* ========== QUICK ACTIONS ========== */
.n-actions {
  padding: 96px 0;
  background: var(--n-gray-25);
}
.n-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.n-action-card {
  background: var(--n-white);
  border: 1px solid var(--n-gray-100);
  border-radius: var(--n-radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--n-transition);
  text-decoration: none;
  display: block;
}
.n-action-card:hover {
  border-color: var(--n-primary);
  box-shadow: var(--n-shadow-lg);
  transform: translateY(-3px);
}
.n-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 18px;
  background: rgba(0,51,102,0.06);
  color: var(--n-primary);
  transition: all var(--n-transition);
}
.n-action-card:hover .n-action-icon {
  background: var(--n-primary);
  color: var(--n-accent);
}
.n-action-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--n-gray-900);
}
.n-action-card p {
  font-size: 13px;
  color: var(--n-gray-400);
  margin: 0;
  line-height: 1.5;
}

/* ========== STATS ========== */
.n-stats {
  padding: 72px 0;
  background: var(--n-primary);
  position: relative;
  overflow: hidden;
}
.n-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,1) 80px, rgba(255,255,255,1) 81px),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,1) 80px, rgba(255,255,255,1) 81px);
}
.n-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  position: relative;
  z-index: 1;
}
.n-stat { text-align: center; }
.n-stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--n-white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.n-stat-number span { color: var(--n-accent); }
.n-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.n-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 auto;
}

/* ========== NEWS ========== */
.n-news { padding: 96px 0; }
.n-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.n-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.n-news-card {
  background: var(--n-white);
  border: 1px solid var(--n-gray-100);
  border-radius: var(--n-radius-lg);
  overflow: hidden;
  transition: all var(--n-transition);
}
.n-news-card:hover {
  box-shadow: var(--n-shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.n-news-card-img {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--n-gray-100), var(--n-gray-200));
  overflow: hidden;
}
.n-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--n-ease);
}
.n-news-card:hover .n-news-card-img img { transform: scale(1.05); }
.n-news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--n-gray-100) 0%, var(--n-gray-200) 100%);
  color: var(--n-gray-300);
  font-size: 32px;
}
.n-news-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--n-accent);
  color: var(--n-primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
}
.n-news-card-body { padding: 24px; }
.n-news-card-date {
  font-size: 12px;
  color: var(--n-gray-400);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.n-news-card-body h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--n-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.n-news-card-body h3 a { color: inherit; }
.n-news-card-body h3 a:hover { color: var(--n-accent); }
.n-news-card-body > p {
  font-size: 14px;
  color: var(--n-gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.n-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--n-blue);
}
.n-read-more i {
  font-size: 10px;
  transition: transform var(--n-transition);
}
.n-read-more:hover i { transform: translateX(3px); }
.n-read-more:hover { color: var(--n-primary); }

/* ========== CTA BANNER ========== */
.n-cta {
  padding: 96px 0;
  background: var(--n-gray-25);
}
.n-cta-box {
  background: linear-gradient(135deg, var(--n-primary) 0%, var(--n-primary-mid) 100%);
  border-radius: var(--n-radius-xl);
  padding: 72px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.n-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(247,197,30,0.08);
}
.n-cta-content { position: relative; z-index: 1; max-width: 520px; }
.n-cta-content h2 {
  color: var(--n-white);
  font-size: 32px;
  margin-bottom: 16px;
}
.n-cta-content p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.n-cta-actions { display: flex; gap: 12px; position: relative; z-index: 1; flex-shrink: 0; }

/* ========== FOOTER ========== */
.n-footer {
  background: var(--n-gray-900);
  color: rgba(255,255,255,0.6);
}
.n-footer-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.n-footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 24px;
}
.n-footer-social { display: flex; gap: 8px; }
.n-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--n-transition);
}
.n-footer-social a:hover {
  background: var(--n-accent);
  color: var(--n-primary-dark);
}
.n-footer h5 {
  color: var(--n-white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.n-footer ul { list-style: none; }
.n-footer li { margin-bottom: 12px; }
.n-footer a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: all var(--n-transition);
}
.n-footer a:hover { color: var(--n-accent); }
.n-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.n-footer-contact li i {
  color: var(--n-accent);
  font-size: 13px;
  width: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}
.n-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}
.n-footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.n-footer-legal { display: flex; gap: 24px; }
.n-footer-legal a { color: rgba(255,255,255,0.35); }
.n-footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ========== PAGE TEMPLATES ========== */
.n-page-header {
  background: var(--n-primary);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.n-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,1) 60px, rgba(255,255,255,1) 61px);
}
.n-page-header .n-container { position: relative; z-index: 1; }
.n-page-header h1 {
  color: var(--n-white);
  font-size: 32px;
  margin-bottom: 8px;
}
.n-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.n-breadcrumb a { color: rgba(255,255,255,0.5); }
.n-breadcrumb a:hover { color: var(--n-accent-light); }

.n-page-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.n-page-content.narrow { max-width: 800px; }

.n-page-content .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--n-gray-700);
}
.n-page-content .entry-content h2 { margin-top: 40px; margin-bottom: 16px; }
.n-page-content .entry-content h3 { margin-top: 32px; margin-bottom: 12px; }
.n-page-content .entry-content p { margin-bottom: 20px; }
.n-page-content .entry-content ul,
.n-page-content .entry-content ol { margin-bottom: 20px; padding-left: 24px; }
.n-page-content .entry-content li { margin-bottom: 8px; color: var(--n-gray-700); }
.n-page-content .entry-content img { border-radius: var(--n-radius-lg); margin: 24px 0; }

/* Archive grid */
.n-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ========== LISTING PAGES (Tenders, Careers, etc.) ========== */
.proc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--n-gray-100);
}
.proc-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--n-gray-600);
  background: var(--n-gray-50);
  border: 1px solid var(--n-gray-100);
  transition: all 0.2s ease;
  text-decoration: none;
}
.proc-filter:hover {
  border-color: var(--n-primary);
  color: var(--n-primary);
  background: var(--n-white);
}
.proc-filter.active {
  background: var(--n-primary);
  color: var(--n-white);
  border-color: var(--n-primary);
}
.proc-filter.active .proc-filter-count {
  background: rgba(255,255,255,0.2);
  color: var(--n-white);
}
.proc-filter-count {
  background: var(--n-gray-200);
  color: var(--n-gray-600);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.4;
}
.proc-results-info {
  font-size: 14px;
  color: var(--n-gray-500);
  margin-bottom: 20px;
}
.proc-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--n-gray-100);
  border-radius: var(--n-radius-lg);
  overflow: hidden;
  border: 1px solid var(--n-gray-100);
}
.proc-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--n-white);
  transition: background 0.15s ease;
}
.proc-item:hover { background: var(--n-gray-25); }
.proc-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  padding: 10px;
  background: var(--n-gray-50);
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
}
.proc-date-day {
  font-size: 24px;
  font-weight: 800;
  color: var(--n-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.proc-date-month {
  font-size: 12px;
  font-weight: 600;
  color: var(--n-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.proc-date-year {
  font-size: 11px;
  color: var(--n-gray-400);
  margin-top: 2px;
}
.proc-item-body { flex: 1; min-width: 0; }
.proc-item-meta { margin-bottom: 6px; }
.proc-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.proc-item-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--n-gray-900);
}
.proc-item-body h3 a { color: inherit; }
.proc-item-body h3 a:hover { color: var(--n-blue); }
.proc-item-body > p {
  font-size: 13.5px;
  color: var(--n-gray-500);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proc-item-action { flex-shrink: 0; }
.proc-pagination {
  margin-top: 40px;
  text-align: center;
}
.proc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--n-gray-600);
  transition: all 0.15s ease;
  text-decoration: none;
}
.proc-pagination .page-numbers:hover {
  background: var(--n-gray-100);
  color: var(--n-primary);
}
.proc-pagination .page-numbers.current {
  background: var(--n-primary);
  color: var(--n-white);
}
.proc-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--n-gray-400);
}
.proc-empty i { font-size: 40px; margin-bottom: 16px; }
.proc-empty h3 { color: var(--n-gray-700); margin-bottom: 8px; }
.proc-empty p { margin-bottom: 24px; }

/* ========== ENTRY CONTENT — ARTICLE STYLING ========== */
.entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--n-gray-700);
}
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--n-gray-900);
  font-family: var(--n-font-heading);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}
.entry-content h1 { font-size: 28px; }
.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.entry-content li { margin-bottom: 0.4em; }
.entry-content hr {
  border: none;
  border-top: 1px solid var(--n-gray-100);
  margin: 2em 0;
}
.entry-content blockquote {
  border-left: 4px solid var(--n-accent);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--n-gray-25);
  border-radius: 0 var(--n-radius) var(--n-radius) 0;
  font-style: italic;
  color: var(--n-gray-600);
}

/* Single images — full width and polished */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--n-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Photo gallery: paragraphs containing multiple images */
.entry-content p:has(img + img) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 2em 0;
  padding: 0;
}
.entry-content p:has(img + img) img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--n-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.entry-content p:has(img + img) img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Gallery label before photo grids */
.entry-content p:has(img + img)::before {
  content: none;
}

/* JS fallback class for browsers without :has() support */
.entry-content p.n-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 2em 0;
  padding: 0;
}
.entry-content p.n-photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--n-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.entry-content p.n-photo-gallery img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* WordPress gallery blocks also get polished */
.entry-content .wp-block-gallery {
  gap: 12px;
}
.entry-content .wp-block-gallery img {
  border-radius: var(--n-radius);
}

/* Lightbox overlay for clicked images */
.n-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  animation: n-fade-in 0.2s ease;
  backdrop-filter: blur(4px);
}
.n-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--n-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
  cursor: default;
}
.n-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.15s ease;
}
.n-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}
.n-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.15s ease;
}
.n-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.n-lightbox-nav.prev { left: 20px; }
.n-lightbox-nav.next { right: 20px; }
.n-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
}
@keyframes n-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .n-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .n-hero h1 { font-size: 40px; }
  .n-hero-cards { grid-template-columns: repeat(2, 1fr); }
  .n-services-grid { grid-template-columns: 1fr 1fr; }
  .n-actions-grid { grid-template-columns: repeat(2, 1fr); }
  .n-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .n-footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .n-cta-box { flex-direction: column; text-align: center; padding: 56px 40px; }
  .n-cta-content { max-width: 100%; }
}

@media (max-width: 768px) {
  .n-utilbar { display: none; }
  .n-menu-toggle { display: flex; }
  .n-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--n-white);
    border-top: 1px solid var(--n-gray-100);
    box-shadow: var(--n-shadow-xl);
    padding: 12px 16px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .n-nav.open { display: block; }
  .n-nav ul { flex-direction: column; }
  .n-nav > ul > li > a { padding: 12px 16px; font-size: 15px; }
  .n-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
    min-width: 0;
    animation: none;
    background: var(--n-gray-25);
    border-radius: var(--n-radius);
    margin-top: 4px;
  }
  .n-nav li.open > .sub-menu { display: block; }
  .n-header-actions .n-btn { display: none; }

  .n-hero { min-height: auto; }
  .n-hero-inner { padding: 56px 24px 64px; }
  .n-hero h1 { font-size: 32px; }
  .n-hero-desc { font-size: 15px; }
  .n-hero-cards { grid-template-columns: 1fr; gap: 12px; }
  .n-hero-card { flex-direction: row; align-items: center; padding: 18px 20px; }

  .n-services,
  .n-actions,
  .n-news,
  .n-cta { padding: 64px 0; }
  .n-section-head h2 { font-size: 28px; }
  .n-services-grid,
  .n-news-grid,
  .n-archive-grid { grid-template-columns: 1fr; }
  .n-actions-grid { grid-template-columns: 1fr 1fr; }
  .n-stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .n-stat-number { font-size: 36px; }

  .n-news-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .n-footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 40px; }
  .n-footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }

  .proc-item { flex-direction: column; align-items: flex-start; gap: 16px; }
  .proc-item-date { flex-direction: row; gap: 8px; min-width: auto; }
  .proc-item-action { width: 100%; }
  .proc-item-action .n-btn { width: 100%; justify-content: center; }
  .proc-filters { gap: 6px; }
  .proc-filter { font-size: 12px; padding: 6px 12px; }

  .entry-content p:has(img + img) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
  }
  .entry-content p:has(img + img) img {
    height: 180px;
  }
  .n-lightbox { padding: 16px; }
  .n-lightbox-nav.prev { left: 8px; }
  .n-lightbox-nav.next { right: 8px; }
}

@media (max-width: 480px) {
  .n-hero h1 { font-size: 28px; }
  .n-hero-actions { flex-direction: column; }
  .n-hero-actions .n-btn { width: 100%; justify-content: center; }
  .n-actions-grid { grid-template-columns: 1fr; }
}
