/* testimonial.css - Isolated styles for testimonial section */
.testimonial-section {
    background-color: #e8e8e8;
    padding: 40px 30px;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

.testimonial-headline {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    color: #333333;
    margin-bottom: 40px;
    font-weight: 600;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    box-sizing: border-box;
}

.testimonial-box {
    background-color: #0092db;
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    cursor: pointer;
    box-sizing: border-box;
}

.testimonial-box:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-style: italic;
    margin: 0;
}

.testimonial-read-more {
    color: white;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    opacity: 0.8;
    margin: 10px 0 0 0;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
}

.testimonial-star {
    color: white;
    font-size: 18px;
}

.testimonial-pointer {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background-color: #0092db;
}

.testimonial-author {
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.testimonial-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
}

.testimonial-link {
    display: inline-block;
    padding: 16px 44px;
    background-color: transparent;
    color: #333333;
    border: 2px solid #333333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 220px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.testimonial-link:hover {
    background-color: transparent;
    border-color: #0092db;
    color: #0092db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Popup Overlay */
.testimonial-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.testimonial-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-popup-box {
    background-color: #0092db;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.testimonial-popup-overlay.active .testimonial-popup-box {
    transform: scale(1);
}

.testimonial-popup-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-popup-star {
    color: white;
    font-size: 24px;
}

.testimonial-popup-text {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    text-align: center;
    margin: 0 0 20px 0;
}

.testimonial-popup-author {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    margin: 10px 0 0 0;
}

.testimonial-close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.testimonial-close-popup:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-item {
        max-width: 100%;
        width: 100%;
    }
    
    .testimonial-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .testimonial-link {
        width: 240px;
    }
    
    .testimonial-popup-box {
        padding: 30px 20px;
        width: 95%;
    }
}