/* =====================================================
   İSPER Design System — v1.0
   Based on: PlumberZone template + İSPER Corporate Identity
   Reference: koc.com.tr (balanced red accent usage)
   ===================================================== */

/* ─── 1. Google Fonts ─── */
/* Fonts loaded via <link> in HTML — no @import needed */

/* ─── 2. CSS Custom Properties (Design Tokens) ─── */
:root {
  /* Brand Colors */
  --color-red: #D9121B;        /* logo PNG arka planiyla BIREBIR ayni */
  /* İSPER kırmızı — SADECE ACCENT */
  --color-red-dark: #AF0F16;
  /* Hover state */
  --color-red-light: #FBE6E7;
  --color-red-on-dark: #F25F66;     /* koyu zeminde link/vurgu — 5.36:1 (marka kirmizisi koyuda 3.3:1 kalir) */
  /* Çok hafif arka plan tonu */

  /* Neutral Palette */
  --color-dark: #1A1A2E;
  /* Antrasit/Lacivert — hero, koyu section */
  --color-dark-2: #2D2D44;
  /* İkincil koyu */
  --color-surface: #FFFFFF;
  /* Kart yüzeyleri */
  --color-bg: #F4F5F7;
  /* Sayfa arka planı */
  --color-bg-2: #EEF0F3;
  /* Hafif gri section */

  /* Text */
  --color-text-primary: #1C1C1C;
  --color-text-secondary: #505560;  /* WCAG AA: 7.47:1 beyaz / 6.55:1 gri zemin */
  --color-text-light: #696D75;      /* WCAG AA: 5.19:1 beyaz / 4.55:1 gri zemin (eski #9CA3AF = 2.54:1 kaliyordu) */
  --color-text-white: #FFFFFF;

  /* Border */
  --color-border: #E5E7EB;
  --color-border-dark: #D1D5DB;

  /* Typography */
  --font-primary: 'Poppins', 'Segoe UI', system-ui, sans-serif;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-red: 0 8px 24px rgba(217, 18, 27, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1320px;
  --container-gutter: 1.5rem;
  --header-height: 80px;
}

/* ─── 3. Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Skip nav (Erişilebilirlik) */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-red);
  color: white;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: var(--fw-semibold);
  transition: top var(--transition-fast);
}

.skip-nav:focus {
  top: 0;
}

/* ─── 4. Layout ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.section-padding {
  padding-block: var(--space-20);
}

.section-padding--lg {
  padding-block: var(--space-32);
}

/* ─── 5. Typography ─── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title .label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.section-title p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* ─── 6. Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  white-space: normal;
  max-width: 100%;
  text-align: center;
  cursor: pointer;
}

/* Primary — Kırmızı (Accent) */
.btn-primary {
  background-color: var(--color-red);
  color: var(--color-text-white);
  border: 2px solid var(--color-red);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* Secondary — Outline */
.btn-outline {
  background: transparent;
  color: var(--color-red);
  border: 2px solid var(--color-red);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--color-red);
  color: white;
  transform: translateY(-2px);
}

/* White — Koyu zemin üstü */
.btn-white {
  background-color: white;
  color: var(--color-dark);
  border: 2px solid white;
}

.btn-white:hover,
.btn-white:focus {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: white;
}

/* Ghost — Çok hafif */
.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

/* btn sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ─── 7. Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition-base);
}

.header-top-bar {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-xs);
  padding-block: var(--space-2);
}

.header-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top-bar a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.header-top-bar a:hover {
  color: var(--color-red);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.top-bar-links li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.top-bar-social a {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
}

.top-bar-social a:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: white;
}

/* Main nav */
.header-main {
  padding-block: 0;
  height: var(--header-height);
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
}

.site-logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.nav-mobile-actions {
  display: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  height: var(--header-height);
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link:focus,
.nav-item.active>.nav-link {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 100;
  padding: var(--space-2);
  /* Cok ogeli menulerde viewport'u asmasin: dropdown ic scroll */
  max-height: calc(100vh - var(--header-height) - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-red) transparent;
}

.nav-item:hover>.dropdown-menu,
.nav-item:focus-within>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--color-red-light);
  color: var(--color-red-dark);
  padding-left: var(--space-5);
}

/* Dropdown ince scrollbar (cok ogeli menuler) */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: var(--radius-full);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.lang-switcher button {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  font-family: var(--font-primary);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.lang-switcher button.active,
.lang-switcher button:hover {
  background: var(--color-red);
  color: white;
}

.search-trigger {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.search-trigger:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: white;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--color-red);
  background: var(--color-red-light);
}

.mobile-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.mobile-toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.open .mobile-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.open .mobile-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open .mobile-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-toggle-label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

