:root {
  --primary: #1f5fd6;
  --primary-dark: #173b73;
  --primary-darker: #0f274b;
  --accent: #dc2626;
  --accent-dark: #b91c1c;
  --bg: #f7faff;
  --card-bg: #ffffff;
  --border: #dbe6fb;
  --text: #10213f;
  --muted: #55648a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(15, 39, 75, 0.25);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  background: #eaf2ff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 15px;
  border-radius: 8px;
  padding: 6px 9px;
  letter-spacing: 0.5px;
}

.brand-mark.small { display: inline-block; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong { font-size: 15px; }
.brand-text small { color: #c7d8f8; font-size: 12px; }

.main-nav {
  display: flex;
  gap: 4px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #dbe8ff;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.main-nav a.active { background: rgba(255,255,255,0.14); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.login-btn {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.35);
}
.login-btn:hover { filter: brightness(1.05); }

.footer-login-btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(160deg, var(--primary-darker) 0%, var(--primary-dark) 55%, var(--primary) 100%);
  overflow: hidden;
}

.hero-banner-img { width: 100%; display: block; }

.hero-body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-body h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero-body p {
  color: #d9e6ff;
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 52ch;
}

.hero-slogan {
  display: inline-block;
  font-style: italic;
  color: #ffd9d9;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-outline {
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(2px);
}
.hero-card h3 { margin-top: 0; font-size: 16px; }
.hero-card ul { padding-left: 18px; margin: 0; color: #e4edff; font-size: 14.5px; }
.hero-card li { margin-bottom: 8px; }

/* Sections */
.section {
  padding: 52px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: 24px;
  margin: 0;
  color: var(--primary-darker);
}

.section-header .more-link {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  white-space: nowrap;
}

.section-lead {
  color: var(--muted);
  max-width: 68ch;
  margin: -12px 0 26px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,39,75,0.1); }

.news-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #dbe6fb, #eef3fd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }

.news-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-date { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }
.news-card-title { font-size: 17px; margin: 0; color: var(--text); }
.news-card-excerpt { font-size: 14px; color: var(--muted); flex: 1; }
.news-card-link { font-size: 13.5px; font-weight: 700; color: var(--primary); margin-top: 4px; }

.empty-note {
  color: var(--muted);
  background: #eef3fd;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
}

/* Board members */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.board-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.board-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #dbe6fb, #eef3fd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
  overflow: hidden;
}
.board-photo img { width: 100%; height: 100%; object-fit: cover; }

.board-name { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.board-title { font-size: 13px; color: var(--muted); margin: 0; }
.board-phone { font-size: 12.5px; color: var(--primary); margin-top: 6px; }

.district-accordion { display: flex; flex-direction: column; gap: 10px; }

.district-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.district-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--primary-darker);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.district-item summary::-webkit-details-marker { display: none; }
.district-item summary::after { content: '+'; font-size: 20px; color: var(--primary); }
.district-item[open] summary::after { content: '\2212'; }

.district-item .district-body {
  padding: 6px 18px 18px;
  border-top: 1px solid var(--border);
}

.district-item .empty-note { margin-top: 12px; padding: 14px; }

/* Facebook sayfa eklentisi */
.fb-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1877f2;
}

.fb-page-embed {
  display: flex;
  justify-content: center;
}
.fb-page-embed iframe {
  border-radius: 12px;
  max-width: 100%;
}

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--primary-darker), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 48px 20px;
}
.cta-band h2 { margin: 0 0 10px; font-size: 24px; }
.cta-band p { color: #d9e6ff; margin: 0 0 22px; }

/* News detail */
.news-detail-header { max-width: 780px; margin: 0 auto 26px; }
.news-detail-header .news-card-date { display: block; margin-bottom: 8px; }
.news-detail-header h1 { font-size: 28px; margin: 0 0 10px; color: var(--primary-darker); }
.news-detail-cover { border-radius: 12px; overflow: hidden; margin-bottom: 26px; max-width: 900px; margin-left: auto; margin-right: auto; }
.news-detail-body { max-width: 780px; margin: 0 auto; font-size: 16px; color: var(--text); }
.news-detail-body p { margin: 0 0 16px; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; color: var(--primary); font-size: 14px; }

.share-row {
  max-width: 780px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.share-label { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 3px 10px rgba(16, 33, 63, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.share-btn:hover {
  transform: translateY(-3px) scale(1.06);
  filter: brightness(1.06);
}
.share-btn:active { transform: translateY(-1px) scale(1.02); }

.share-fb {
  background: linear-gradient(145deg, #3b8bff 0%, #1877f2 55%, #0f5fd1 100%);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}
.share-x {
  background: linear-gradient(145deg, #3a3a3a 0%, #101010 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.share-wa {
  background: linear-gradient(145deg, #34e07a 0%, #25d366 55%, #1cb454 100%);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

@media (max-width: 520px) {
  .share-row { flex-wrap: wrap; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.contact-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--primary-darker); }
.contact-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.pagination a { background: var(--card-bg); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer {
  background: var(--primary-darker);
  color: #cfdcf7;
  margin-top: 40px;
}
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.footer-col p { font-size: 13.5px; color: #b7c7ea; margin: 0; }
.footer-col a { display: block; font-size: 13.5px; color: #b7c7ea; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }

.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 16px 20px;
  font-size: 12.5px;
  color: #92a6cf;
}

@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; padding: 40px 20px; }
  .site-footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-darker);
    flex-direction: column;
    padding: 8px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header-inner { flex-wrap: wrap; position: relative; }
}

@media (max-width: 520px) {
  .site-footer-inner { grid-template-columns: 1fr; }
  .hero-body h1 { font-size: 27px; }
}
