/* ================================================
   ODPP STAFF SACCO — Main Stylesheet
   Colors: Deep Navy #1E2B8E | Gold #B8941F
   Fonts: Merriweather (headings) | Open Sans (body)
   Design mirrors dpp.go.ug institutional style
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Open+Sans:wght@400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  --color-primary:       #1E2B8E;
  --color-primary-dark:  #0F1A5C;
  --color-primary-light: #2E3FAE;
  --color-gold:          #B8941F;
  --color-gold-light:    #D4AA45;
  --color-gold-dark:     #8B6D10;
  --color-secondary:     #3A6EC8;
  --color-bg:            #FFFFFF;
  --color-bg-light:      #EBF2F7;
  --color-bg-dark:       #0F1A5C;
  --color-text:          #1A1A2E;
  --color-text-muted:    #6B7280;
  --color-border:        #D1D5DB;
  --color-white:         #FFFFFF;
  --color-success:       #16A34A;
  --color-warning:       #D97706;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body:    'Open Sans', Arial, sans-serif;

  --container-max:    1200px;
  --section-padding:  5rem 0;
  --border-radius:    8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(30, 43, 142, 0.08);
  --shadow-md: 0 4px 16px rgba(30, 43, 142, 0.12);
  --shadow-lg: 0 8px 32px rgba(30, 43, 142, 0.18);

  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;

  --header-height: 80px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-gold); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
p  { margin-bottom: 1rem; color: var(--color-text); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em { font-style: italic; }

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--section-padding); }
.section--light { background: var(--color-bg-light); }
.section--dark  { background: var(--color-bg-dark); color: var(--color-white); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.section-divider {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-gold);
  margin: 0.75rem auto 1rem;
  border-radius: 2px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* === CARDS === */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-body { padding: 1.75rem; }
.card-icon {
  width: 60px; height: 60px;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.card-icon--gold { background: rgba(184, 148, 31, 0.12); }
.card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* === TOP UTILITY BAR === */
.topbar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(184, 148, 31, 0.3);
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--color-gold-light); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-contact { display: flex; align-items: center; gap: 1.5rem; }
.topbar-contact span { display: flex; align-items: center; gap: 0.35rem; }
.topbar-social { display: flex; align-items: center; gap: 0.75rem; }
.topbar-social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}
.topbar-social a:hover { background: var(--color-gold); color: var(--color-primary-dark); }

/* === MAIN HEADER === */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-img img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  display: block;
}
.logo-tagline {
  font-size: 0.7rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

/* === NAV === */
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; }
.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
  background: var(--color-bg-light);
}
.nav-list .nav-cta a {
  background: var(--color-gold);
  color: var(--color-primary-dark) !important;
  padding: 0.45rem 1rem;
}
.nav-list .nav-cta a:hover {
  background: var(--color-gold-dark);
  color: var(--color-white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--border-radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.hero-gold-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184, 148, 31, 0.2);
  border: 1px solid rgba(184, 148, 31, 0.4);
  color: var(--color-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}
.hero h1 span { color: var(--color-gold-light); }
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-decoration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
}
.hero-stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-stat-icon {
  width: 48px; height: 48px;
  background: rgba(184, 148, 31, 0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-gold-light);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-top: 0.2rem;
}

/* === STATS BAR === */
.stats-bar {
  background: var(--color-primary);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 0.5rem; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--color-gold-light);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.4rem;
  display: block;
  font-weight: 500;
}
.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.15);
}

/* === ABOUT PREVIEW === */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
  font-size: 0.9rem;
  gap: 0.5rem;
}
.about-image-placeholder .placeholder-icon { font-size: 3rem; opacity: 0.4; }
.about-badge-overlay {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge-overlay .big-num { font-size: 2rem; display: block; }
.about-badge-overlay .small-text { font-size: 0.75rem; display: block; margin-top: 0.2rem; }
.about-content .section-divider { margin-left: 0; }
.value-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 1.75rem; }
.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* === SERVICES CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card a.btn { margin-top: auto; align-self: flex-start; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-top-color: var(--color-gold); }
.service-card .card-icon { margin-bottom: 1.25rem; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.service-card ul { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.service-card ul li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--color-text-muted);
}
.service-card ul li::before {
  content: '✓';
  color: var(--color-gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* === HOW TO JOIN === */
.join-steps { display: flex; flex-direction: column; gap: 0; }
.join-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.join-step:last-child { border-bottom: none; }
.step-num {
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 0.35rem; font-size: 1rem; }
.step-content p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* === NEWS CARDS === */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.news-card { background: var(--color-white); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-image {
  height: 180px;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-bottom: 2px dashed var(--color-border);
}
.news-card-body { padding: 1.25rem; }
.news-meta { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.news-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-gold-dark);
  background: rgba(184, 148, 31, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.news-date { font-size: 0.8rem; color: var(--color-text-muted); }
.news-card h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.news-card p { font-size: 0.875rem; color: var(--color-text-muted); }
.news-card .read-more {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; font-weight: 600; color: var(--color-primary);
  margin-top: 0.75rem;
}
.news-card .read-more:hover { color: var(--color-gold); gap: 0.5rem; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/pattern-bg.png') repeat;
  opacity: 0.04;
}
.cta-banner-top { height: 4px; background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold)); }
.cta-banner h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-banner-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* === PROFILE CARDS (Governance) === */
.profile-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.profile-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: none;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.profile-photo img { width: 100%; height: 100%; object-fit: contain; }
.profile-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--color-text-muted);
  background: var(--color-bg-light);
}
.profile-name { font-size: 1.05rem; margin-bottom: 0.25rem; color: var(--color-primary); }
.profile-role {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold-dark);
  display: block;
  margin-bottom: 0.75rem;
}
.profile-bio { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.6; }

