/* ============================================
   EMYD – Engelsiz ve Mutlu Yaşam Derneği
   Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.cdnfonts.com/css/open-dyslexic');

/* --- CSS Custom Properties --- */
:root {
  /* Brand colors from logo */
  --clr-blue: #1B4F8A;
  --clr-blue-light: #3A7BD5;
  --clr-blue-pale: #E8F4FD;
  --clr-maroon: #8B2E16;
  --clr-maroon-light: #B84C2F;
  --clr-olive: #6B7A2E;
  --clr-olive-light: #8FA53D;
  --clr-olive-pale: #EFF5E8;

  /* Neutral palette */
  --clr-white: #FFFFFF;
  --clr-off-white: #FAFBFC;
  --clr-gray-50: #F8F9FA;
  --clr-gray-100: #F1F3F5;
  --clr-gray-200: #E9ECEF;
  --clr-gray-300: #DEE2E6;
  --clr-gray-400: #ADB5BD;
  --clr-gray-500: #6C757D;
  --clr-gray-600: #495057;
  --clr-gray-700: #343A40;
  --clr-gray-800: #212529;
  --clr-dark: #0F1419;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1B4F8A 0%, #3A7BD5 50%, #6B7A2E 100%);
  --gradient-brand: linear-gradient(135deg, #1B4F8A 0%, #8B2E16 100%);
  --gradient-warm: linear-gradient(135deg, #8B2E16 0%, #B84C2F 50%, #D4763B 100%);
  --gradient-nature: linear-gradient(135deg, #6B7A2E 0%, #8FA53D 100%);
  --gradient-soft: linear-gradient(180deg, #E8F4FD 0%, #FFFFFF 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #F8F9FA 100%);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);
  --shadow-glow-blue: 0 0 30px rgba(27, 79, 138, 0.15);
  --shadow-glow-maroon: 0 0 30px rgba(139, 46, 22, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 80px;

  /* Accessibility Defaults */
  --a11y-font-scale: 1;
  --a11y-line-height: 1.6;
  --a11y-letter-spacing: 0px;
  --a11y-word-spacing: 0px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* This will be scaled by JS */
}

body {
  font-family: var(--font-body);
  color: var(--clr-gray-700);
  background-color: var(--clr-white);
  line-height: var(--a11y-line-height);
  letter-spacing: var(--a11y-letter-spacing);
  word-spacing: var(--a11y-word-spacing);
  transition: letter-spacing 0.2s, word-spacing 0.2s;
}

/* Scale text based on accessibility settings */
body p, body li, body h1, body h2, body h3, body h4, body h5, body h6,
body span, body a, body td, body th, body label, body input, body textarea,
body button, body select, body blockquote {
  font-size: calc(var(--a11y-font-scale, 1) * 1em);
}

/* Prevent scaling for the accessibility toolbar itself and navigation */
.a11y-toolbar-panel *, 
.a11y-toggle-btn *, 
.topbar *,
.lang-switch * {
  font-size: revert !important;
}

/* --- Accessibility Utility Classes --- */
.dyslexia-font {
  font-family: 'Open-Dyslexic', 'open-dyslexic', sans-serif !important;
}

.reading-guide-line {
  position: fixed;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  z-index: 99999;
  pointer-events: none;
  transition: top 0.05s linear;
}

.theme-sepia-overlay, .theme-bluelight-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99997;
}

.theme-sepia-overlay { background: rgba(244, 235, 215, 0.15); mix-blend-mode: multiply; }
.theme-bluelight-overlay { background: rgba(0, 40, 80, 0.08); mix-blend-mode: multiply; }

.magnifier-lens {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  border: 3px solid var(--clr-blue);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  background: var(--clr-white);
  overflow: hidden;
  box-sizing: content-box;
}

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

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

a:hover {
  color: var(--clr-blue-light);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--clr-gray-800);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  margin-bottom: var(--space-md);
  color: var(--clr-gray-600);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: var(--container-wide);
}

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

.section-alt {
  background-color: var(--clr-gray-50);
}

.section-blue {
  background: var(--gradient-soft);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  margin: var(--space-md) auto 0;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--clr-gray-500);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--clr-blue);
  color: var(--clr-white);
  box-shadow: 0 4px 14px rgba(27, 79, 138, 0.25);
}

.btn-primary:hover {
  background: var(--clr-blue-light);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 79, 138, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-blue);
  border: 2px solid var(--clr-blue);
}

