/* ============ Variables ============ */
:root {
  --primary: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #E57373;
  --secondary: #2C3E50;
  --accent: #F44336;
  --text: #2C3E50;
  --text-light: #6C757D;
  --bg: #FFFFFF;
  --bg-light: #F8F9FA;
  --border: #E9ECEF;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  /* Nötr zemin; kırmızı yalnız logo ve küçük vurgularda (kullanıcı 2026-10-16: kırmızı arka plan istenmedi) */
  --zemin: #F5F6F8;
  --cizgi: #E6E8EC;
  --kirmizi-acik: #FDECEC;
}

/* ============ Yazı tipi: Inter, sitenin kendi dosyası (Google Fonts yok); Türkçe harfler latin-ext'te ============ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
.header {
  background: var(--bg);
  padding: 0;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 150px;
  height: 150px;
  background: transparent;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  box-shadow: none;
  overflow: hidden;
}

.logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1px;
  margin: 0;
}


.header-contact {
  display: flex;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.contact-item .icon {
  font-size: 18px;
}

/* ============ Erişilebilirlik: içeriğe geç bağlantısı (yalnız klavye odağında görünür) ============ */
.atla {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.atla:focus {
  top: 12px;
}

/* ============ Bölüm başlıkları ============ */
.bolum-bas {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.ust-etiket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ust-etiket::before,
.ust-etiket::after {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.45;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--secondary);
  text-wrap: balance;
}

.section-subtitle {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 16px;
  text-wrap: pretty;
}

/* ============ Anlaşmalı kurumlar ============ */
.kurumlar {
  padding: 80px 0 88px;
  background: var(--zemin);
}

/* SGK: öne çıkan geniş kart */
.sgk-kart {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 24px 32px;
  background: #fff;
  border: 1px solid var(--cizgi);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.sgk-logo {
  flex: none;
  padding-right: 28px;
  border-right: 1px solid var(--cizgi);
}

.sgk-logo img {
  display: block;
  width: 157px;
  height: auto;
}

.sgk-metin h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

.sgk-metin p {
  margin-top: 6px;
  color: var(--text-light);
  font-size: 15px;
}

/* Özel kurumlar: 12 logo; 6 / 4 / 3 / 2 sütun, her düzende satırlar tam dolar */
.grup-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 20px;
}

.grup-bas h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
}

/* Rozet bölünmesin; dar ekranda başlığın altına geçer */
.sayi {
  flex: none;
  white-space: nowrap;
  padding: 3px 10px;
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  background: #fff;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
}

.kurum-izgara {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.kurum {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--cizgi);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kurum:hover {
  transform: translateY(-3px);
  border-color: #D5D9E0;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

/* Ölçü HTML'deki width/height'tan (görsel ağırlık eşitlenmiş); dar kartta orantılı küçülür */
.kurum img {
  display: block;
  max-width: 100%;
  height: auto;
}

.kurum-not {
  margin-top: 28px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.kurum-not a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

/* ============ İletişim ve konum ============ */
.location {
  padding: 80px 0 88px;
  background: var(--bg);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px;
}

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

.info-card {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--cizgi);
  border-radius: 16px;
  transition: box-shadow 0.25s ease;
}

.info-card:hover {
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.07);
}

.info-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--kirmizi-acik);
  color: var(--primary);
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-content {
  flex: 1;
  min-width: 0;
}

.info-content h3 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
}

.info-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

.info-content p + p {
  margin-top: 8px;
}

/* Yer tarifi (Academic Hospital karşısı): adresin altında öne çıkan satır */
.info-content .tarif {
  color: var(--secondary);
  font-weight: 600;
}

.info-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.info-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Haftalık çalışma saatleri; bugünün satırı script.js ile işaretlenir */
.saatler {
  list-style: none;
  font-size: 15px;
}

.saatler li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -10px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.saatler li.kapali span:last-child {
  color: var(--primary);
  font-weight: 600;
}

.saatler li.bugun {
  background: var(--zemin);
  color: var(--secondary);
  font-weight: 600;
}

.saatler li.bugun span:first-child::after {
  content: 'Bugün';
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}

.map-wrapper {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--cizgi);
  border-radius: 16px;
  background: var(--zemin);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ============ Footer ============ */
.footer {
  background: var(--secondary);
  color: white;
  padding: 48px 0 24px;
}

.footer-copy {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .kurum-izgara {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
  }

  .header-contact {
    flex-direction: column;
    gap: 12px;
  }

  .kurumlar,
  .location {
    padding: 56px 0 64px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 340px;
  }
}

@media (max-width: 700px) {
  .kurum-izgara {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bolum-bas {
    margin-bottom: 32px;
  }

  .sgk-kart {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    text-align: center;
  }

  .sgk-logo {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--cizgi);
  }

  .sgk-logo img {
    width: 140px;
  }

  .kurum-izgara {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .kurum {
    height: 92px;
    padding: 14px;
  }

  .info-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 20px;
  }
}

/* ============ Açılış animasyonu (yalnız CSS; hareket azaltma tercihinde yok) ============ */
/* fill-mode backwards: animasyon bitince kart serbest kalır, üzerine gelince kalkma efekti çalışır */
@media (prefers-reduced-motion: no-preference) {
  .sgk-kart,
  .kurum {
    animation: belir 0.5s ease-out backwards;
  }

  .kurum:nth-child(2) { animation-delay: 0.04s; }
  .kurum:nth-child(3) { animation-delay: 0.08s; }
  .kurum:nth-child(4) { animation-delay: 0.12s; }
  .kurum:nth-child(5) { animation-delay: 0.16s; }
  .kurum:nth-child(6) { animation-delay: 0.2s; }
  .kurum:nth-child(7) { animation-delay: 0.24s; }
  .kurum:nth-child(8) { animation-delay: 0.28s; }
  .kurum:nth-child(9) { animation-delay: 0.32s; }
  .kurum:nth-child(10) { animation-delay: 0.36s; }
  .kurum:nth-child(11) { animation-delay: 0.4s; }
  .kurum:nth-child(12) { animation-delay: 0.44s; }
}

@keyframes belir {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
