/* KÜTÜPHANE HİZMETLERİ */

.mk-page {
    --mk-bg: #10171e;
    --mk-panel: #141d26;
    --mk-text: #f1f4f6;
    --mk-muted: #b6c0ca;
    --mk-border: rgba(215, 230, 240, 0.13);
    --mk-chip: #26313c;
    --mk-button: #eff3f5;
    --mk-button-text: #121a22;
    --mk-photo-light: 0.78;

    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 136px 0 72px;
    font-family: inherit;
    color: var(--mk-text);
}

html[data-theme="light"] .mk-page {
    --mk-bg: #f5f8fa;
    --mk-panel: #fbfcfd;
    --mk-text: #171e26;
    --mk-muted: #5f6b78;
    --mk-border: rgba(31, 49, 67, 0.12);
    --mk-chip: #e9eef2;
    --mk-button: #19232c;
    --mk-button-text: #fff;
    --mk-photo-light: 1;
}

.mk-page,
.mk-page * {
    box-sizing: border-box;
}

.mk-page .mk-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Eski tema kurallarının yazı dolgusunu ezmesini önler. */
.mk-page :is(h1, h2, h3, p, a, span, summary) {
    -webkit-text-fill-color: currentColor !important;
}

.mk-page :is(h1, h2, h3) {
    margin: 0;
    color: var(--mk-text);
    font-family: inherit;
    font-weight: 600;
    text-transform: none;
}

.mk-page h1 {
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.mk-page h2 {
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.mk-page h3 {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.mk-page p {
    margin: 0;
    color: var(--mk-muted);
    font-size: 15px;
    line-height: 1.75;
}

.mk-page a {
    color: inherit;
    text-decoration: none;
}

.mk-page :is(a, summary):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.mk-page .mk-eyebrow {
    margin-bottom: 19px;
    color: var(--mk-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.mk-page .mk-icon {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--mk-text);
}

/* Giriş */
.mk-page .mk-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 520px;
    border: 1px solid var(--mk-border);
    border-radius: 28px;
    background: var(--mk-bg);
}

.mk-page .mk-hero-image {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 0;
    display: block;
    width: 70%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 70% center;
    filter: saturate(0.78) brightness(var(--mk-photo-light));
}

.mk-page .mk-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--mk-bg) 0%,
        var(--mk-bg) 33%,
        transparent 78%
    );
}

.mk-page .mk-hero-content {
    position: relative;
    z-index: 2;
    width: 62%;
    padding: clamp(28px, 4.5vw, 64px);
}

.mk-page .mk-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 38px;
    color: var(--mk-muted);
    font-size: 12px;
    line-height: 1.6;
}

.mk-page .mk-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mk-page .mk-lead {
    max-width: 520px;
    margin: 24px 0 28px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.65;
}

.mk-page .mk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
    min-height: 48px;
    max-width: 100%;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--mk-button);
    color: var(--mk-button-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.mk-page .mk-button span {
    color: inherit;
    font-size: 20px;
}

@media (hover: hover) {
    .mk-page .mk-button:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }
}

/* Ortak bölüm panelleri */
.mk-page .mk-panel {
    margin-top: 26px;
    padding: clamp(24px, 3vw, 42px);
    border: 1px solid var(--mk-border);
    border-radius: 24px;
    background: var(--mk-panel);
}

.mk-page .mk-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px;
    margin-bottom: 30px;
}

.mk-page .mk-heading > * {
    min-width: 0;
}

/* Altı hizmet */
.mk-page .mk-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mk-page .mk-service {
    min-width: 0;
    padding: 27px;
    border: 1px solid var(--mk-border);
    border-radius: 16px;
    background: var(--mk-bg);
}

.mk-page .mk-service .mk-icon {
    margin-bottom: 23px;
}

.mk-page .mk-service h3 {
    margin-bottom: 12px;
}

.mk-page .mk-service p {
    font-size: 14px;
}

/* Fotoğraflı ara bölüm ve kapanış */
.mk-page .mk-photo-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 330px;
    margin-top: 26px;
    border: 1px solid var(--mk-border);
    border-radius: 24px;
    background: #11171c;
}

