/* ===================================================
   SOMALILAND SEURA RY – MAIN STYLESHEET
   Design: Modern, NGO/Community, Bilingual, Responsive
   Colors: Forest Green, Sage, Warm Gold, White
   =================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* PRIMARY: Forest / NGO Green replacing navy */
  --color-navy: #2d6a4f;          /* Forest green – main brand */
  --color-navy-dark: #1b4332;     /* Deep forest – header, footer */
  --color-navy-light: #40916c;    /* Mid green – gradients */

  /* ACCENT: Sage / Mint replacing teal */
  --color-teal: #52b788;          /* Sage green – accents, links */
  --color-teal-dark: #3a9968;     /* Deeper sage */
  --color-teal-light: #74c69d;    /* Light sage – highlights */

  /* WARM GOLD – kept as warm accent */
  --color-gold: #d4a017;
  --color-gold-dark: #b8860b;
  --color-gold-light: #f0c040;

  --color-white: #ffffff;
  --color-off-white: #f6faf7;     /* Slightly green-tinted off-white */
  --color-light-bg: #eef6f1;      /* Soft sage background */
  --color-text: #1a2e20;          /* Dark forest text */
  --color-text-muted: #5a7a65;    /* Muted green-grey */
  --color-text-light: #92b09c;
  --color-border: #d8ead1;        /* Soft green border */
  --color-purple: #7c3aed;
  --color-orange: #ea580c;
  --color-green: #2d6a4f;

  --font-primary: 'Inter', 'Open Sans', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --border-radius-sm: 6px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 32px;
  --border-radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.11);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.13);
  --shadow-navy: 0 4px 20px rgba(45,106,79,0.28);
  --shadow-teal: 0 4px 20px rgba(82,183,136,0.28);
  --shadow-gold: 0 4px 20px rgba(212,160,23,0.25);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --header-height: 72px;
  --section-padding: 96px;
  --section-padding-mobile: 56px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.hidden {
  display: none !important;
}

/* ===== TYPOGRAPHY ===== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42,157,143,0.1);
  color: var(--color-teal);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(42,157,143,0.2);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: var(--color-white);
  box-shadow: var(--shadow-navy);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,61,110,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.2);
  border-color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
  border-radius: var(--border-radius-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--header-height);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-teal);
  letter-spacing: 0.05em;
}

/* Nav */
.main-nav { flex: 1; }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-navy);
  background: rgba(45,106,79,0.08);
}

.nav-link.nav-highlight {
  background: linear-gradient(135deg, var(--color-navy), var(--color-teal));
  color: white;
  padding: 8px 16px;
}
.nav-link.nav-highlight:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-navy);
  background: linear-gradient(135deg, var(--color-navy), var(--color-teal));
  color: white;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-light-bg);
  border-radius: var(--border-radius-full);
  padding: 4px 8px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}

.lang-btn.active {
  background: var(--color-navy);
  color: white;
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  color: var(--color-navy);
  background: rgba(26,61,110,0.08);
}

.lang-sep {
  color: var(--color-border);
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  background: transparent;
  border: 2px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover,
.hamburger:focus-visible {
  background: rgba(45,106,79,0.10);
  border-color: rgba(45,106,79,0.20);
  outline: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #1b4332;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}
.hamburger span:nth-child(2) { width: 16px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(0px, 8.5px); width: 22px; }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(0px, -8.5px); width: 22px; }

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 40%, #2d6a4f 70%, #1b4332 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(82,183,136,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(212,160,23,0.12) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 60px;
  padding-bottom: 80px;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--color-gold-light);
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: var(--font-weight-black);
  line-height: 1.1;
  margin-bottom: 24px;
  color: white;
}

.hero-title-main {
  display: block;
  color: rgba(255,255,255,0.9);
}

.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--color-teal-light), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--border-radius-lg);
  padding: 20px 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: var(--font-weight-black);
  color: var(--color-gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  z-index: 2;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===== CARDS ===== */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== ACTIVITY CARDS (preview) ===== */
.activities-preview {
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-light-bg) 100%);
}