/* === GOVERNANCE STRUCTURE === */
.governance-chart {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
}
.gov-level { text-align: center; }
.gov-box {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.gov-box--gold { background: var(--color-gold); color: var(--color-primary-dark); }
.gov-arrow {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0;
}
.gov-row { display: flex; justify-content: center; gap: 2rem; margin: 0.75rem 0; }

/* === FAQ ACCORDION === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
  background: none;
  width: 100%;
  text-align: left;
}
.faq-question:hover { color: var(--color-primary); }
.faq-item.open .faq-question { color: var(--color-primary); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--color-primary);
}
.faq-item.open .faq-icon { background: var(--color-primary); color: var(--color-white); transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-answer { display: block; }

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--color-bg-light);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 92, 0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { color: var(--color-white); font-size: 2rem; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  gap: 0.5rem;
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
}
.gallery-placeholder span { font-size: 2rem; opacity: 0.4; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--border-radius); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: white; font-size: 2rem;
  cursor: pointer; line-height: 1;
  background: rgba(255,255,255,0.1);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: white; font-size: 2rem; cursor: pointer;
  background: rgba(255,255,255,0.1);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info-card {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-gold-dark); margin-bottom: 0.3rem; }
.contact-info-text p, .contact-info-text a { font-size: 0.9rem; color: var(--color-text); margin-bottom: 0; }
.map-placeholder {
  height: 260px;
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.map-placeholder span { font-size: 2.5rem; opacity: 0.5; }

/* === FORMS === */
.form-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--color-text); }
.form-label .required { color: #DC2626; }
.form-input, .form-select, .form-textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  transition: var(--transition-fast);
  background: var(--color-white);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 43, 142, 0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--color-text-muted); }
.form-section-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
  grid-column: 1 / -1;
}
.form-check { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-check input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }

/* === PAYMENT OPTIONS === */
.payment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.payment-card {
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
}
.payment-card h5 { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.payment-card p { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 0; }
.payment-card strong { color: var(--color-text); }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
}
.page-hero h1 { color: var(--color-white); font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 560px; font-size: 1rem; margin-bottom: 0; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--color-gold-light); }
.breadcrumb-sep { opacity: 0.5; }

/* === ALERT / INFO BOX === */
.info-box {
  background: rgba(30, 43, 142, 0.06);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box p { margin-bottom: 0; font-size: 0.9rem; color: var(--color-text); }
.info-box--gold { background: rgba(184, 148, 31, 0.08); border-left-color: var(--color-gold); }

/* === BADGE / TAG === */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-primary { background: rgba(30, 43, 142, 0.1); color: var(--color-primary); }
.badge-gold { background: rgba(184, 148, 31, 0.15); color: var(--color-gold-dark); }

/* === TABLES === */
.table-wrap { overflow-x: auto; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--color-primary); color: var(--color-white); }
thead th { padding: 0.9rem 1.25rem; text-align: left; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--color-border); transition: var(--transition-fast); }
tbody tr:hover { background: var(--color-bg-light); }
tbody td { padding: 0.9rem 1.25rem; color: var(--color-text); }
tbody tr:last-child { border-bottom: none; }
.table-gold-row { background: rgba(184, 148, 31, 0.06) !important; font-weight: 600; }

/* === PUBLICATION CARDS === */
.pub-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.pub-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.pub-icon {
  width: 56px; height: 56px;
  background: rgba(30, 43, 142, 0.08);
  border-radius: var(--border-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.pub-info h5 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--color-text); }
.pub-info p { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0; }
.pub-download { margin-left: auto; flex-shrink: 0; }

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}
.testimonial-text { font-style: italic; color: var(--color-text); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  overflow: hidden;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--color-primary); display: block; }
.testimonial-role { font-size: 0.78rem; color: var(--color-text-muted); display: block; }