.mk-page .mk-photo-band > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.78) brightness(0.88);
}

.mk-page .mk-photo-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(9, 14, 19, 0.94) 0%,
        rgba(9, 14, 19, 0.82) 36%,
        rgba(9, 14, 19, 0.28) seventy
    );
    /* Sonraki geçerli tanım tüm tarayıcılarda kullanılır. */
    background: linear-gradient(
        90deg,
        rgba(9, 14, 19, 0.94) 0%,
        rgba(9, 14, 19, 0.82) 36%,
        rgba(9, 14, 19, 0.28) 70%,
        rgba(9, 14, 19, 0.08) 100%
    );
}

.mk-page .mk-band-content {
    position: relative;
    z-index: 2;
    width: 57%;
    padding: clamp(28px, 4vw, 54px);
}

.mk-page .mk-band-content h2 {
    color: #fff !important;
}

.mk-page .mk-band-content p {
    margin-top: 18px;
    color: #e0e5e9 !important;
}

.mk-page .mk-band-content .mk-eyebrow {
    margin-top: 0;
    color: #c6cfd7 !important;
}

.mk-page .mk-closing .mk-band-content {
    width: 65%;
}

.mk-page .mk-button-light {
    margin-top: 24px;
    background: #f6f7f8;
    color: #151d25;
}

/* Süreç */
.mk-page .mk-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mk-page .mk-process li {
    min-width: 0;
}

.mk-page .mk-process li + li {
    padding-left: 24px;
    border-left: 1px solid var(--mk-border);
}

.mk-page .mk-step-top {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
}

.mk-page .mk-number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--mk-chip);
    color: var(--mk-text);
    font-size: 12px;
    font-weight: 600;
}

.mk-page .mk-process h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.mk-page .mk-process p {
    font-size: 13px;
}

/* Faydalar ve SSS */
.mk-page .mk-bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
}

.mk-page .mk-bottom-grid > * {
    min-width: 0;
}

.mk-page .mk-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mk-page .mk-icon-circle {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border: 1px solid var(--mk-border);
    border-radius: 50%;
    background: var(--mk-bg);
}

.mk-page .mk-benefits h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.mk-page .mk-benefits p {
    font-size: 13px;
}

.mk-page .mk-faq {
    padding-left: 30px;
    border-left: 1px solid var(--mk-border);
}

.mk-page .mk-faq h2 {
    margin-bottom: 22px;
    font-size: clamp(23px, 2vw, 28px);
}

.mk-page .mk-faq details {
    border-top: 1px solid var(--mk-border);
}

.mk-page .mk-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    color: var(--mk-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.mk-page .mk-faq summary::-webkit-details-marker {
    display: none;
}

.mk-page .mk-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 21px;
    font-weight: 400;
}

.mk-page .mk-faq details[open] summary::after {
    content: "−";
}

.mk-page .mk-faq details p {
    padding-bottom: 18px;
    font-size: 13px;
}

/* Tablet */
@media (max-width: 1050px) {
    .mk-page .mk-hero-content {
        width: 70%;
    }

    .mk-page .mk-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-page .mk-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .mk-page .mk-process li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .mk-page .mk-bottom-grid {
        grid-template-columns: 1fr;
    }

    .mk-page .mk-faq {
        padding: 28px 0 0;
        border-left: 0;
        border-top: 1px solid var(--mk-border);
    }

    .mk-page .mk-band-content,
    .mk-page .mk-closing .mk-band-content {
        width: 75%;
    }
}

