/*
 * Erişilebilirlik düzeltmeleri — main.min.css'ten sonra yüklenir.
 * Her blok hangi denetim bulgusunu giderdiğini belirtir.
 */

/* H48: link grupları liste olarak işaretlendi; display:contents ile yerleşim değişmez */
.a11y-list,
.a11y-list > li {
    display: contents;
}

/* CSS background-image: dekoratif arka planlar aria-hidden katmana taşındı */
.homePageTop:has(> .a11y-bg),
.figmaBanner__box:has(> .a11y-bg),
.scanWebsite__in:has(> .a11y-bg),
.keyFeatures:has(> .a11y-bg),
.aiModul:has(> .a11y-bg),
.blogSection:has(> .a11y-bg) {
    background-image: none !important;
    isolation: isolate;
}
/* Preserve the original logo backdrop unless its replacement layer is present. */
.partners:has(> .a11y-bg) {
    background-image: none !important;
    isolation: isolate;
}
.blogSection {
    position: relative;
}
.a11y-bg {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: -1 !important;
    pointer-events: none;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.partners > .a11y-bg { background-image: url("../img/partners-bcg.png"); }
.aiModul > .a11y-bg { background-image: url("../img/partners-bcg.png"); background-attachment: fixed; }
.homePageTop > .a11y-bg { background-image: url("../img/blog-bcg.jpg"); background-position: top center; }
.keyFeatures > .a11y-bg { background-image: url("../img/blog-bcg.jpg"); }
.blogSection > .a11y-bg { background-image: url("../img/blog-bcg.jpg"); background-position: 0 0; }
.figmaBanner__box > .a11y-bg { background-image: url("../img/figma-bcg.png"); background-position: 0 0; }
.scanWebsite__in > .a11y-bg { background-image: url("../img/scan-bcg.png"); background-position: 0 0; }

/* Blog kartları: tek link (başlık); kartın tamamı başlık linki üzerinden tıklanır */
.blogItem__titleLink {
    display: block;
    padding: .7rem 0;
    margin: -.7rem 0;
}
.blogItem__titleLink::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
}
.blogItem__titleLink:focus-visible {
    outline: none;
}
.blogItem:has(.blogItem__titleLink:focus-visible) {
    outline: 3px solid #1F1AAD;
    outline-offset: 3px;
}
.blogItem__link {
    z-index: 5;
    padding: 1.2rem 0;
    margin-top: 2.8rem;
}

/* keyboard-no-access: tıklanabilir görünen ama odaklanamayan kart kapları */
.blogItem {
    cursor: auto;
}
/* fourModul kartlarında yalnızca overlay linki tıklanabilir görünür */
.fourModul .item {
    cursor: default;
}
.fourModul .item__overlay {
    cursor: pointer;
}

/* Hedef boyutu ≥ 44×44 px (WCAG 2.5.5). Negatif margin ile görsel yerleşim korunur. */
.navbar .nav-links > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-top: -8px;
    margin-bottom: -8px;
}
.header__btns .button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.header__btn--play {
    min-width: 44px;
    min-height: 44px;
    margin: -2px;
}
.langMenu__btn {
    min-width: 44px;
    min-height: 44px;
}
/* ok simgesi eski 23px düğmedeki konumunda kalsın */
.langMenu__btn::after {
    top: calc(50% - 11.5px);
}
.footer__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: -11.5px;
    margin-bottom: calc(1.6rem - 11.5px);
}
.footer__list :where(li):not(:last-child) > .footer__link {
    margin-right: 1.8rem;
}
@media (max-width: 991px) {
    .footer__link {
        justify-content: center;
    }
    .footer__list :where(li):not(:last-child) > .footer__link {
        margin-right: 0;
        margin-bottom: calc(1.8rem - 11.5px);
    }
}
.footer__bottom-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: -11.5px;
    margin-bottom: -11.5px;
}
.footer__social .footer__link {
    display: inline-flex;
    justify-content: center;
    min-width: 44px;
    margin: 0 !important;
}
@media (min-width: 576px) {
    .footer__middle a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .footer__middle a > img {
        flex-shrink: 0;
    }
}

/* main.css sizes footer program links only. Keep non-link logos at the same
   intended sizes without turning them into artificial links. */
.footer__middle .footer__programLogo {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    width: 10rem;
    max-width: 100%;
}
.footer__middle li:first-child > .footer__programLogo {
    width: 20rem;
}
.footer__middle li:nth-child(2) > .footer__programLogo {
    width: 9rem;
}
.footer__middle li:not(:last-child) > .footer__programLogo {
    margin-right: 3.2rem;
}
.footer__middle .footer__programLogo > img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
@media (max-width: 575px) {
    .footer__middle li:not(:last-child) > .footer__programLogo {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* main.css supports the homepage's list wrappers. Regulations still uses
   direct card children: preserve its original 3/6/3 desktop proportions. */
@media (min-width: 992px) {
    .digitalAccessibilityItems__row.row3 > .item:first-child {
        grid-column: span 3;
    }
    .digitalAccessibilityItems__row.row3 > .item:nth-child(2) {
        grid-column: span 6;
    }
    .digitalAccessibilityItems__row.row3 > .item:nth-child(3) {
        grid-column: span 3;
    }
}
@media (max-width: 991px) {
    .digitalAccessibilityItems__row.row3 > .item,
    .digitalAccessibilityItems__row.row3 > .a11y-list > li > .item {
        grid-column: 1 / -1;
    }
}

/* Logo, menü düğmesi, logo şeritleri */
a[data-a11y-button]:focus-visible {
    outline: 3px solid #1f1aad;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fff;
}
.header__logo {
    min-height: 44px;
}
.mobile-menu-button {
    padding: 10px;
}
/* Slider noktaları: görünen nokta aynı boyutta kalır, tıklama alanı 44 px olur
   (content-box arka plan + %50 radius = içte tam daire) */
.splide__pagination__page {
    box-sizing: content-box !important;
    background-clip: content-box !important;
    padding: 15px !important;
    margin: -4px !important;
}
.fourModul .splide__pagination__page {
    padding: 17px !important;
}

/* Okunabilirlik: satır yüksekliği ≥ 1.5, yazı boyutu ≥ 12 px */
.blogBar__text,
.blogBar__cta,
.fourModul .item__overlay p,
.fourModul .item__overlay span,
.ke-bn__tag,
.ke-bn__new,
.ke-bn__btn,
.ke-bn__cap,
.ke-bn__cap *,
.corpowidProducts__content-item p,
.figmaBanner__left p,
.accessibilityLifecycle__items .item p {
    line-height: 1.5 !important;
}
.ke-bn__logo,
.ke-bn__spd,
.iti__dial-code,
noscript {
    font-size: 12px !important;
}
