.ect-carousel-tabs .tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.ect-carousel-tabs .tab {
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
}
.ect-carousel-tabs .tab.active {
    background: #cb0505;
    color: white;
}
.ect-carousel-tabs .swiper {
    width: 100%;
}

/* Make swiper slide clickable */
.ect-carousel-tabs .swiper-slide {
    background: white;
    border-radius: 0;
    flex: 0 0 auto;
    cursor: pointer; /* pointer cursor on hover */
    display: flex;
    flex-direction: column;
}

/* Thumbnail wrapper (square) */
.ect-carousel-tabs .event-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* square */
    overflow: hidden;
    background: #f5f5f5;
}
.ect-carousel-tabs .event-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    object-fit: cover !important; /* crop instead of stretch */
}

/* Info wrapper */
.ect-carousel-tabs .event-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title & Date */
.ect-carousel-tabs .event-title {
    font-weight: bold;
    padding: 8px;
    line-height: 1.3em;
    min-height: 2.6em; /* biar ada slot untuk 2 baris */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* truncate ke 2 baris */
    -webkit-box-orient: vertical;
}

.ect-carousel-tabs .event-date {
    padding: 0 8px 8px;
    color: #777;
    margin-top: auto; /* dorong ke bawah */
}

/* Swiper navigation arrows - base style */
.ect-carousel-tabs .swiper-button-prev,
.ect-carousel-tabs .swiper-button-next {
    color: black; /* arrow color */
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Remove default Swiper arrow background icons */
.ect-carousel-tabs .swiper-button-prev::after,
.ect-carousel-tabs .swiper-button-next::after {
    font-size: 18px;
}

/* Desktop positioning (outside carousel) */
@media (min-width: 769px) {
    .ect-carousel-tabs .swiper-button-prev {
        left: -20px; /* move outside */
    }
    .ect-carousel-tabs .swiper-button-next {
        right: -20px;
    }
}

/* Mobile positioning (inside carousel) */
@media (max-width: 768px) {
    .ect-carousel-tabs .swiper-button-prev,
    .ect-carousel-tabs .swiper-button-next {
        width: 32px;
        height: 32px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    .ect-carousel-tabs .swiper-button-prev {
        left: 5px; /* inside */
    }
    .ect-carousel-tabs .swiper-button-next {
        right: 5px; /* inside */
    }
}

.ect-carousel-tabs .swiper-container { position: relative; min-width: 0; }
.ect-carousel-tabs .swiper-button-prev,
.ect-carousel-tabs .swiper-button-next {
    box-sizing: border-box;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    max-width: 40px;
    padding: 0;
    margin-top: 0;
    color: #000 !important;
    background: #fff;
    border-radius: 50%;
    --swiper-navigation-size: 18px;
    --swiper-navigation-color: #000;
}
.ect-carousel-tabs .swiper-button-prev::after,
.ect-carousel-tabs .swiper-button-next::after {
    content: '';
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
}
.ect-carousel-tabs .swiper-button-prev::after { transform: rotate(135deg); }
.ect-carousel-tabs .swiper-button-prev svg,
.ect-carousel-tabs .swiper-button-next svg { display: none; }
.ect-carousel-tabs .ect-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #777;
    font-size: 14px;
}
@media (max-width: 768px) {
    .ect-carousel-tabs .swiper-button-prev,
    .ect-carousel-tabs .swiper-button-next {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
        max-width: 32px;
    }
}