/* ─── 8. Hero Slider ─── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-block: var(--space-20);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(26, 26, 46, 0.90) 0%,
      rgba(26, 26, 46, 0.65) 50%,
      rgba(26, 26, 46, 0.30) 100%);
  z-index: 1;
}

/* Karanlik site (musteri geri bildirimi, Secenek 2): genis ekranda fotograf perdesi acilir.
   Metin sol yarida kaldigi icin okunabilirlik korunur (7 slaytta olculdu: baslik >= 4.22:1, aciklama >= 4.68:1).
   Tablet ve telefonda metin ekranin tamamina yayildigindan perde degismez. */
@media (min-width: 1025px) {
  .hero-slide::before {
    background: linear-gradient(105deg,
        rgba(26, 26, 46, 0.75) 0%,
        rgba(26, 26, 46, 0.58) 50%,
        rgba(26, 26, 46, 0.10) 100%);
  }
}

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-red);
}

.hero-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: var(--fw-extrabold);
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-title span {
  color: var(--color-red);
}

.hero-desc {
  font-size: var(--text-lg);
  /* tam beyaz: fotograf ustunde okunabilirlik (%80 beyaz bazi slaytlarda 4.5:1 altina dusuyordu) */
  color: var(--color-text-white);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-nav {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-20);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.slider-prev,
.slider-next,
.slider-pause {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  transition: all var(--transition-base);
}

.slider-prev:hover,
.slider-next:hover,
.slider-pause:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

.slider-dots {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.40);
  border: none;
  transition: all var(--transition-base);
}

.slider-dot.active,
.slider-dot:hover {
  background: var(--color-red);
  width: 24px;
}

/* ─── 9. Stats Banner ─── */
.stats-banner {
  /* Karanlik site, Secenek 2: acik zemin (anasayfa ilk ekranindaki lacivert alan azalir) */
  background: var(--color-text-white);
  padding-block: var(--space-12);
}

/* Sutun sayisi kutu sayisina uyar: panelde degeri bos birakilan kutu
   gosterilmez (isper-api.js visibleStatBoxes), kalan kutular esit paylasir;
   uzun bir deger sigmazsa sutun genisler, ayraca tasmaz (1fr = minmax(auto, 1fr)). */
.stats-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--fw-extrabold);
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-number span {
  color: var(--color-red);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── 10. Service Cards ─── */
.services-section {
  background: var(--color-bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-red-light);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--color-red-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--color-red-dark);
  margin-bottom: var(--space-5);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--color-red);
  color: white;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-red);
  transition: gap var(--transition-base);
}

.service-card:hover .service-link {
  gap: var(--space-3);
}

/* ─── 11. Projects Section ─── */
.projects-section {
  background: var(--color-surface);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.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.06);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-body {
  padding: var(--space-6);
}

.project-card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.project-card-body p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ─── 12. CTA Section ─── */
.cta-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 18, 27, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: white;
  margin-bottom: var(--space-3);
}

.cta-text p {
  color: rgba(255, 255, 255, 0.70);
  font-size: var(--text-lg);
}

/* ─── 13. Blog Cards ─── */
.blog-section {
  background: var(--color-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-red);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-body {
  padding: var(--space-6);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.blog-card-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.blog-card-body h3 a:hover {
  color: var(--color-red);
}

.blog-card-body p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── 14. Quick Links ─── */
.quick-links-section {
  background: white;
  border-top: 1px solid var(--color-border);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  text-decoration: none;
}

.quick-link-item:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-red);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.quick-link-item:hover .quick-link-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.quick-link-text strong {
  display: block;
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.quick-link-text span {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.quick-link-item:hover .quick-link-text strong,
.quick-link-item:hover .quick-link-text span {
  color: white;
}

/* ─── 15. Footer ─── */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-main {
  padding-block: var(--space-20);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand {
  max-width: 280px;
}

.footer-brand img {
  height: 44px;
  margin-bottom: var(--space-5);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.70);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: white;
}

.footer-col h2 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: white;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-red);
  display: inline-block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--color-red-on-dark);
  padding-left: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-6);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom a:hover {
  color: var(--color-red-on-dark);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-5);
  row-gap: var(--space-2);
}

.footer-iskur {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-6);
}

.footer-iskur .container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-iskur-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.55);
}

