/* Gerze Yerel Eylem Grubu - Genel Site Stili */
:root {
  --green-900: #14432a;
  --green-700: #1f6b3f;
  --green-600: #2a8a52;
  --green-500: #379c62;
  --green-100: #e6f4ec;
  --blue-700: #0b4a7a;
  --blue-500: #1670ad;
  --gold-500: #c99a2e;
  --ink-900: #17251d;
  --ink-700: #3c4a41;
  --ink-500: #6b7a70;
  --bg: #f6f8f6;
  --white: #ffffff;
  --border: #e1e8e2;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(20, 67, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 67, 42, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; color: var(--ink-900); }
p { margin: 0 0 1em; }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s ease;
}
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-outline { background: transparent; border-color: var(--green-600); color: var(--green-700); }
.btn-outline:hover { background: var(--green-100); }
.btn-light { background: #fff; color: var(--green-700); }
.btn-light:hover { background: var(--green-100); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #96291e; }

/* ===== Header ===== */
.site-header { background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; justify-content: center; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 22px; }
.topbar-inner img { height: 42px; width: auto; display: block; }
.topbar-inner a, .topbar-inner span { display: flex; align-items: center; }

.mainbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; color: var(--green-900); }
.logo-img { height: 56px; width: auto; display: block; border: 1px solid var(--border); border-radius: 6px; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--ink-700); }
.main-nav a:hover, .main-nav a.active { background: var(--green-100); color: var(--green-700); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; }
  .main-nav.open { display: flex; }
  .mainbar-inner { flex-wrap: wrap; }
}

