/* ===================================
   TESTIMONIALS STYLES
   =================================== */

.elementor-testimonials-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===================================
   TABS STYLES
   =================================== */

.testimonials-tabs-container {
    margin-bottom: 80px;
}

.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: none !important;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #1D1C1C;
    font-size: 20px;
    font-weight: 400;
    padding: 15px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-testimonial-content-title {
    padding-top: 60px;
}

.nav-tabs .nav-link:hover {
    color: #F79C53;
    border-color: #ddd;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: transparent;
}

/* ===================================
   TESTIMONIALS GRID
   =================================== */

.testimonials-grid,
.video-testimonials-grid {
    display: grid;
    margin-bottom: 40px;
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-column-gap: 40px;
    grid-row-gap: 50px;
    margin-top: 60px;
}

.testimonial-item {
    background: #f2f2f2;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item.video-testimonial-item {
    border-radius: 4px;
}
.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    padding: 25px;
}

.testimonial-image {
    text-align: center;
    margin-bottom: 20px;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.testimonial-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.testimonial-designation {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
    font-style: italic;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating .star {
    font-size: 18px;
    color: #ddd;
}

.testimonial-rating .star.filled {
    color: #ffd700;
}

.testimonial-rating .star.half {
    color: #ffd700;
    position: relative;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.brand-logo {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.brand-logo img {
    max-width: 120px;
    height: auto;
}

/* ===================================
   VIDEO TESTIMONIALS
   =================================== */

.video-testimonial-item {
    cursor: pointer;
    position: relative;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 10px;
}

.video-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-testimonial-item:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: transparent;
}

.video-testimonial-title {
    padding: 0px;
}

.video-testimonial-title h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.video-testimonial-name {
    color: #323F7C;
    font-size: 24px;
    font-weight: 700;
    padding-top: 20px;
    padding-bottom: 10px;
}

.video-testimonial-designation {
    color: #606060;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ===================================
   GOOD FIRMS REVIEWS SECTION
   =================================== */

.good-firms-reviews-section {
    margin-top: 0px;
    padding-top: 0px;
    border-top: none;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #1D1C1C;
}

/* ===================================
   LOAD MORE BUTTON
   =================================== */

.load-more-container {
    margin-top: 40px;
    text-align: center;
}

.btn-load-more {
    background: transparent !important;
    border: 1px solid #CCD3DE !important;
    border-radius: 4px;
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #323F7C;
    height: 55px;
}

.video-btn svg {
    width: 20px;
    fill: #323F7C;
}
.video-btn:hover svg {
    fill: #fff;
}

.btn-load-more:hover {
    background: #323F7C !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
}

/* ===================================
   VIDEO MODAL
   =================================== */

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-header.modal-header-end {
    display: flex;
    justify-content: flex-end;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 0;
}

.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.ratio>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 768px) {
    .nav-tabs .nav-link {
        font-size: 16px;
        padding: 12px 20px;
    }

    .testimonials-grid,
    .video-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .elementor-testimonials-wrapper {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .nav-tabs {
        flex-direction: column;
        gap: 0;
    }

    .nav-tabs .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   NO TESTIMONIALS MESSAGE
   =================================== */

.no-testimonials {
    text-align: center;
    padding: 40px 20px;
    color: #777;
    font-size: 16px;
}



.rating-testimonials-heading {
    text-align: center;
    font-size: 24px;
    color: #323F7C;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    gap: 10px;
    line-height: normal;
    flex-wrap: wrap;
}


.rating-testimonials {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-testimonials-number {
    width: 164px;
    height: 164px;
    border-radius: 100%;
    padding: 0px;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 500;
    background-color: #F3F3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1D1C1C;
    flex-direction: column;
    line-height: 1;
}

.rating-testimonials-number span {
    font-size: 53px;
    font-weight: 700;
    line-height: normal;
}

.rating-testimonials-bar {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    min-width: 290px;
}

.rating-testimonials-bar .rating-testimonials-bar-inner {
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    white-space: nowrap;
    color: #1D1C1C;
    font-size: 18px;
    font-weight: 500;
}

.rating-testimonials-bar .rating-testimonials-bar-inner span {
    width: calc(100% - 60px);
    height: 6px;
    border-radius: 5px;
    background-color: #D9D9D9;
}


.rating-testimonials-star {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-width: 290px;
    align-items: center;
    color: #1D1C1C;
    font-size: 34px;
    font-weight: 700;
    line-height: normal;
    gap: 15px;
}

.rating-testimonials-percentage {
    display: flex;
    justify-content: center;
    min-width: 290px;
    align-items: center;
    flex-direction: column;
}

.rating-testimonials-percentage span {
    font-size: 53px;
    font-weight: 700;
}

.rating-testimonials-percentage div {
    display: block;
    text-align: center;
    color: #1D1C1C;
    font-size: 18px;
    font-weight: 500;
}

.rating-testimonials-number-outer {
    min-width: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-testimonials-percentage-inner {
    max-width: 170px;
    line-height: normal;
}

.good-firms-reviews-section h2.section-title {
    margin-bottom: 15px;
}

.testimonial-vt-digital .elementor-testimonials-wrapper {
    max-width: 100%;
    padding: 0;
}

.testimonial-vt-digital .nav-tabs {
    display: flex;
    justify-content: center;
    margin: 0;
}

.testimonial-vt-digital .nav-tabs button.active {
    color: #fe8801;
    border: none;
    border-bottom: 2px solid #fe8801 !important;
}

.testimonial-vt-digital .nav-tabs button:hover {
    border: none;
}

.rating-testimonials-blue {
    color: #3A7AF3;
}

.rating-testimonials-orange {
    color: #F79C53;
}

.rating-testimonials-blue-bg {
    background-color: #3A7AF3;
}

.rating-testimonials-orange-bg {
    background-color: #F79C53;
}

.rating-testimonials-bar .rating-testimonials-bar-inner span.rating-testimonials-blue-bg {
    background-color: #3A7AF3;
}

.rating-testimonials-bar .rating-testimonials-bar-inner span.rating-testimonials-orange-bg {
    background-color: #F79C53;
}

#videoModal button.btn-close {
    padding: 0 !important;
    margin: 0 !important;
}
#videoModal button.btn-close:hover {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 1 !important;
}

/* ===================================
   VIDEO POSTER STYLES
   =================================== */

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    border-radius: 8px;
}

.video-poster:hover .poster-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button-large {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

.play-button-large:hover {
    transform: scale(1.1);
}

.play-button-large svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Ensure modal body has proper padding around video content */
#videoModal .modal-body {
    padding: 10px;
    overflow: hidden;
}

/* Ensure ratio container properly contains content with padding */
#videoModal .ratio {
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
}

/* Native video player: fill container, iOS/Android friendly */
#videoModal #video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
}

/* Add padding to video poster container */
#videoModal .video-poster {
    margin: 0;
}

/* ===================================
   RESPONSIVE VIDEO MODAL STYLES
   =================================== */

@media (max-width: 768px) {
    #videoModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #videoModal .modal-body {
        padding: 15px;
    }
    
    .play-button-large svg {
        width: 60px;
        height: 60px;
    }
    
    .video-poster {
        border-radius: 6px;
    }
    
    .poster-image {
        border-radius: 6px;
    }
    
    .poster-overlay {
        border-radius: 6px;
    }
    
    #videoModal .ratio {
        border-radius: 6px;
    }
    
    #videoModal #video-player {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    #videoModal .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    #videoModal .modal-body {
        padding: 10px;
    }
    
    .play-button-large svg {
        width: 50px;
        height: 50px;
    }
    
    .video-poster {
        border-radius: 4px;
    }
    
    .poster-image {
        border-radius: 4px;
    }
    
    .poster-overlay {
        border-radius: 4px;
    }
    
    #videoModal .ratio {
        border-radius: 4px;
    }
    
    #videoModal #video-player {
        border-radius: 4px;
    }
}

#good-firms-reviews-container .heading.no-ellipsis,
#good-firms-reviews-container .paragraph-content.no-ellipsis,
#client-reviews-container .heading.no-ellipsis,
#client-reviews-container .paragraph-content.no-ellipsis {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

#good-firms-reviews-container .testimonial-box,
#client-reviews-container .testimonial-box {
    height: 100%;
}
.testimonial-item.video-testimonial-item {
    background-color: #fff;
}