/* ============================
   ÇEVRE BİLİNCİ
   Three interchangeable layouts (image-on-top grid, full-width
   image-beside-text rows, and a wider 2x2 grid of image+text pairs),
   admin-managed content, switched via the .cevre-view-toggle pills.
============================ */

.cevre-grid-section {
    background-color: var(--bg-body);
    padding: 110px 60px 130px;
}

.cevre-section-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.cevre-section-inner-wide {
    max-width: 1720px;
    margin: 0 auto;
}

.cevre-view-toggle {
    margin-bottom: 60px;
}

.cevre-view {
    display: none;
}

.cevre-view.is-active {
    display: block;
}

/* ---------- view: image on top, grid ---------- */

.cevre-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
    row-gap: 90px;
}

.cevre-grid-item {
    display: flex;
    flex-direction: column;
}

.cevre-grid-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 28px;
}

.cevre-grid-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- view: image beside text, rows ---------- */

.cevre-split {
    border-top: 1px solid var(--border-soft);
}

.cevre-split-item {
    display: flex;
    align-items: center;
    gap: 70px;
    padding: 56px 0;
    border-bottom: 1px solid var(--border-soft);
}

.cevre-split-image {
    flex: 0 0 42%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.cevre-split-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cevre-split-copy {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- view: 2x2 grid of image+text pairs (wider container) ---------- */

.cevre-pairs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 70px;
    row-gap: 64px;
}

.cevre-pair-item {
    display: flex;
    align-items: center;
    gap: 28px;
}

.cevre-pair-image {
    flex: 0 0 42%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.cevre-pair-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cevre-pair-copy {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- shared copy styling ---------- */

.cevre-grid-copy h2,
.cevre-split-copy h2,
.cevre-pair-copy h2 {
    font-family: var(--font-secondary), sans-serif;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 400;
    color: var(--text-body);
    margin-bottom: 14px;
}

.cevre-grid-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
    width: 100%;
}

.cevre-grid-text p {
    margin-bottom: 14px;
}

.cevre-grid-text p:last-child {
    margin-bottom: 0;
}

.cevre-grid-text a {
    color: var(--text-body);
}

/* the 2x2 pairs grid needs real width per cell for image+text to sit
   comfortably side by side — below this it cramps, so drop to one
   column of full-width pairs (still image-beside-text, just not 2-wide)
   until the mobile breakpoint stacks each pair entirely */
@media screen and (max-width: 1400px) {
    .cevre-pairs {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

@media screen and (max-width: 900px) {
    .cevre-grid-section {
        padding: 80px 24px 90px;
    }

    .cevre-view-toggle {
        margin-bottom: 44px;
    }

    .cevre-grid {
        grid-template-columns: 1fr;
        row-gap: 56px;
    }

    .cevre-split-item {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 40px 0;
    }

    .cevre-split-image {
        flex-basis: auto;
    }

    .cevre-pair-item {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cevre-pair-image {
        flex-basis: auto;
    }
}
