.section-compare-providers-reviews {
    background-color: #F3EEEB;
    padding-bottom: 50px;
}

.section-compare-providers-reviews .section-compare-providers__head__header {
    color: #414141;
    font-size: 2.25vw;
}

.section-compare-providers-reviews .section-compare-providers__head__subheader {
    color: #08B3BE;
}

.section-compare-providers-reviews .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.section-compare-providers-reviews .section-compare-providers__head {
    text-align: center;
}

.section-compare-providers-reviews .card {
    background: white;
    padding: 40px 0;
}

.section-compare-providers-reviews .filter-section {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-compare-providers-reviews .filter-label {
    color: #444;
    font-size: 1rem;
    margin-bottom: 25px;
    display: block;
}

.section-compare-providers-reviews .swiper-container-relative {
    position: relative;
}

.section-compare-providers-reviews .logo-swiper {
    width: 100%;
    padding: 20px;
}

.section-compare-providers-reviews .logo-swiper .swiper-wrapper {
    align-items: center;
}

.section-compare-providers-reviews .source-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-compare-providers-reviews .source-item img {
    opacity: 0.35;
    filter: grayscale(100%);
}

.section-compare-providers-reviews .source-item img {
    max-height: 35px;
    width: auto;
    object-fit: contain;
}

.section-compare-providers-reviews .logo-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-compare-providers-reviews .logo-swiper .swiper-slide-active img {
    transform: scale(1.6);
    filter: grayscale(0%);
    opacity: 1;
    display: block;
    margin: 0 auto;
}

.section-compare-providers-reviews .source-item img {
    transition: transform 0.3s ease, margin 0.3s ease, filter 0.3s ease;
}

.section-compare-providers-reviews .active-arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #08B3BE;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.section-compare-providers-reviews .table-content-wrapper {
    padding: 0 40px;
    animation: fadeIn 0.4s ease-out;
}

.section-compare-providers-reviews .is-hidden {
    display: none !important;
}

.section-compare-providers-reviews .table-title {
    color: #08B3BE;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
}

.section-compare-providers-reviews .table-wrapper {
    display: none;
}

.section-compare-providers-reviews table {
    width: 100%;
    border-collapse: collapse;
}

.section-compare-providers-reviews th {
    background-color: #08B3BE;
    color: white;
    padding: 5px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-compare-providers-reviews td {
    padding: 16px;
    vertical-align: middle;
}

.section-compare-providers-reviews .provider-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-compare-providers-reviews .provider-name {
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
    white-space: nowrap;
}

.section-compare-providers-reviews tr:nth-child(2n) {
    background-color: #fafafa;
}

.section-compare-providers-reviews .review-link {
    color: #08B3BE;
    font-size: 0.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-weight: 600;
    border-bottom: 1px dotted;
    letter-spacing: 0.5px;
}

.section-compare-providers-reviews .stat-val,
.section-compare-providers-reviews .rating-val {
    font-weight: 600;
    color: #676767;
    font-size: 1.1rem;
    text-align: center;
}

.section-compare-providers-reviews .highlighted {
    color: #08B3BE;
}

.section-compare-providers-reviews .mobile-provider-swiper {
    width: 100%;
    overflow: visible;
    padding: 20px 0 40px 0 !important;
}

.section-compare-providers-reviews .provider-cell img, .section-compare-providers-reviews .mobile-card img {
    max-height: 40px;
}

.section-compare-providers-reviews .mobile-card {
    background: white;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; 
    margin: 0;
}

.section-compare-providers-reviews .mobile-provider-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.section-compare-providers-reviews .mobile-card .provider-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0;
}

.section-compare-providers-reviews .mobile-card .provider-logo-large {
    margin: 0 auto 1.5rem auto;
    display: block;
    object-fit: contain;
}

.section-compare-providers-reviews .mobile-card .rating-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.section-compare-providers-reviews .mobile-card .rating-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.5rem 0;
}