.footer-iskur p {
  font-size: var(--text-xs);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

/* ─── 16. Search Overlay ─── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: var(--space-8);
}

.search-overlay-inner form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  gap: var(--space-4);
}

.search-overlay-inner input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: var(--text-3xl);
  color: white;
  font-family: var(--font-primary);
  padding-block: var(--space-4);
}

.search-overlay-inner input::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.search-close {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.10);
  color: white;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.search-close:hover {
  background: var(--color-red);
}

/* ─── 17. Cookie Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-5) var(--space-8);
  z-index: 9998;
  /* Kapaliyken yalnizca ekran disina itmek YETMEZ: eleman erisilebilirlik
     agacinda kalir, ekran okuyucu okur ve Tab ile butonlarina ulasilir.
     visibility: hidden hem gorunumden hem sekme sirasindan cikarir. */
  visibility: hidden;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner.visible {
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner p {
  font-size: var(--text-sm);
  max-width: 700px;
}

.cookie-banner a {
  color: var(--color-red-on-dark);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}



/* ─── 18. Utility Classes ─── */
.text-center {
  text-align: center;
}

.text-red {
  color: var(--color-red);
}

.text-white {
  color: white;
}

.text-muted {
  color: var(--color-text-secondary);
}

.bg-dark {
  background-color: var(--color-dark);
}

.bg-light {
  background-color: var(--color-bg);
}

.bg-white {
  background-color: white;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.flex-wrap {
  flex-wrap: wrap;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ─── 19. Page Loader ─── */
.page-loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-red);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── 20. Breadcrumb ─── */
.breadcrumb-section {
  background: var(--color-bg);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.breadcrumb a:hover {
  color: var(--color-red);
}

.breadcrumb-sep {
  color: var(--color-border-dark);
}

.breadcrumb-current {
  color: var(--color-text-primary);
  font-weight: var(--fw-medium);
}

/* Uzun baslik dar ekranda kirilsin, bant tasmasin */
.breadcrumb > :last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ─── 21. Form Styles ─── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-red);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(217, 18, 27, 0.10);
}

.form-control::placeholder {
  color: var(--color-text-light);
}

/* Tarayıcı native temizle butonunu gizle — özel ikonla çakışmaması için */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.form-control.error {
  border-color: #dc2626;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: #dc2626;
  margin-top: var(--space-1);
}

/* Application Form */
.application-form {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
}

.application-form-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.application-form-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* ─── 22. Feed / News Cards ─── */
.feed-section {
  background: white;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-5);
}

.feed-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.feed-card:hover {
  border-color: var(--color-red);
  box-shadow: var(--shadow-sm);
}

.feed-card-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--color-red);
  color: white;
  width: 52px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feed-card-date .day {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.feed-card-date .month {
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.feed-card-content h4 {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.feed-card-content h4 a:hover {
  color: var(--color-red);
}

.feed-card-content .tag {
  font-size: var(--text-xs);
  color: var(--color-red);
  font-weight: var(--fw-medium);
}

/* ─── 23. Responsive ─── */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 2 sutunda sag sutundaki kutunun ayrac cizgisi dis kenara duser */
  .stats-grid > .stat-item:nth-child(even) {
    border-right: none;
  }

  /* 2 sutunda tek kalan kutu (orn. 3 kutu) tum satira yayilir */
  .stats-grid > .stat-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Tablet ve kucuk dizustu: ust menu acilir menuye gecer (karar K14: 1279 px).
   isper-main.js icindeki matchMedia esigi bu deger ile AYNI olmali. */
@media (max-width: 1279px) {
  .dropdown-menu .dropdown-group-label {
    padding-left: var(--space-8);
  }

  :root {
    --header-height: 64px;
  }

  .header-top-bar {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
  }

  .nav-item {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    height: auto;
    padding: var(--space-4) var(--space-5);
    border-bottom: none;
    border-left: none;
    font-size: var(--text-base);
    font-weight: var(--fw-medium);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .nav-link:hover,
  .nav-item.active>.nav-link {
    border-bottom: none;
    color: var(--color-red-dark);
    background: var(--color-red-light);
    border-left: none;
  }

  .dropdown-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: var(--color-bg-subtle, #f8f9fa);
    max-height: none;
    overflow: visible;
  }

  .dropdown-menu.open {
    display: block;
  }

  .dropdown-menu li {
    border-bottom: 1px solid rgba(0,0,0,.05);
  }

  .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .dropdown-menu a {
    padding: var(--space-3) var(--space-5) var(--space-3) var(--space-8);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-align: left;
    justify-content: flex-start;
  }

  .dropdown-menu a:hover {
    color: var(--color-red);
    background: rgba(0,0,0,.03);
  }

  /* Chevron rotation when dropdown open */
  .nav-item.dropdown-open > .nav-link {
    color: var(--color-red-dark);
    background: var(--color-red-light);
  }

  .nav-item.dropdown-open > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
  }

  .nav-link .fa-chevron-down {
    transition: transform 0.2s ease;
  }

  /* Mobile-only: language + search row inside menu */
  .nav-mobile-actions {
    display: block !important;
    border-bottom: none !important;
    margin-top: auto;
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-subtle, #f8f9fa);
  }

  .mobile-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .mobile-actions-row .lang-switcher {
    display: flex;
    gap: var(--space-2);
  }

  .mobile-actions-row .lang-switcher button {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: white;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
  }

  .mobile-actions-row .lang-switcher button.active {
    background: var(--color-red);
    color: white;
    border-color: var(--color-red);
  }

  .mobile-search-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: white;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-primary);
    text-decoration: none;
  }

  .mobile-search-btn:hover {
    border-color: var(--color-red);
    color: var(--color-red);
  }

  .header-main .container {
    padding-inline: var(--space-4);
  }

  .site-logo {
    align-self: center;
  }

  .site-logo img {
    height: 46px;
    width: auto;
  }

  .main-nav {
    gap: 0;
  }

  .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    min-height: 500px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    /* dar sutunda rakam sigsin: yatay ic bosluk azalir */
    padding: var(--space-4) var(--space-2);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .application-form {
    padding: var(--space-6);
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    gap: var(--space-4);
  }

  /* rakam yalniz gerektigi kadar kuculur: 390 px'te 30 px kalir, 320 px'te ~26 px */
  .stat-number {
    font-size: clamp(var(--text-2xl), 8vw, var(--text-3xl));
  }

  .service-grid,
  .project-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── 24. Animation Classes ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger children */
.stagger-children>*:nth-child(1) {
  transition-delay: 0ms;
}

.stagger-children>*:nth-child(2) {
  transition-delay: 100ms;
}

.stagger-children>*:nth-child(3) {
  transition-delay: 200ms;
}

.stagger-children>*:nth-child(4) {
  transition-delay: 300ms;
}

.stagger-children>*:nth-child(5) {
  transition-delay: 400ms;
}

.stagger-children>*:nth-child(6) {
  transition-delay: 500ms;
}

/* ─── 25. Focus Visible (Accessibility) ─── */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
/* ── FAQ / Accordion ─────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 800px; margin-inline: auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: var(--space-5) var(--space-6);
  background: white; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-base); font-size: var(--text-sm); font-weight: var(--fw-semibold);
  color: var(--color-dark); transition: background var(--transition-base);
  gap: var(--space-4);
}
.faq-question:hover { background: var(--color-bg); }
.faq-question[aria-expanded="true"] { background: var(--color-bg); color: var(--color-red); }
.faq-question .faq-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-border); display: flex; align-items: center; justify-content: center;
  font-size: 10px; transition: transform var(--transition-base), background var(--transition-base); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--color-red); color: white; }
.faq-answer { display: none; padding: 0 var(--space-6) var(--space-5); font-size: var(--text-sm);
  color: var(--color-text-light); line-height: 1.7; border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.faq-answer.open { display: block; }

/* Related blog mini cards */
.related-blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.related-blog-card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow var(--transition-base), transform var(--transition-base); }
.related-blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.rbc-body { padding: var(--space-5); }
.rbc-cat { font-size: 11px; font-weight: var(--fw-semibold); color: var(--color-red);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--space-2); }
.rbc-title { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--color-dark);
  line-height: 1.4; margin-bottom: var(--space-3); }