.activity-card {
  padding: 32px 28px;
  text-align: center;
}

.card-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.75rem;
  color: white;
  transition: transform var(--transition);
}
.activity-card:hover .card-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.bg-blue { background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light)); }
.bg-teal { background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal)); }
.bg-gold { background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold)); }
.bg-blue-light { background: linear-gradient(135deg, #3a9968, #52b788); }
.bg-purple { background: linear-gradient(135deg, #6d28d9, var(--color-purple)); }
.bg-orange { background: linear-gradient(135deg, #c2410c, var(--color-orange)); }
.bg-green { background: linear-gradient(135deg, #15803d, var(--color-green)); }

.card-title {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-teal);
  transition: gap var(--transition-fast);
}
.card-link:hover {
  gap: 10px;
  color: var(--color-teal-dark);
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--color-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.about-img-main:hover .about-img { transform: scale(1.03); }

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  border: 4px solid white;
}

.badge-year {
  font-size: 1.3rem;
  font-weight: var(--font-weight-black);
  color: white;
  line-height: 1;
}

.badge-text {
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-content-col {
  padding: 20px 0;
}

.about-text {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.mv-card {
  background: var(--color-light-bg);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}
.mv-card:hover {
  background: var(--color-navy);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-navy);
}
.mv-card:hover h4, .mv-card:hover p { color: rgba(255,255,255,0.9); }

.mv-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,61,110,0.08);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--color-navy);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.mv-card:hover .mv-icon {
  background: rgba(255,255,255,0.15);
  color: var(--color-gold-light);
}

.mv-card h4 {
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.mv-card p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  transition: color var(--transition);
}

/* ===== HISTORY TIMELINE ===== */
.history-section {
  background: linear-gradient(180deg, var(--color-light-bg) 0%, var(--color-off-white) 100%);
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-navy), var(--color-teal));
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 22px;
  height: 22px;
  background: var(--color-white);
  border: 3px solid var(--color-navy);
  border-radius: 50%;
  transition: all var(--transition);
}
.timeline-dot-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.timeline-item:hover .timeline-dot {
  background: var(--color-teal);
  border-color: var(--color-teal);
  transform: scale(1.3);
}

.timeline-content {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26,61,110,0.1);
}

.timeline-active {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-teal));
  color: white;
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== ACTIVITIES SECTION ===== */
.activities-section { background: white; }

.full-activity-card {
  display: flex;
  flex-direction: column;
}

.fac-header {
  padding: 28px 24px 24px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fac-header i { opacity: 0.9; }
.fac-header h3 {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  color: white;
}

.fac-body {
  padding: 24px;
  flex: 1;
}

.fac-body ul { display: flex; flex-direction: column; gap: 10px; }
.fac-body li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
}
.fac-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-teal);
  border-radius: 50%;
}

.activities-extra { margin-top: 32px; }

.cooperation-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  color: white;
  border: none;
}

.coop-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
}

.coop-content h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 8px;
  color: white;
}

.coop-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects-section { background: var(--color-light-bg); }


.project-card { cursor: default; }

.project-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-img { transform: scale(1.05); }

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.bg-gradient-teal { background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal)); }

.project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  padding: 5px 12px;
  border-radius: var(--border-radius-full);
  letter-spacing: 0.03em;
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-body p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.project-meta > span:first-child {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-status {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
}

.project-status.active {
  background: rgba(22,163,74,0.1);
  color: var(--color-green);
}

.project-status.planning {
  background: rgba(201,162,39,0.1);
  color: var(--color-gold-dark);
}

/* ===== CHAIRMAN SECTION ===== */
.chairman-section {
  background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-light-bg) 100%);
}

.chairman-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
}

.chairman-img-wrap {
  position: relative;
}

.chairman-img {
  width: 100%;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 1 / 1;
  transition: transform var(--transition-slow);
}
.chairman-img-wrap:hover .chairman-img { transform: scale(1.02); }