/* ===== Hero slider ===== */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  display: none;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  padding: 96px 0 110px;
}
.hero-slide.active { display: block; animation: heroFade .7s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-slide { position: relative; overflow: hidden; }
.hero-slide-img {
  position: absolute; top: 0; right: 0; width: 58%; height: 100%;
  background-size: cover; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 62% 85% at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 75%);
  mask-image: radial-gradient(ellipse 62% 85% at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 75%);
  pointer-events: none;
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide-inner { max-width: 640px; }
.hero-slide h1 { font-size: 2.6rem; margin-bottom: 0.4em; color: #fff; }
.hero-slide p.subtitle { font-size: 1.15rem; color: rgba(255,255,255,.82); margin: 0 0 1.8em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-gold { background: var(--gold-500); color: #fff; }
.btn-gold:hover { background: #a87f22; color: #fff; }
.btn-hero-outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-hero-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 26px; height: 6px; border-radius: 3px; border: none; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: background .2s; }
.hero-dot.active { background: #fff; }

@media (max-width: 700px) {
  .hero-slide { padding: 64px 0 80px; }
  .hero-slide h1 { font-size: 1.9rem; }
  .hero-slide-img { width: 100%; opacity: .3; }
}

/* ===== Page hero (breadcrumb sections) ===== */
.page-hero { background: linear-gradient(135deg, var(--green-800, #185335), var(--blue-700)); color: #fff; padding: 40px 0; }
.breadcrumb { font-size: 0.85rem; color: #cfe4cf; margin-bottom: 10px; }
.breadcrumb a { color: #cfe4cf; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { color: #fff; font-size: 2rem; margin-bottom: 4px; }
.page-hero p { color: #d9ecd9; margin: 0; }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 1.8rem; }
.section-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header-row h2 { font-size: 1.6rem; margin: 0; }

/* Highlight cards (home) */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.highlight-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.highlight-card .icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.highlight-card h3 { font-size: 1.25rem; }
.highlight-card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Card grids (duyuru/haber) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; }
.post-card .post-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { color: var(--gold-500); font-size: 0.85rem; font-weight: 600; }
.post-card h3 { font-size: 1.1rem; }
.post-card p { color: var(--ink-500); font-size: 0.92rem; flex: 1; }
.post-card img { width: 100%; height: 160px; object-fit: cover; }

/* Toolbox grid */
.toolbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.toolbox-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 16px; text-align: center; box-shadow: var(--shadow); transition: transform .15s; }
.toolbox-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.toolbox-item .icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.toolbox-item span.label { font-weight: 600; color: var(--ink-900); font-size: 0.92rem; }

/* Contact CTA band */
.cta-band { background: var(--green-100); text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: 1.6rem; }
.cta-band p { color: var(--ink-700); max-width: 520px; margin: 0 auto 1.4em; }

/* ===== Group listing + sidebar layout (biz-kimiz, bilgi-bankasi, arac-kutusu) ===== */
.group-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0 64px; align-items: start; }
.group-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 90px; }
.group-sidebar-title { background: var(--green-900); color: #fff; padding: 14px 18px; font-weight: 700; font-size: 0.85rem; letter-spacing: .05em; }
.group-sidebar a { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--ink-700); font-size: 0.94rem; }
.group-sidebar a:last-child { border-bottom: none; }
.group-sidebar a:hover, .group-sidebar a.active { background: var(--green-100); color: var(--green-700); }
.group-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.group-content h2 { font-size: 1.5rem; margin-bottom: 16px; }
.group-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 20px; }
.group-tile { border: 1px solid var(--border); border-radius: 10px; padding: 20px 14px; text-align: center; }
.group-tile:hover { border-color: var(--green-500); }
.group-tile .icon { font-size: 1.7rem; display: block; margin-bottom: 8px; }

@media (max-width: 860px) {
  .group-layout { grid-template-columns: 1fr; }
  .group-sidebar { position: static; }
}

/* Content blocks */
.block-heading { margin-top: 1.2em; }
.block-text p { color: var(--ink-700); }
.block-image img { border-radius: 10px; margin-bottom: 8px; }
.block-image-caption { color: var(--ink-500); font-size: 0.85rem; font-style: italic; }
.block-card { background: var(--green-100); border-radius: 10px; padding: 20px; margin-bottom: 12px; }
.person-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 20px 0; }
.person-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) {
  .person-card-grid-2 { grid-template-columns: 1fr; }
}
.person-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); }
.person-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 168px; height: 168px; margin: 0 auto 16px; border-radius: 50%;
  border: 4px solid var(--green-100); background: #f6f8f6;
  font-size: 2.6rem; font-weight: 700; color: var(--green-700);
}
.person-avatar-icon { font-size: 3.6rem; }
.person-avatar-photo { overflow: hidden; padding: 0; }
.person-avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.person-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.person-card .person-role { color: var(--green-600); font-size: 0.88rem; font-weight: 600; margin: 0; }
.file-card { display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: 10px; padding: 18px; flex-wrap: wrap; }
.file-card-empty { background: #f8f9f8; border-style: dashed; color: var(--ink-500); }

/* Duyuru/haber ekleri */
.post-attachments { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 20px; }
.post-attachments h3 { font-size: 1.1rem; margin-bottom: 14px; }
.post-attachment-card { margin-bottom: 10px; }
.attachment-ext { display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 700; color: var(--green-700); background: var(--green-100); border-radius: 4px; padding: 2px 6px; vertical-align: middle; }

/* Duyuru/haber icerik gorselleri */
.post-inline-img { margin: 24px 0; }
.post-inline-img img { width: 100%; border-radius: 10px; display: block; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.post-gallery .post-inline-img { margin: 0; }
.file-icon { font-size: 2rem; }
.file-info { flex: 1; min-width: 160px; }
.file-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.editable-note { margin-top: 28px; padding: 12px 16px; background: #fff8e6; border: 1px solid #f0dca0; border-radius: 8px; color: #7a5c12; font-size: 0.85rem; }

/* Gerze page */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.feature-card .icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; padding: 40px 0 64px; }
.contact-info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon { font-size: 1.4rem; }
.contact-info-item h4 { margin: 0 0 4px; font-size: 0.95rem; }
.contact-info-item p { margin: 0; color: var(--ink-500); font-size: 0.92rem; }
.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--green-500); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.char-count { font-size: 0.8rem; color: var(--ink-500); text-align: right; margin-top: 4px; }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 300px; border: 0; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* Alerts */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e6f4ec; color: var(--green-900); border: 1px solid #b7ddc4; }
.alert-error { background: #fdeaea; color: #96291e; border: 1px solid #f0b8b3; }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe4cf; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 48px 20px 28px; }
.footer-col h4 { color: var(--gold-500); font-size: 0.88rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col p { color: #b7d3b7; font-size: 0.88rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 48px; width: auto; background: #fff; border-radius: 6px; padding: 3px; }
.footer-brand h4 { color: #fff; text-transform: none; letter-spacing: 0; font-size: 1.05rem; margin: 0; }
.footer-about p { line-height: 1.7; }
.footer-contact-line { display: block; }
.footer-contact-line a { display: inline; }
.footer-social-title { margin-top: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.footer-social a:hover { background: var(--green-600); }
.footer-hours { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.footer-hours td { padding: 4px 0; color: #b7d3b7; }
.footer-hours td:last-child { text-align: right; }
.footer-hours tr.closed td { color: #e08b7d; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding: 20px; text-align: center; font-size: 0.85rem; color: #cfe4cf; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; font-size: 0.8rem; color: #a3c4a3; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Pagination-ish "Tumunu Gor" */
.section-header-row a.btn { white-space: nowrap; }

/* 404 */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 4rem; color: var(--green-600); }

/* ===== Dergi Flipbook ===== */
.magazine-issues { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.magazine-issue-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 0.88rem; color: var(--ink-700); background: #fff; }
.magazine-issue-btn.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.magazine-issue-btn:hover:not(.active) { border-color: var(--green-600); color: var(--green-700); }
.magazine-header h3 { font-size: 1.3rem; margin-bottom: 16px; }
.magazine-header h3 span { color: var(--ink-500); font-weight: 400; font-size: 1rem; margin-left: 8px; }

.flipbook-stage { display: flex; align-items: center; gap: 10px; justify-content: center; }
.flipbook {
  position: relative; flex: 1; max-width: 760px; aspect-ratio: 1.4142;
  perspective: 2600px;
}
.fb-base {
  position: absolute; inset: 2% 1%; border-radius: 6px;
  background: linear-gradient(90deg, #d8ded8, #c4ccc4 49%, #aab4aa 50%, #c4ccc4 51%, #d8ded8);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.fb-sheet {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.35,.1,.25,1);
  cursor: pointer;
}
.fb-sheet.flipped { transform: rotateY(-180deg); }
.fb-face {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: #fff; border: 1px solid #e0e4e0;
}
.fb-front { border-radius: 0 6px 6px 0; }
.fb-back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
.fb-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-blank { display: block; width: 100%; height: 100%; background: #fbfbf9; }
.fb-shade { position: absolute; inset: 0; pointer-events: none; }
.fb-shade-front { background: linear-gradient(90deg, rgba(0,0,0,.16), transparent 12%); }
.fb-shade-back { background: linear-gradient(-90deg, rgba(0,0,0,.16), transparent 12%); }

.fb-nav {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--green-700); font-size: 1.6rem; line-height: 1;
  cursor: pointer; flex-shrink: 0; transition: all .2s;
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
}
.fb-nav:hover:not(:disabled) { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.fb-nav:disabled { opacity: .3; cursor: default; }
.flipbook-indicator { text-align: center; margin-top: 14px; font-size: 0.88rem; color: var(--ink-500); }

@media (max-width: 700px) {
  .flipbook-stage { gap: 6px; }
  .fb-nav { width: 36px; height: 36px; font-size: 1.2rem; }
}
