/* =========================
   ACKG DESIGN TOKENS
   Kürdistan renk paleti
========================= */
:root {
  --ackg-green:        #1a5c38;
  --ackg-green-hover:  #154d2f;
  --ackg-green-light:  #e8f5ee;
  --ackg-red:          #c8102e;
  --ackg-red-hover:    #a50d25;
  --ackg-red-light:    #fdf0f2;
  --ackg-gold:         #f0a500;
  --ackg-gold-hover:   #c87a00;
  --ackg-gold-light:   #fff8e6;
  --ackg-dark:         #1c2b3a;
  --ackg-dark-hover:   #131e28;
  --ackg-page-bg:      #f5f7f9;
  --ackg-text:         #111827;
  --ackg-muted:        #6b7280;
  --ackg-border:       rgba(15,23,42,.08);
  --ackg-radius-sm:    8px;
  --ackg-radius-md:    12px;
  --ackg-radius-lg:    16px;
  --ackg-radius-xl:    20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  color: #111827;
  background: #ffffff;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

a:focus-visible{
  outline: 3px solid rgba(26,92,56,0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.container{
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  top: var(--banner-height, 0);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.topbar .row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  flex-wrap: nowrap;
}

.brandbox{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  min-width: 240px;
}

.brandHomeLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.siteLogo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}

.brandtext{ min-width: 0; overflow: hidden; }
.brandtext .t1{
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 18px;
  line-height: 1.1;
}

.brandtext .t2{
  font-size: 12px;
  color: rgba(17, 24, 39, 0.65);
  margin-top: 2px;
  line-height: 1.2;
}

.navlinks{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: auto;
}

.navlinks > a,
.navMainLink{
  font-size: 14px;
  color: rgba(17, 24, 39, 0.78);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.navlinks > a:hover,
.navMainLink:hover{
  background: rgba(17, 24, 39, 0.06);
  color: rgba(17, 24, 39, 0.95);
}

.navlinks > a.active{
  background: rgba(26,92,56,.10);
  color: var(--ackg-green);
  font-weight: 800;
}

.navItem{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.navItem.active > .navMainLink{
  background: rgba(26,92,56,.10);
  color: var(--ackg-green);
  font-weight: 800;
}

.navMainLink{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subChev{
  display: inline-block;
  font-size: 11px;
  opacity: .7;
  transition: transform 160ms ease, opacity 160ms ease;
  transform-origin: 50% 55%;
}

.navItem:hover .subChev{ opacity: .9; }
.navItem.is-open .subChev{ transform: rotate(180deg); }

.submenu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  padding: 8px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.navItem.hasSubmenu:hover .submenu,
.navItem.is-open .submenu{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
  color: rgba(17, 24, 39, 0.82);
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.submenu a:hover{
  background: rgba(26,92,56,.08);
  color: rgba(17, 24, 39, 0.98);
  transform: translateX(1px);
}

.submenu a.active{
  background: rgba(26,92,56,.12);
  color: var(--ackg-green);
}

.langDropdown{ position: relative; }

.langTrigger{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.langTrigger .flag{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.langTrigger .code{ font-weight: 900; font-size: 13px; }
.langTrigger .chev{ opacity: .7; font-size: 12px; margin-left: 2px; }

.langMenu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 1400;
}

.langMenu a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 800;
}

.langMenu a .flag{ width: 20px; height: 20px; border-radius: 999px; }
.langMenu a:hover{ background: rgba(2,6,23,.05); }
.langMenu a.active{ background: rgba(26,92,56,.10); color: var(--ackg-green); }
.langMenu a small{ font-weight: 700; opacity: .7; }

.burger{
  display: none;
  margin-left: 8px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  flex-direction: column;
}

.burger span{
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(15,23,42,.85);
  border-radius: 99px;
  transition: .3s;
}

.burger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity: 0; }
.burger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobileMenu{
  margin-top: 10px;
  padding-bottom: 12px;
}

.mobileMenu a{
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
}

.mobileMenu a:hover{ background: rgba(26,92,56,.10); }
.mobileMenu a.active{ background: rgba(26,92,56,.10); color: var(--ackg-green); }

.mobileGroup{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 6px;
  margin: 10px 0;
  background: rgba(2,6,23,.02);
}

.mobileGroup.active{
  border-color: rgba(26,92,56,.18);
  background: rgba(26,92,56,.05);
}

.mobileGroupBtn{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: none;
  background: transparent;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.mobileGroupBtn:hover{ background: rgba(2,6,23,.05); }

.mchev{
  display: inline-block;
  opacity: .7;
  transition: transform 160ms ease;
}

.mobileGroup.is-open .mchev,
.mobileGroupBtn[aria-expanded="true"] .mchev{ transform: rotate(180deg); }

.mobileGroupLinks{ padding: 6px 4px 10px; }

.mobileSubLink{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  opacity: .92;
}

.siteBanner{ background:#000; }

.mobileSubLink:hover{ background: rgba(26,92,56,.08); }
.mobileSubLink.active{ background: rgba(26,92,56,.12); color: var(--ackg-green); }

/* =========================
   RESPONSIVE — 980px
========================= */
@media (max-width: 980px){
  .brandbox{ min-width: 0; }
  .navlinks{ display: none; }
  .burger{ display: inline-flex; }
}

/* =========================
   RESPONSIVE — 700px
========================= */
@media (max-width: 700px){
  .siteLogo{ width: 36px; height: 36px; }
  .langTrigger{ padding: 6px 8px; gap: 4px; }
  .langTrigger .code{ font-size: 12px; }
  .searchTrigger{ width: 36px; height: 36px; margin-right: 2px; }
  .brandbox{ gap: 8px; }
  .brandtext .t1{ font-size: 15px; }
  .brandtext .t2{ font-size: 10px; line-height: 1.15; }
  .topbar .row{ padding: 10px 0; gap: 6px; }
  .burger{ margin-left: 2px; }
}
/* Çok dar ekranlarda dernek tam adı 2 satıra sığsın, taşmasın */
@media (max-width: 420px){
  .brandtext .t2{ font-size: 9px; }
}
/* Çok dar (≤360px) — dernek uzun adını gizle, sadece ACKG + kontroller */
@media (max-width: 360px){
  .brandtext .t2{ display: none; }
}

/* =========================
   TRIGGER BAR MOBILE FIX
========================= */
@media(max-width:600px){
  /* Üyelik trigger bar */
  .adh-trigger-bar{
    padding:10px 12px !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
  }
  .adh-trigger-bar > div{
    min-width:0;
    overflow:hidden;
  }
  .adh-trigger-bar span{
    font-size:12px !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .adh-trigger-bar a{
    font-size:11px !important;
    padding:8px 10px !important;
    white-space:nowrap;
    flex-shrink:0;
  }

  /* Donation trigger bar */
  .dgf-trigger-bar{
    padding:10px 12px !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
  }
  .dgf-trigger-bar .dgf-trigger-content{
    min-width:0;
    overflow:hidden;
  }
  .dgf-trigger-title{
    font-size:12px !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:150px;
  }
  .dgf-trigger-sub{ display:none !important; }
  .dgf-trigger-btn{
    font-size:11px !important;
    padding:8px 10px !important;
    white-space:nowrap;
    flex-shrink:0;
  }
}
/* ============================================================
   SITE ARAMA (search) — Faz ek
   ============================================================ */
.searchTrigger{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; margin-right:6px;
  background:transparent; border:none; cursor:pointer;
  color:#334155; border-radius:10px; transition:background .15s, color .15s;
}
.searchTrigger:hover{ background:rgba(0,0,0,.05); color:#0f172a; }

.siteSearchOverlay{
  position:fixed; inset:0; z-index:100000;
  background:rgba(15,23,42,.55); backdrop-filter:blur(3px);
  display:flex; align-items:flex-start; justify-content:center;
  padding:80px 16px 16px;
}
.siteSearchOverlay[hidden]{ display:none; }
.siteSearchBox{
  background:#fff; width:100%; max-width:640px; border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.3); overflow:hidden;
  animation:ssIn .18s ease;
}
@keyframes ssIn{ from{ transform:translateY(-12px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
.siteSearchInputWrap{
  display:flex; align-items:center; gap:10px;
  padding:16px 18px; border-bottom:1px solid #eef2f7;
}
.siteSearchInputWrap input{
  flex:1; border:none; outline:none; font-size:17px; color:#0f172a;
  background:transparent; font-family:inherit;
}
.siteSearchClose{
  background:#f1f5f9; border:none; width:32px; height:32px; border-radius:8px;
  cursor:pointer; font-size:15px; color:#64748b; transition:background .15s;
}
.siteSearchClose:hover{ background:#e2e8f0; color:#0f172a; }
.siteSearchResults{ max-height:60vh; overflow-y:auto; }
.ssrHint{ padding:24px 18px; color:#94a3b8; font-size:14px; text-align:center; }
.ssrItem{
  display:block; padding:12px 18px; text-decoration:none;
  border-bottom:1px solid #f4f6f9; transition:background .12s;
}
.ssrItem:hover{ background:#f8fafc; }
.ssrCat{
  display:inline-block; font-size:10px; font-weight:800; text-transform:uppercase;
  letter-spacing:.5px; color:#15803d; background:#f0fdf4; padding:2px 8px;
  border-radius:20px; margin-bottom:5px;
}
.ssrTitle{ display:block; font-size:15px; font-weight:700; color:#0f172a; line-height:1.35; }
.ssrExc{ display:block; font-size:13px; color:#64748b; line-height:1.5; margin-top:3px; }

@media (max-width:980px){
  .searchTrigger{ width:38px; height:38px; }
  .siteSearchOverlay{ padding:60px 12px 12px; }
}

/* Sağ kontroller sabit kalsın, brandbox küçülsün */
.searchTrigger, .langDropdown, .burger{ flex-shrink: 0; }
