/* ===== Renkler & değişkenler ===== */
:root {
  /* Logo renkleri: lacivert + turkuaz */
  --blue: #0b2454;
  --blue-light: #1a7fb0;
  --button-blue: #3d77ba;
  --button-dark-blue: #2e6aae;
  --green: #1fcfd4;
  --orange: #d68221;
  --red: #bb1d1d;
  --yellow: #e3bd36;
  --gray: #333333;
  --text-black: #221f20;
  --light-gray: #eeeff0;
  --white-secondary: #f3f3f3;
  --white: #ffffff;

  --font: "Arimo", Arial, sans-serif;
  --radius: 10px;
  --shadow: 4px 4px 15px 0 rgba(0, 0, 0, .1);
  --header-h: 4.5rem;
}

@media (min-width: 1024px) {
  :root { --header-h: 11.063rem; }
}

/* ===== Temel ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray);
  background: var(--white);
  line-height: 1.5;
  padding-top: var(--header-h);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { color: var(--blue); font-weight: 700; line-height: 1.2; }

/* ===== Butonlar ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; transition: .2s;
}
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--light-gray); }
.btn--green { background: var(--green); color: var(--blue); }
.btn--green:hover { filter: brightness(.92); }
.btn--outline { border: 2px solid var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; z-index: 20; width: 100%;
  height: var(--header-h); background: var(--white); color: var(--blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.header__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem; gap: 1rem;
}
@media (min-width: 1024px) { .header__top { height: 7rem; } }

.logo { display: flex; align-items: center; min-width: 0; }
.logo img { display: block; width: auto; height: 44px; max-width: 100%; object-fit: contain; }
@media (min-width: 1024px) { .logo img { height: 72px; } }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.header__actions .btn { white-space: nowrap; }
@media (max-width: 1023px) {
  .header__actions .btn { padding: .55rem 1rem; font-size: .85rem; }
}

.menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: .5rem; }
.menu-toggle span { width: 26px; height: 3px; background: var(--blue); border-radius: 2px; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Navigasyon (masaüstü) ===== */
.nav__list { display: flex; align-items: center; gap: .25rem; height: 4.063rem; }
.nav__item { position: relative; }
.nav__link {
  display: block; padding: 1.3rem .9rem; font-weight: 700; font-size: 1rem;
  border-bottom: 3px solid transparent; transition: .2s;
}
.nav__item:hover > .nav__link { border-bottom-color: var(--green); }
@media (min-width: 1024px) { .nav { border-top: 1px solid var(--light-gray); } }
.sub-toggle { display: none; }

.dropdown, .mega {
  position: absolute; top: 100%; left: 0;
  background: var(--white); color: var(--gray);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.nav__item:hover > .dropdown,
.nav__item:hover > .mega,
.nav__item:focus-within > .dropdown,
.nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }

.dropdown { min-width: 280px; padding: .75rem 0; border-radius: 0 0 var(--radius) var(--radius); }
.dropdown a { display: block; padding: .6rem 1.25rem; font-size: .95rem; }
.dropdown a:hover { background: var(--white-secondary); color: var(--blue); }

/* Mega menü tüm genişlik */
.nav__item:first-child { position: static; }
.mega { width: 100%; }
.mega__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.mega__title {
  display: block; margin-bottom: .75rem; padding-bottom: .5rem;
  color: var(--blue); font-weight: 700; font-size: 1.1rem;
  border-bottom: 2px solid var(--light-gray);
}
.mega__col a { display: block; padding: .4rem 0; font-size: .95rem; }
.mega__col a:hover { color: var(--blue); }

/* ===== Navigasyon (mobil) ===== */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--blue); color: var(--white); overflow-y: auto;
    transform: translateX(100%); transition: transform .3s;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; height: auto; padding-top: 1rem; padding-bottom: 2rem; }
  .nav__item { display: flex; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav__link { flex: 1; padding: 1rem 0; border: 0; }
  .sub-toggle { display: block; width: 48px; position: relative; }
  .sub-toggle::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: translate(-50%, -70%) rotate(45deg); transition: .2s;
  }
  .nav__item.is-open .sub-toggle::after { transform: translate(-50%, -30%) rotate(-135deg); }

  .dropdown, .mega {
    position: static; width: 100%; display: none;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; color: var(--white); box-shadow: none; padding: 0 0 .75rem;
  }
  .nav__item.is-open > .dropdown,
  .nav__item.is-open > .mega { display: block; }
  .dropdown a, .mega__col a { padding: .5rem 1rem; }
  .dropdown a:hover, .mega__col a:hover { background: rgba(255,255,255,.1); color: var(--white); }
  .mega__inner { grid-template-columns: 1fr; gap: 1rem; padding: 0; }
  .mega__title { color: var(--white); border-color: rgba(255,255,255,.2); padding-left: 1rem; font-size: 1rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white);
}
@media (min-width: 900px) { .hero { min-height: 440px; } }
.hero__content { position: relative; padding-top: 2.5rem; padding-bottom: 5rem; }
@media (min-width: 900px) { .hero__content { padding-top: 3rem; } }
.hero__text { max-width: 760px; }
.hero h1 { color: var(--white); font-size: 1.75rem; margin-bottom: .75rem; }
@media (min-width: 900px) { .hero h1 { font-size: 3rem; margin-bottom: 1rem; } }
.hero p { font-size: 1rem; opacity: .9; }
@media (min-width: 900px) { .hero p { font-size: 1.125rem; } }
.hero__buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn--ghost { border: 2px solid var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--blue); }

