/* Mobile Testimonial Styles - Unique to avoid conflicts */

.homepage-testimonial-swiper .testimonial-mobile-card,
.homepage-mobile-testimonial-swiper .testimonial-mobile-card {
    box-sizing: border-box;
    height: clamp(330px, 21vw, 380px) !important;
    min-height: 0 !important;
    overflow: hidden;
}

.homepage-testimonial-swiper .testimonial-mobile-card > .d-flex,
.homepage-mobile-testimonial-swiper .testimonial-mobile-card > .d-flex {
    min-height: 0;
}

.homepage-testimonial-swiper .testimonial-mobile-content,
.homepage-mobile-testimonial-swiper .testimonial-mobile-content {
    min-height: 0;
}

.homepage-testimonial-swiper .testimonial-mobile-text,
.homepage-mobile-testimonial-swiper .testimonial-mobile-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.homepage-testimonial-mobile-badge {
    position: absolute;
    top: clamp(1rem, 4.8vw, 2.1rem);
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: clamp(0.62rem, 2.4vw, 1rem);
    width: min(82vw, 360px);
    min-height: clamp(4.9rem, 15.7vw, 5.7rem);
    padding: clamp(0.35rem, 1vw, 0.48rem) clamp(1.05rem, 4.3vw, 1.75rem) clamp(0.35rem, 1vw, 0.48rem) clamp(0.58rem, 2.1vw, 0.85rem);
    transform: translateX(-50%);
    color: #ffffff;
    background: #05275d;
    border: clamp(3px, 0.75vw, 4px) solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    filter: drop-shadow(0 6px 12px rgba(1, 33, 82, 0.22));
}

.homepage-testimonial-mobile-badge__icon {
    display: grid;
    flex: 0 0 auto;
    width: clamp(2.8rem, 8.2vw, 3.35rem);
    height: clamp(2.8rem, 8.2vw, 3.35rem);
    place-items: center;
    color: #f5a400;
    font-size: clamp(1.82rem, 5.2vw, 2.15rem);
    line-height: 1;
    background: #ffffff;
    border-radius: 50%;
}

.homepage-testimonial-mobile-badge__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #ffffff;
    font-size: clamp(1.15rem, 3.9vw, 1.5rem);
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
}

.homepage-testimonial-mobile-badge__copy strong {
    color: #f5a400;
    font-weight: 800;
}

.homepage-testimonial-desktop-shell {
    position: absolute;
    right: 0;
    bottom: 48px;
    left: 0;
    z-index: 1;
}

.homepage-testimonial-desktop-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 1.6vw, 1.35rem);
    width: clamp(430px, 32vw, 560px);
    min-height: clamp(6.35rem, 6.3vw, 7.5rem);
    margin: 0 auto clamp(16px, 1.25vw, 22px);
    padding: clamp(0.55rem, 0.75vw, 0.72rem) clamp(2rem, 2.6vw, 2.8rem) clamp(0.55rem, 0.75vw, 0.72rem) clamp(1rem, 1.4vw, 1.3rem);
    color: #ffffff;
    background: #05275d;
    border: 5px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    filter: drop-shadow(0 8px 16px rgba(1, 33, 82, 0.24));
}

.homepage-testimonial-desktop-badge__icon {
    display: grid;
    flex: 0 0 auto;
    width: clamp(3.9rem, 3.8vw, 4.7rem);
    height: clamp(3.9rem, 3.8vw, 4.7rem);
    place-items: center;
    color: #f5a400;
    font-size: clamp(2.4rem, 2.5vw, 3rem);
    line-height: 1;
    background: #ffffff;
    border-radius: 50%;
}

.homepage-testimonial-desktop-badge__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #ffffff;
    font-size: clamp(1.62rem, 1.75vw, 2.1rem);
    font-weight: 700;
    line-height: 1.04;
    white-space: nowrap;
}

.homepage-testimonial-desktop-badge__copy strong {
    color: #f5a400;
    font-weight: 800;
}

.homepage-testimonial-desktop-swiper {
    width: 100%;
    padding: 0;
}

@media (min-width: 768px) {
    .homepage-testimonial-desktop-shell {
        top: 0;
        bottom: 0;
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
        height: 100%;
        align-items: center;
    }

    .homepage-testimonial-desktop-badge {
        grid-row: 2;
        margin: 0 auto;
    }

    .homepage-testimonial-desktop-swiper {
        grid-row: 4;
        align-self: center;
    }
}