.rbc-title a { color: inherit; text-decoration: none; }
.rbc-title a:hover { color: var(--color-red); }
.rbc-meta { font-size: 11px; color: var(--color-text-light); }
@media (max-width: 768px) { .related-blog-grid { grid-template-columns: 1fr; } }

/* ─── Breadcrumb on dark hero backgrounds ─── */
.page-hero .breadcrumb { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb-sep { color: rgba(255,255,255,.35); }
.page-hero .breadcrumb-current { color: white; font-weight: var(--fw-medium); }

/* ─── Footer newsletter input ─── */
.site-footer .form-control {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: white;
}
.site-footer .form-control::placeholder { color: rgba(255,255,255,.4); }
.site-footer .form-control:focus {
  border-color: rgba(255,255,255,.45);
  box-shadow: none;
  background: rgba(255,255,255,.12);
}

/* ─── Dropdown chevron indicator ─── */
.nav-link .dd-arrow {
  font-size: 10px;
  margin-left: 2px;
  transition: transform var(--transition-fast);
}
.nav-item:hover > .nav-link .dd-arrow,
.nav-item:focus-within > .nav-link .dd-arrow { transform: rotate(180deg); }

/* ─── Org chart person modal ─── */
.org-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000;
  align-items: center; justify-content: center;
}
.org-modal-overlay.open { display: flex; }
.org-modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 360px; width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.org-modal-close {
  position: absolute; top: var(--space-3); right: var(--space-4);
  background: none; border: none; font-size: var(--text-xl); cursor: pointer; color: var(--color-text-secondary);
}
.org-modal-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  display: block;
  border: 3px solid var(--color-red);
}
.org-modal-name { font-size: var(--text-lg); font-weight: var(--fw-bold); margin-bottom: var(--space-1); }
.org-modal-title { font-size: var(--text-sm); color: var(--color-text-secondary); margin-bottom: var(--space-5); }
.org-modal-linkedin {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: #0077B5; color: white;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  text-decoration: none;
}
.org-modal-linkedin:hover { background: #005f8e; }
.node { cursor: pointer; }
.node:hover { border-color: var(--color-red); box-shadow: var(--shadow-md); }

/* ═══════════════════════════════════════════════════════════
   Blog — Makale Özet Kutusu (article-summary)
   Blog detay sayfasında, yazı içinde gösterilir.
   ═══════════════════════════════════════════════════════════ */
.article-summary {
  display: flex;
  gap: var(--space-5);
  background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
  border: 1.5px solid rgba(217, 18, 27, 0.18);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-block: var(--space-8);
}
.article-summary-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-base);
}
.article-summary-body { flex: 1; min-width: 0; }
.article-summary-body h3 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}
.article-summary-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.article-summary-body ul li {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  padding-left: var(--space-5);
  position: relative;
}
.article-summary-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-red);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   Blog — Özet Kartı (blog-summary-card)
   Farklı sayfalarda blog yazısı önizlemesi için kullanılır.
   ═══════════════════════════════════════════════════════════ */
