/* =========================================================
   KARABULUT — INNER PAGES
   ========================================================= */

.kb-inner-page {
    padding: 34px 0 0;
    background: #fff;
    color: #292929;
}

.kb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 34px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #9a9a9a;
}

.kb-breadcrumb a {
    color: #9a9a9a;
    text-decoration: none;
}

.kb-breadcrumb a:hover,
.kb-breadcrumb a:focus-visible,
.kb-breadcrumb [aria-current="page"] {
    color: #252525;
}

.kb-breadcrumb__sep {
    color: #c5c5c5;
}

.kb-inner-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 42px;
    align-items: start;
}

.kb-inner-page:not(.has-sidebar) .kb-inner-page__layout {
    grid-template-columns: minmax(0, 1fr);
}

.kb-inner-page__header {
    margin-bottom: 24px;
}

.kb-inner-page__title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.025em;
    color: #282828;
}

.kb-inner-page__content {
    max-width: 920px;
    font-size: 17px;
    line-height: 1.45;
}

.kb-inner-page__content > *:first-child { margin-top: 0; }
.kb-inner-page__content > *:last-child { margin-bottom: 0; }

.kb-inner-page__sidebar {
    padding-top: 4px;
}

.kb-inner-nav {
    position: sticky;
    top: 28px;
}

.kb-inner-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.kb-inner-nav__item {
    margin: 0 0 16px;
}

.kb-inner-nav__item a {
    display: inline-block;
    color: #aaa;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.18;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.kb-inner-nav__item a:hover,
.kb-inner-nav__item a:focus-visible,
.kb-inner-nav__item.is-active a {
    color: #282828;
}

.kb-inner-nav__item a:hover,
.kb-inner-nav__item a:focus-visible {
    transform: translateX(-3px);
}

/* Our Story ------------------------------------------------ */
.kb-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 0;
    max-width: 960px;
}

.kb-story__column {
    min-width: 0;
}

.kb-story__column--left {
    padding-right: 0;
}

.kb-story__column--right {
    padding-top: 44px;
}

.kb-story__signature {
    min-height: 120px;
    display: flex;
    align-items: flex-start;
    margin: 0 0 16px;
}

.kb-story__signature-image {
    display: block;
    width: auto;
    max-width: 235px;
    max-height: 138px;
    object-fit: contain;
}

.kb-story__signature-fallback {
    max-width: 235px;
    color: var(--kb-primary, #252D52);
    font-family: "League Spartan", sans-serif;
    font-size: 38px;
    font-style: italic;
    font-weight: 500;
    line-height: .95;
    transform: rotate(-4deg);
    transform-origin: left center;
}

.kb-story__text {
    padding: 0 24px 24px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.23;
    color: #2e2e2e;
}

.kb-story__text p {
    margin: 0 0 16px;
}

.kb-story__text p:last-child {
    margin-bottom: 0;
}

.kb-story__text--right {
    padding: 8px 0 28px 10px;
}

.kb-story-card {
    margin: 0;
}

.kb-story-card--top {
    margin-top: 0;
}

.kb-story__image,
.kb-story__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1.34 / 1;
    object-fit: cover;
    background: #e5e6e9;
}

.kb-story__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kb-story__placeholder-logo {
    width: 42%;
    opacity: .28;
    filter: grayscale(1);
}

.kb-story__placeholder-logo .custom-logo-link,
.kb-story__placeholder-logo .site-branding__fallback {
    display: block;
}

.kb-story__placeholder-logo img {
    width: 100%;
    height: auto;
    max-height: none;
}

.kb-story-card__caption {
    min-height: 88px;
    display: flex;
    align-items: center;
    padding: 18px 14px;
    background: var(--kb-accent, #ffa400);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.18;
}

.kb-story__column--left .kb-story-card {
    margin-top: 4px;
}

.kb-story__column--left .kb-story__text:not(.kb-story__text--intro) {
    padding: 12px 24px 18px 12px;
}

.kb-story__closing {
    margin: 0 0 20px 12px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.kb-story__bottom-image {
    margin-top: 8px;
}

.kb-story__bottom-image .kb-story__image,
.kb-story__bottom-image .kb-story__placeholder {
    aspect-ratio: 1.45 / 1;
}

@media (max-width: 980px) {
    .kb-inner-page__layout {
        grid-template-columns: minmax(0, 1fr) 175px;
        gap: 30px;
    }

    .kb-inner-nav__item a {
        font-size: 15px;
    }

    .kb-story__text {
        font-size: 15px;
    }
}

@media (max-width: 760px) {
    .kb-inner-page {
        padding: 24px 0 0;
    }

    .kb-breadcrumb {
        margin-bottom: 24px;
        font-size: 11px;
    }

    .kb-inner-page__layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .kb-inner-page__main {
        width: 100%;
    }

    .kb-inner-page__sidebar {
        width: 100%;
        order: -1;
        padding-top: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .kb-inner-page__sidebar::-webkit-scrollbar {
        display: none;
    }

    .kb-inner-nav {
        position: static;
    }

    .kb-inner-nav__list {
        display: flex;
        gap: 18px;
        min-width: max-content;
        text-align: left;
        padding-bottom: 2px;
    }

    .kb-inner-nav__item {
        margin: 0;
    }

    .kb-inner-nav__item a {
        font-size: 14px;
        white-space: nowrap;
    }

    .kb-inner-nav__item.is-active a {
        color: var(--kb-primary, #252D52);
    }

    .kb-inner-page__header {
        margin-bottom: 20px;
    }

    .kb-inner-page__title {
        font-size: 28px;
    }

    .kb-story {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .kb-story__column--right {
        padding-top: 0;
    }

    .kb-story__signature {
        min-height: auto;
        margin-bottom: 18px;
    }

    .kb-story__signature-image {
        max-width: 190px;
        max-height: 110px;
    }

    .kb-story__signature-fallback {
        font-size: 32px;
    }

    .kb-story__text,
    .kb-story__text--right,
    .kb-story__column--left .kb-story__text:not(.kb-story__text--intro) {
        padding: 0 0 24px;
        font-size: 16px;
        line-height: 1.35;
    }

    .kb-story-card {
        margin-bottom: 24px;
    }

    .kb-story-card__caption {
        min-height: 0;
        padding: 15px 14px;
        font-size: 15px;
    }

    .kb-story__closing {
        margin: 0 0 26px;
        font-size: 24px;
    }

    .kb-story__bottom-image {
        margin-top: 0;
    }
}


/* Turkish labels are rendered exactly by PHP; never transform them in CSS. */
.kb-breadcrumb,
.kb-breadcrumb a,
.kb-breadcrumb [aria-current="page"],
.kb-inner-page__title,
.kb-inner-nav__item a,
.kb-story__closing {
    text-transform: none !important;
}

/* English image fallback: story signature uses the site logo when neither language has a signature image. */
.kb-story__signature-fallback--logo .custom-logo-link,
.kb-story__signature-fallback--logo .site-branding__fallback {
    display: inline-flex;
    width: auto;
    max-width: 180px;
}

.kb-story__signature-fallback--logo .custom-logo {
    width: auto;
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
}
