.container {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.servicewrapper,
.servicetop {
    width: 100%;
}

/* ===== TOP ===== */
.servicetopbackgroundimage {
    width: 100%;
    min-height: 360px;
    height: clamp(320px, 38vh, 440px);
    background: var(--service-hero-image, url(/Images/homebackground.avif)) center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    text-align: center;
}

.servicetopbackgroundimage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.42));
}

.servicetitle,
.servicesubtitle {
    position: relative;
    z-index: 1;
    color: white;
}

.servicetitle {
    font-size: clamp(34px, 5vw, 66px);
    font-weight: 800;
    margin-bottom: 10px;
}

.servicesubtitle {
    font-size: clamp(17px, 2.2vw, 24px);
    max-width: 760px;
    padding: 0 20px;
}

/* ===== BODY ===== */
.servicebody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: min(calc(100% - 48px), 1280px);
    margin: 0 auto;
    padding: 50px 0;
    align-items: center;
    box-sizing: border-box;
}

.serviceletter {
    display: flex;
    justify-content: center;
}

.serviceletter p {
    max-width: 600px;
    line-height: 1.7;
}

.servicebodyimage {
    display: flex;
    justify-content: center;
}

.servicebodyimage img {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
}

/* ===== BOTTOM ===== */
.servicebottom {
    text-align: center;
    margin-top: 40px;
}

.servicebottomtittle p {
    font-size: 34px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* ===== CAROUSEL ===== */
.carousel {
    overflow: hidden;
    position: relative;
    max-width: 960px; /* 🔥 exactly 3 slides */
    margin: 60px auto;
    height: 420px;
    display: flex;
    align-items: center;
}

/* track */
.carousel-track {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;

    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* slides */
.slide {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* images */
.slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* CENTER IMAGE */
.slide.center img {
    transform: scale(1.2);
    height: 260px;
}

/* ===== ARROWS ===== */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    width: 44px;
    height: 44px;

    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    border-radius: 50%;

    font-size: 20px;
    cursor: pointer;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.25s;
}

.arrow:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.1);
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .servicebody {
        grid-template-columns: 1fr;
        text-align: center;
        width: min(calc(100% - 32px), 1280px);
    }

    .servicetopbackgroundimage {
        min-height: 300px;
        height: 34vh;
    }

    .carousel {
        height: 260px;
        max-width: 100%;
    }

    .carousel-track {
        gap: 0;
    }

    .slide {
        flex: 0 0 100%;
    }

    .slide img {
        transform: scale(1);
        height: 220px;
    }
}


/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

/* close */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 28px;
    padding: 10px 15px;
    cursor: pointer;
}

.lightbox-arrow.left { left: 30px; }
.lightbox-arrow.right { right: 30px; }

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.4);
}
