/* ============================================================
   Circular 3D Services Gallery  (desktop ≥992px only)
   Mobile/tablet keep the original .news-page grid untouched.
   ============================================================ */

/* Hide the 3D gallery by default (mobile/tablet) */
.services-circular {
    display: none;
}

@media (min-width: 992px) {
    /* On desktop: show the 3D gallery, hide the original card grid */
    .services-circular {
        display: block;
    }
    .services-grid-mobile {
        display: none !important;
    }
}

.services-circular {
    position: relative;
    padding: 90px 0 110px;
    overflow: hidden;
}

/* Card sizing lives here so JS can read it to compute the ring radius */
.services-circular__stage {
    --cg-card-w: 280px;
    --cg-card-h: 360px;
    position: relative;
    width: 100%;
    height: 460px;
    margin: 0 auto;
    perspective: 2000px;
    cursor: grab;
}
.services-circular__stage.is-dragging {
    cursor: grabbing;
}

@media (min-width: 1400px) {
    .services-circular__stage {
        --cg-card-w: 300px;
        --cg-card-h: 400px;
        height: 500px;
    }
}

/* The rotating ring */
.services-circular__ring {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

/* A single positioned slot on the ring */
.cg-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--cg-card-w);
    height: var(--cg-card-h);
    margin-left: calc(var(--cg-card-w) / -2);
    margin-top: calc(var(--cg-card-h) / -2);
    transition: opacity 0.3s linear;
    will-change: transform, opacity;
}

/* The visible card */
.cg-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
    background: #0e1a2b;
    transform: translateZ(0);
    transition: box-shadow 0.3s ease;
}

.cg-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cg-card:hover img {
    transform: scale(1.06);
}

.cg-card__overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 26px 22px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}

.cg-card__title {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}
.cg-card__title,
.cg-card__title * {
    color: #fff !important;
    text-decoration: none !important;
}

/* small accent bar */
.cg-card__title::before {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 14px;
    background: var(--cg-accent, #c8102e);
    border-radius: 2px;
}

/* Navigation arrows */
.services-circular__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0e1a2b;
    font-size: 20px;
    line-height: 54px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: background 0.25s ease, transform 0.25s ease;
}
.services-circular__nav:hover {
    background: var(--cg-accent, #c8102e);
    color: #fff;
    transform: translateY(-50%) scale(1.07);
}
.services-circular__nav--prev { left: 28px; }
.services-circular__nav--next { right: 28px; }
