/* Insights Carousel Styles */

.insights-carousel-wrapper {
    width: calc(100% + 30px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: -15px;
}

/* Show carousel after it's loaded */
.insights-carousel-wrapper.insights-carousel-loaded {
    opacity: 1;
}

.insights-carousel-swiper {
    width: 100%;
    height: 100%;
    padding: 15px;
}

.insights-carousel-swiper-wrapper {
    display: flex;
    width: 100%;
    max-height: 600px;
}

.insights-carousel-slide {
    height: auto;
    display: flex;
}

/* Card Styles */
.insights-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;  
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    box-shadow: var(--shadow-1, 0 0 12px rgba(0, 0, 0, 0.09));
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}


/* Image Container */
.insights-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4 / 3;
}

.insights-card-image img {
    position: relative;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Department Pill */
.insights-department-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 12px 20px;
    color: #1E153D;
    font-size: 16px;
    font-weight: 400;
    border-radius: 99px;
   line-height: 100%;
   
}

.insights-department-pill.pill-property {
    background: #F68382;
}

.insights-department-pill.pill-business {
    background: #99C1DC;
}

.insights-department-pill.pill-personal {
    background: #B3CB92;
}

.insights-department-pill.pill-default {
    background: #E8EDF6;
    color: #1E153D;
}

/* Card Content */
.insights-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
}

h4.insights-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4, 24px);
    font-weight: var(--fw-h4, 700);
    line-height: var(--lh-h4, 1.10);
    letter-spacing: var(--ls-h4, 0.03em);
    color: var(--color-text, #1E153D);
    margin: 0;
}

.insights-date, .insights-excerpt {
    font-size: var(--fs-body-s, 14px);
    color: var(--color-text, #1E153D);
    margin: 0;
    font-weight: var(--fw-body-s, 300);
    line-height: var(--lh-body-s, 140%);
}

/* Arrow */
.insights-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    color: #1e153d;
}

.insights-arrow svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.insights-card:hover .insights-arrow svg {
    transform: translateX(4px);
}

/* Pagination */
.insights-carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.insights-carousel-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.insights-carousel-pagination .swiper-pagination-bullet-active {
    background: var(--color-teal);
    width: 23px;
    height: 6px;
    border-radius: 99px;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Empty State */
.insights-carousel-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .insights-carousel-wrapper {
      
    }

    .insights-card-content {
        padding: 20px;
    }


}

/* Mobile Styles */
@media (max-width: 767px) {
    .insights-carousel-wrapper {
      
    }

    .insights-card-content {
        padding: 22px;
    }


    .insights-arrow svg {
        width: 20px;
        height: 20px;
    }
}
