/* Fenerbahçeli Hukukçular ve Kamu Yöneticileri Derneği */
:root {
  --lacivert: #043673;
  --lacivert-koyu: #021c3d;
  --lacivert-acik: #05468c;
  --sari: #ffed00;
  --sari-koyu: #e6d500;
  --beyaz: #ffffff;
  --gri: #6b7280;
  --gri-acik: #f4f5f8;
  --kirmizi: #cd163f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img, svg, video { max-width: 100%; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background: var(--beyaz);
  line-height: 1.7;
}

/* ---------- Navigasyon ---------- */
header.site-header {
  background: var(--lacivert);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}
.brand .brand-text {
  min-width: 0;
  overflow-wrap: break-word;
}
.brand img.logo-img {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 2px solid var(--sari);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--lacivert-koyu);
}
.hero img.hero-logo {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 3px solid var(--sari);
  object-fit: cover;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.brand .logo-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #0a4a99, var(--lacivert-koyu));
  border: 2px solid var(--sari);
  display: flex; align-items: center; justify-content: center;
  color: var(--sari);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.brand .brand-text { color: var(--beyaz); }
.brand .brand-text strong {
  display: block;
  font-size: 1rem;
  color: var(--sari);
  line-height: 1.3;
}
.brand .brand-text span { font-size: .75rem; opacity: .85; }

nav.main-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; flex: 1; justify-content: center; min-width: 0; }
nav.main-nav a {
  color: var(--beyaz);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  padding: .5rem .7rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: var(--sari);
  color: var(--lacivert);
}
nav.main-nav a.btn-kayit {
  background: var(--sari);
  color: var(--lacivert);
  border: 2px solid var(--sari);
}
nav.main-nav a.btn-kayit:hover {
  background: transparent;
  color: var(--sari);
}

/* ---------- Hero ---------- */
.hero {
  background:
    url("assets/hero-bg.jpg") center / cover no-repeat,
    linear-gradient(135deg, var(--lacivert-koyu) 0%, var(--lacivert) 55%, #0a4a99 100%);
  color: var(--beyaz);
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  isolation: isolate; /* .hero içindeki katmanları (silüet, overlay, içerik) kendi kapalı stacking context'inde tutar */
  overflow: hidden;
}

/* Katman 1 (en altta): hero background fotoğrafı — yukarıdaki .hero background kısayolu.
   Katman 2: koyu/gradient overlay (.hero::after).
   Katman 3: gerçek içerik (.hero-content) — pozitif z-index ile her zaman en üstte. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,28,61,0) 0%, rgba(2,28,61,.30) 28%, rgba(2,28,61,.30) 72%, rgba(2,28,61,0) 100%),
    linear-gradient(rgba(2, 28, 61, .40), rgba(4, 54, 115, .62));
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--sari);
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.hero p.sub {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.18rem;
  line-height: 1.75;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero .hero-motto {
  display: inline-block;
  border: 1px solid rgba(255,237,0,.5);
  border-radius: 999px;
  padding: .45rem 1.4rem;
  font-size: clamp(.85rem, 1.6vw, 1.05rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sari);
  margin-bottom: 1.5rem;
  max-width: 100%;
}
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.btn-primary { background: var(--sari); color: var(--lacivert); }
.btn-outline { border: 2px solid var(--sari); color: var(--sari); margin-left: .8rem; }
.btn-outline:hover { background: var(--sari); color: var(--lacivert); }

/* ---------- Bölümler ---------- */
section.block { padding: 4rem 1.5rem; }
section.block.alt { background: var(--gri-acik); }
section.block.dark { background: var(--lacivert); color: var(--beyaz); }
.container { max-width: 1140px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: 1.9rem;
  color: var(--lacivert);
  margin-bottom: .6rem;
}
.dark .section-title { color: var(--sari); }
.section-title::after {
  content: "";
  display: block;
  width: 70px; height: 4px;
  background: var(--sari);
  margin: .8rem auto 0;
  border-radius: 2px;
}
.section-lead {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  color: var(--gri);
  font-size: 1.05rem;
}
.dark .section-lead { color: rgba(255,255,255,.8); }

/* ---------- Dernek Neden Kuruldu: Atatürk silüeti ---------- */
.dernegimiz-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.dernegimiz-intro .dernegimiz-text { flex: 1 1 auto; min-width: 280px; }
.dernegimiz-intro .section-title,
.dernegimiz-intro .section-lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.dernegimiz-intro .section-title::after { margin: .8rem 0 0; }
.dernegimiz-intro .section-lead { max-width: none; margin-bottom: 0; }
.dernegimiz-image {
  flex: 0 0 auto;
  width: 320px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}
.dernegimiz-image::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle, rgba(4,54,115,.07), rgba(255,237,0,.05) 55%, transparent 75%);
  border-radius: 50%;
  z-index: 0;
}
.ataturk-silhouette {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  opacity: .94;
}