.btn-secondary:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--clr-white);
  color: var(--clr-blue);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  color: var(--clr-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-maroon {
  background: var(--clr-maroon);
  color: var(--clr-white);
  box-shadow: 0 4px 14px rgba(139, 46, 22, 0.25);
}

.btn-maroon:hover {
  background: var(--clr-maroon-light);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: var(--clr-white);
  border-color: var(--clr-white);
}

.btn svg,
.btn .btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Top Bar --- */
.topbar {
  background: var(--clr-gray-800);
  color: var(--clr-gray-300);
  font-size: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-info .icon {
  font-size: 0.85rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  padding: 4px 12px;
  border: none;
  background: transparent;
  color: var(--clr-gray-400);
  cursor: pointer;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.lang-btn.active {
  background: var(--clr-blue);
  color: var(--clr-white);
}

.lang-btn:hover:not(.active) {
  color: var(--clr-white);
}

/* --- Header / Navbar --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-gray-200);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 52px;
  width: auto;
}

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

.logo-text .org-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-gray-800);
}

.logo-text .org-abbr {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--clr-blue);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-blue);
  background: var(--clr-blue-pale);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--clr-gray-700);
}

.nav-toggle .hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: var(--transition-fast);
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: var(--transition-fast);
}

.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }

.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 20, 25, 0.85) 0%, rgba(27, 79, 138, 0.6) 50%, rgba(107, 122, 46, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: var(--space-4xl) 0;
}

.hero-content h1 {
  color: var(--clr-white);
  margin-bottom: var(--space-xl);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-content .hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-olive-light);
}

/* Floating decorative shapes */
.hero-decor {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.hero-decor-1 {
  width: 400px;
  height: 400px;
  background: var(--clr-blue);
  top: -100px;
  right: -100px;
}

.hero-decor-2 {
  width: 300px;
  height: 300px;
  background: var(--clr-olive);
  bottom: -50px;
  left: 30%;
}

/* --- Intro Section --- */
.intro-section {
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--clr-blue-pale);
  opacity: 0.5;
  z-index: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.intro-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.intro-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-xl);
}

.intro-text h2 {
  margin-bottom: var(--space-lg);
  position: relative;
}

.intro-text h2::before {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.intro-text p {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* --- Activity Areas Grid --- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.area-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--clr-gray-200);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

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

.area-card:hover::before {
  transform: scaleX(1);
}

.area-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  background: var(--clr-blue-pale);
  color: var(--clr-blue);
}

.area-card:nth-child(2) .card-icon { background: #FEF3E2; color: #D4763B; }
.area-card:nth-child(3) .card-icon { background: var(--clr-olive-pale); color: var(--clr-olive); }
.area-card:nth-child(4) .card-icon { background: #F3E8FF; color: #7C3AED; }
.area-card:nth-child(5) .card-icon { background: #ECFDF5; color: #059669; }
.area-card:nth-child(6) .card-icon { background: #FFF1F2; color: var(--clr-maroon); }

.area-card h4 {
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.area-card p {
  font-size: 0.92rem;
  color: var(--clr-gray-500);
  margin-bottom: 0;
}

/* --- Featured Project --- */
.featured-section {
  background: linear-gradient(135deg, var(--clr-gray-800) 0%, #1a2740 50%, var(--clr-dark) 100%);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

.featured-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--clr-blue);
  opacity: 0.08;
  top: -200px;
  right: -200px;
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 18px;
  background: rgba(58, 123, 213, 0.2);
  border: 1px solid rgba(58, 123, 213, 0.3);
  border-radius: var(--radius-full);
  color: var(--clr-blue-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.featured-text h2 {
  color: var(--clr-white);
  margin-bottom: var(--space-xl);
}

.featured-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.8;
}

.featured-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.stat-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--clr-white);
  margin-bottom: var(--space-xs);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.featured-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* --- Numbers Section --- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.number-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-gray-200);
  transition: all var(--transition-slow);
  position: relative;
}

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

.number-card .number-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.number-card .number-label {
  font-size: 0.88rem;
  color: var(--clr-gray-500);
  line-height: 1.5;
}

/* --- Board / Team Section --- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
}

.board-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--clr-gray-200);
  text-align: center;
  transition: all var(--transition-slow);
}

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

.board-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--clr-white);
}

.board-card:nth-child(1) .board-avatar { background: var(--gradient-brand); }
.board-card:nth-child(2) .board-avatar { background: var(--gradient-warm); }
.board-card:nth-child(3) .board-avatar { background: var(--gradient-nature); }
.board-card:nth-child(4) .board-avatar { background: var(--gradient-hero); }
.board-card:nth-child(5) .board-avatar { background: linear-gradient(135deg, #059669 0%, #34d399 100%); }

.board-card h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.board-card .board-role {
  color: var(--clr-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.board-card p {
  font-size: 0.88rem;
  color: var(--clr-gray-500);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Cooperation CTA Section --- */
.coop-cta-section {
  background: var(--gradient-hero);
  color: var(--clr-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coop-cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -300px;
  left: -200px;
}

.coop-cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -200px;
  right: -100px;
}

.coop-cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.coop-cta-content h2 {
  color: var(--clr-white);
  margin-bottom: var(--space-xl);
}

.coop-cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: var(--space-2xl);
}

.coop-cta-btns {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- News Section --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.news-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-gray-200);
  transition: all var(--transition-slow);
}

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

.news-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-body {
  padding: var(--space-xl);
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--clr-blue);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.news-card h4 {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.4;
}

.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-blue);
  font-weight: 600;
  font-size: 0.88rem;
}

.news-card .read-more:hover {
  gap: 10px;
}

/* --- Footer --- */
.footer {
  background: var(--clr-dark);
  color: var(--clr-gray-400);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-about .footer-logo img {
  height: 48px;
  filter: brightness(1.2);
}

.footer-about .footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--clr-white);
  font-size: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--clr-gray-400);
}

