/* assets/css/testimonialCarousel.css */

.testimonial-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px 70px 20px;
}

.testimonial-subtitle {
    color: #6B7A90;
    font-size: 0.95rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #22324A;
}

.testimonial-carousel-container {
    display: flex;
    align-items: center;
    position: relative;
}

.testimonial-carousel-btn {
    background: none;
    border: none;
    color: #163A5F;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 16px;
    transition: color 0.2s;
    z-index: 2;
}

.testimonial-carousel-btn:disabled {
    color: #ccc;
    cursor: default;
}

.testimonial-carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    min-height: 180px;
    scroll-behavior: smooth;
    position: relative;
}

.testimonial-carousel.active {
    cursor: grabbing;
}

.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    background: #F5F7FA;
    border-radius: 8px;
    margin: 0 12px;
    padding: 24px 20px 16px 20px;
    box-shadow: 0 2px 8px rgba(34,50,74,0.04);
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card.active {
    display: flex;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    margin-top: 18px;
    justify-content: space-between;
}

.testimonial-logo {
    font-weight: bold;
    color: #163A5F;
    font-size: 1.1rem;
}

.testimonial-label {
    background: #F5F7FA;
    color: #6B7A90;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 4px 12px;
    border: 1px solid #E5E8ED;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.testimonial-dots .dot {
    width: 14px;
    height: 6px;
    border-radius: 3px;
    background: #E5E8ED;
    margin: 0 4px;
    transition: background 0.2s;
    display: inline-block;
    cursor: pointer;
}

.testimonial-dots .dot.active {
    background: #163A5F;
    width: 24px;
}

/* Additional styles from employer.css */
.testimonial-carousel .solutions-wrapper {
    position: relative;
    padding: 50px;
}

.testimonial-carousel .solutions-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 79.2%;
    height: 92%;
    background-color: rgba(252, 200, 120, 0.85);
    transform: translateY(-50%);
}

.testimonial-carousel .solution-card {
    border: 1px solid #f9f5ea;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #e8eff8;
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .solution-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #0F3664;
    color: white;
    font-size: 0.7rem;
    padding: 5px 10px;
    font-weight: 600;
    border-radius: 30px;
}

.testimonial-carousel .solution-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.testimonial-carousel .solution-icon span {
    color: #F9A826;
    font-size: 40px;
}

.testimonial-carousel .solution-card h3 {
    color: #0F3664;
    margin-bottom: 10px;
    text-align: center;
}

.testimonial-carousel .solution-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Adjust existing styles */
.testimonial-carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
    scroll-behavior: smooth;
    position: relative;
}

.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    margin: 0 12px;
    display: none;
}

.testimonial-card.active {
    display: flex;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    margin-top: 18px;
    justify-content: space-between;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 0 10px 40px 10px;
        margin: 30px auto;
    }

    .testimonial-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .testimonial-subtitle {
        text-align: center;
    }

    /* Adjust the container height for mobile */
    .testimonial-carousel {
        min-height: 480px;
    }

    /* Maintain the positioning method but adjust dimensions */
    .testimonial-carousel .solutions-wrapper {
        padding: 20px;
    }

    .testimonial-carousel .solutions-wrapper::before {
        width: 90%;
        height: 95%;
        right: 5%;
    }

    /* Make cards more readable on mobile */
    .testimonial-carousel .solution-card {
        min-height: 380px;
        padding: 25px 15px;
    }

    .testimonial-carousel .solution-card p {
        font-size: 0.85rem;
    }

    /* Adjust button positioning for better mobile experience */
    .testimonial-carousel-btn {
        font-size: 1.5rem;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Update button positions for mobile */
    .testimonial-carousel-container .testimonial-carousel-btn.prev {
        left: 10px !important;
        top: 100%;
    }

    .testimonial-carousel-container .testimonial-carousel-btn.next {
        right: 10px !important;
        top: 100%;
    }

    .testimonial-carousel {
        min-height: 500px; /* Taller for smaller screens */
    }

    .testimonial-carousel .solution-card {
        min-height: 420px;
    }

    /* Even better tap targets on very small screens */
    .testimonial-carousel-btn {
        width: 40px;
        height: 40px;
    }

    /* Add touch hint for mobile users */
    .testimonial-carousel::after {
        content: "";
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 4px;
        background-color: rgba(22, 58, 95, 0.2);
        border-radius: 2px;
    }
}

@media (max-width: 500px) {
    .testimonial-carousel {
        min-height: 350px;
    }
    .testimonial-card,
    .testimonial-carousel .solution-card {
        min-width: 220px;
        max-width: 95vw;
        padding: 15px 5px;
    }
    .testimonial-carousel .solutions-wrapper {
        padding: 8px;
    }
    .testimonial-title {
        font-size: 1.1rem;
    }
    .testimonial-carousel-btn {
        font-size: 1.2rem;
        width: 28px;
        height: 28px;
    }
}