.blog-summary-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.blog-summary-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.blog-summary-card-image {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-summary-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.blog-summary-card:hover .blog-summary-card-image img { transform: scale(1.06); }
.blog-summary-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-summary-card-body .blog-card-category {
  position: static;
  display: inline-flex;
  margin-bottom: var(--space-3);
  align-self: flex-start;
}
.blog-summary-card-body h3 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}
.blog-summary-card-body h3 a { color: var(--color-dark); text-decoration: none; }
.blog-summary-card-body h3 a:hover { color: var(--color-red); }
.blog-summary-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-summary-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.blog-summary-card-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}
.blog-summary-card-meta span { display: flex; align-items: center; gap: var(--space-1); }

/* ═══════════════════════════════════════════════════════════
   Blog — Makale İçerik Stilleri (article-body)
   ═══════════════════════════════════════════════════════════ */
.article-body { line-height: 1.85; color: var(--color-text); }
.article-body h2 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.article-body h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.article-body p { margin-bottom: var(--space-5); }
.article-body a { color: var(--color-red); text-decoration: underline; }
/* ─── Zengin metin gövdelerinde liste görünümü ─────────────────────────────
   Global `ul, ol { list-style: none }` reset'ini YALNIZCA içerik gövdeleri için
   geri alır; menü/footer/kart listeleri etkilenmez.
   DİKKAT 1: Burada `display:flex` KULLANILMAZ — flex öğeleri list-item marker
   üretmediği için madde imi/numara görünmez olur. Aralık `li` margin'i ile verilir.
   DİKKAT 2: Quill 2, madde imli listeyi <ul> değil <ol><li data-list="bullet">
   olarak kaydeder ve görünür imi yalnızca editör CSS'i (.ql-ui::before) çizer;
   bu yüzden public tarafta data-list varyantları ayrıca ele alınır. */
.article-body ul, .article-body ol,
#proje-body ul, #proje-body ol,
#hizmet-body ul, #hizmet-body ol,
#haber-body ul, #haber-body ol,
.legal-content ul, .legal-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}
.article-body ul, #proje-body ul, #hizmet-body ul, #haber-body ul, .legal-content ul {
  list-style: disc outside;
}
.article-body ol, #proje-body ol, #hizmet-body ol, #haber-body ol, .legal-content ol {
  list-style: decimal outside;
}
.article-body li, #proje-body li, #hizmet-body li, #haber-body li, .legal-content li {
  line-height: 1.7;
  margin-bottom: var(--space-2);
}
/* Quill 2 markup uyumu: im tipi li üzerinden belirlenir */
.article-body li[data-list="bullet"], #proje-body li[data-list="bullet"],
#hizmet-body li[data-list="bullet"], #haber-body li[data-list="bullet"],
.legal-content li[data-list="bullet"] {
  list-style-type: disc;
}
.article-body li[data-list="ordered"], #proje-body li[data-list="ordered"],
#hizmet-body li[data-list="ordered"], #haber-body li[data-list="ordered"],
.legal-content li[data-list="ordered"] {
  list-style-type: decimal;
}
/* Quill'in editör içi im span'i public tarafta gereksiz (imi CSS çiziyor) */
.article-body li > .ql-ui, #proje-body li > .ql-ui,
#hizmet-body li > .ql-ui, #haber-body li > .ql-ui,
.legal-content li > .ql-ui {
  display: none;
}
/* "Bu Yazıdan Öğrenecekleriniz" kutusu kendi tasarımıyla imsiz kalmalı */
.article-body .article-summary-body ul, .article-body .article-summary-body ol {
  list-style: none;
  padding-left: 0;
}
.article-body blockquote {
  border-left: 4px solid var(--color-red);
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}
.article-body blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--color-text-light);
}
.article-body img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin-block: var(--space-6);
}