.footer h5 {
  color: var(--clr-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--clr-blue);
}

.footer-links a {
  display: block;
  padding: 5px 0;
  color: var(--clr-gray-400);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--clr-white);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.88rem;
  align-items: flex-start;
}

.footer-contact-item .icon {
  color: var(--clr-blue-light);
  font-size: 1rem;
  min-width: 20px;
  margin-top: 2px;
}

.footer-contact-item a {
  color: var(--clr-gray-400);
}

.footer-contact-item a:hover {
  color: var(--clr-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--clr-gray-400);
}

.footer-bottom a:hover {
  color: var(--clr-white);
}

/* --- Page Header (Inner Pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--clr-gray-800) 0%, #1a2740 100%);
  color: var(--clr-white);
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--clr-blue);
  opacity: 0.05;
  top: -200px;
  right: -100px;
}

.page-header h1 {
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
}

.page-header p {
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- About Page --- */
.about-content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-content-block + .about-content-block {
  margin-top: var(--space-3xl);
}

.about-text h3 {
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-xl);
}

.about-text h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.vm-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--clr-gray-200);
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.vm-card.vision::before { background: var(--gradient-hero); }
.vm-card.mission::before { background: var(--gradient-warm); }

.vm-card h3 {
  margin-bottom: var(--space-md);
  padding-left: 0;
}

.vm-card h3::before { display: none; }

.vm-card p {
  margin-bottom: 0;
}

/* --- Projects Page --- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--clr-gray-300);
  background: var(--clr-white);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  color: var(--clr-gray-600);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--clr-blue);
  color: var(--clr-white);
  border-color: var(--clr-blue);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.project-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-gray-200);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

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

.project-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.project-tag {
  padding: 3px 10px;
  background: var(--clr-blue-pale);
  color: var(--clr-blue);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.project-card h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.project-card p {
  font-size: 0.9rem;
  flex: 1;
}

.project-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* --- Cooperation Page --- */
.coop-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.coop-item {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--clr-gray-200);
  transition: all var(--transition-slow);
}

.coop-item:hover {
  box-shadow: var(--shadow-md);
}

.coop-item h3 {
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
}

.coop-item p {
  margin-bottom: 0;
}

/* --- Form Styles --- */
.form-section {
  background: var(--clr-gray-50);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  margin-top: var(--space-3xl);
}

.form-section h3 {
  margin-bottom: var(--space-md);
}

.form-section > p {
  margin-bottom: var(--space-2xl);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--clr-gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-gray-700);
  background: var(--clr-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 138, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  margin-top: var(--space-xl);
  text-align: center;
}

/* --- Activities Page --- */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.activity-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--clr-gray-200);
  align-items: center;
  transition: all var(--transition-slow);
}

.activity-row:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.activity-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.activity-row:nth-child(1) .activity-icon { background: var(--clr-blue-pale); }
.activity-row:nth-child(2) .activity-icon { background: #FEF3E2; }
.activity-row:nth-child(3) .activity-icon { background: var(--clr-olive-pale); }
.activity-row:nth-child(4) .activity-icon { background: #ECFDF5; }
.activity-row:nth-child(5) .activity-icon { background: #F3E8FF; }

.activity-row h3 {
  margin-bottom: var(--space-sm);
}

.activity-row p {
  margin-bottom: 0;
  color: var(--clr-gray-500);
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

/* Staggered animation for grids */
.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Counter animation --- */
.counter-animate {
  transition: all 0.3s ease;
}

/* --- Responsive --- */
@media (max-width: 1280px) {
  .board-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .board-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-stats {
    order: 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-5xl: 4rem;
    --space-4xl: 3rem;
  }
  
  .topbar-info span:not(:first-child) {
    display: none;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-white);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition-slow);
    z-index: 999;
    align-items: stretch;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    padding: var(--space-md);
    font-size: 1rem;
    border-bottom: 1px solid var(--clr-gray-100);
  }
  
  .nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero-content {
    padding: var(--space-2xl) 0;
  }
  
  .intro-grid {
    grid-template-columns: 1fr;
  }
  
  .intro-image {
    order: -1;
  }
  
  .areas-grid {
    grid-template-columns: 1fr;
  }
  
  .board-grid {
    grid-template-columns: 1fr;
  }
  
  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .hero-btns .btn {
    text-align: center;
    justify-content: center;
  }
  
  .about-content-block {
    grid-template-columns: 1fr;
  }
  
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .coop-sections {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .page-header {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .numbers-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-stats {
    grid-template-columns: 1fr;
  }
  
  .lang-switch {
    order: -1;
  }
}

/* --- Print --- */
@media print {
  .topbar, .header, .footer, .nav-toggle { display: none; }
  .hero { min-height: auto; }
  .section { padding: 2rem 0; }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 3px solid var(--clr-blue);
  outline-offset: 2px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-blue);
  color: var(--clr-white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--clr-white);
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}