/* === PORTAL CARDS === */
.portal-card {
  background: var(--color-white);
  border-radius: var(--border-radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  border-top: 5px solid var(--color-primary);
  transition: var(--transition);
}
.portal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--color-gold); }
.portal-card-icon { font-size: 3.5rem; margin-bottom: 1.5rem; display: block; }
.portal-card h3 { margin-bottom: 0.75rem; }
.portal-card p { color: var(--color-text-muted); margin-bottom: 2rem; }

/* === FOOTER === */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
}
.footer-top {
  padding: 4rem 0 3rem;
  border-top: 4px solid var(--color-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-name { color: var(--color-white); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; color: rgba(255,255,255,0.7); }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--color-gold); color: var(--color-primary-dark); }
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.7); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--color-gold-light); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.75rem; font-size: 0.85rem; }
.footer-contact-item .icon { color: var(--color-gold); flex-shrink: 0; margin-top: 0.1rem; }
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--color-gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--color-gold-light); }
.footer-cert-badges { display: flex; align-items: center; gap: 1rem; }
.cert-badge {
  background: rgba(255,255,255,0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}

/* === TESTIMONIAL PAGE === */
.testimonial-featured {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--border-radius-xl);
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.testimonial-featured::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(184, 148, 31, 0.15);
}
.testimonial-featured-inner { position: relative; }
.testimonial-quote-mark {
  font-size: 6rem;
  color: var(--color-gold);
  font-family: Georgia, serif;
  line-height: 0.6;
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.8;
}
.testimonial-featured blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 2rem;
  border: none;
  padding: 0;
}
.testimonial-featured .testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-featured .testimonial-author strong { color: #fff; font-size: 1rem; display: block; }
.testimonial-featured .testimonial-author span { color: rgba(255,255,255,0.7); font-size: 0.875rem; display: block; }
.testimonial-stars { color: var(--color-gold); font-size: 0.9rem; letter-spacing: 0.1em; margin-top: 0.25rem; display: block; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.testimonial-card-header strong { font-size: 0.9rem; color: var(--color-primary); display: block; }
.testimonial-card-header span { font-size: 0.78rem; color: var(--color-text-muted); }
.testimonial-card-quote {
  font-style: italic;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  border-left: 3px solid var(--color-gold);
  padding-left: 1rem;
}
.testimonial-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold-dark);
  background: rgba(184,148,31,0.1);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}
.testimonial-avatar--sm { width: 40px; height: 40px; font-size: 1.1rem; flex-shrink: 0; }
.testimonial-placeholder-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  padding: 0.35rem 0.75rem;
  margin-top: 0.75rem;
  border: 1px dashed var(--color-border);
  display: inline-block;
}

/* === VIDEO PLACEHOLDER === */
.video-placeholder {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-bg-light);
  border: 2px dashed var(--color-border);
}
.video-placeholder-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}
.video-placeholder-inner p { margin: 0; font-weight: 600; color: var(--color-text); }
.video-placeholder-inner span { font-size: 0.75rem; }

/* === SECTION VARIANTS === */
.section--primary {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--section-padding);
}
.section--primary h2, .section--primary h3 { color: var(--color-white); }

/* Standalone required marker */
.required { color: #DC2626; }

/* Gold button */
.btn-gold {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
  font-weight: 700;
}
.btn-gold:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: var(--color-white); }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-gold   { color: var(--color-gold); }
.text-primary { color: var(--color-primary); }
.text-muted  { color: var(--color-text-muted); }
.text-white  { color: var(--color-white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* === SCROLL ANIMATION === */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.chairperson-featured {
  display: flex;
  gap: 2.5rem;
  background: #fff;
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--color-gold);
  align-items: flex-start;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-decoration { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item:nth-child(odd) { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); }
}

@media (max-width: 900px) {
  :root { --section-padding: 3.5rem 0; }
  .grid-3, .services-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-preview-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge-overlay { bottom: 1rem; right: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .governance-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-featured { padding: 2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--color-primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-list a { color: rgba(255,255,255,0.85); font-size: 1.1rem; padding: 0.75rem 2rem; }
  .nav-list a:hover, .nav-list a.active { background: rgba(255,255,255,0.08); color: var(--color-gold-light); }
  .nav-list .nav-cta a { background: var(--color-gold); color: var(--color-primary-dark) !important; }
  .topbar-contact span:not(:first-child) { display: none; }
  .hero { min-height: 460px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-buttons .btn { width: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .grid-3, .services-grid, .news-grid, .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gov-row { flex-direction: column; align-items: center; gap: 0.5rem; }
  .profile-card { padding: 1.5rem 1rem; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-featured blockquote { font-size: 1rem; }
  .chairperson-featured { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem; }
  .chairperson-featured .profile-photo { flex-shrink: 0; margin-bottom: 1.25rem; }
}
