﻿/* ===== REV4 LAYOUT ===== */
.rev4 {
    background: #fff;
    padding: 34px 0 80px;
}

.rev4-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
}

/* Sol nav */
.rev4-nav {
    position: sticky;
    top: calc(var(--header-h, 96px) + var(--pagehero-h, 180px) + 18px);
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 14px 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.rev4-nav__title {
    font-weight: 800;
    font-size: 14px;
    margin: 2px 0 10px;
}

.rev4-nav__item {
    display: block;
    padding: 9px 10px;
    border-radius: 12px;
    color: #111;
    text-decoration: none;
    font-size: 13px;
}

    .rev4-nav__item:hover {
        background: rgba(0,0,0,.05);
    }

/* Main */
.rev4-main {
    min-width: 0;
}

/* Block */
.rev4-block {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 28px 28px 26px; /* ↑ büyüttük */
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    scroll-margin-top: 140px;
}

.rev4-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.rev4-lead {
    margin: 0 0 12px;
    opacity: .75;
}

/* Tab bar */
.rev4-tabbar {
    display: flex;
    gap: 8px;
    margin: 10px 0 10px;
}

.rev4-tab {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}

    .rev4-tab:hover {
        background: #e9e9e9;
        border-color: #d0d0d0;
    }

    .rev4-tab.active {
        background: #111;
        color: #fff;
        border-color: #111;
    }

/* Panels */
.rev4-panel {
    display: none;
}

    .rev4-panel.active {
        display: block;
    }

/* ===== SLIDER ===== */
.rev4-slider {
    position: relative;
    margin-top: 14px;
}
.rev4-track {
    display: flex;
    overflow-x: auto; /* JS scrollBy çalışsın */
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0; /* 1 slayt = 1 ekran */
    padding: 0; /* kenar boşluk verme */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox scrollbar kapat */
}

    .rev4-track::-webkit-scrollbar {
        display: none;
    }

.rev4-shot {
    flex: 0 0 100% !important; /* kesin kilit */
    max-width: 100%;
    scroll-snap-align: start;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .rev4-shot img {
        width: 100%;
        height: 520px;
        object-fit: contain;
        border-radius: 18px;
        display: block;
        background: #f3f3f3;
    }

.rev4-sbtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
    cursor: pointer;
    z-index: 5;
    opacity: .92;
}
    .rev4-sbtn.prev {
        left: 10px;
    }

    .rev4-sbtn.next {
        right: 10px;
    }

/* Desc */
.rev4-desc {
    margin-top: 18px;
    padding: 0 6px;
}

/* MAKİNE İSMİ */
.rev-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* KISA AÇIKLAMA */
.rev-desc1 {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* TEKNİK SİSTEM BİLGİSİ */
.rev-desc2 {
    font-size: 16px;
    font-weight: 400;
    color: #777;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1100px) {
    .rev4-wrap {
        grid-template-columns: 1fr;
    }

    .rev4-nav {
        position: static;
    }

    .rev4-shot {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

        .rev4-shot img {
            height: 420px; /* istersen 460 */
        }
}

@media (max-width: 720px) {
    .rev4-track {
        padding: 6px 50px;
    }

    .rev4-shot {
        flex-basis: 100%;
    }

        .rev4-shot img {
            height: 280px;
        }
}

@media (max-width: 980px) {
    .rev4-tabbar {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px 6px 10px;
        scroll-snap-type: x mandatory;
    }

        .rev4-tabbar::-webkit-scrollbar {
            display: none;
        }

    .rev4-tab {
        flex: 0 0 auto; /* küçülmesin, yan yana dizilsin */
        white-space: nowrap; /* tek satır kalsın */
        scroll-snap-align: start;
    }
}