/* Telefon */
@media (max-width: 700px) {
    .mk-page {
        width: calc(100% - 28px);
        padding: 110px 0 45px;
    }

    .mk-page .mk-hero {
        flex-direction: column;
        min-height: 0;
        border-radius: 22px;
    }

    .mk-page .mk-hero-image {
        position: relative;
        inset: auto;
        width: 100%;
        height: 260px;
        object-position: 70% center;
    }

    .mk-page .mk-hero::after {
        inset: 180px 0 auto;
        height: 80px;
        background: linear-gradient(to bottom, transparent, var(--mk-bg));
    }

    .mk-page .mk-hero-content {
        width: 100%;
        padding: 24px;
    }

    .mk-page .mk-breadcrumb {
        margin-bottom: 26px;
        font-size: 11px;
    }

    .mk-page h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .mk-page .mk-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mk-page .mk-panel {
        padding: 24px 20px;
        margin-top: 20px;
        border-radius: 20px;
    }

    .mk-page .mk-service-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mk-page .mk-service {
        padding: 24px;
    }

    .mk-page .mk-photo-band {
        min-height: 350px;
        margin-top: 20px;
        border-radius: 20px;
    }

    .mk-page .mk-photo-band::after {
        background: rgba(9, 14, 19, 0.76);
    }

    .mk-page .mk-band-content,
    .mk-page .mk-closing .mk-band-content {
        width: 100%;
        padding: 30px 25px;
    }

    .mk-page .mk-benefits {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .mk-page .mk-benefits article {
        display: grid;
        grid-template-columns: 62px 1fr;
        column-gap: 18px;
        align-items: start;
    }

    .mk-page .mk-icon-circle {
        grid-row: span 2;
        margin-bottom: 0;
    }
}

@media (max-width: 440px) {
    .mk-page .mk-process {
        grid-template-columns: 1fr;
    }

    .mk-page .mk-process li + li {
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid var(--mk-border);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-page *,
    .mk-page *::before,
    .mk-page *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================
   FOTOĞRAF ÜZERİNDEKİ YAZILAR
   Açık ve koyu temada beyaz kalır.
   ========================================= */

html body.library-service-page .mk-page .mk-photo-band {
    --mk-text: #ffffff;
    --mk-muted: #e3e9ee;
}

html body.library-service-page .mk-page .mk-photo-band .mk-band-content h2,
html body.library-service-page .mk-page #mk-cta-title,
html body.library-service-page .mk-page #mk-digital-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

html body.library-service-page .mk-page .mk-photo-band .mk-band-content > p {
    color: #e3e9ee !important;
    -webkit-text-fill-color: #e3e9ee !important;
    opacity: 1 !important;
}

html
    body.library-service-page
    .mk-page
    .mk-photo-band
    .mk-band-content
    > .mk-eyebrow {
    color: #cbd4dc !important;
    -webkit-text-fill-color: #cbd4dc !important;
}

/* Beyaz butonun yazısı koyu kalır. */
html body.library-service-page .mk-page .mk-photo-band .mk-button-light,
html body.library-service-page .mk-page .mk-photo-band .mk-button-light span {
    color: #151d25 !important;
    -webkit-text-fill-color: #151d25 !important;
}

html body.library-service-page .mk-page .mk-photo-band .mk-button-light {
    background: #f6f7f8 !important;
}

/* Metnin bulunduğu sol tarafta yeterli kontrast */
html body.library-service-page .mk-page .mk-photo-band::after {
    background: linear-gradient(
        90deg,
        rgba(9, 14, 19, 0.94) 0%,
        rgba(9, 14, 19, 0.84) 38%,
        rgba(9, 14, 19, 0.38) 72%,
        rgba(9, 14, 19, 0.16) 100%
    ) !important;
}

/* =========================================
   HİZMET / SÜREÇ / FAYDA İKONLARI
   ========================================= */

html body.library-service-page .mk-page svg.mk-icon {
    display: block !important;
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    flex: 0 0 34px;
    color: var(--mk-text) !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
}

html body.library-service-page .mk-page svg.mk-icon use {
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body.library-service-page .mk-page .mk-service > .mk-icon {
    margin-bottom: 23px;
}

html body.library-service-page .mk-page .mk-step-top {
    display: flex;
    align-items: center;
    gap: 22px;
}

html body.library-service-page .mk-page .mk-icon-circle {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid var(--mk-border);
    border-radius: 50%;
    background: var(--mk-bg);
}

@media (max-width: 700px) {
    html body.library-service-page .mk-page .mk-photo-band::after {
        background: rgba(9, 14, 19, 0.8) !important;
    }
}