/* ─── Yazar Kartı ─── */
.author-card {
  display: flex;
  gap: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-10);
}
.author-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-red);
}
.author-card-body {
  min-width: 0;
}

.author-card-body h4 {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-1);
}
.author-card-body .author-role {
  font-size: var(--text-xs);
  color: var(--color-red);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--space-3);
}
.author-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ─── Etiket Listesi ─── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.article-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.article-tag:hover {
  border-color: var(--color-red);
  color: var(--color-red);
  background: rgba(217, 18, 27, .05);
}

/* ─── 26. Sayfa Hero (iç sayfa başlık bandı) ──────────────────────────────
   Kurumsal kırmızı zemin + beyaz metin (müşteri tasarım önerisi, 2026-03).
   TEK KAYNAK: 13 iç sayfadaki tekrarlanan inline tanımlar kaldırıldı; hero
   görünümü artık yalnızca buradan yönetilir.
   Kontrast (WCAG AA): beyaz/#D9121B = 5.18:1, alt metin .95 alfa = 4.76:1.
   DİKKAT: alt metinde .85'in altında alfa kullanmayın — 4.5:1 eşiğinin
   altına düşer (.75 = 3.76:1 kalır). */
.page-hero {
  background: var(--color-red);
  color: white;
  padding-block: var(--space-20);
  position: relative;
}

.page-hero h1 {
  color: white;
  margin-bottom: var(--space-4);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-lg);
}

/* Hero içindeki breadcrumb kırmızı zeminde okunur olmalı */
.page-hero .breadcrumb,
.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
}

.page-hero .breadcrumb a:hover {
  color: white;
  text-decoration: underline;
}

.page-hero .breadcrumb-current {
  color: white;
  font-weight: var(--fw-semibold);
}

.page-hero .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════
   27. FORM HATA GOSTERIMI (erisilebilirlik)
   ═══════════════════════════════════════════════════ */

/* Hata kabi kalicidir (aria-describedby kirilmasin diye); bosken yer kaplamaz. */
.form-error:empty {
  display: none;
}

/* WCAG 1.4.1: renk TEK gosterge olamaz. Kirmizi kenarliga ek olarak kalinlik
   ve uyari isareti ile hata renk korlugunde de ayirt edilir. */
.form-control.error {
  border-color: #dc2626;
  border-width: 2px;
}

.form-error::before {
  content: "\26A0";
  margin-right: 4px;
}

/* Form basindaki hata ozeti (role="alert", odaklanabilir). */
.form-error-summary {
  background: #fef2f2;
  border: 1px solid #dc2626;
  border-left-width: 4px;
  border-radius: var(--radius-md);
  color: #991b1b;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
}

.form-error-summary:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Koyu zeminli formlarda (footer, blog kenar paneli, raporlar CTA) kirmizi metin
   4.5:1 kontrasti saglamaz; acik tona alinir. */
.newsletter-form .form-error,
.site-footer .form-error,
.cta-section .form-error {
  color: #fca5a5;
}

/* ═══════════════════════════════════════════════════
   28. HAREKETI AZALT (prefers-reduced-motion)
   ═══════════════════════════════════════════════════ */

/* Konum/boyut degistiren hareketler ve sonsuz donguler kapatilir; renk,
   opaklik ve golge gecisleri KORUNUR (vestibuler risk tasimazlar ve
   odak/hover geri bildirimini taşırlar).
   Durum gostergeleri kaybolmaz: hamburger'in X'e donusu, chevron donusu ve
   SSS +/x isareti transform kullandigi icin ANINDA uygulanir.
   !important gerekli: sayfa ici <style> bloklari bu dosyadan SONRA yuklenir. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-property: color, background-color, border-color, outline-color,
      fill, stroke, opacity, box-shadow !important;
    transition-duration: 0.15s !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════
   29. ANASAYFA: BİZ KİMİZ + PROJE GRUPLARI
   ═══════════════════════════════════════════════════ */

