/* =========================================================
   Custom Widgets CSS — widgets.css
   Covers: Testimonial, Carousel Style 1, Carousel Style 2, Image Box 3
   ========================================================= */

/* ════════════════════════════════════════════════════════
   2. CAROUSEL IMAGE + CONTENT — STYLE 1
   Left: title + desc + counter + arrows | Right: image carousel
════════════════════════════════════════════════════════ */

.cc1-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
    position: relative;
    width: 100%;
}

.cc1-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: calc((100% - var(--cc1-container-w, 1200px)) / 2);
    box-sizing: border-box;
}

.cc1-left-inner {
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    width: 100%;
    box-sizing: border-box;
}

.cc1-title {
    font-size: clamp(26px, 3.5vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 28px;
    transition: opacity 0.4s ease;
}

.cc1-desc {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.75;
    color: #555;
    margin: 0;
    flex: 1;
    transition: opacity 0.4s ease;
}

.cc1-content-animating .cc1-title,
.cc1-content-animating .cc1-desc {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cc1-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.cc1-counter {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.cc1-counter .cc1-curr {
    color: #1a1a1a;
    font-weight: 600;
}

.cc1-nav {
    display: flex;
    gap: 10px;
}

.cc1-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: transparent;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}

.cc1-nav-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    transform: scale(1.05);
}

/* Right: Swiper */
.cc1-right {
    position: relative;
    overflow: hidden;
}

.cc1-right .swiper {
    border-radius: 0;
}

.cc1-swiper .swiper-slide {
    border-radius: 20px;
    overflow: hidden;
}

.cc1-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc1-swiper .swiper-slide-active img {
    transform: scale(1);
}

.cc1-swiper .swiper-slide:not(.swiper-slide-active) img {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .cc1-left {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    .cc1-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cc1-left {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cc1-left-inner {
        padding-right: 0;
        min-height: auto;
    }
}

/* ════════════════════════════════════════════════════════
   2. CAROUSEL IMAGE + CONTENT (STYLE 2)
════════════════════════════════════════════════════════ */

.cc2-wrapper {
    width: 100%;
    overflow: visible;
}

.cc2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.cc2-section-title {
    margin: 0;
    color: #1a1a1a;
    font-size: clamp(22px, 2.2vw, 36px);
    line-height: 1.2;
}

.cc2-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cc2-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}

.cc2-nav-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.cc2-swiper {
    overflow: visible !important;
    padding: 0;
}

.cc2-swiper .swiper-slide {
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    opacity: 0.85;
}

.cc2-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1.015);
}

.cc2-slide-inner,
.cc2-slide-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.cc2-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cc2-slide-content {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: min(88%, 340px);
    max-width: 340px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.cc2-slide-title {
    margin: 0 0 10px;
    color: #1a1a1a;
    font-size: clamp(18px, 1.4vw, 24px);
    line-height: 1.28;
}

.cc2-slide-desc {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .cc2-swiper .swiper-slide {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .cc2-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    .cc2-section-title {
        font-size: 22px;
    }

    .cc2-nav-btn {
        width: 38px;
        height: 38px;
    }

    .cc2-swiper .swiper-slide {
        height: 300px;
    }

    .cc2-slide-content {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: auto;
        max-width: none;
        padding: 14px 16px;
        border-radius: 12px;
    }

    .cc2-slide-title {
        margin-bottom: 6px;
        font-size: 17px;
    }

    .cc2-slide-desc {
        font-size: 13px;
        line-height: 1.55;
    }
}

/* ════════════════════════════════════════════════════════
   4. IMAGE BOX STYLE 3
   Card: image top (rounded), title, desc, large number watermark
   Hover: image zooms, number zooms, card lifts
════════════════════════════════════════════════════════ */

.ib3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ib3-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition:
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s;
}

.ib3-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    border-color: transparent;
}

/* Image */
.ib3-img-wrap {
    overflow: hidden;
    border-radius: 12px;
    margin: 12px 12px 0;
    height: 220px;
    position: relative;
}

.ib3-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ib3-card:hover .ib3-img-wrap img {
    transform: scale(1.07);
}

/* Body */
.ib3-body {
    padding: 20px 20px 24px;
    position: relative;
    overflow: hidden;
}

.ib3-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.ib3-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Watermark number */
.ib3-number {
    position: absolute;
    bottom: -8px;
    right: 8px;
    font-size: clamp(60px, 7vw, 96px);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.4s ease,
        font-size 0.4s ease;
    will-change: transform;
    user-select: none;
}

.ib3-card:hover .ib3-number {
    transform: scale(1.15) translateY(-4px);
    color: rgba(0, 0, 0, 0.07);
}

/* Responsive */
@media (max-width: 991px) {
    .ib3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ib3-grid {
        grid-template-columns: 1fr;
    }

    .ib3-img-wrap {
        height: 180px;
    }
}