﻿.testimonial-section {
    background: #082f49; /* sky-950 background */
    color: #ffffff !important; /* white text */
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ffffff; /* white text */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.8px;
    line-height: 1.1;
    position: relative;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

    /*.testimonial-title::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: #38bdf8;*/ /* sky-400 */
        /*border-radius: 2px;
        box-shadow: none;
    }*/

.testimonial-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9); /* light white */
    margin-bottom: 0;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Swiper Container */
.testimonial-swiper {
    position: relative;
    padding: 0 60px 80px 60px;
}

.testimonial-card {
    background: #0ea5e9 !important; /* sky-400 background */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    position: relative;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 20px 0;
}

    .testimonial-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
        border-radius: 20px;
    }

    .testimonial-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.5) !important;
        background: #0ea5e9 !important; /* darker sky-500 on hover */
    }

        .testimonial-card:hover::before {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
        }

.quote-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5) !important; /* white with opacity */
    z-index: 2;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    margin-bottom: 30px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff !important; /* white text for better contrast on blue background */
    margin-bottom: 0;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

    .testimonial-text::before {
        content: '"';
        position: absolute;
        top: -10px;
        left: -15px;
        font-size: 3rem;
        color: rgba(255, 255, 255, 0.4) !important; /* white with opacity */
        font-family: serif;
        line-height: 1;
    }

    .testimonial-text::after {
        content: '"';
        position: absolute;
        bottom: -20px;
        right: 0;
        font-size: 3rem;
        color: rgba(255, 255, 255, 0.4) !important; /* white with opacity */
        font-family: serif;
        line-height: 1;
    }

.testimonial-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* white border */
    padding-top: 25px;
}


.testimonial-author {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff !important; /* white text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}
.testimonial-rating {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.stars {
    display: flex;
    margin-right: 10px;
}

    .stars i {
        color: #ffd700;
        font-size: 1.1rem;
        margin-right: 3px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

.rating-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8) !important; /* white with opacity */
    font-weight: 500;
}

/* Custom Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #082f49 !important; /* dark blue */
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #082f49 !important;
        transform: scale(1.1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px !important;
        font-weight: 700 !important;
    }

.swiper-button-next {
    right: 10px !important;
}

.swiper-button-prev {
    left: 10px !important;
}

/* Custom Swiper Pagination */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background: #ffffff !important; /* white */
    transform: scale(1.3) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Progress Bar */
.swiper-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

    .swiper-progress-bar::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
        transition: width 0.3s ease;
        width: 0%;
    }

/* Testimonial Actions */
.testimonial-actions {
    text-align: center;
    margin-top: 40px;
}

.testimonial-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-testimonial {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

    .btn-testimonial::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn-testimonial:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }

        .btn-testimonial:hover::before {
            left: 100%;
        }

.btn-facebook {
    background: linear-gradient(135deg, #4267B2, #365899);
    border-color: #4267B2;
}

    .btn-facebook:hover {
        background: linear-gradient(135deg, #365899, #2d4373);
        border-color: #365899;
        color: #ffffff;
    }

.btn-google {
    background: linear-gradient(135deg, #db4437, #c23321);
    border-color: #db4437;
}

    .btn-google:hover {
        background: linear-gradient(135deg, #c23321, #a52714);
        border-color: #c23321;
        color: #ffffff;
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonial-swiper {
        padding: 0 40px 80px 40px;
    }

    .testimonial-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 80px 0;
    }

    .testimonial-container {
        padding: 0 15px;
    }

    .testimonial-swiper {
        padding: 0 20px 60px 20px;
    }

    .testimonial-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .testimonial-subtitle {
        font-size: 1.1rem;
    }

    .testimonial-header {
        margin-bottom: 50px;
    }

    .testimonial-card {
        padding: 30px 25px;
        height: 400px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-testimonial {
        width: 100%;
        max-width: 340px;
    }

    .testimonial-actions {
        margin-top: 40px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }

        .swiper-button-next::after,
        .swiper-button-prev::after {
            font-size: 14px !important;
        }
}

@media (max-width: 576px) {
    .testimonial-title {
        font-size: 2rem;
    }

    .testimonial-subtitle {
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 25px 20px;
        height: 380px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .testimonial-author {
        font-size: 1.1rem;
    }

    .btn-testimonial {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-slide-active .testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Auto-play progress indicator */
.testimonial-swiper .swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.2) !important;
}

    .testimonial-swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
        background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8)) !important;
    }
