/* Anlaşmalı Kurumlar (v2) - Güven Hastanesi
   Sitenin ana tasarım diline uyumlu: native .page-hero, .agreement-card,
   navy (#51678F) başlıklar, kırmızı (#BC0042) accent, DM Sans.
   Bu dosya yalnızca native bileşenlerin kapsamadığı widget'ları içerir
   (arama, kategori filtresi, süreç adımları, SSS akordeon). */

#anlasmali-kurumlar {
    --ak-red: #BC0042;
    --ak-navy: #51678F;
    --ak-text: #263957;
    --ak-muted: #6d7f9d;
    --ak-border: #e5e9f0;
    --ak-soft: #f9f9f9;
}

/* === İSTATİSTİK KARTI (hero ile içerik arası) === */
.ak-stats {
    position: relative;
    z-index: 3;
    margin-top: -64px;
}

.ak-stats__card {
    display: flex;
    background: #fff;
    border: 1px solid var(--ak-border);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(38, 57, 87, 0.12);
    overflow: hidden;
}

.ak-stat {
    flex: 1;
    text-align: center;
    padding: 30px 18px;
}

.ak-stat + .ak-stat { border-left: 1px solid var(--ak-border); }

.ak-stat__num {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--ak-red);
    margin-bottom: 8px;
}

.ak-stat__label {
    font-size: 13.5px;
    color: var(--ak-muted);
    letter-spacing: 0.2px;
}

/* === BODY WRAPPER === */
.ak-body {
    padding: 48px 0 80px;
    background: #fff;
    font-family: "DM Sans", sans-serif;
}

/* === HERO (native .page-hero override — daha geniş + içerikli) === */
.page-hero.ak-hero {
    height: auto;
    min-height: 620px;
    align-items: center;
    background-attachment: scroll;
}

.page-hero.ak-hero .hero-content {
    height: auto;
    margin-top: 96px;
    margin-bottom: 48px;
    max-width: 740px;
}

.page-hero.ak-hero .hero-title {
    height: auto;
    margin-bottom: 4px;
}

.ak-hero-subtitle {
    font-size: 23px;
    font-weight: 600;
    color: #fff;
    margin: 8px 0 0;
}

.ak-hero-lead {
    font-size: 16px;
    line-height: 1.75;
    color: #e8edf6;
    max-width: 660px;
    margin: 16px 0 0;
}

/* === SGK bilgilendirme kartı === */
.ak-note {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(180deg, #f7f9fd 0%, #f2f5fb 100%);
    border: 1px solid var(--ak-border);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 48px;
}

.ak-note__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ak-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ak-note__icon svg { width: 24px; height: 24px; }

.ak-note__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ak-muted);
}

.ak-note__text strong {
    display: block;
    color: var(--ak-navy);
    font-size: 15.5px;
    margin-bottom: 3px;
}

/* === SEARCH + FILTERS === */
.ak-finder { margin-bottom: 48px; }

.ak-finder__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ak-navy);
    margin-bottom: 12px;
}

.ak-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ak-search-input {
    flex: 1;
    min-width: 0;
    padding: 15px 22px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    color: var(--ak-text);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ak-search-input:focus { border-color: var(--ak-red); }

.ak-search-btn {
    flex: 0 0 auto;
    border: none;
    background: var(--ak-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 0 34px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.ak-search-btn:hover { background: #a0003a; }

.ak-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ak-filter {
    padding: 9px 20px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--ak-navy);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ak-filter:hover { border-color: var(--ak-red); color: var(--ak-red); }

.ak-filter.active {
    background: var(--ak-red);
    border-color: var(--ak-red);
    color: #fff;
}

.ak-count {
    font-size: 14px;
    color: var(--ak-muted);
    margin-top: 18px;
}

.ak-count strong { color: var(--ak-red); }

/* === NO RESULTS === */
.ak-no-results {
    display: none;
    border: 1px dashed #d6dbe6;
    border-radius: 12px;
    padding: 38px 20px;
    text-align: center;
    color: var(--ak-muted);
    margin-top: 28px;
}

.ak-no-results strong { display: block; font-size: 18px; color: var(--ak-navy); margin-bottom: 6px; }
.ak-no-results a { color: var(--ak-red); font-weight: 600; text-decoration: none; }

/* === CATEGORY GROUPS (native .agreement-card temelli) === */
.ak-category { margin-bottom: 14px; }
.ak-category.is-hidden { display: none; }

.ak-category__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ak-border);
}

.ak-category__title {
    font-size: 26px;
    font-weight: 600;
    color: var(--ak-navy);
}

.ak-category__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--ak-red);
    background: #fbe9f0;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.ak-subgroup {
    font-size: 14px;
    font-weight: 600;
    color: var(--ak-red);
    margin: 26px 0 14px;
}

