/*
 * ZİYARETÇİ BİLEŞENLERİ
 *
 * Uygulamanın ürettiği, eski TT302 tesliminde bulunmayan bileşenler burada yaşar.
 * Sayfa gövdesine <style> basılmaz; renk rolleri brand.css değişkenlerinden gelir.
 */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--brand-white);
  color: var(--brand-primary);
  font-weight: 700;
  transform: translateY(calc(-100% - 16px));
  transition: transform 0.2s ease;
}

.skip-link:focus {
  color: var(--brand-primary);
  transform: translateY(0);
}

#duyurular a,
#duyuru-detay a {
  color: var(--brand-action);
}

#duyurular a:hover,
#duyuru-detay a:hover {
  color: var(--brand-deep);
}

#duyurular .card-title a,
#duyuru-detay .section-header h3 {
  color: var(--brand-heading);
}

#duyuru-vitrin {
  padding: 60px 0 40px;
}

#duyuru-vitrin .about-col {
  margin-bottom: 20px;
  border-radius: 4px;
  background: var(--brand-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#duyuru-vitrin .about-col .img {
  position: relative;
}

#duyuru-vitrin .about-col .img img {
  width: 100%;
  height: 200px;
  border-radius: 4px 4px 0 0;
  object-fit: cover;
}

#duyuru-vitrin .about-col .icon {
  position: absolute;
  bottom: -30px;
  left: calc(50% - 32px);
  width: 64px;
  height: 64px;
  padding-top: 8px;
  border: 4px solid var(--brand-white);
  border-radius: 50%;
  background: var(--brand-action);
  text-align: center;
  transition: 0.3s;
}

#duyuru-vitrin .about-col i {
  color: var(--brand-white);
  font-size: 36px;
  line-height: 1;
  transition: 0.3s;
}

#duyuru-vitrin .about-col:hover .icon {
  background: var(--brand-white);
}

#duyuru-vitrin .about-col:hover i,
#duyuru-vitrin .about-col p a,
#duyuru-vitrin .section-header p a {
  color: var(--brand-action);
}

#duyuru-vitrin .about-col h2 {
  padding: 0;
  margin: 40px 0 12px;
  color: var(--brand-heading);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

#duyuru-vitrin .about-col h2 a {
  color: var(--brand-heading);
}

#duyuru-vitrin .about-col h2 a:hover,
#duyuru-vitrin .about-col p a:hover,
#duyuru-vitrin .section-header p a:hover {
  color: var(--brand-accent);
}

#duyuru-vitrin .about-col .tarih {
  padding: 0 20px 8px;
  margin: 0;
  color: var(--brand-text);
  font-size: 13px;
  text-align: center;
}

#duyuru-vitrin .about-col p {
  padding: 0 20px 20px;
  margin-bottom: 0;
  color: var(--brand-secondary-text);
  font-size: 14px;
  line-height: 24px;
}

/* Mali Durum: yönetilen PDF kayıtları. Teslimdeki ikon + başlık dili korunur;
 * bağlantının tamamı tıklanabilir ve yeni yıllar responsive ızgarada büyür. */
.mali-durum-header {
  padding-top: 32px;
}

.mali-belgeler {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin: 32px auto 0;
}

