/* Customer Review Slider Styles */
.customer-review-section {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    border: 0.5px solid #CFCFCF;
}

.customer-review-header {
    text-align: center;
    padding: 12px 0;
}

.customer-review-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.customer-review-container {
    position: relative;
}

.customer-review-swiper {
    position: relative;
    padding: 0 12px 12px;
    height: 382px;
}

.customer-review-slide {
    text-align: center;
}

.customer-review-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    height: 100%;
    width: 100%;
    object-fit: cover;
    padding: 0;
    border: 1px solid #D0D0D0;
}

/* Navigation Arrows Important needed to override the swiper default styles */
.customer-review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #2E79BE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.customer-review-nav:hover {
    background: #2E79BE;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.customer-review-nav:hover::after {
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
}

.customer-review-prev {
    left: 5px;
}

.customer-review-next {
    right: 5px;
}

/* Override Swiper's default navigation styles */
.customer-review-nav::after {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid #2E79BE;
    border-right: 2px solid #2E79BE;
    background: none;
    margin: 0;
}

.customer-review-prev::after {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.customer-review-next::after {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* Pagination Dots */
.customer-review-pagination {
    position: absolute;
    bottom: -28px;
    left: 0;
    right: 0;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.5;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #007bff;
    opacity: 1;
    transform: scale(1.2);
}

/* Expert Insight Container Styles for all blogs*/
.expert-insight-container {
    margin-top: 16px;
}

.expert-insight-section {
    padding: 0 24px 24px;
    border-radius: 8px;
    border: 1px solid #FFE2DA;
    background: #FFF6F4;
    border-left: 4px solid #FDC5B5;
}

.expert-name-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: space-between;
}

.expert-insight-linkedin-container img {
    width: 21px;
    height: 32px;
    padding: 0;
}

.expert-name-container-inner {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #FFF6F4 0%, #FFD9D1 100%);
    gap: 12px;
    position: relative;
}

.expert-name-container img {
    width: 54px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.expert-name{
    color: rgba(0, 0, 0, 0.87);
    font-family: Roboto !important;
    font-size: 16px !important;
    font-style: italic;
    font-weight: 600 !important;
    line-height: 150%; /* 21px */
    margin: 0 !important;
}

.expert-name-separator {
    color: rgba(0, 0, 0, 0.56);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

.expert-name-subtitle {
    color: rgba(0, 0, 0, 0.56);
    font-family: Roboto;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 150%; /* 18px */
    margin: 0
}

.expert-advice {
    margin: 0;
}

.div-expert-insight-heading h3{
    color: rgba(0, 0, 0, 0.87);
    font-family: Roboto;
    /* font-size: 22px; */
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding: 0;
    margin: 16px 0 0;
}

.expert-insight-line {
    width: 100%;
    height: 1px;
    background-color: #EE9C84;
    margin: 16px 0 0;
}

/* Loading State */
.customer-review-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}


.expert-insight-linkedin-container img {
    width: 30px;
    height: 40px;
    border-radius: unset;
} 

.customer-review-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.expert-insight-container-regular {
    margin: 16px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Responsive Design */
@media (max-width: 768px) {
    .customer-review-section {
        margin-top: 15px;
        border-radius: 6px;
    }

    .customer-review-title {
        padding: 0;
        margin: 0;
    }

    .customer-review-swiper {
        padding: 15px;
    }
    
    .customer-review-nav {
        width: 35px;
        height: 35px;
    }
    
    .customer-review-prev {
        left: 5px;
    }
    
    .customer-review-next {
        right: 5px;
    }
    
    .customer-review-pagination {
        padding: 10px 0;
        bottom: -34px;
    }
    
    .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }

    .mobile-content-banner + .customer-review-container {
        margin: 24px 0;
    }
    .expert-name {
        display: block;
    }
    .expert-name-separator,
    .expert-name-dash,
    .expert-founder {
        display: none;
    }

    .expert-name-container-inner {
        flex-direction: column;
        align-items: baseline;
        gap: 2px;
        border-radius: 0 0 0px 8px;
    }

    .div-expert-insight-heading h3 {
        font-size: 20px !important;
    }

    .expert-name-subtitle {
        font-size: 11px;
        padding-right: 4px;
    }

    .expert-advice {
        margin-bottom: 16px;
    }

    .expert-insight-linkedin-container img {
        width: 24px;
        height: 35px;
    }

    .expert-insight-linkedin-container {
        position: absolute;
        right: 20px;
        top: 7px;
    }

    .expert-name-container {
        margin-bottom: 16px;
    }
    
    .expert-insight-section {
        padding: 0;
    }

    .expert-name-container {
        padding-left: 16px;
    }

    .expert-advice {
        padding: 0 16px;
    }

    .expert-insight-container-regular {
        margin: 16px;
    }
}

