/* ============================================================
   QMS System — özgün kurumsal tema (arama hero + bento ızgara + wordmark footer).
   Telifli/markalı hiçbir öğe kullanılmaz; tüm tasarım/renk/kopya özgündür.
   ============================================================ */
:root {
  /* 4-mavi palet: beyaz + açık mavi (--peri) + mavi (--brand) + koyu mavi (--navy).
     --accent gradyanlar için daha açık bir mavi (mor YOK). */
  --brand: #2a3bd0;
  --brand-700: #1e2aa0;
  --accent: #4f67f0;
  --ink: #14173f;
  --muted: #5c6187;
  --navy: #10124a;
  --bg: #ffffff;
  --peri: #cdd2f6;
  /* Kutu ton döngüsü — DÜZ renk (gradyan yok). Hover'da her kutu bir sonraki tona geçer. */
  --t1: #dfe4fb;   /* 1. ton — en açık mavi */
  --t2: #9fb1f4;   /* 2. ton — açık-orta mavi */
  --t3: #2f44d6;   /* 3. ton — mavi */
  --t4: #121746;   /* 4. ton — koyu mavi */
  --line: #e3e5f6;
  --radius: 14px;
  --shadow-lg: 0 20px 50px rgba(20, 24, 90, .18);
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Times New Roman", Times, Georgia, serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5rem; letter-spacing: normal; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 10px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800;
  color: var(--brand); margin: 0 0 .5rem; }
.eyebrow.light { color: rgba(255,255,255,.85); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem;
  padding: .7rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-dark { background: var(--brand-700); color: #fff; }
.btn-dark:hover { background: var(--navy); }

/* ---------- Header ---------- */
/* Sayfanın en üstünde, normal akışta (yapışkan/sabit DEĞİL): aşağı kaydırınca
   header de sayfayla birlikte yukarı kayar. */
.site-header { position: static; background: var(--peri); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-text { font-weight: 800; font-size: 2.6rem; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.brand { gap: 1rem; }
.brand-mark { display: block; width: 80px; height: 80px; }
/* Yüklenen logo (img): yükseklik context'ten (.brand-mark), genişlik orantılı. */
.brand-img { width: auto !important; max-width: 230px; object-fit: contain; }
.profile-btn { display: inline-grid; place-items: center; color: var(--ink); background: transparent;
  flex: none; padding: 4px; transition: color .18s ease, transform .18s ease; }
.profile-btn:hover { color: var(--brand); transform: scale(1.14); }
.profile-btn svg { width: 34px; height: 34px; }
.header-inner { height: 170px; }
.header-right { display: flex; align-items: center; gap: 1.6rem; }
.icon-btn { background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--brand); }
.region-btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; cursor: pointer;
  color: var(--ink); font-weight: 600; font-size: .98rem; padding: 8px 4px; }
.region-btn svg { width: 22px; height: 22px; }
.region-btn:hover { color: var(--brand); }
.menu-btn { display: inline-flex; align-items: center; background: none; border: 0; cursor: pointer;
  color: var(--ink); padding: 12px 4px; transition: color .18s ease, transform .18s ease; }
.menu-btn:hover { color: var(--brand); transform: scale(1.14); }
.menu-ico { display: inline-flex; flex-direction: column; gap: 9px; }
.menu-ico span { width: 48px; height: 4px; background: currentColor; border-radius: 2px; }

/* Dil dropdown */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; transition: color .18s ease, transform .18s ease; }
.lang-btn:hover { transform: scale(1.14); }
.lang-btn > svg { width: 34px; height: 34px; }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 175px; list-style: none;
  margin: 0; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .8rem; border-radius: 8px; color: var(--ink); font-size: 1rem; }
