/* ============================================
   DİNAMİK SAYFA STİLLERİ — Yön A (Kurumsal Güven)
   İlçe landing, hizmet, şube, blog, 404
   ============================================ */

.container-narrow { max-width: 800px; margin: 0 auto; }

/* SVG ikon boyutları */
.ic { width: 1.15em; height: 1.15em; vertical-align: -.18em; flex-shrink: 0; }
.ic-sm { width: 1em; height: 1em; vertical-align: -.15em; flex-shrink: 0; }
.ic-xs { width: .85em; height: .85em; vertical-align: -.1em; opacity: .5; }

/* —— Breadcrumb —— */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-mute); margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-soft); font-weight: 600; }

/* —— Hero (ilçe + sayfa) —— */
.district-hero, .page-hero {
  background: var(--navy);
  color: #fff;
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
}
.district-hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 380px at 82% -15%, rgba(23,99,179,.4), transparent 62%);
  pointer-events: none;
}
.district-hero .container, .page-hero .container { position: relative; }
.district-hero .breadcrumb a,
.page-hero .breadcrumb a { color: #9bb3cc; }
.district-hero .breadcrumb a:hover,
.page-hero .breadcrumb a:hover { color: #fff; }
.district-hero .breadcrumb span,
.page-hero .breadcrumb span { color: #cfe0f0; }

.dh-badge {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); color: #cfe3f7;
  padding: 6px 14px; border-radius: 30px; font-size: 12.5px;
  font-weight: 700; letter-spacing: .04em; margin-bottom: 16px; text-transform: uppercase;
}
.district-hero h1, .page-hero h1 {
  font-size: 40px; line-height: 1.12; font-weight: 800;
  letter-spacing: -1px; margin: 0 0 16px; color: #fff;
}
.district-hero .lead, .page-hero .lead {
  font-size: 18px; line-height: 1.6; color: #bdcfe0; max-width: 660px; margin: 0;
}

.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* —— Butonlar —— */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 9px; text-decoration: none;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: .18s; font-family: inherit;
}
.btn-lg { padding: 15px 28px; font-size: 16.5px; }
.btn-primary, .btn-call { background: var(--red); color: #fff; }
.btn-primary:hover, .btn-call:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-wa, .btn-whatsapp { background: var(--green); color: #fff; }
.btn-wa:hover, .btn-whatsapp:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

/* —— Hizmet etiketleri (hero altı) —— */
.service-tags { display: flex; gap: 9px; margin-top: 26px; flex-wrap: wrap; }
.service-tags .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); padding: 7px 13px;
  border-radius: 30px; color: #d3e2f1; font-weight: 600;
}
.service-tags .tag svg { color: #5fd99a; }

/* —— Section başlıkları —— */
.sec-head { margin-bottom: 36px; }
.sec-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.sec-label {
  display: inline-block; color: var(--accent); font-size: 13px;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.sec-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 0; color: var(--ink); }

/* —— İlçe intro —— */
.district-intro { padding: 48px 0 8px; }
.intro-text { font-size: 18px; line-height: 1.75; color: var(--text-soft); margin: 0; }

/* —— İlçe detay bölümleri —— */
.district-sections { padding: 32px 0; }
.dsection { margin-bottom: 36px; }
.dsection:last-child { margin-bottom: 0; }
.dsection h2 { font-size: 23px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 12px; color: var(--ink); }
.dsection p { font-size: 16.5px; line-height: 1.75; color: var(--text-soft); margin: 0; }

.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li {
  position: relative; padding: 9px 0 9px 30px; font-size: 16px;
  line-height: 1.5; color: var(--text-soft); border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  width: 20px; height: 20px; background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}

/* —— Hizmet kartları (mini) —— */
.services-mini { padding: 64px 0; background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; text-decoration: none; color: inherit; transition: .2s; display: block;
}
.service-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 16px 40px -18px rgba(10,37,64,.35);
}
.service-card .svc-ico {
  width: 52px; height: 52px; border-radius: 12px; background: var(--navy);
  color: #fff; display: grid; place-items: center; margin-bottom: 16px;
}
.service-card .svc-ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.service-card p { font-size: 14px; line-height: 1.55; color: var(--text-mute); margin: 0 0 14px; }
.service-card .svc-link {
  color: var(--accent); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* —— SSS (FAQ) —— */
.district-faq { padding: 64px 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; background: #fff; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-size: 16.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-chevron { transition: transform .2s; color: var(--accent); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item .faq-a {
  padding: 0 22px 20px; font-size: 15.5px; line-height: 1.7; color: var(--text-soft);
}

/* —— İç linkleme (related) —— */
.district-related { padding: 64px 0; background: var(--bg-soft); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  text-decoration: none; color: inherit; transition: .2s;
}
.related-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 14px 36px -18px rgba(10,37,64,.3);
}
.related-card .rel-ico {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; flex-shrink: 0;
}
.related-card .rel-ico svg { width: 22px; height: 22px; }
.related-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 3px; color: var(--ink); }
.related-card p { font-size: 13px; color: var(--text-mute); margin: 0; line-height: 1.4; }
.related-card > svg:last-child { color: var(--accent); margin-left: auto; opacity: .6; }

