/* ==========================================================================
   İMA — Anlaşmalı kurumlar (özel kartlar + devlet hastaneleri) ve anlaşma kartı
   ========================================================================== */

/* ---- Özel kurum kartları ---- */
@media (min-width: 901px) { .hosp-kartlar { grid-template-columns: repeat(4, 1fr); } }
.hosp-kartlar { gap: 14px; }
.hk { justify-content: flex-start; min-height: 132px; padding: 18px 18px 16px; border-radius: 16px; position: relative; overflow: hidden; }
.hk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #C6A250, #E6CD8C); opacity: 0; transition: opacity .2s; }
.hk:hover::before, .hk[aria-pressed="true"]::before { opacity: 1; }
.hk .hk-tur { order: -1; margin-bottom: 4px; font-size: .68rem; }
.hk .hk-ad { font-size: 1.02rem; line-height: 1.3; }
.hosp-detay .hd-media { display: none; }          /* görsel/video yer tutucuları gizli — gerçek görsel gelince açılır */
.hosp-detay { grid-template-columns: 1fr; }
.hosp-detay[data-tip="devlet"] .hd-badge { background: rgba(30,111,184,.14); color: var(--c-navy, #12355F); }

/* ---- Sekmeler ---- */
.kur-tabs { display: flex; justify-content: center; gap: 6px; margin: clamp(22px, 3vw, 34px) auto 0; padding: 5px; width: max-content; max-width: 100%;
  background: #F3F6FA; border: 1px solid var(--c-line, #E1E9F3); border-radius: 999px; }
.kur-tab { border: 0; background: transparent; color: var(--c-navy, #12355F); font: inherit; font-weight: 800; font-size: .92rem;
  padding: 11px 22px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .18s; }
.kur-tab[aria-selected="true"] { background: var(--c-navy, #12355F); color: #fff; box-shadow: 0 8px 20px -10px rgba(18,53,95,.6); }
.kur-say { font-size: .72rem; font-weight: 800; background: rgba(18,53,95,.1); color: var(--c-navy, #12355F); border-radius: 999px; padding: 2px 8px; }
.kur-tab[aria-selected="true"] .kur-say { background: rgba(255,255,255,.2); color: #fff; }
.kur-panel { margin-top: clamp(22px, 3vw, 34px); }
.kur-panel[hidden] { display: none; }

/* ---- Devlet: kategori sayaçları ---- */
.dh-kat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dh-k { display: flex; gap: 14px; align-items: flex-start; border-radius: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--c-line, #E1E9F3); }
.dh-k-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; }
.dh-k-ico svg { width: 22px; height: 22px; }
.dh-k--sehir .dh-k-ico { background: #E8F1FB; color: #1E6FB8; }
.dh-k--eah   .dh-k-ico { background: #EAF6EF; color: #1F7A4D; }
.dh-k--uni   .dh-k-ico { background: #FBF3E3; color: #8A6B1F; }
.dh-k-say { font-family: var(--font-serif, Georgia, serif); font-size: 1.7rem; line-height: 1; color: var(--c-navy, #12355F); }
.dh-k-say small { font-family: var(--font-sans, inherit); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted, #56667E); margin-left: 6px; }
.dh-k h3 { font-size: .95rem; font-weight: 800; color: var(--c-ink, #0B1F3A); margin-top: 4px; }
.dh-k p { font-size: .82rem; line-height: 1.5; color: var(--c-slate, #4A5568); margin-top: 3px; }

/* ---- Devlet: araç çubuğu ---- */
.dh-arac { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; margin-top: 18px; }
.dh-ara { position: relative; }
.dh-ara input { width: 100%; padding: 12px 14px 12px 42px; border-radius: 12px; border: 1px solid var(--c-line, #E1E9F3);
  background: #fff; font: inherit; font-size: .95rem; color: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.dh-ara input:focus { border-color: var(--c-blue, #1E6FB8); box-shadow: 0 0 0 4px rgba(30,111,184,.12); }
.dh-ara svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--c-muted, #56667E); pointer-events: none; }
.dh-il-sec { display: flex; align-items: center; gap: 8px; }
.dh-il-sec label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted, #56667E); }
.dh-il-sec select { font: inherit; font-size: .92rem; font-weight: 700; color: var(--c-navy, #12355F); border: 1px solid var(--c-line, #E1E9F3);
  border-radius: 12px; padding: 11px 38px 11px 14px; min-width: 200px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312355F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.dh-filtre { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dh-f { border: 1px solid var(--c-line, #E1E9F3); background: #fff; color: var(--c-navy, #12355F); border-radius: 999px;
  padding: 7px 13px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .15s; }
.dh-f:hover { border-color: rgba(30,111,184,.5); }
.dh-f[aria-pressed="true"] { background: var(--c-navy, #12355F); border-color: var(--c-navy, #12355F); color: #fff; }
.dh-sonuc { margin-left: auto; font-size: .8rem; color: var(--c-muted, #56667E); }
.dh-filtre .dh-sonuc { order: 99; }

/* ---- Devlet: liste ---- */
.dh-liste { margin-top: 12px; background: #fff; border: 1px solid var(--c-line, #E1E9F3); border-radius: 16px; padding: 6px 10px; }
.dh-il[hidden] { display: none; }
.dh-il-baslik { display: none; align-items: center; gap: 8px; padding: 12px 8px 4px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted, #56667E); }
.dh-il-baslik .dh-il-say { font-size: .7rem; background: #EEF3FA; color: var(--c-navy, #12355F); border-radius: 999px; padding: 2px 8px; }
.dh-liste.is-arama .dh-il-baslik { display: flex; }
.dh-il ul { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.dh-h { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid #F0F3F8; }
.dh-h[hidden] { display: none; }
.dh-h:hover { background: #F7FAFD; }
.dh-h-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.dh-h-ico svg { width: 17px; height: 17px; }
.dh-h[data-tur="sehir"] .dh-h-ico { background: #E8F1FB; color: #1E6FB8; }
.dh-h[data-tur="eah"]   .dh-h-ico { background: #EAF6EF; color: #1F7A4D; }
.dh-h[data-tur="uni"]   .dh-h-ico { background: #FBF3E3; color: #8A6B1F; }
.dh-h-ad { font-size: .9rem; font-weight: 600; color: var(--c-ink, #0B1F3A); line-height: 1.3; }
.dh-h-tur { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.dh-h[data-tur="sehir"] .dh-h-tur { color: #1E6FB8; }
.dh-h[data-tur="eah"]   .dh-h-tur { color: #1F7A4D; }
.dh-h[data-tur="uni"]   .dh-h-tur { color: #8A6B1F; }
.dh-h-bas { font-size: .76rem; font-weight: 800; color: var(--c-navy, #12355F); text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(18,53,95,.2); border-radius: 999px; padding: 6px 12px; transition: all .15s; }
.dh-h-bas:hover { background: var(--c-navy, #12355F); color: #fff; }
.dh-not { margin-top: 14px; font-size: .82rem; color: var(--c-muted, #56667E); line-height: 1.6; text-align: center; }
.dh-bos { display: none; text-align: center; color: var(--c-muted, #56667E); padding: 24px; }
.dh-liste.is-bos { display: none; }
.dh-liste.is-bos + .dh-bos { display: block; }

/* ---- Başvuru formu ---- */
#b-kurum optgroup { font-weight: 800; color: var(--c-navy, #12355F); }

/* ---- Anlaşma kartı (tüm ana sayfalar) ---- */
.anl-serit { position: relative; z-index: 2; margin-top: -34px; margin-bottom: clamp(6px, 1vw, 10px); }
.anl-serit-in { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.6vw, 32px);
  background: #fff; border: 1px solid rgba(198,162,80,.45); border-left: 5px solid #C6A250; border-radius: 18px;
  box-shadow: 0 24px 50px -30px rgba(11,31,58,.45); }
.anl-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #EEF3FA; color: var(--c-navy, #12355F); }
.anl-ico svg { width: 26px; height: 26px; }
.anl-tx { flex: 1; min-width: 0; }
.anl-tx strong { display: block; font-family: var(--font-serif, Georgia, serif); font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 600; color: var(--c-navy, #12355F); }
.anl-tx p { margin-top: 4px; font-size: .9rem; line-height: 1.55; color: var(--c-slate, #4A5568); }
.anl-link { flex: none; color: #fff; background: var(--c-navy, #12355F); text-decoration: none; font-weight: 800; font-size: .84rem; border-radius: 999px; padding: 11px 18px; white-space: nowrap; transition: transform .15s, background .15s; }
.anl-link:hover { background: #1E4F8C; transform: translateY(-2px); }
.anl-serit.reveal { opacity: 1; transform: none; }
.anl-serit--duz { margin-top: clamp(22px, 3vw, 36px); }

@media (max-width: 900px) { .dh-kat { grid-template-columns: 1fr; } .dh-il ul { grid-template-columns: 1fr; } .dh-arac { grid-template-columns: 1fr; } .dh-il-sec select { flex: 1; } }
@media (max-width: 760px) { .anl-serit { margin-top: -18px; } .anl-serit-in { flex-wrap: wrap; border-radius: 14px; } .anl-link { width: 100%; text-align: center; } }
@media (max-width: 640px) { .kur-tabs { width: 100%; } .kur-tab { flex: 1; justify-content: center; padding-inline: 10px; font-size: .84rem; } .dh-h { grid-template-columns: 30px 1fr; } .dh-h-bas { grid-column: 2; justify-self: start; } }