/* Biz Kimiz tanıtım düzeni — hakkimizda ve anasayfa ORTAK kullanır
   (önceden hakkimizda/index.html içinde gömülüydü). */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-intro .section-title {
  text-align: left;
  margin-bottom: var(--space-4);
}

.about-intro-text h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  margin-bottom: var(--space-5);
}

.about-intro-text p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

.about-intro-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-intro-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* Anasayfa Biz Kimiz bölümü */
.home-about {
  background: var(--color-bg);
}

.home-about .about-intro-body {
  margin-bottom: var(--space-6);
}

.home-about .about-intro-image img {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
}

/* Anasayfa proje grupları (müşteri görseli: 3 sütun, başlık + proje listesi) */
.project-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.project-group {
  background: white;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Açık zeminde kırmızı metin --color-red-dark kullanır (7.2:1). Büyük harf
   dönüşümü <html lang>'e göre yapılır: TR'de 'i' -> 'İ' doğru çıkar. */
.project-group-title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-red-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
  min-height: 2.7em;
  margin-bottom: var(--space-4);
}

.project-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.project-group-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.project-group-item:hover,
.project-group-item:focus-visible {
  background: var(--color-red-light);
  color: var(--color-red-dark);
}

.project-group-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: rgba(255, 255, 255, 0.35);
}

.project-group-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-group-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.project-group-arrow {
  font-size: var(--text-xs);
  color: var(--color-red-dark);
  transition: transform var(--transition-fast);
}

.project-group-item:hover .project-group-arrow {
  transform: translateX(3px);
}

/* Projeler sayfası: grup bölümleri */
.project-group-section + .project-group-section {
  margin-top: var(--space-16);
}

.project-group-heading {
  display: inline-block;
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
  border-bottom: 3px solid var(--color-red);
}

/* Hizmet grupları (müşteri talebi 2026-09-17): proje gruplarının kutu ve bölüm stilleri kullanılır.
   Anasayfada 4 grup → geniş ekranda 4 sütun; hizmetin ikonu küçük görselin yerini alır. */
.service-groups {
  grid-template-columns: repeat(4, 1fr);
}

.service-group-icon {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  background: var(--color-red-light);
  color: var(--color-red-dark);
  font-size: var(--text-base);
}

.project-group-item:hover .service-group-icon,
.project-group-item:focus-visible .service-group-icon {
  background: var(--color-red);
  color: white;
}

/* Hizmetler sayfası: grup bölümü (başlık + tanıtım + kartlar). Alt bilgideki "#grup-…" bağlantısı
   bölüme indiğinde yapışkan üst menünün altında kalmasın. */
.service-group-section {
  /* yapışkan başlık = üst iletişim şeridi (44px, telefonda gizli) + menü (--header-height) */
  scroll-margin-top: calc(var(--header-height) + 44px + var(--space-4));
}

.service-group-section .project-group-heading:focus {
  outline: none;
}

.service-group-section .project-group-heading:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 4px;
}

.service-group-desc {
  max-width: 820px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: calc(-1 * var(--space-2)) 0 var(--space-6);
}