.ak-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) { .ak-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px)  { .ak-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .ak-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .ak-grid { grid-template-columns: 1fr; } }

/* native .agreement-card görünümü — site geneliyle birebir */
.ak-item {
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: var(--ak-soft);
    font-size: 14px;
    line-height: 1.4;
    color: var(--ak-navy);
    transition: all 0.3s ease;
    cursor: default;
}

.ak-item:hover {
    background: var(--ak-red);
    color: #fff;
    border-color: var(--ak-red);
}

.ak-item.is-hidden { display: none; }

/* === SÜREÇ ADIMLARI === */
.ak-process {
    background: #f5f7fb;
    padding: 64px 0;
    margin: 64px 0;
}

.ak-process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.ak-step { text-align: center; padding: 0 6px; }

.ak-step__num {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border: 2px solid var(--ak-navy);
    color: var(--ak-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.ak-step__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ak-navy);
    margin-bottom: 10px;
}

.ak-step__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ak-muted);
}

/* === SECTION HEADING (ortak) === */
.ak-heading {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--ak-navy);
    margin-bottom: 8px;
}

.ak-heading + .ak-sub {
    text-align: center;
    font-size: 15px;
    color: var(--ak-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* === SSS AKORDEON === */
.ak-faq { max-width: 820px; margin: 0 auto; padding-top: 32px; }

.ak-faq__item {
    border: 1px solid var(--ak-border);
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

.ak-faq__q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--ak-navy);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}

.ak-faq__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    position: relative;
}

.ak-faq__icon::before,
.ak-faq__icon::after {
    content: "";
    position: absolute;
    background: var(--ak-red);
    border-radius: 2px;
    transition: transform 0.25s;
}

.ak-faq__icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.ak-faq__icon::after  { top: 3px; left: 10px; width: 2px; height: 16px; }

.ak-faq__q.open .ak-faq__icon::after { transform: scaleY(0); }

.ak-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ak-muted);
    padding: 0 24px;
}

.ak-faq__a.open { max-height: 420px; padding: 0 24px 22px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .ak-process__steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

@media (max-width: 768px) {
    .page-hero.ak-hero { min-height: 500px; }
    .page-hero.ak-hero .hero-content { margin-top: 70px; margin-bottom: 40px; }
    .ak-hero-subtitle { font-size: 19px; }
    .ak-hero-lead { font-size: 14.5px; }
    .ak-stats { margin-top: -40px; }
    .ak-stat { padding: 22px 12px; }
    .ak-stat__num { font-size: 30px; }
    .ak-body { padding: 36px 0 56px; }
    .ak-search-row { flex-direction: column; }
    .ak-search-btn { padding: 14px; }
    .ak-category__title { font-size: 22px; }
    .ak-heading { font-size: 26px; }
}

@media (max-width: 560px) {
    .ak-process__steps { grid-template-columns: 1fr; }
    .ak-stats__card { flex-direction: column; }
    .ak-stat + .ak-stat { border-left: 0; border-top: 1px solid var(--ak-border); }
}

/* === V3: ANA GRUPLAR (Kurum Ödemeli / Hasta Ödemeli) === */
.ak-maingroup {
    margin-bottom: 56px;
    padding-top: 32px;
    border-top: 2px solid var(--ak-border);
}

.ak-maingroup:first-of-type { border-top: 0; padding-top: 0; }

.ak-maingroup.is-hidden { display: none; }

.ak-maingroup__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.ak-maingroup__title {
    font-size: 30px;
    font-weight: 700;
    color: var(--ak-red);
    margin: 0;
}

.ak-maingroup__count {
    font-size: 14px;
    font-weight: 600;
    color: var(--ak-muted);
    background: var(--ak-soft);
    border: 1px solid var(--ak-border);
    border-radius: 20px;
    padding: 6px 16px;
    white-space: nowrap;
}

.ak-maingroup__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ak-muted);
    max-width: 720px;
    margin-bottom: 20px;
}

.ak-maingroup .ak-filters { margin-bottom: 28px; }

.ak-subgroup.is-hidden,
.ak-grid.is-hidden { display: none; }

/* v2'deki inline SSS padding'inin class karşılığı */
.ak-faq-section { padding: 16px 0 72px; }

/* Bilgilendirme notu içinde satır içi vurgu (strong bloklaştığı için b kullanılır) */
.ak-note__hl {
    font-weight: 700;
    color: var(--ak-navy);
}

@media (max-width: 768px) {
    .ak-maingroup { margin-bottom: 40px; padding-top: 24px; }
    .ak-maingroup__title { font-size: 24px; }
}