/* —— İletişim bloğu —— */
.contact-block {
  background: var(--navy); color: #fff; padding: 60px 0; text-align: center;
  position: relative; overflow: hidden;
}
.contact-block::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 50% 0%, rgba(23,99,179,.32), transparent 65%);
}
.contact-block .container { position: relative; }
.contact-block h2 { font-size: 30px; font-weight: 800; margin: 0 0 12px; color: #fff; letter-spacing: -.5px; }
.contact-block p { color: #bdcfe0; font-size: 17px; margin: 0 0 26px; }
.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* —— Hizmet detay sayfası —— */
.service-detail { padding: 56px 0; }
.service-content h2 { font-size: 24px; font-weight: 800; margin: 32px 0 14px; color: var(--ink); letter-spacing: -.4px; }
.service-content h2:first-child { margin-top: 0; }
.service-content p { font-size: 16.5px; line-height: 1.75; color: var(--text-soft); margin: 0 0 14px; }

/* —— Şube detay —— */
.branch-detail { padding: 56px 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.info-card h3 {
  font-size: 16px; font-weight: 800; margin: 0 0 14px; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.info-card h3 svg { color: var(--accent); width: 20px; height: 20px; }
.info-card p { margin: 7px 0; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.info-card a { color: var(--accent); text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-card .btn { margin-top: 12px; }
.branch-detail h2 { font-size: 23px; font-weight: 800; margin: 28px 0 14px; color: var(--ink); }
.badge {
  font-size: 11px; background: var(--accent); color: #fff; padding: 4px 11px;
  border-radius: 6px; vertical-align: middle; margin-left: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
}

/* —— Blog —— */
.blog-list { padding: 56px 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(10,37,64,.3); }
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-cats { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.post-cat {
  font-size: 11px; text-transform: uppercase; background: var(--accent-soft);
  padding: 3px 10px; border-radius: 20px; color: var(--accent); letter-spacing: .04em; font-weight: 700;
}
.post-card h2 { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 0 0 10px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { font-size: 14.5px; color: var(--text-mute); line-height: 1.55; margin: 0 0 16px; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-mute); }
.post-meta a { color: var(--accent); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

.blog-post { padding: 56px 0; }
.blog-post h1 { font-size: 36px; line-height: 1.2; font-weight: 800; letter-spacing: -.8px; margin: 14px 0; color: var(--ink); }
.post-meta-head { font-size: 14px; color: var(--text-mute); margin-bottom: 26px; }
.post-cover { width: 100%; height: auto; border-radius: 14px; margin-bottom: 30px; }
.post-body { font-size: 17.5px; line-height: 1.8; color: var(--text); }
.post-body h2 { font-size: 25px; font-weight: 800; margin: 38px 0 14px; color: var(--ink); letter-spacing: -.4px; }
.post-body h3 { font-size: 20px; font-weight: 800; margin: 28px 0 12px; color: var(--ink); }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 18px 0 18px 26px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body img { max-width: 100%; height: auto; margin: 22px 0; border-radius: 10px; }
.post-body strong { font-weight: 800; color: var(--ink); }
.post-cta {
  margin-top: 48px; padding: 34px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 16px; text-align: center;
}
.post-cta h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--ink); }
.post-cta p { color: var(--text-soft); margin: 0 0 18px; }

.empty-state { text-align: center; padding: 80px 0; color: var(--text-mute); font-size: 17px; }

/* —— 404 —— */
.error-page { padding: 90px 0; text-align: center; }
.error-page h1 { font-size: 110px; color: var(--accent); margin: 0; font-weight: 800; line-height: 1; letter-spacing: -3px; }
.error-page h2 { font-size: 28px; margin: 12px 0; color: var(--ink); }
.error-page p { color: var(--text-mute); margin-bottom: 32px; font-size: 17px; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .services-grid, .related-grid, .posts-grid, .info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .district-hero h1, .page-hero h1 { font-size: 30px; }
  .blog-post h1 { font-size: 27px; }
  .post-body { font-size: 16.5px; }
  .services-grid, .related-grid, .posts-grid, .info-grid { grid-template-columns: 1fr; }
  .sec-head h2, .contact-block h2 { font-size: 25px; }
  .hero-cta, .contact-buttons { flex-direction: column; }
  .hero-cta .btn, .contact-buttons .btn { justify-content: center; }
}