/* Mobile specific testimonial container styling */
@media screen and (max-width: 768px) {
    .testimonial-mobile-container {
        position: absolute !important;
        bottom: 1.25rem !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 1rem !important;
        margin: 0 !important;
    }

    .homepage-mobile-testimonial-swiper {
        left: 50% !important;
        right: auto !important;
        width: min(86vw, 360px) !important;
        padding: 0 !important;
        transform: translateX(-50%);
    }
    
    .testimonial-mobile-container .swiper-wrapper {
        align-items: center !important;
    }

    .testimonial-mobile-container .swiper-slide {
        display: flex !important;
        justify-content: center !important;
        height: auto !important;
    }
    
    /* Hide the blue intro slide on mobile completely */
    .testimonial-intro-slide {
        display: none !important;
    }
    
    /* Mobile testimonial card styling */
    .testimonial-mobile-card {
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        margin: 0 auto !important;
        padding: 1.5rem !important;
        width: min(86vw, 360px) !important;
        height: auto !important;
        min-height: 200px !important;
        opacity: 1 !important;
        backdrop-filter: blur(10px) !important;
    }

    .homepage-mobile-testimonial-swiper .testimonial-mobile-card {
        box-sizing: border-box;
        height: clamp(300px, 72vw, 360px) !important;
        min-height: 0 !important;
        overflow: hidden;
    }
    
    /* Mobile testimonial header */
    .testimonial-mobile-header {
        align-items: flex-start !important;
        margin-bottom: 1rem !important;
    }
    
    /* Mobile testimonial image */
    .testimonial-mobile-img {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
    
    /* Mobile testimonial info */
    .testimonial-mobile-info {
        flex: 1 !important;
        margin-left: 0 !important;
    }
    
    /* Mobile testimonial name */
    .testimonial-mobile-name {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #012152 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
    
    /* Mobile testimonial role */
    .testimonial-mobile-role {
        font-size: 14px !important;
        color: #64748b !important;
        margin: 0.25rem 0 0 0 !important;
        line-height: 1.2 !important;
    }
    
    /* Mobile testimonial content */
    .testimonial-mobile-content {
        width: 100% !important;
    }
    
    /* Mobile testimonial text */
    .testimonial-mobile-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #374151 !important;
        margin: 0 0 1rem 0 !important;
    }

    .homepage-mobile-testimonial-swiper .testimonial-mobile-text {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
    }
    
    /* Mobile testimonial stars */
    .testimonial-mobile-stars {
        color: #fbbf24 !important;
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    /* Mobile pagination styling */
    .testimonial-mobile-pagination {
        position: static !important;
        margin-top: 1rem !important;
        text-align: center !important;
    }
    
    .testimonial-mobile-pagination .swiper-pagination-bullet {
        width: 30px !important;
        height: 4px !important;
        border-radius: 2px !important;
        background-color: rgba(255, 255, 255, 0.5) !important;
        margin: 0 4px !important;
        opacity: 1 !important;
    }
    
    .testimonial-mobile-pagination .swiper-pagination-bullet-active {
        background-color: #377FFE !important;
    }
}

/* Smaller mobile devices */
@media screen and (max-width: 480px) {
    .testimonial-mobile-container {
        padding: 0.75rem !important;
    }

    .homepage-mobile-testimonial-swiper {
        width: min(86vw, 340px) !important;
        padding: 0 !important;
    }
    
    .testimonial-mobile-card {
        padding: 1.25rem !important;
        width: min(86vw, 340px) !important;
        min-height: 180px !important;
    }

    .homepage-mobile-testimonial-swiper .testimonial-mobile-card {
        height: clamp(280px, 76vw, 330px) !important;
        min-height: 0 !important;
    }
    
    .testimonial-mobile-img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .testimonial-mobile-name {
        font-size: 15px !important;
    }
    
    .testimonial-mobile-role {
        font-size: 13px !important;
    }
    
    .testimonial-mobile-text {
        font-size: 13px !important;
    }

    .homepage-mobile-testimonial-swiper .testimonial-mobile-text {
        -webkit-line-clamp: 7;
    }
    
    .testimonial-mobile-stars {
        font-size: 14px !important;
    }
}

/* Very small mobile devices */
@media screen and (max-width: 375px) {
    .testimonial-mobile-container {
        padding: 0.5rem !important;
    }

    .homepage-mobile-testimonial-swiper {
        padding: 0 !important;
    }
    
    .testimonial-mobile-card {
        padding: 1rem !important;
        min-height: 160px !important;
    }

    .homepage-mobile-testimonial-swiper .testimonial-mobile-card {
        height: 280px !important;
        min-height: 0 !important;
    }
    
    .testimonial-mobile-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .testimonial-mobile-name {
        font-size: 14px !important;
    }
    
    .testimonial-mobile-role {
        font-size: 12px !important;
    }
    
    .testimonial-mobile-text {
        font-size: 12px !important;
    }
}
