/* =========================================================
   11 — KARABULUT YAPI MARKET
   ========================================================= */
.kb-market {
    background: var(--kb-white);
    padding: 58px 0 58px;
}

.kb-market__inner {
    width: min(calc(100% - (var(--kb-gutter) * 2)), var(--kb-container));
    margin-inline: auto;
}

.kb-market__title {
    margin: 0 0 38px;
    max-width: 980px;
    color: #252525;
    font-family: var(--kb-font);
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.kb-market__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kb-market-card {
    min-width: 0;
}

.kb-market-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.kb-market-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.14 / 1;
    background: #eceeef;
}

.kb-market-card__image,
.kb-market-card__placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.kb-market-card__image {
    object-fit: cover;
    transition: transform .35s ease;
}

.kb-market-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6e7e9;
    color: var(--kb-primary);
    font-size: 18px;
    font-weight: 700;
}

.kb-market-card__placeholder-logo {
    width: min(42%, 130px);
    height: auto;
    max-height: 46%;
    object-fit: contain;
    opacity: .48;
}

.kb-market-card__label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 52%;
    min-width: 150px;
    min-height: 112px;
    padding: 12px 24px 12px 14px;
    background: var(--kb-accent);
    color: var(--kb-white);
}

.kb-market-card__number {
    display: block;
    margin: 0 0 5px;
    font-size: 30px;
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.03em;
}

.kb-market-card__title {
    margin: 0;
    color: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.015em;
    text-transform: uppercase;
}

.kb-market-card__link:hover .kb-market-card__image,
.kb-market-card__link:focus-visible .kb-market-card__image {
    transform: scale(1.025);
}

.kb-market-card__link:focus-visible {
    outline: 2px solid var(--kb-primary);
    outline-offset: 3px;
}

.kb-market__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 28px;
}

.kb-market__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 196px;
    min-height: var(--kb-home-cta-height);
    padding: 6px 9px 6px 12px;
    color: var(--kb-white);
    font-family: var(--kb-font);
    font-size: var(--kb-home-cta-font-size);
    font-weight: var(--kb-home-cta-font-weight);
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.kb-market__button--primary {
    background: var(--kb-primary);
}

.kb-market__button--primary:hover,
.kb-market__button--primary:focus-visible {
    background: var(--kb-primary-dark);
}

.kb-market__button--accent {
    background: var(--kb-accent);
}

.kb-market__button--accent:hover,
.kb-market__button--accent:focus-visible {
    background: var(--kb-accent-dark);
}

.kb-market__button-arrow {
    font-size: 24px;
    font-weight: 400;
    line-height: .65;
}

@media (max-width: 1050px) {
    .kb-market__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-market-card__media {
        aspect-ratio: 1.2 / 1;
    }
}

@media (max-width: 700px) {
    .kb-market {
        padding: 42px 0 46px;
    }

    .kb-market__title {
        margin-bottom: 26px;
        font-size: 34px;
        line-height: 1.02;
    }

    .kb-market__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kb-market-card__media {
        aspect-ratio: 1.32 / 1;
    }

    .kb-market-card__label {
        width: 52%;
        min-width: 150px;
        min-height: 104px;
        padding: 11px 20px 11px 12px;
    }

    .kb-market-card__number {
        font-size: 27px;
    }

    .kb-market-card__title {
        font-size: 17px;
    }

    .kb-market__actions {
        margin-top: 22px;
    }

    .kb-market__button {
        width: 100%;
        max-width: 260px;
    }

    .kb-market__button {
        min-height: 40px;
    }
}

/* Keep CTA text white on hover/focus, matching the site's other buttons. */
.kb-market__button:hover,
.kb-market__button:focus-visible,
.kb-market__button:hover span,
.kb-market__button:focus-visible span {
    color: var(--kb-white);
}