.lang-opt:hover { background: #f1f2fb; color: var(--brand); }
.lang-opt.active { color: var(--brand); font-weight: 700; }

/* Tam ekran menü katmanı */
.overlay-menu { position: fixed; inset: 0; z-index: 100; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s; }
.overlay-menu.open { opacity: 1; visibility: visible; transform: none; }
.overlay-top { display: flex; align-items: center; justify-content: space-between; min-height: 150px; padding-top: .4rem; }
.overlay-top .brand-text { color: #fff; }
.menu-close { color: #fff; }
.menu-close:hover { color: #b9c0ff; }
.overlay-nav { display: flex; flex-direction: column; gap: .1rem; flex: 1; justify-content: center; padding: 2rem 24px; }
.overlay-nav a { color: #fff; font-size: clamp(1.7rem, 5.5vw, 3.1rem); font-weight: 700; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 1rem; padding: .35rem 0; transition: color .2s ease, transform .22s ease; }
.overlay-nav a span { font-size: .85rem; font-weight: 600; color: var(--accent); min-width: 2ch; }
.overlay-nav a:hover { color: #b9c0ff; transform: translateX(10px); }
.overlay-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.6rem 24px 2.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.overlay-foot .btn-light { background: #fff; color: var(--navy); }
.overlay-links a { color: #a9b0d6; margin-left: 1.3rem; font-size: .92rem; }
.overlay-links a:first-child { margin-left: 0; }
.overlay-links a:hover { color: #fff; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (arama) ---------- */
.hero { background: var(--peri); padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 8vw, 7rem); }
.hero h1 { color: var(--ink); font-weight: 600; font-size: clamp(2.3rem, 6vw, 4rem);
  max-width: 18ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero-search { display: flex; align-items: center; gap: 1rem; border-bottom: 1.5px solid #3b3f7a;
  width: 100%; margin: 0; padding-bottom: .25rem; }
.hero-search input { flex: 1; border: 0; background: transparent; font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  padding: .7rem 0; color: var(--ink); outline: none; font-weight: 400; }
.hero-search input::placeholder { color: #45497f; font-style: italic; opacity: 1; }
.hero-search input { text-overflow: ellipsis; }
/* Klavye odağı: alt çizgi markaya döner ve kalınlaşır (WCAG 2.4.7); outline:none yerine görünür bir gösterge. */
.hero-search:focus-within { border-bottom-color: var(--brand); box-shadow: 0 1.5px 0 0 var(--brand); }
.hero-search button { border: 0; background: transparent; color: var(--ink); cursor: pointer;
  padding: .4rem; display: grid; place-items: center; transition: color .18s ease, transform .18s ease; }
.hero-search button svg { width: 27px; height: 27px; }
.hero-search button:hover { color: var(--brand); transform: scale(1.15); }
.hero-searchzone { position: relative; }
/* Trend aramalar — arama alanına gelince animasyonlu açılır, hover gidince kapanır.
   Mutlak konumlu: açılıp kapanırken alttaki içeriği kaydırmaz. */
.hero-trending { position: absolute; top: 100%; left: 0; right: 0; padding-top: clamp(1.2rem, 3vw, 1.8rem);
  display: flex; gap: .9rem; align-items: center; flex-wrap: wrap;
  opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
  transition: opacity .3s ease, transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear .32s; }      /* gizlenirken solma bitene kadar görünür kalır */
.hero-searchzone:hover .hero-trending, .hero-searchzone:focus-within .hero-trending { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }   /* açılırken görünürlük ANINDA (klavye Tab'ı beklemesin) */
.hero-trending > span { font-size: .78rem; font-weight: 700; color: #55598f; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid #cfd4f2; border-radius: 9px; padding: .5rem .9rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Bento mozaik ---------- */
.bento-wrap { background: var(--navy); padding: 16px 0; }
/* 4 sütunlu grid; kutular değişken sütun/satır kaplar. `dense` boş hücreleri doldurur. */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px;
  grid-auto-flow: row dense; }
.tile { border-radius: 0; overflow: hidden; position: relative; display: flex;
  transition: color .4s ease .08s; }
/* Kutular: aşağıdan yukarıya perde (standart kartlarla aynı); büyüme/kayma/gölge YOK. */
.tile:not(.img-cover)::before { content: ""; position: absolute; inset: 0; z-index: 0; transform: scaleY(0);
  transform-origin: bottom; transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.tile:not(.img-cover):hover::before, .tile:not(.img-cover):focus-within::before { transform: scaleY(1); }
.tile.tone-1::before { background: var(--t2); }
.tile.tone-2::before { background: var(--t3); }
.tile.tone-3::before { background: var(--t4); }
.tile.tone-4::before { background: var(--t1); }
/* Hover'da kutunun KENDİ zemini sabit kalsın (perde kaplar); yazı rengi hedef tona döner. */
.tile.tone-1:hover, .tile.tone-1:focus-within { background: var(--t1); color: var(--ink); }
.tile.tone-2:hover, .tile.tone-2:focus-within { background: var(--t2); color: #fff; }
.tile.tone-3:hover, .tile.tone-3:focus-within { background: var(--t3); color: #fff; }
.tile.tone-4:hover, .tile.tone-4:focus-within { background: var(--t4); color: var(--ink); }
.tile-body { position: relative; z-index: 3; display: flex; flex-direction: column; flex: 1; height: 100%;
  padding: 22px; }
.tile .eyebrow { font-size: .72rem; color: inherit; opacity: .82; }
.tile h3 { font-size: var(--h3, clamp(1.15rem, 1.6vw, 1.5rem)); font-weight: 700; max-width: 24ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.tile[data-cols="3"] h3 { -webkit-line-clamp: 4; line-clamp: 4; }
.tile[data-cols="4"] h3 { -webkit-line-clamp: 3; line-clamp: 3; }
/* Başlık fontu KUTU GENİŞLİĞİNE (data-cols) göre ölçeklenir — geniş kutu, büyük yazı. */
.tile[data-cols="2"] { --h3: clamp(1.5rem, 2.4vw, 2.1rem); }
.tile[data-cols="3"] { --h3: clamp(1.9rem, 3vw, 2.5rem); }
.tile[data-cols="4"] { --h3: clamp(2.2rem, 3.6vw, 3rem); }
.tile[data-cols="2"] .eyebrow, .tile[data-cols="3"] .eyebrow, .tile[data-cols="4"] .eyebrow { font-size: .8rem; }
.tile[data-cols="2"] .tile-body, .tile[data-cols="3"] .tile-body, .tile[data-cols="4"] .tile-body { padding: 30px; }
.tile-link { margin-top: auto; display: inline-flex; align-items: center; color: inherit;
  width: max-content; max-width: 100%; }
/* Tüm kutuyu tıklanabilir yap (stretched link) */
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
/* Ok rengi, kutunun metin rengini (ve dolayısıyla aktif tonu) izler (color: inherit). */
.tile-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Çembersiz ok — çizgi + chevron. Hover'da çizgi 3 KAT uzar (26px → 78px). */
.arw { display: inline-flex; align-items: center; color: inherit; }
.arw-line { display: block; height: 5px; width: 26px; background: currentColor; border-radius: 3px;
  transition: width .32s cubic-bezier(.2, .75, .2, 1); }
.arw::after { content: ""; width: 12px; height: 12px; border-top: 5px solid currentColor;
  border-right: 5px solid currentColor; transform: rotate(45deg); margin-left: -10px; }
.tile:hover .arw-line, .tile:focus-within .arw-line { width: 78px; }
.tile-art { position: absolute; top: 0; right: 0; width: 55%; opacity: .95; pointer-events: none; z-index: 1;
  transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile-art { transform: scale(1.07); }
.tile-art svg { width: 100%; height: auto; }
.tile-art.side { top: 50%; right: 0; transform: translateY(-50%); width: 42%; }
.tile:hover .tile-art.side { transform: translateY(-50%) scale(1.07); }

/* Kutu span'leri artık DİNAMİK: her kutu kendi inline grid-column/row span'iyle gelir
   (admin panelinden Word-tarzı seçiciyle ayarlanır). */

/* 4 DÜZ ton + hover'da bir SONRAKİ tona geçiş (1→2→3→4→1). Metin rengi hedef tona göre. */
.tone-1 { background: var(--t1); color: var(--ink); }
.tone-2 { background: var(--t2); color: var(--ink); }
.tone-3 { background: var(--t3); color: #fff; }
.tone-4 { background: var(--t4); color: #fff; }
.tone-1:hover, .tone-1:focus-within { background: var(--t2); color: var(--ink); }
.tone-2:hover, .tone-2:focus-within { background: var(--t3); color: #fff; }
.tone-3:hover, .tone-3:focus-within { background: var(--t4); color: #fff; }
.tone-4:hover, .tone-4:focus-within { background: var(--t1); color: var(--ink); }

/* Resimli kutu — görsel konumu admin'den: üst / alt / sol / sağ / tam kapla. */
.tile-img { background-size: cover; background-position: center; position: relative; z-index: 2; }
.tile.has-img .tile-body { flex: 1 1 auto; }
.tile.has-img.img-top { flex-direction: column; }
.tile.has-img.img-bottom { flex-direction: column-reverse; }
.tile.has-img.img-left { flex-direction: row; }
.tile.has-img.img-right { flex-direction: row-reverse; }
.img-top > .tile-img, .img-bottom > .tile-img { flex: 0 0 48%; width: 100%; }
.img-left > .tile-img, .img-right > .tile-img { flex: 0 0 45%; align-self: stretch; }
/* Tam kapla: görsel arka planda, perde + yazı üstte (beyaz). */
.tile.has-img.img-cover { flex-direction: column; color: #fff !important; }
.img-cover > .tile-img { position: absolute; inset: 0; flex: none; z-index: 0; }
.img-cover > .tile-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,10,35,.12), rgba(8,10,35,.82)); }

/* ---------- Standartlar ---------- */
.standards { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.std-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
/* Ton rengini .tone-N verir; üstüne gelince bir sonraki tona döner (kutularla aynı). Büyüme/kayma/gölge YOK. */
/* Kare köşe (ton bloğu), font kutulardan %50 büyük, üst satır taşmayı sarmalar. */
.std-card { position: relative; overflow: hidden; border-radius: 0; padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .7rem; transition: color .4s ease .08s; }
.std-card > * { position: relative; z-index: 1; }
/* Aşağıdan yukarıya "perde": bir sonraki ton alttan yukarı doğru dolar (büyüme/kayma yok). */
.std-card::before { content: ""; position: absolute; inset: 0; z-index: 0; transform: scaleY(0);
  transform-origin: bottom; transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.std-card:hover::before, .std-card:focus-within::before { transform: scaleY(1); }
.std-card.tone-1::before { background: var(--t2); }
.std-card.tone-2::before { background: var(--t3); }
.std-card.tone-3::before { background: var(--t4); }
.std-card.tone-4::before { background: var(--t1); }
/* Hover'da kartın KENDİ zemini sabit kalsın (perde kaplar); yazı rengi hedef tona döner. */
.std-card.tone-1:hover, .std-card.tone-1:focus-within { background: var(--t1); color: var(--ink); }
.std-card.tone-2:hover, .std-card.tone-2:focus-within { background: var(--t2); color: #fff; }
.std-card.tone-3:hover, .std-card.tone-3:focus-within { background: var(--t3); color: #fff; }
.std-card.tone-4:hover, .std-card.tone-4:focus-within { background: var(--t4); color: var(--ink); }
.std-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; row-gap: .4rem; }
.std-mono { font-weight: 800; font-size: 1.58rem; color: inherit; }
.std-badge { font-size: .96rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .26rem .66rem; border-radius: 0; color: inherit; white-space: nowrap;
  background: color-mix(in srgb, currentColor 15%, transparent); }
.std-name { font-size: 1.53rem; line-height: 1.22; margin: 0; color: inherit; }
.std-desc { font-size: 1.29rem; line-height: 1.45; margin: 0; flex: 1 0 auto; color: inherit; opacity: .82; }
.std-cta { margin-top: .5rem; display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.35rem; color: inherit; }
.std-cta .arw-line { width: 22px; }
.std-card:hover .std-cta .arw-line, .std-card:focus-within .std-cta .arw-line { width: 54px; }

/* ---------- Bülten ---------- */
.newsletter { background: var(--peri); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.nl-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.nl-inner p { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; color: var(--ink); max-width: 30rem; margin: 0; text-wrap: pretty; }
.nl-form { display: flex; gap: .6rem; flex-wrap: wrap; }
/* E-posta alanı: kare + aşağıdan yukarıya dolan açık ton (yazıyı kapatmaz, gradient-bg tekniği). */
.nl-form input { border: 1.5px solid #fff; background-color: #fff; border-radius: 0; padding: .75rem 1.1rem;
  min-width: 230px; outline: none;
  background-image: linear-gradient(to top, var(--t1), var(--t1)); background-repeat: no-repeat;
  background-position: bottom; background-size: 100% 0%;
  transition: background-size .4s ease, border-color .18s ease; }
.nl-form input:hover, .nl-form input:focus { background-size: 100% 100%; }
.nl-form input:focus { border-color: var(--brand); }
/* Bülten butonu: kare + aşağıdan yukarıya dolum (kutularla aynı dil, büyüme yok). */
.nl-form .btn.btn-dark { border-radius: 0; color: #fff; background-color: var(--t4);
  background-image: linear-gradient(to top, var(--t1), var(--t1)); background-repeat: no-repeat;
  background-position: bottom; background-size: 100% 0%;
  transition: background-size .45s cubic-bezier(.2, .75, .2, 1), color .25s ease .2s; }
.nl-form .btn.btn-dark:hover, .nl-form .btn.btn-dark:focus-visible { background-size: 100% 100%; color: var(--ink); transform: none; }

/* ---------- Bilgilendirme (akordeon) ---------- */
.info { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4rem); }
/* İki kolon: başlık solda, akordeonlar sağda — genişliği doldurur (yarım sayfa görünümü yok). */
.info-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.info-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; line-height: 1.2; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; gap: .6rem; } }
/* Hepsi açık — kare aksan madde işareti (tasarım dili: köşeli). */
.info-item { border-top: 1px solid var(--line); padding: 1.3rem 0; }
.info-item:last-child { border-bottom: 1px solid var(--line); }
.info-q { display: flex; align-items: center; gap: .7rem; font-size: 1.12rem; font-weight: 700; margin: 0 0 .5rem; }
.info-q::before { content: ""; width: 11px; height: 11px; background: var(--brand); flex: none; }
.info-a { color: var(--muted); margin: 0 0 0 1.5rem; line-height: 1.6; }

/* ---------- Blog ---------- */
.blog { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.blog-card { position: relative; overflow: hidden; border-radius: 0; padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .7rem; transition: color .4s ease .08s; }
.blog-card > * { position: relative; z-index: 1; }
.blog-card::before { content: ""; position: absolute; inset: 0; z-index: 0; transform: scaleY(0);
  transform-origin: bottom; transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.blog-card:hover::before, .blog-card:focus-within::before { transform: scaleY(1); }
.blog-card.tone-1::before { background: var(--t2); }
.blog-card.tone-2::before { background: var(--t3); }
.blog-card.tone-3::before { background: var(--t4); }
.blog-card.tone-1:hover, .blog-card.tone-1:focus-within { background: var(--t1); color: var(--ink); }
.blog-card.tone-2:hover, .blog-card.tone-2:focus-within { background: var(--t2); color: #fff; }
.blog-card.tone-3:hover, .blog-card.tone-3:focus-within { background: var(--t3); color: #fff; }
.blog-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .72; }
.blog-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.blog-excerpt { font-size: .92rem; line-height: 1.55; margin: 0; flex: 1 0 auto; opacity: .85; }
.blog-more { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .9rem; color: inherit; margin-top: .3rem; }
.blog-more .arw-line { width: 22px; }
.blog-card:hover .blog-more .arw-line, .blog-card:focus-within .blog-more .arw-line { width: 54px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
/* Tüm kart tıklanabilir (stretched link) + "tüm yazılar" linki */
.blog-card .blog-more::after { content: ""; position: absolute; inset: 0; }
.blog-all { display: inline-block; margin-top: 1.6rem; font-weight: 700; }

/* ---------- Blog yazı sayfası ---------- */
.post { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.post-wrap { max-width: 760px; }
.post-back { display: inline-block; font-weight: 700; margin-bottom: 1.4rem; }
.post-cat { display: block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: .5rem; }
.post-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin: 0 0 1.5rem; }
.post-body p { font-size: 1.12rem; line-height: 1.75; margin: 0 0 1.1rem; max-width: 68ch; }

/* ---------- Basit sayfalar (arama/abonelik) ---------- */
.simple-page { padding: clamp(3rem, 7vw, 5rem) 0; min-height: 50vh; }
.simple-page h1 { margin-bottom: .6rem; }
.simple-page .btn { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0c0f3e; color: #a9b0d6; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.footer-wordmark { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-wordmark .brand-mark { width: 54px; height: 54px; }
.footer-wordmark span { font-size: clamp(2rem, 8.5vw, 5.5rem); font-weight: 800; letter-spacing: normal; color: #fff; line-height: 1; white-space: nowrap; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2rem 0; }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .5rem 0; }
.site-footer a { color: #a9b0d6; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: .7rem; align-items: flex-start; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; color: #cfd4ef; }
.footer-social a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; font-size: .82rem; }
.footer-legal nav { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.footer-legal p { color: #767ca6; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* 2 sütun; inline span'ler fazla sütunu otomatik kırpar (span 3-4 → en çok 2). */
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .std-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(150px, auto); }
  .tile { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 160px; }
  .tile-art { width: 46%; }
  .std-grid { grid-template-columns: 1fr; }
  .nl-inner { flex-direction: column; align-items: flex-start; }
  .nl-form input { min-width: 0; flex: 1; }
}
@media (max-width: 480px) {
  .brand-text { font-size: 1.85rem; }
  .brand-mark { width: 58px; height: 58px; }
  .header-inner { height: 118px; }
  .menu-ico span { width: 38px; height: 3.4px; }
  .lang-btn > svg { width: 28px; height: 28px; }
  .profile-btn svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .tile, .tile-link, .arw-line, .tile-art, .overlay-menu, .std-card, .std-card::before, .tile::before, .nl-form input, .nl-form .btn.btn-dark, .blog-card, .blog-card::before { transition: none; } }

/* ---------- Madde arama: hero sonuç paneli, modal, madde sayfası ---------- */
.hero-searchzone { z-index: 30; }
/* Sonuçlar varken panel, hover beklemeden açılır (yazma/odak ile). */
.hero-searchzone.has-results .hero-trending { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.hero-searchzone.has-results .hero-trending > span,
.hero-searchzone.has-results .hero-trending > .chips { display: none; }
.clause-results { width: 100%; background: #fff; border: 1px solid #cfd4f2; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; max-height: min(60vh, 26rem); overflow: auto; }
.clause-results ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.clause-hit { display: flex; align-items: baseline; gap: .8rem; width: 100%; text-align: left; background: #fff; color: var(--ink);
  border: 1px solid transparent; border-radius: 10px; padding: .6rem .8rem; font: inherit; cursor: pointer; min-height: 44px; }
/* Giriş animasyonu yalnız panel kapalıdan açılırken; her tuş vuruşunda yeniden oynamaz (titreme yok). */
.clause-results.anim .clause-hit { opacity: 0; transform: translateY(6px); animation: hit-in .28s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 28ms); }
.clause-hit:hover, .clause-hit:focus-visible { background: var(--brand); color: #fff; outline: none; border-color: var(--brand); }
.clause-hit .clause-code, .clause-code { flex: none; min-width: 3.6em; font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  color: var(--brand); background: #eef1fe; border-radius: 7px; padding: .15rem .5rem; text-align: center; }
.clause-hit:hover .clause-code, .clause-hit:focus-visible .clause-code { background: rgba(255,255,255,.18); color: #fff; }
.clause-hit .clause-name { font-size: 1rem; line-height: 1.3; flex: 1; min-width: 0; }
.clause-hit .clause-flag { margin-left: auto; font-size: .72rem; opacity: .7; white-space: nowrap; }
.clause-msg { margin: 0; padding: .7rem .9rem; color: var(--muted); font-size: .95rem; }
.clause-more { display: flex; align-items: center; min-height: 44px; padding: 0 .9rem; font-size: .9rem; color: var(--brand); font-weight: 700; }
@keyframes hit-in { to { opacity: 1; transform: none; } }

/* Sonuç / madde sayfaları */
.clause-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; max-width: 760px; }
.clause-row { display: flex; align-items: baseline; gap: .9rem; padding: .7rem .9rem; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink); transition: border-color .15s, background .15s; }
.clause-row:hover, .clause-row:focus-visible { border-color: var(--brand); background: #f6f8ff; }
.clause-row .clause-flag { margin-left: auto; font-size: .78rem; color: var(--muted); }
.clause-crumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.clause-body { max-width: 760px; margin-top: 1.2rem; font-size: 1.12rem; }
.clause-ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.clause-ul li { display: grid; grid-template-columns: 2.4em 1fr; gap: .3rem; margin: 0 0 .55rem; }
.clause-mark { color: var(--brand); font-weight: 700; }
.clause-h2 { margin-top: 2.2rem; font-size: 1.3rem; }
.clause-note { font-size: .88rem; }

/* Modal */
.cmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.cmodal[hidden] { display: none; }
.cmodal-backdrop { position: absolute; inset: 0; background: rgba(16,18,74,.55); opacity: 0; transition: opacity .22s ease; }
.cmodal-panel { position: relative; width: min(760px, 100%); max-height: min(86vh, 800px); display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); outline: none;
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .22s ease, transform .26s cubic-bezier(.2,.7,.2,1); }
.cmodal.open .cmodal-backdrop { opacity: 1; }
.cmodal.open .cmodal-panel { opacity: 1; transform: none; }
.cmodal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem .5rem 1.4rem; }
.cmodal-std { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.cmodal-x { border: 0; background: transparent; color: var(--ink); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.cmodal-x:hover { background: #eef1fe; color: var(--brand); }
.cmodal-x:focus-visible, .clause-hit:focus-visible, .clause-more:focus-visible, .cmodal-sub .chip:focus-visible, .clause-row:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; }
.clause-hit:focus-visible { outline-color: var(--navy); }
.cmodal-scroll h2:focus, .cmodal-panel:focus { outline: none; }
.cmodal-scroll { transition: opacity .15s ease; }
.cmodal-scroll.is-loading { opacity: .55; }
.cmodal-scroll { overflow: auto; padding: 0 1.4rem 1.4rem; overscroll-behavior: contain; }
.cmodal-scroll h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: .1rem 0 .3rem; }
.cmodal-code { display: inline-block; margin-right: .1rem; color: var(--brand); }
.cmodal-body { font-size: 1.1rem; margin-top: 1rem; }
.cmodal-body ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.cmodal-body li { display: grid; grid-template-columns: 2.4em 1fr; gap: .3rem; margin: 0 0 .55rem; }
.cmodal-body li > span:first-child { color: var(--brand); font-weight: 700; }
.cmodal-sub { margin-top: 1.4rem; }
.cmodal-sub h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .5rem; }
.cmodal-sub .chips a { text-transform: none; letter-spacing: 0; font-size: .85rem; min-height: 44px; display: inline-flex; align-items: center; }
.cmodal-foot { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
body.modal-open { overflow: hidden; }

@supports (height: 1dvh) { .cmodal-panel { max-height: min(86dvh, 800px); } }
@media (max-width: 640px) {
  .cmodal { padding: 0; place-items: end center; }
  .cmodal-panel { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  @supports (height: 1dvh) { .cmodal-panel { max-height: 92dvh; } }
  .clause-hit { gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .clause-results.anim .clause-hit { animation: none; opacity: 1; transform: none; }
  .cmodal-backdrop, .cmodal-panel, .clause-row, .cmodal-scroll, .hero-trending { transition: none; }
}

/* Ekran okuyucuya özel (görünmez) metin */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Sayfa içi madde arama formu (/search, madde sayfası, hata sayfası) ve sayfalama */
.page-search { display: flex; gap: .6rem; max-width: 760px; margin: 1.1rem 0 .4rem; }
.page-search input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .65rem .9rem; border: 1.5px solid #6f749f; border-radius: 10px; background: #fff; color: var(--ink); }
.page-search input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.page-search .btn { margin-top: 0; }
.clause-pager { display: flex; gap: .6rem; margin-top: 1.2rem; }
.clause-pager .btn { margin-top: 0; }
@media (max-width: 480px) { .page-search { flex-direction: column; } .page-search .btn { justify-content: center; } }
@media (max-width: 480px) { .hero-search input { font-size: 1.1rem; } }
.simple-page .btn + .btn { margin-left: .6rem; }
@media (max-width: 480px) { .simple-page .btn + .btn { margin-left: 0; } }