@media (max-width: 768px) {
  .dernegimiz-intro { flex-direction: column; text-align: center; margin-bottom: 2rem; }
  .dernegimiz-intro .section-title,
  .dernegimiz-intro .section-lead { text-align: center; }
  .dernegimiz-intro .section-title::after { margin: .8rem auto 0; }
  .dernegimiz-image { width: 220px; margin: 0 auto; }
  .ataturk-silhouette { max-width: 220px; }
}

/* ---------- Kartlar ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; }
.card {
  background: var(--beyaz);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 3px 14px rgba(4,54,115,.08);
  border-top: 4px solid var(--sari);
}
.dark .card { background: var(--lacivert-acik); border-top-color: var(--sari); }
.dark .card h3 { color: var(--sari); }
.dark .card p { color: rgba(255,255,255,.85); }
.card h3 { color: var(--lacivert); margin-bottom: .7rem; font-size: 1.15rem; }
.card .icon { font-size: 1.9rem; margin-bottom: .8rem; display: block; }
.card p { color: #4b5563; font-size: .95rem; }

/* ---------- İçerik sayfaları ---------- */
.page-head {
  background:
    linear-gradient(rgba(2, 28, 61, .35), rgba(4, 54, 115, .55)),
    url("assets/page-head-bg.jpg") center / cover no-repeat,
    linear-gradient(135deg, var(--lacivert-koyu), var(--lacivert));
  color: var(--sari);
  text-align: center;
  padding: 3rem 1.5rem;
}
.page-head h1 { font-size: 2.1rem; }
.page-head p { color: rgba(255,255,255,.85); margin-top: .5rem; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { color: var(--lacivert); margin: 2.2rem 0 .8rem; border-left: 5px solid var(--sari); padding-left: .8rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Form ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--beyaz);
  border-radius: 14px;
  padding: 2.2rem;
  box-shadow: 0 4px 22px rgba(4,54,115,.12);
  border-top: 5px solid var(--sari);
}
.form-wrap label {
  display: block;
  font-weight: 600;
  color: var(--lacivert);
  margin: 1rem 0 .35rem;
  font-size: .95rem;
}
.form-wrap input, .form-wrap select, .form-wrap textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
}
.form-wrap input:focus, .form-wrap select:focus, .form-wrap textarea:focus {
  outline: none;
  border-color: var(--lacivert);
  background: var(--beyaz);
}
.form-wrap .hint { font-size: .8rem; color: var(--gri); margin-top: .25rem; }
.form-wrap button {
  width: 100%;
  margin-top: 1.6rem;
  padding: .95rem;
  background: var(--lacivert);
  color: var(--sari);
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.form-wrap button:hover { background: var(--lacivert-acik); }
.form-note {
  font-size: .82rem;
  color: var(--gri);
  margin-top: 1rem;
  text-align: center;
}
.checkbox-row { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.2rem; }
.checkbox-row input { width: auto; margin-top: .3rem; }
.checkbox-row span { font-size: .88rem; color: #374151; }
.hidden { display: none; }

/* ---------- Uyarı kutusu ---------- */
.notice {
  max-width: 820px;
  margin: 0 auto 2rem;
  background: #fff8db;
  border: 1px solid var(--sari-koyu);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  font-size: .92rem;
  color: #713f12;
}

/* ---------- Instagram ---------- */
.insta-band {
  background: linear-gradient(135deg, #05468c, var(--lacivert-koyu));
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--beyaz);
}
.insta-band h2 { color: var(--sari); margin-bottom: .8rem; }
.insta-band p { opacity: .9; margin-bottom: 1.5rem; }
.btn-insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

/* ---------- Footer ---------- */
footer {
  background: var(--lacivert-koyu);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 1.5rem 1.5rem;
  font-size: .9rem;
}
footer .footer-grid {
  max-width: 1140px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 2rem;
}
footer h4 { color: var(--sari); margin-bottom: .8rem; }
footer a { color: rgba(255,255,255,.8); text-decoration: none; display: block; margin-bottom: .4rem; }
footer a:hover { color: var(--sari); }
footer .footer-social { margin-top: .3rem; }
footer .footer-social-link { display: flex; align-items: center; gap: .5rem; }
footer .footer-social-link svg { width: 16px; height: 16px; flex-shrink: 0; }
footer .copy {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.2rem;
  font-size: .8rem;
}

@media (max-width: 1150px) {
  nav.main-nav { gap: .4rem; }
  nav.main-nav a { padding: .5rem .55rem; font-size: .88rem; }
  .header-fb-logo { height: 62px; }
}
@media (max-width: 640px) {
  .header-fb-logo { display: none; }
  .btn-outline { margin-left: 0; margin-top: .8rem; }
}

/* ---------- Yönetim Kurulu ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 1.5rem;
}
.member-card {
  background: var(--beyaz);
  border-radius: 12px;
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: 0 3px 14px rgba(4,54,115,.08);
  border-top: 4px solid var(--lacivert);
}
.member-card.lead { border-top-color: var(--sari); }
.member-card h3 { color: var(--lacivert); font-size: 1.05rem; margin: .9rem 0 .3rem; }
.member-role { color: var(--gri); font-size: .88rem; }
.member-card.lead .member-role { color: #a07800; font-weight: 600; }
.member-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto;
  background: radial-gradient(circle at 30% 30%, #0a4a99, var(--lacivert-koyu));
  border: 3px solid var(--sari);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.member-photo::after {
  content: attr(data-initials);
  color: var(--sari);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 1px;
}
.member-photo[style*="background-image"]::after { content: ""; }
.member-photo.has-photo::after { content: ""; }
.board-member-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
}


/* ---------- Header FB Logosu (sağ) ---------- */
.header-fb-logo {
  height: 94px;
  width: auto;
  flex-shrink: 0;
  margin-right: 1.6rem;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}

/* ---------- Derneğimiz Dropdown ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  color: var(--beyaz);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  padding: .5rem .7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown-toggle[aria-expanded="true"] {
  background: var(--sari);
  color: var(--lacivert);
}
.nav-dropdown-toggle .caret { font-size: .65rem; transition: transform .2s; }
.nav-dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 210px;
  background: var(--beyaz);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  padding: .5rem;
  z-index: 200;
}
.nav-dropdown-menu.open { display: block; }
nav.main-nav .nav-dropdown-menu a {
  display: block;
  padding: .65rem .85rem;
  border-radius: 6px;
  color: var(--lacivert);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}
nav.main-nav .nav-dropdown-menu a:hover { background: var(--gri-acik); color: var(--lacivert); }
nav.main-nav .nav-dropdown-menu a.active { background: var(--sari); color: var(--lacivert); }

/* ---------- Hamburger (Mobil Menü Düğmesi) ---------- */
.hamburger {
  display: none;
  position: relative;
  z-index: 95;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid var(--sari);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .2s;
}
.hamburger:hover { background: rgba(255,255,255,.18); }
.hamburger span {
  display: block;
  width: 19px;
  height: 2.5px;
  background: var(--sari);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-inner { flex-wrap: nowrap; }
  .hamburger { display: flex; }
  .header-fb-logo { display: none; }

  /* Kompakt mobil marka alanı: logo + dernek adı tek satırda, hamburger ile aynı hizada */
  .brand { gap: .55rem; }
  .brand img.logo-img { width: 42px; height: 42px; border-width: 1.5px; }
  .brand .brand-text strong { font-size: .88rem; }
  .brand .brand-text span {
    display: block;
    font-size: .68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Büyük / tam ekran mobil menü */
  nav.main-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: auto;
    gap: .3rem;
    background: var(--lacivert-koyu);
    border-radius: 0;
    padding: 6rem 1.75rem 2.5rem;
    margin-top: 0;
    order: initial;
    overflow-y: auto;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a, .nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    font-size: 1.1rem;
    padding: .9rem 1rem;
  }
  nav.main-nav a.btn-kayit { justify-content: center; text-align: center; margin-top: .6rem; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,.06);
    display: none;
    margin-top: .3rem;
    padding: .3rem;
  }
  .nav-dropdown-menu.open { display: block; }
  nav.main-nav .nav-dropdown-menu a { color: var(--beyaz); font-size: 1rem; }
  nav.main-nav .nav-dropdown-menu a:hover { background: rgba(255,255,255,.12); color: var(--beyaz); }
  nav.main-nav .nav-dropdown-menu a.active { background: var(--sari); color: var(--lacivert); }
}

/* Tam ekran mobil menü açıkken arka planın kaymasını engelle */
body.nav-open { overflow: hidden; }

/* ---------- Üyelik İçin Gerekli Belgeler ---------- */
.belge-grup { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.belge-panel {
  background: var(--beyaz);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(4,54,115,.08);
  border-left: 4px solid var(--sari);
  overflow: hidden;
}
.belge-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  color: var(--lacivert);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.belge-panel summary::-webkit-details-marker { display: none; }
.belge-panel summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gri);
  flex-shrink: 0;
}
.belge-panel[open] summary::after { content: "–"; }
.belge-panel .belge-icerik { padding: 0 1.4rem 1.3rem; }
.belge-panel .belge-icerik p { color: var(--gri); font-size: .92rem; margin-bottom: .8rem; }
.belge-panel ul { margin: 0 0 0 1.2rem; }
.belge-panel li { color: #374151; font-size: .95rem; margin-bottom: .5rem; }

/* ---------- Boş Durum (Duyurular / Haberler) ---------- */
.empty-state {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 1.75rem;
  background: var(--gri-acik);
  border-radius: 14px;
  border-top: 4px solid var(--sari);
}
.empty-state .icon { font-size: 2.6rem; display: block; margin-bottom: 1rem; }
.empty-state h2 { color: var(--lacivert); font-size: 1.3rem; margin-bottom: .7rem; }
.empty-state p { color: var(--gri); font-size: .95rem; }
.empty-state a { color: var(--lacivert-acik); font-weight: 600; }

/* ---------- Tüzük Sayfası İçindekiler ---------- */
.tuzuk-toc { max-width: 820px; margin: 0 auto 2.5rem; }
.tuzuk-toc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.tuzuk-toc-grid a {
  background: var(--gri-acik);
  color: var(--lacivert);
  text-decoration: none;
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem .9rem;
  border-radius: 20px;
  border: 1px solid rgba(4,54,115,.15);
  transition: background .2s, color .2s, border-color .2s;
}
.tuzuk-toc-grid a:hover {
  background: var(--sari);
  color: var(--lacivert);
  border-color: var(--sari);
}

/* ---------- Form Bilgilendirme Kutusu ---------- */
.form-info {
  max-width: 640px;
  margin: 1.5rem auto 0;
  background: #eef4fb;
  border: 1px solid var(--lacivert-acik);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  font-size: .9rem;
  color: var(--lacivert-koyu);
}
.form-info strong { color: var(--lacivert); }