.service-group-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Proje detay: grup etiketi (koyu hero üzerinde kırmızı zemin + beyaz metin, 5.2:1) */
.proje-category-tag {
  display: inline-block;
  background: var(--color-red);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

/* display:inline-block tarayıcının [hidden] kuralını ezer — açıkça geri alınır */
.proje-category-tag[hidden] {
  display: none;
}

/* Üst menü: proje grupları. Başlık odaklanamaz metindir; ilk odak "Tümünü gör" kalır. */
.dropdown-menu .dropdown-group-label {
  display: block;
  padding: var(--space-3) var(--space-4) var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-red-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dropdown-menu .dropdown-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu .dropdown-group + .dropdown-group {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-1);
}

/* Masaüstü üst menü (≥1280 px; altında telefon menüsü kullanılır, satır kırılması orada doğaldır):
   üst menü öğeleri tek satır ve daha sık aralıklı ("Danışmanlık Çözümleri" adı sığsın diye);
   açılır menüler içerik genişliği kadar açılır, her öğe ve grup başlığı tek satırdır.
   Üzerine gelinince sola kayan öğede sağ boşluk aynı ölçüde azalır -> menü genişliği titremez. */
@media (min-width: 1280px) {
  .nav-link {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }

  .dropdown-menu {
    width: max-content;
    max-width: calc(100vw - 32px);
  }

  .dropdown-menu a,
  .dropdown-menu .dropdown-group-label {
    white-space: nowrap;
  }

  .dropdown-menu a:hover {
    padding-right: var(--space-3);
  }
}

/* Site haritası sayfası: proje grupları */
.sitemap-group .sitemap-subgroup-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.sitemap-group .sitemap-subgroup > ul {
  margin-top: var(--space-2);
  padding-left: var(--space-4);
}

@media (max-width: 1279px) {
  /* 4 grup dar masaüstünde okunaklı kalsın: 2 sütun */
  .service-groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .project-groups {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .home-about .about-intro {
    gap: var(--space-8);
  }

  .home-about .about-intro-image img {
    height: 300px;
  }

  .project-groups,
  .service-groups {
    grid-template-columns: 1fr;
  }

  .project-group-title {
    min-height: 0;
  }
}

/* ═══════════════════════════════════════════
   30. DAR EKRAN YENIDEN AKIS
   Telefonda yana kaymayi onleyen ortak kurallar.
   ═══════════════════════════════════════════ */

:where(main, footer) :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, figcaption, blockquote, label, legend, caption) {
  overflow-wrap: anywhere;
}

/* ── Çerez izni: bant içi sarmalayıcı, eşit düğmeler ve tercih paneli ── */
.cookie-banner > .cookie-banner-inner { flex: 1 1 auto; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

.cookie-text { margin: 0; flex: 1 1 320px; min-width: 0; }

/* Uc dugme AYNI gorunumde: KVKK Cerez Rehberi esit sunumu iyi uygulama sayiyor */
.cookie-btn {
  background: white;
  color: var(--color-dark);
  border: 1px solid white;
  font-weight: var(--fw-semibold);
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  background: var(--color-red);
  border-color: var(--color-red);
  color: white;
}

div.cookie-prefs[role="dialog"] {
  position: fixed;
  left: 50%;
  bottom: var(--space-6);
  transform: translateX(-50%);
  z-index: 9999;
  width: min(560px, calc(100vw - 2 * var(--space-4)));
  max-height: 70vh;
  overflow-y: auto;
  background: white;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
}

div.cookie-prefs[role="dialog"] h2 { font-size: var(--text-lg); margin: 0 0 var(--space-4) 0; }
.cookie-prefs-row { padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.cookie-prefs-row label { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-semibold); }
.cookie-prefs-desc { margin: var(--space-1) 0 0 var(--space-6); font-size: var(--text-sm); color: var(--color-text-secondary); }
div.cookie-prefs[role="dialog"] .cookie-btn { background: var(--color-red); border-color: var(--color-red); color: white; }
div.cookie-prefs[role="dialog"] .cookie-close { background: white; color: var(--color-text-primary); border-color: var(--color-border); }

/* Alt bilgideki tercih dugmesi: baglanti gibi gorunur ama dugmedir */
.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.footer-legal-btn:hover { color: var(--color-red-on-dark, #F4777D); }

/* Form onay kutusu satiri */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.form-consent input { margin-top: 3px; flex-shrink: 0; }
.form-consent a { color: var(--color-red-dark, #A00D24); text-decoration: underline; }

/* Bot korumasi tuzak alani: ziyaretci gormez, ekran okuyucu okumaz, klavye ugramaz.
   display:none KULLANILMAZ; bazi otomatik araclar gizli alanlari atlar. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Sayfa numaralari: tek tanim (sayfa ici kopyalar kaldirildi) */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.page-btn:hover,
.page-btn.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: white;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .breadcrumb {
    flex-wrap: wrap;
    row-gap: var(--space-1);
  }
}

/* ==========================================================================
   İndirme kartı (Raporlar sayfasındaki raporlar + Danışmanlık Çözümleri kataloğu)
   Raporlar sayfasının içinden taşındı (tek kaynak); başlık h2 ya da h3 olabilir.
   ========================================================================== */

.report-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    transition: all var(--transition-base);
}

.report-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-red);
}

.report-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--color-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-red);
    font-size: 1.4rem;
}

.report-card-body {
    flex: 1;
}

.report-card-body .tag {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-red);
    margin-bottom: var(--space-1);
    display: block;
}

.report-card-body :is(h2, h3) {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.report-card-body h3 a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.report-card-body h3 a:hover {
    color: var(--color-red);
}

.report-card-body p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

/* Doküman kartı açıklaması (Özet düz metin veya İçerik/body HTML) */
.report-card-desc {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}
.report-card-desc > :last-child { margin-bottom: 0; }
.report-card-desc p { margin-bottom: var(--space-2); }
.report-card-desc ul, .report-card-desc ol {
    list-style: revert;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
}
.report-card-desc a { color: var(--color-red); text-decoration: underline; }

.report-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

.report-card-action {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-end;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .report-card {
        flex-direction: column;
    }

    .report-card-action {
        align-items: flex-start;
    }
}