.section-compare-providers-reviews .mobile-card .reviews-count {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0;
    margin-top: 0;
}

.section-compare-providers-reviews .mobile-card .rating-number, .section-compare-providers-reviews .mobile-card .reviews-count {
    color: #6E6E6E;
}


.section-compare-providers-reviews .mobile-card .rating-number.highlighted, .section-compare-providers-reviews .mobile-card .reviews-count.highlighted {
    color: #08B3BE;
}

.section-compare-providers-reviews .mobile-card .see-reviews-link-mobile {
    color: #08B3BE;
    text-decoration: underline;
    text-decoration-style: dotted;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.section-compare-providers-reviews .swiper-pagination {
    bottom: 0 !important;
}

.section-compare-providers-reviews .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 1;
}

.section-compare-providers-reviews .swiper-pagination-bullet-active {
    background: #08B3BE !important;
}

.section-compare-providers-reviews .footer-note {
    margin-top: 25px;
    color: #676767;
    font-size: 0.85rem;
    font-style: italic;
    text-align: left;
    padding: 0 40px;
    font-weight: 500;
}

.section-compare-providers-reviews .logo-text-box {
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .section-compare-providers-reviews .table-wrapper {
        display: block;
    }

    .section-compare-providers-reviews .mobile-card-wrapper {
        display: none;
    }

    .section-compare-providers-reviews .section-compare-providers__head__subheader{
        width: 85%;
        line-height: 1.5em;
    }

    .section-compare-providers-reviews .sort-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1;
        transition: opacity 0.2s ease;
    }

    .section-compare-providers-reviews .sort-icon svg {
        display: block;
        margin: -1px 0;
        color: rgba(255, 255, 255, 0.7);
        height: 20px;
        width: 20px;
        transition: all 0.2s ease-in-out;
    }

    .section-compare-providers-reviews th.sortable {
          text-align: center;  
    }

    .section-compare-providers-reviews th[data-dir="asc"] .icon-up {
        color: #ffffff;
        width: 20px;
        height: 20px;
    }
    
    .section-compare-providers-reviews th[data-dir="desc"] .icon-down {
        color: #ffffff;
        width: 20px;
        height: 20px;
    }

    .section-compare-providers-reviews .header-sort-wrapper {
        display: inline-flex;
        align-items: center;
        justify-content: center; 
        gap: 8px;
        vertical-align: middle;
    } 

    .section-compare-providers-reviews .sort-icon svg:not(.active) {
        color: rgba(255, 255, 255, 0.4);
    }

    .section-compare-providers-reviews  .sort-icon svg:not(.active):hover {
        opacity: 1;
        color: #fff;
    }
}

@media (max-width: 767px) {
    .section-compare-providers-reviews .section-compare-providers__head__header {
        font-size: 1.75rem;
    }

    .section-compare-providers-reviews .section-compare-providers__head {
        padding: 2rem 2rem 1rem 2rem;
        margin: 0;
    }

    .section-compare-providers-reviews .section-compare-providers__head__subheader {
        padding-bottom: 0;
        font-size: 16px;
        font-weight: 400;
    }

    .section-compare-providers-reviews .filter-label {
        padding: 0 1rem;
    }

    .section-compare-providers-reviews .table-content-wrapper {
        padding: 0;
        animation: none;
    }

    .section-compare-providers-reviews .filter-section {
        background: white;
        padding-top: 2rem;
        margin-bottom: 0;
    }

    .section-compare-providers-reviews .card {
        margin-top: 0;
        box-shadow: none;
        border-radius: 0;
        border-top: 1px solid #eee;
        background: transparent;
        padding-top: 20px;
    }

    .section-compare-providers-reviews {
        padding-bottom: 2rem;
    }

    .section-compare-providers-reviews .table-title {
        font-size: 1.5rem;
        background: white;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .section-compare-providers-reviews .footer-note {
        margin-top: 2rem;
    }

}