/* Chairman flag badge – hidden */
.chairman-flag-badge {
  display: none;
}

.flag-img {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: inline-block;
  vertical-align: middle;
}

.flag-bridge {
  font-size: 0.75rem;
  color: var(--color-teal);
  font-weight: bold;
}

.chairman-name {
  font-size: 2rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  margin-bottom: 8px;
}

.chairman-subtitle {
  font-size: 1rem;
  color: var(--color-teal);
  font-weight: var(--font-weight-medium);
  margin-bottom: 16px;
}

.chairman-years-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(201,162,39,0.1), rgba(201,162,39,0.2));
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--color-gold-dark);
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 28px;
}

.chairman-quote {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border-radius: var(--border-radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 2rem;
  color: var(--color-gold);
  background: white;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.chairman-quote p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 12px;
}

.chairman-quote footer {
  color: var(--color-gold-light);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
}

.chairman-bio {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

/* ===== BOARD ===== */
.board-section { background: var(--color-light-bg); }

.board-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.board-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-align: center;
}
.board-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.board-card-chairman {
  grid-column: span 2;
}

.board-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
}

.board-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}
.board-card:hover .board-img { transform: scale(1.05); }

.board-placeholder-wrap {
  background: var(--color-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: rgba(255,255,255,0.7);
}

.board-info {
  padding: 16px;
}

.board-name {
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 4px;
}

.board-role {
  font-size: 0.78rem;
  color: var(--color-teal);
  font-weight: var(--font-weight-medium);
}

.board-exp {
  font-size: 0.72rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ===== NEWS ===== */
.news-section { background: white; }

.news-filter, .gallery-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-navy);
  color: white;
  border-color: var(--color-navy);
  box-shadow: var(--shadow-navy);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card { cursor: default; }

.news-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}

.bg-blue-gradient { background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light)); }
.bg-green-gradient { background: linear-gradient(135deg, #1b4332, #2d6a4f); }
.bg-teal-gradient { background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal)); }
.bg-gold-gradient { background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold)); }

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  color: var(--color-navy);
  font-size: 0.72rem;
  font-weight: var(--font-weight-semibold);
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-body {
  padding: 22px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-body p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-teal);
  transition: gap var(--transition-fast);
}
.news-link:hover { gap: 9px; color: var(--color-teal-dark); }

/* ===== GALLERY ===== */
.gallery-section { background: var(--color-light-bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item:hover .gallery-img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,61,110,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 1.5rem; }

.gallery-placeholder { cursor: default; }

.gallery-ph-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
}

.bg-blue-light { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bg-gold-light { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}
.lightbox-close { top: -56px; right: 0; }
.lightbox-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}
.lightbox-prev:hover,
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-align: center;
}

/* ===== JOIN SECTION ===== */
.join-section {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, #40916c 100%);
  color: white;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 72px;
  align-items: start;
}

.join-info .section-tag {
  background: rgba(255,255,255,0.1);
  color: var(--color-gold-light);
  border-color: rgba(255,255,255,0.15);
}

.join-info .section-title { color: white; }

.join-info > p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.join-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.benefit-item i {
  color: var(--color-gold-light);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.join-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Form */
.form-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.form-card h3 {
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-off-white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-teal);
  background: white;
  box-shadow: 0 0 0 3px rgba(42,157,143,0.12);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition-fast);
}
.check-item:hover { background: var(--color-light-bg); }
.check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-teal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success i {
  color: var(--color-teal);
  margin-bottom: 16px;
  display: block;
}
.form-success h4 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 8px;
}
.form-success p {
  color: var(--color-text-muted);
}

/* ===== CONTACT ===== */
.contact-section { background: white; }

.contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-light-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.contact-card:hover {
  background: var(--color-navy);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-navy);
  transform: translateX(4px);
}
.contact-card:hover .contact-icon { background: rgba(255,255,255,0.15); color: var(--color-gold-light); }
.contact-card:hover h4 { color: white; }
.contact-card:hover p, .contact-card:hover a { color: rgba(255,255,255,0.8); }

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,61,110,0.08);
  color: var(--color-navy);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: all var(--transition);
}

.contact-card h4 {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.contact-card a {
  color: var(--color-teal);
  transition: color var(--transition);
}

.social-links {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

.social-btn {
  width: 42px;
  height: 42px;
  background: var(--color-navy);
  color: white;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.social-btn:hover {
  background: var(--color-teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal);
}

.contact-form-wrap {
  background: var(--color-light-bg);
  border-radius: var(--border-radius-xl);
  padding: 36px;
  border: 1px solid var(--color-border);
}

/* Map */
.map-wrap {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-teal) 100%);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 12px;
  text-align: center;
}

.map-placeholder p {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
}

.map-placeholder small {
  font-size: 0.85rem;
  opacity: 0.75;
  max-width: 360px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #152a1e;   /* Very deep forest green */
  color: rgba(255,255,255,0.8);
}

.footer-top { padding: 64px 0 48px; }

.footer-top-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo .logo-name { color: white; }
.footer-logo .logo-sub { color: var(--color-gold-light); }

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-flags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.footer-flags span {
  font-size: 0.8rem;
  color: var(--color-teal-light);
}
.footer-flag-img {
  width: 40px;
  height: 26px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
  display: block;
}
.footer-flag-somaliland {
  object-position: center center;
}

.footer-nav-col h4,
.footer-contact-col h4 {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}
.footer-nav-col a:hover { color: var(--color-gold-light); }

.footer-contact-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-col li i {
  color: var(--color-teal-light);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact-col a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}
.footer-contact-col a:hover { color: var(--color-gold-light); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover { color: var(--color-gold-light); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-teal));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* XL */
@media (max-width: 1280px) {
  :root { --section-padding: 80px; }
  .board-grid { grid-template-columns: repeat(5, 1fr); }
  .board-card-chairman { grid-column: span 2; }
}

/* LG */
@media (max-width: 1100px) {
  .nav-list { gap: 2px; }
  .nav-link { padding: 7px 8px; font-size: 0.825rem; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .chairman-grid { grid-template-columns: 360px 1fr; gap: 48px; }
  .about-grid { gap: 48px; }
  .board-grid { grid-template-columns: repeat(4, 1fr); }
  .board-card-chairman { grid-column: span 2; }
  .footer-top-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}

/* MD */
@media (max-width: 900px) {
  :root {
    --section-padding: var(--section-padding-mobile);
    --header-height: 64px;
  }

  .hamburger { display: flex; }

  /* ---- Mobile nav drawer ---- */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;                        /* koko leveys */
    /* Käytä laskettua korkeutta iOS Safari -yhteensopivuuden vuoksi */
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height)); /* dynamic viewport height */
    background: #ffffff;
    padding: 20px 16px 48px;         /* reilu alaosaan padding */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;    /* esto: taustasisalto ei skrollaa */
    transform: translateY(-110%);    /* alhaalta piiloon */
    visibility: hidden;              /* näppäimistönavigointi pois suljettuun */
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                visibility 0s linear 0.35s;
    flex: unset;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  }
  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                visibility 0s linear 0s;
  }

  /* ---- Nav list ---- */
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 24px;
    /* Varmista, että lista ei katkaisu höyhenästi */
    min-height: min-content;
  }

  .nav-list li {
    border-radius: 12px;
    overflow: hidden;
  }

  /* ---- Nav linkit ---- */
  .nav-link {
    display: flex;
    align-items: center;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 18px 22px;
    color: #1b4332;
    background: #f4f9f6;
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-height: 58px;                /* helppo sorminaputus */
    line-height: 1.3;
    white-space: normal;             /* sallii tekstin katkeaminen */
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .nav-link:hover,
  .nav-link:active,
  .nav-link.active {
    background: #e0f2e9;
    color: #1b4332;
    border-left-color: #2d6a4f;
  }
  .nav-link.nav-highlight {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    color: #ffffff !important;
    border-left: none;
    text-align: center;
    justify-content: center;
    margin-top: 12px;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(27,67,50,0.25);
  }
  .nav-link.nav-highlight:hover,
  .nav-link.nav-highlight:active {
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    color: #ffffff !important;
    opacity: 1;
  }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-badge { right: 16px; }
  .chairman-grid { grid-template-columns: 1fr; }
  .chairman-img-wrap { max-width: 360px; margin: 0 auto; }
  .chairman-img { aspect-ratio: 4/3; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .board-card-chairman { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; gap: 48px; }
  .join-form-wrap { order: -1; }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .footer-top-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .cooperation-card { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .stat-divider { display: none; }
}

/* SM */
@media (max-width: 640px) {
  :root { --container-max: 100%; }

  .container { padding: 0 16px; }

  .logo-text { display: none; }

  .hero-content { padding-top: 32px; padding-bottom: 60px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { padding: 16px 20px; gap: 20px; }

  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .board-card-chairman { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
  .footer-top-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .hero-stats { justify-content: space-between; }
  .join-cta-group { flex-direction: column; }
  .lightbox-prev { left: -48px; }
  .lightbox-next { right: -48px; }
  .chairman-name { font-size: 1.6rem; }
  .footer-logo .logo-text { display: flex; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .section-title { font-size: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 24px 20px; }
  .contact-form-wrap { padding: 24px 20px; }
}

/* ===== HIDE/SHOW BY LANGUAGE ===== */
[data-fi], [data-en] {
  /* handled by JS */
}

/* ===== FILTER HIDE ===== */
.news-card.filtered-out,
.gallery-item.filtered-out {
  display: none;
}

/* ===== LAST MEETING BADGE (About section) ===== */
.last-meeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #eef6f1, #d8ead1);
  border: 1.5px solid #52b788;
  border-radius: 50px;
  padding: 10px 20px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #1b4332;
}
.last-meeting-badge i {
  color: #2d6a4f;
  font-size: 1rem;
}

/* ===== MOBILE MENU OVERLAY (backdrop) ===== */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  cursor: pointer;
  /* Ei animaatiota display:none:lla — JS lisää luokan */
}
.nav-overlay.open { display: block; }

/* ===== HEADER – scrolled state improvement ===== */
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* ===== CONTACT PHONE LINK ===== */
.contact-card a[href^="tel"] {
  color: var(--color-text);
  font-weight: 600;
}
.contact-card a[href^="tel"]:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===== FOOTER phone link ===== */
.footer-contact-col a[href^="tel"] {
  color: rgba(255,255,255,0.75);
}
.footer-contact-col a[href^="tel"]:hover {
  color: #fff;
}

/* ===== MOBILE: overlay + scrollbar + divider ===== */
@media (max-width: 900px) {
  .nav-overlay { display: none; }
  .nav-overlay.open { display: block; }

  /* Thin scrollbar */
  .main-nav::-webkit-scrollbar { width: 4px; }
  .main-nav::-webkit-scrollbar-thumb { background: #b7dfc7; border-radius: 4px; }

  /* Decorative divider under logo area */
  .nav-list::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #2d6a4f, #52b788 60%, transparent);
    border-radius: 3px;
    margin-bottom: 12px;
    flex-shrink: 0;
  }
}

/* ===== XS phones (≤ 380px) ===== */
@media (max-width: 380px) {
  .nav-link {
    font-size: 0.97rem;
    padding: 15px 16px;
    min-height: 54px;
  }
  .nav-list {
    gap: 6px;
  }
  .last-meeting-badge {
    font-size: 0.82rem;
    padding: 8px 14px;
  }
  /* Varmista täysi korkeus myös pienillä puhelimilla */
  .main-nav {
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height)); /* small viewport height */
  }
}

