/* ==========================================================================
   Nöroloji Kliniklerini Kalkındırma Derneği — ana stil dosyası
   ========================================================================== */

/* Poppins yüklenene kadar kullanılan, metrikleri Poppins'e göre ayarlanmış Arial
   fallback'i — font değişiminde yerleşim kaymasını (CLS) en aza indirir. */
@font-face {
    font-family: 'Poppins Fallback';
    src: local('Arial');
    size-adjust: 112.16%;
    ascent-override: 93.77%;
    descent-override: 31.25%;
    line-gap-override: 8.93%;
}

:root {
    --blue: #164e8f;
    --blue-dark: #0e3765;
    --blue-pale: #eaf1f9;
    --red: #c2453a;
    --orange: #d97b29;
    --green: #35875a;
    --green-pale: #e9f4ee;
    --ink: #26303a;
    --muted: #5b6672;
    --line: #dfe5ec;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(22, 44, 74, 0.08);
    --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Poppins Fallback', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Üst bar
   -------------------------------------------------------------------------- */

.topbar {
    background: var(--blue-dark);
    color: #cfdcec;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar__group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #cfdcec;
}

.topbar__item:hover { color: #ffffff; text-decoration: none; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.navbar {
    background: #ffffff;
    border-bottom: 3px solid var(--blue);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__mark svg { width: 100%; height: 100%; display: block; }

.brand__text { display: flex; flex-direction: column; }

.brand__title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--blue-dark);
    letter-spacing: 0.01em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-list a {
    display: block;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    border-radius: 6px;
}

.nav-list a:hover {
    background: var(--blue-pale);
    color: var(--blue);
    text-decoration: none;
}

.nav-list a.is-active {
    color: var(--blue);
    background: var(--blue-pale);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: absolute;
    left: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars { top: 19px; }
.nav-toggle__bars::before { top: -6px; left: 0; }
.nav-toggle__bars::after { top: 6px; left: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    background: var(--blue);
    color: #ffffff;
    padding: 4rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 340px;
    height: 340px;
    border: 44px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.hero-slides {
    position: relative;
    z-index: 1;
    min-height: 320px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    max-width: 820px;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.hero-dots { display: flex; align-items: center; gap: 0.5rem; }

.hero-arrows { display: flex; gap: 0.5rem; }

.hero-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: none;
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-arrow svg { width: 17px; height: 17px; }

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-dot {
    width: 26px;
    height: 5px;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.6); }
.hero-dot.is-active { background: var(--orange); }

.hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.75rem;
}

.hero__fact {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.hero__fact .label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a8c0da;
    margin-bottom: 0.2rem;
}

.hero__fact .value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

.hero__kicker {
    display: inline-block;
    background: var(--red);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.02rem;
    font-weight: 300;
    color: #d8e4f2;
    max-width: 54ch;
    margin-bottom: 1.75rem;
}

.hero__kicker--green { background: var(--green); }

.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn--primary { background: var(--orange); color: #ffffff; }
.btn--primary:hover { background: #c06a1e; }

.btn--ghost { border: 2px solid rgba(255, 255, 255, 0.55); color: #ffffff; }
.btn--ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }

.btn--blue { background: var(--blue); color: #ffffff; }
.btn--blue:hover { background: var(--blue-dark); }

.hero__card {
    background: #ffffff;
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem 1.7rem;
    border-top: 5px solid var(--orange);
}

.hero__card h2 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.hero__card dl { display: grid; gap: 0.85rem; }

.hero__card dt {
    font-size: 0.78rem;
    color: var(--muted);
}

.hero__card dd {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--blue-dark);
}

/* --------------------------------------------------------------------------
   Bölüm başlıkları ve genel bölüm düzeni
   -------------------------------------------------------------------------- */

.section { padding: 4rem 0; }
.section--soft { background: var(--bg-soft); }
.section--green { background: var(--green-pale); }

.section-head { max-width: 640px; margin-bottom: 2.4rem; }

.section-head .kicker {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.4rem;
}

.section-head h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.section-head h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
    margin-top: 0.7rem;
}

.section-head p { color: var(--muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Kartlar
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.4rem;
}

.card--red { border-top-color: var(--red); }
.card--orange { border-top-color: var(--orange); }
.card--green { border-top-color: var(--green); }

.card__icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--blue-pale);
    color: var(--blue);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.card--red .card__icon { background: #f8ebea; color: var(--red); }
.card--orange .card__icon { background: #faf0e4; color: var(--orange); }
.card--green .card__icon { background: var(--green-pale); color: var(--green); }

.card__icon svg { width: 22px; height: 22px; }

.card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.card p { font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Liste blokları (hakkımızda, üyelik)
   -------------------------------------------------------------------------- */

.prose { max-width: 760px; }

.prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 2.2rem 0 0.8rem;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin: 1.6rem 0 0.5rem;
}

.prose p { margin-bottom: 0.9rem; }

.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; }
.prose li { margin-bottom: 0.45rem; }

.check-list { list-style: none; margin: 0 0 1rem 0 !important; }

.check-list li {
    padding-left: 1.7rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0zm-1.2 17.4-5-5 1.7-1.7 3.3 3.3 6.7-6.7 1.7 1.7z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0zm-1.2 17.4-5-5 1.7-1.7 3.3 3.3 6.7-6.7 1.7 1.7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --------------------------------------------------------------------------
   Yönetim kurulu
   -------------------------------------------------------------------------- */

.board-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.member {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.2rem;
    text-align: center;
    flex: 0 1 240px;
}

@media (max-width: 560px) {
    .member { flex-basis: 100%; }
}

.member__initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue-pale);
    color: var(--blue);
    font-weight: 600;
    font-size: 1.05rem;
    display: grid;
    place-items: center;
    margin: 0 auto 0.8rem;
}

.member--red .member__initials { background: #f8ebea; color: var(--red); }
.member--green .member__initials { background: var(--green-pale); color: var(--green); }
.member--orange .member__initials { background: #faf0e4; color: var(--orange); }

.member h3 { font-size: 0.98rem; font-weight: 600; color: var(--ink); }

.member .role { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

.board-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   Tüzük
   -------------------------------------------------------------------------- */

.tuzuk { max-width: 820px; }

.tuzuk article {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.1rem;
}

.tuzuk article h2 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.6rem;
}

.tuzuk article p { font-size: 0.92rem; margin-bottom: 0.7rem; }
.tuzuk article p:last-child { margin-bottom: 0; }

.tuzuk article ul, .tuzuk article ol {
    font-size: 0.92rem;
    margin: 0 0 0.7rem 1.3rem;
}

.tuzuk article li { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   Etkinlikler — sekmeler
   -------------------------------------------------------------------------- */

.tabs { border-bottom: 2px solid var(--line); display: flex; gap: 0.3rem; margin-bottom: 2rem; }

.tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.7rem 1.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover { color: var(--blue); }

.tab-btn.is-active {
    color: var(--blue);
    border-bottom-color: var(--orange);
    font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.empty-state {
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 3.2rem 1.5rem;
    text-align: center;
    color: var(--muted);
}

.empty-state svg {
    width: 40px;
    height: 40px;
    color: var(--blue);
    opacity: 0.45;
    margin-bottom: 0.9rem;
}

.empty-state h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.empty-state p { font-size: 0.92rem; max-width: 46ch; margin: 0 auto; }

/* --------------------------------------------------------------------------
   İletişim
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.contact-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.contact-card h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.7rem;
}

.contact-card h3 svg { width: 19px; height: 19px; color: var(--red); flex-shrink: 0; }

.contact-card p { font-size: 0.93rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Vurgu bandı (CTA)
   -------------------------------------------------------------------------- */

.cta-band {
    background: var(--green);
    color: #ffffff;
    padding: 2.8rem 0;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-band h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.3rem; }
.cta-band p { color: #dcefe4; font-size: 0.95rem; font-weight: 300; }

.cta-band .btn { background: #ffffff; color: var(--green); }
.cta-band .btn:hover { background: #eef7f1; }

/* --------------------------------------------------------------------------
   Sayfa başlığı (iç sayfalar)
   -------------------------------------------------------------------------- */

.page-head {
    background: var(--blue);
    color: #ffffff;
    padding: 2.6rem 0;
}

.page-head h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
}

.page-head p {
    color: #d8e4f2;
    font-weight: 300;
    margin-top: 0.4rem;
    max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    background: var(--blue-dark);
    color: #b9c9db;
    padding: 3.2rem 0 0;
    margin-top: 0;
    font-size: 0.88rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 2.2rem;
    padding-bottom: 2.4rem;
}

.footer__brand-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.footer__mark { width: 40px; height: 40px; flex-shrink: 0; }
.footer__mark svg { width: 100%; height: 100%; }

.footer .name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
}

.footer .blurb { font-weight: 300; max-width: 34ch; }

.footer__col h4 {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
}

.footer__list { list-style: none; }

.footer__list li { margin-bottom: 0.55rem; }

.footer__list a { color: #b9c9db; }
.footer__list a:hover { color: #ffffff; }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.1rem 0 1.3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #8fa3ba;
}

.footer__heart { color: #e0484d; }

.footer__credit a { color: #b9c9db; font-weight: 500; }
.footer__credit a:hover { color: #ffffff; }

/* --------------------------------------------------------------------------
   Duyarlı tasarım
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 1.25rem 1rem;
        gap: 0.15rem;
        box-shadow: var(--shadow);
    }

    .nav-list.is-open { display: flex; }

    .navbar { position: relative; }

    .topbar__item--address { display: none; }
}

@media (max-width: 560px) {
    .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .section { padding: 3rem 0; }
    .hero { padding: 3rem 0; }
}
