/* ═══════════════════════════════════════════
   Image Carousel Pro — Frontend Styles
   ═══════════════════════════════════════════ */

.icp-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 44px;
    box-sizing: border-box;
    user-select: none;
}

/* ── Swiper overrides ── */
.icp-swiper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* ── Slides ── */
.icp-slide {
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.icp-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.icp-slide a {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}

.icp-slide a img:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

/* ── Nav buttons ── */
.icp-btn-prev,
.icp-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: 1px solid #e8e8e8;
    line-height: 1;
}

.icp-btn-prev { left: 0; }
.icp-btn-next { right: 0; }

.icp-btn-prev:hover,
.icp-btn-next:hover {
    background: #2271b1;
    color: #fff;
    box-shadow: 0 4px 16px rgba(34,113,177,0.35);
    border-color: transparent;
}

/* ── Pagination dots ── */
.icp-carousel-wrapper .swiper-pagination {
    position: relative;
    margin-top: 16px;
    bottom: auto;
}

.icp-carousel-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #bbb;
    opacity: 1;
    transition: background 0.2s, transform 0.2s;
}

.icp-carousel-wrapper .swiper-pagination-bullet-active {
    background: #2271b1;
    transform: scale(1.3);
}

/* ── Responsive image heights ── */
@media (max-width: 1024px) {
    .icp-slide img { height: 180px; }
    .icp-carousel-wrapper { padding: 0 36px; }
}

@media (max-width: 640px) {
    .icp-slide img { height: 150px; }
    .icp-carousel-wrapper { padding: 0 30px; }
    .icp-btn-prev,
    .icp-btn-next {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