/* ===== Hızlı İşlemler ===== */
.quick {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: -3rem; position: relative; z-index: 2;
}
@media (min-width: 768px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .quick { grid-template-columns: repeat(6, 1fr); } }
.quick__card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1rem; text-align: center; font-weight: 700; color: var(--blue);
  display: flex; flex-direction: column; align-items: center; gap: .75rem; transition: .2s;
}
.quick__card:hover { background: var(--blue); color: var(--white); transform: translateY(-4px); }
.quick__icon { font-size: 2rem; }

/* ===== Bölüm başlığı ===== */
.section-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.375rem; text-transform: uppercase; }
@media (min-width: 768px) { .section-head h2 { font-size: 2rem; } }
.see-all { color: var(--blue); font-weight: 700; text-transform: uppercase; font-size: .9rem; }

/* ===== Haberler ===== */
.news { padding-top: 4rem; padding-bottom: 4rem; }
.news__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .news__grid { grid-template-columns: repeat(3, 1fr); } }
.news__card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.news__img { aspect-ratio: 16/9; background: var(--light-gray); }
.news__img img, .gallery__item img, .about__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news__body { padding: 1.25rem; display: grid; gap: .6rem; }
.news__body h3 { font-size: 1.1rem; }
.news__link { color: var(--blue); font-weight: 700; }

/* ===== İstasyonlar ===== */
.stations { background: var(--blue); color: var(--white); padding: 4rem 0; text-align: center; }
.stations__inner { display: grid; gap: 1rem; justify-items: center; }
.stations h2 { color: var(--white); font-size: 2rem; text-transform: uppercase; }

/* ===== Sekmeler ===== */
.steps { padding-top: 4rem; padding-bottom: 4rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab {
  padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700;
  background: var(--white-secondary); color: var(--blue); transition: .2s;
}
.tab.is-active, .tab:hover { background: var(--blue); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.step-list { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .step-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .step-list { grid-template-columns: repeat(3, 1fr); } }
.step-list li {
  counter-increment: step; position: relative; display: grid; gap: .35rem;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem; border-radius: var(--radius); background: var(--white-secondary);
}
.step-list li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.25rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: var(--white); font-weight: 700;
}
.step-list b { color: var(--blue); }

/* ===== Galeri ===== */
.gallery { padding-bottom: 4rem; }
.gallery__grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--light-gray); }

/* ===== SSS ===== */
.faq { padding-bottom: 4rem; display: grid; gap: .75rem; }
.faq .section-head { margin-bottom: .75rem; }
.faq details { border-radius: var(--radius); background: var(--white-secondary); }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--blue);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.25rem 1.25rem; }
.faq__note { font-size: .85rem; opacity: .75; margin-top: .25rem; }

/* ===== Mevzuat ===== */
.law { padding-bottom: 4rem; }
.law__card {
  display: grid; gap: .75rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); border-left: 4px solid var(--green);
}
.law__tag {
  justify-self: start; padding: .2rem .75rem; border-radius: 999px;
  background: var(--white-secondary); color: var(--blue); font-size: .8rem; font-weight: 700;
}
.law__card h3 { font-size: 1.2rem; }
.law__dates { display: grid; gap: .5rem; }
@media (min-width: 768px) { .law__dates { grid-template-columns: repeat(2, 1fr); } }
.law__dates li { display: grid; gap: .2rem; padding: .9rem 1rem; border-radius: 8px; background: var(--white-secondary); }
.law__dates b { color: var(--blue); }

/* ===== Hakkımızda ===== */
.about { background: var(--white-secondary); padding: 4rem 0; }
.about__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .about__inner { grid-template-columns: 1fr 1fr; } }
.about__img { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--light-gray); }
.about__text { display: grid; gap: 1rem; }
.about__points { display: grid; gap: .6rem; margin-top: .5rem; }
.about__points li {
  display: grid; gap: .15rem; padding: .8rem 1rem .8rem 1.1rem;
  border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: var(--white);
}
.about__points b { color: var(--blue); }
.about__text h2 { font-size: 1.375rem; text-transform: uppercase; }
@media (min-width: 768px) { .about__text h2 { font-size: 2rem; } }

/* ===== İletişim ===== */
.contact { padding-top: 4rem; padding-bottom: 4rem; }
.contact__grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.4fr; } }
.contact__list { display: grid; gap: 1rem; align-content: start; }
.contact__list li { display: grid; gap: .25rem; padding: 1.25rem; border-radius: var(--radius); background: var(--white-secondary); }
.contact__list b { color: var(--blue); }
.contact__list a:hover { color: var(--blue); text-decoration: underline; }
.contact__map { width: 100%; min-height: 320px; height: 100%; border: 0; border-radius: var(--radius); }

/* Sabit header altında bölüm başlıkları kaybolmasın */
section[id] { scroll-margin-top: var(--header-h); }

/* ===== Footer ===== */
.footer { background: var(--white-secondary); color: var(--blue); padding-top: 3rem; border-top: 4px solid var(--green); }
.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(11,36,84,.12);
}
.logo--footer img { height: 56px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-weight: 700; }
.footer a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .875rem;
}
