.spg-coverflow {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 42px 110px 70px;
    overflow: hidden;
    perspective: 1400px;
    isolation: isolate;
    background: rgba(10, 14, 20, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 20px 45px rgba(0,0,0,0.18);
}

.spg-track {
    position: relative;
    width: 100%;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.spg-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition:
        transform 0.5s ease,
        opacity 0.5s ease,
        filter 0.5s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.spg-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(0,0,0,0.18);
    border-radius: 10px;
    box-shadow:
        0 14px 26px rgba(0,0,0,0.22),
        0 5px 12px rgba(0,0,0,0.10);
}

.spg-item.is-active {
    opacity: 1;
    z-index: 30;
    pointer-events: auto;
}

.spg-item.is-left-1,
.spg-item.is-right-1,
.spg-item.is-left-2,
.spg-item.is-right-2 {
    opacity: 1;
    pointer-events: auto;
}

.spg-item.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.spg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: 0 !important;
    border-radius: 50%;
    background: rgba(255,255,255,0.10) !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 38px;
    line-height: 54px;
    text-align: center;
    cursor: pointer;
    z-index: 60;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
    opacity: 0.9;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
    padding: 0;
}

.spg-nav:hover {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    opacity: 1;
}

.spg-nav:focus,
.spg-nav:active {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.15),
        0 8px 18px rgba(0,0,0,0.14);
}

.spg-nav-prev {
    left: 18px;
}

.spg-nav-next {
    right: 18px;
}

.spg-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 55;
}

.spg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.32);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
    padding: 0;
}

.spg-dot:hover {
    transform: scale(1.08);
    background: rgba(255,255,255,0.55);
}

.spg-dot.is-active {
    background: rgba(255,255,255,0.96);
    transform: scale(1.12);
}

@media (max-width: 1100px) {
    .spg-coverflow {
        padding: 36px 90px 64px;
        min-height: 470px;
    }

    .spg-track {
        height: 330px;
    }

    .spg-item {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 767px) {
    .spg-coverflow {
        min-height: 400px;
        padding: 24px 56px 58px;
        perspective: none;
        border-radius: 14px;
    }

    .spg-track {
        height: 270px;
    }

    .spg-item {
        width: 78vw;
        max-width: 300px;
        height: 240px;
    }

    .spg-nav {
        width: 42px;
        height: 42px;
        font-size: 30px;
        line-height: 42px;
    }

    .spg-nav-prev {
        left: 6px;
    }

    .spg-nav-next {
        right: 6px;
    }

    .spg-dot {
        width: 10px;
        height: 10px;
    }
}