.mali-belge {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 87, 167, 0.16);
  border-radius: 8px;
  background: var(--brand-white);
  color: var(--brand-heading);
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mali-belge:hover,
.mali-belge:focus-visible {
  border-color: var(--brand-action);
  color: var(--brand-action);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.mali-belge img {
  flex: 0 0 40px;
}

.mali-belge-bos {
  grid-column: 1 / -1;
  text-align: center;
}

/* Ortak iletişim bölümündeki Google Maps yüzeyi. Adres panel ayarından gelir; kartlarla
 * aynı genişlik ve görsel dilde, ancak harita etkileşimi için daha geniş bir yüzeydir. */
.kurumsal-harita {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(0, 87, 167, 0.16);
  border-radius: 10px;
  background: var(--brand-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.kurumsal-harita iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.kurumsal-harita-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
}

.kurumsal-harita-alt address {
  max-width: 64ch;
  margin: 0;
  color: var(--brand-secondary-text);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

.kurumsal-harita-alt a,
.okullar-belge a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--brand-action);
  color: var(--brand-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kurumsal-harita-alt a:hover,
.kurumsal-harita-alt a:focus-visible,
.okullar-belge a:hover,
.okullar-belge a:focus-visible {
  background: var(--brand-deep);
  color: var(--brand-white);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.kurumsal-harita-alt a:focus-visible,
.okullar-belge a:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.kurumsal-harita-alt a i,
.okullar-belge a i {
  font-size: 21px;
  line-height: 1;
}

/* Okullar: il düğmelerinde küçük okul panelleri açan, klavye ve dokunmayla çalışan
 * Türkiye haritası. Ana listedeki 14 kart daima il başlıkları altında görünür kalır. */
#intro.okullar-hero {
  height: auto;
  padding: clamp(24px, 4vw, 44px) 0 34px;
  margin-top: var(--site-header-height);
  background: linear-gradient(180deg, #f5f8fc 0%, var(--brand-white) 100%);
}

.okullar-hero-duzen {
  display: grid;
  gap: 22px;
}

.okullar-harita {
  position: relative;
  width: min(100%, 1080px);
  aspect-ratio: 2.55 / 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 87, 167, 0.12);
  border-radius: 16px;
  background: var(--brand-white);
  box-shadow: 0 14px 38px rgba(0, 7, 78, 0.1);
}

.okullar-harita > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 63%;
}

.okul-ev-noktalari {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.okul-ev-noktasi {
  position: absolute;
  display: block;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.okul-ev-noktasi::after {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  content: "";
  inset: 1px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.okul-ev-noktasi:hover::after,
.okul-ev-noktasi:focus-visible::after,
.okul-ev-noktasi.is-selected::after {
  border-color: var(--brand-accent);
  transform: scale(1.14);
}

.okul-ev-noktasi:focus-visible {
  outline: 2px solid var(--brand-white);
  outline-offset: 1px;
}

.okullar-harita-noktalar {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 4;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 4px;
  border: 1px solid rgba(0, 87, 167, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 7, 78, 0.1);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.okul-nokta {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand-heading);
  font-family: "Montserrat", sans-serif;
  line-height: 1;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.okul-nokta::after {
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.okul-nokta span {
  font-size: 12px;
  font-weight: 720;
}

.okul-nokta small {
  display: inline-flex;
  min-width: 23px;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0, 87, 167, 0.08);
  color: var(--brand-secondary-text);
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.okul-nokta:hover,
.okul-nokta:focus-visible,
.okul-nokta.is-selected {
  background: rgba(0, 87, 167, 0.07);
  color: var(--brand-primary);
}

.okul-nokta:hover::after,
.okul-nokta:focus-visible::after,
.okul-nokta.is-selected::after {
  opacity: 1;
  transform: scaleX(1);
}

.okul-nokta:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

.okul-harita-paneli {
  position: absolute;
  top: 72px;
  right: 16px;
  z-index: 5;
  width: min(320px, calc(100% - 32px));
  max-height: calc(100% - 88px);
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(0, 87, 167, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(0, 7, 78, 0.2);
  backdrop-filter: blur(10px);
}

.okul-harita-paneli[hidden] {
  display: none;
}

.okul-ev-karti {
  position: absolute;
  bottom: 16px;
  z-index: 6;
  display: grid;
  width: min(350px, calc(100% - 32px));
  min-height: 132px;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 15px;
  padding: 12px;
  border: 1px solid rgba(0, 87, 167, 0.17);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 38px rgba(0, 7, 78, 0.18);
  backdrop-filter: blur(10px);
}

.okul-ev-karti[hidden] {
  display: none;
}

.okul-ev-karti--sag {
  right: 16px;
}

.okul-ev-karti--sol {
  left: 16px;
}

.okul-ev-karti > img {
  width: 122px;
  height: 108px;
  align-self: center;
  border: 1px solid rgba(0, 87, 167, 0.1);
  border-radius: 10px;
  background: var(--brand-white);
  object-fit: contain;
}

.okul-ev-kart-icerik {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-right: 30px;
}

.okul-ev-kart-icerik small {
  margin-bottom: 5px;
  color: var(--brand-secondary-text);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.okul-ev-kart-icerik strong {
  color: var(--brand-heading);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.32;
}

.okul-ev-detay {
  align-self: flex-start;
  padding-bottom: 2px;
  margin-top: 9px;
  border-bottom: 1px solid var(--brand-accent);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
}

.okul-ev-detay:hover,
.okul-ev-detay:focus-visible {
  color: var(--brand-action);
}

.okul-ev-kart-kapat {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-content: center;
  background: rgba(0, 87, 167, 0.08);
  color: var(--brand-heading);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.okul-ev-kart-kapat:hover,
.okul-ev-kart-kapat:focus-visible {
  background: var(--brand-primary);
  color: var(--brand-white);
}

.okul-harita-panel-kapat {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-content: center;
  background: rgba(0, 87, 167, 0.08);
  color: var(--brand-heading);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.okul-harita-panel-kapat:hover,
.okul-harita-panel-kapat:focus-visible {
  background: var(--brand-primary);
  color: var(--brand-white);
}

.okul-harita-panel-kapat:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

#intro.okullar-hero .okul-harita-panel-baslik {
  margin: 0 42px 12px 0;
  color: var(--brand-heading);
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
}

#intro.okullar-hero .okul-harita-panel-baslik span {
  display: block;
  margin-top: 3px;
  color: var(--brand-secondary-text);
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.okul-harita-paneli ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.okul-harita-paneli li + li {
  border-top: 1px solid rgba(0, 87, 167, 0.11);
}

.okul-harita-okul {
  display: block;
  padding: 8px 2px;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.okul-harita-okul:hover,
.okul-harita-okul:focus-visible {
  color: var(--brand-action);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.okullar-hero-icerik {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

#intro.okullar-hero .okullar-hero-icerik p {
  margin: 0;
  color: var(--brand-heading);
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 650;
  line-height: 1.25;
}

#intro.okullar-hero .btn-get-started {
  flex: 0 0 auto;
  max-width: none;
}

#about.okullar-bolumu {
  padding-top: 68px;
}

.okullar-bolumu .section-header {
  margin-bottom: 24px !important;
}

.okullar-bolumu .okullar-ozet {
  font-size: 17px !important;
  line-height: 1.75 !important;
}

.okullar-belge {
  display: flex;
  justify-content: center;
  margin: 0 0 38px;
}

.okullar-belge a {
  min-height: 50px;
  padding-right: 22px;
  padding-left: 22px;
}

.okullar-listesi {
  display: grid;
  gap: 52px;
}

.okul-il-grubu {
  scroll-margin-top: calc(var(--site-header-height) + 24px);
}

.okul-il-basligi {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  margin: 0 0 22px;
  border-bottom: 1px solid rgba(0, 87, 167, 0.16);
  color: var(--brand-heading);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 750;
  line-height: 1.2;
}

.okul-il-basligi::before {
  width: 4px;
  height: 1.1em;
  flex: 0 0 4px;
  border-radius: 999px;
  background: var(--brand-accent);
  content: "";
}

.okul-il-basligi span {
  color: var(--brand-secondary-text);
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.okul-il-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

#about .okul-il-grid > .okul-kart-sutun {
  display: flex;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
}

#about .okul-kart {
  margin: 0;
  border: 1px solid rgba(0, 87, 167, 0.11);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#about .okul-kart:hover {
  border-color: rgba(0, 87, 167, 0.28);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

#about .okul-kart .img {
  display: flex;
  aspect-ratio: 768 / 450;
  align-items: center;
  justify-content: center;
  background: var(--brand-white);
}

#about .okul-kart .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#about .okul-kart h3 {
  padding: 0 22px;
  margin: 42px 0 12px;
  font-size: 18px;
  line-height: 1.4;
}

#about .okul-kart .okul-konum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 20px 24px;
  margin: auto 0 0;
  color: var(--brand-secondary-text);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

#about .okul-kart .okul-konum i {
  color: var(--brand-action);
  font-size: 20px;
  line-height: 1;
}

.baglanti-ikonu {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.okul-kart-sutun {
  scroll-margin-top: calc(var(--site-header-height) + 24px);
}

.okul-kart-sutun:target .okul-kart {
  border-color: var(--brand-action) !important;
  box-shadow: 0 0 0 4px rgba(0, 87, 167, 0.13), 0 16px 34px rgba(0, 7, 78, 0.14) !important;
}

@media (max-width: 991px) {
  .okul-il-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .kurumsal-harita iframe {
    height: 300px;
  }

  .kurumsal-harita-alt {
    flex-direction: column;
    align-items: stretch;
  }

  .kurumsal-harita-alt address {
    text-align: center;
  }

  #intro.okullar-hero {
    padding-top: 18px;
  }

  .okullar-harita {
    aspect-ratio: 2.1 / 1;
    margin-bottom: 110px;
    overflow: visible;
    border-radius: 10px;
  }

  .okullar-harita.panel-acik {
    margin-bottom: 400px;
  }

  .okullar-harita.okul-karti-acik {
    margin-bottom: 280px;
  }

  .okul-harita-paneli {
    top: calc(100% + 108px);
    right: 0;
    width: 100%;
    max-height: 280px;
  }

  .okul-ev-karti,
  .okul-ev-karti--sag,
  .okul-ev-karti--sol {
    top: calc(100% + 108px);
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .okul-ev-karti > img {
    width: 104px;
    height: 92px;
  }

  .okul-ev-noktasi {
    width: 20px;
    height: 20px;
  }

  .okullar-harita > img {
    object-position: center 62%;
  }

  .okullar-harita-noktalar {
    top: calc(100% + 10px);
    left: 0;
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none;
  }

  .okul-nokta {
    min-height: 42px;
    justify-content: space-between;
    padding: 0 9px;
  }

  .okul-nokta span {
    font-size: 11px;
  }

  .okul-nokta small {
    min-width: 21px;
    min-height: 21px;
    padding: 0 6px;
    font-size: 9px;
  }

  .okullar-hero-icerik {
    flex-direction: column;
    gap: 14px;
  }

  #intro.okullar-hero .btn-get-started {
    max-width: 100%;
  }

  #about.okullar-bolumu {
    padding-top: 52px;
  }

  .okullar-listesi {
    gap: 42px;
  }

  .okul-il-basligi {
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .okul-il-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #about .okul-kart,
  .okul-nokta,
  .okul-nokta::after,
  .okul-ev-noktasi::after,
  .kurumsal-harita-alt a,
  .okullar-belge a {
    transition: none;
  }
}

@media (max-width: 575px) {
  .mali-belgeler {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}
