.testimonial-main {
    max-width: 1000px;
    margin: auto;
    position: relative;
    overflow: hidden;
    text-align: center;
}

h2 {
    font-size: 35px;
    color: #238ea1;
    margin-bottom: 10px;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    font-weight: bold;

}

.subheading {
    color: #555;
    margin-bottom: 50px;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;

}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    position: relative;
    margin-top: 100px;
    align-items: flex-start;
}

.testimonial-container {
    width: 30%;
    min-width: 300px;
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.testimonial {
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 70px 25px 25px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #238ea1;

}

.testimonial-container.active .testimonial {
    background: #238ea1;
    color: white;
    transform: translateY(-45px);
}

.testimonial img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #238ea1;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    margin: 15px 0 5px;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;

}

.user-role {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;

}

.stars {
    color: #f4b400;
    font-size: 25px;
    margin-bottom: 15px;
}

.testimonial p {
    font-size: 14px;
    line-height: 1.6;
    word-spacing: 1px;
    color: #555;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;

}

.active .testimonial p,
.active .testimonial .user-role,
.active .testimonial .user-name {
    color: white !important;
}

.arrows {
    position: absolute;
    top: 80%;
    left: 10%;
    transform: translateY(100%);
    width: 80%;
    display: flex;
    justify-content: space-between;
    padding: 0 0px;

}

.arrow {
    background: #1E8489;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-button {
    background: #238ea1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    margin-top: -40px;
    cursor: pointer;
    display: none;
    position: relative;
    z-index: 1;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;

}

.testimonial-container.active .review-button {
    display: inline-block;
}

@media (max-width: 1400px){
    .arrows {
        position: absolute;
        top: 515px;
        left: 10%;
        transform: translateY(100%);
        width: 80%;
        display: flex;
        justify-content: space-between;
        padding: 0 0px;

    }
}

@media (max-width: 1024px) {
    .testimonial-container {
        width: 45%;
        min-width: 280px;
        margin: 0 10px;

    }
}

@media (max-width: 768px) {
    body {
        padding: 30px 15px;
        overflow: auto;
    }

    .container {
        max-width: 100%;
    }

    h2 {
        font-size: 28px;
    }

    .subheading {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .testimonial-wrapper {
        margin-top: 80px;
    }

    .testimonial-container {
        width: 80%;
        min-width: 550px;
        margin: 0 auto;
        margin-left: 25px;
    }

    .testimonial {
        padding: 60px 20px 20px;
        border-radius: 20px;
    }

    .testimonial-container.active .testimonial {
        transform: translateY(0);
    }

    .testimonial img {
        width: 80px;
        height: 80px;
    }

    .user-name {
        font-size: 16px;
    }

    .user-role {
        font-size: 12px;
    }

    .stars {
        font-size: 20px;
    }

    .testimonial p {
        font-size: 12px;
        line-height: 1.5;
    }

    .arrows {
        top: 270%;
        transform: translateY(-50%);
        padding: 0 10px;
    }

    .arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .review-button {
        padding: 8px 16px;
        font-size: 14px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        width: 90%;
        min-width: 70%;
        align-items: center;
        margin-left: 25px;
    }

    h2 {
        font-size: 24px;
    }

    .subheading {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .testimonial {
        padding: 50px 15px 15px;
    }

    .arrows {
        width: 100%;
        left:0;
        top: 900px;
    }

}
/* General Popup Styles */
.review-popup {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    margin: 20px auto;
}

/* Adjust Modal Dialog */
.modal-dialog {
    max-width: 95%;
    margin: 0 auto;
}

/* Header Styling */
.review-header {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    font-weight: bold;
    font-size: 30px;
    color: #1E8489 !important;
    margin-bottom: 20px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: white;
    background: red;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #cc0000;
}

/* Form Input Fields */
.techear-form-control {
    border-radius: 8px !important;
    padding: 12px 15px !important;
    margin-bottom: 15px;
    border: 2px solid #dee2e6 !important;
    width: 100%;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
}

.techear-form-control:focus {
    box-shadow: 0 0 0 3px rgba(30, 132, 137, 0.2) !important;
    border-color: #1E8489 !important;
    outline: none;
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #dee2e6;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    width: 100%;
}

/* Submit Button */
.submit-btn {
    background: #1E8489;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 132, 137, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-popup {
        padding: 20px;
        width: 90%;
    }

    .review-header {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .row {
        flex-direction: column;
    }

    .col-md-6 {
        width: 100%;
    }

    .techear-form-control, .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .close-btn {
        top: 8px;
        right: 8px;
        font-size: 18px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .review-popup {
        padding: 15px;
        width: 95%;
        border-radius: 12px;
    }

    .review-header {
        font-size: 22px;
    }

    .techear-form-control, .form-control {
        padding: 8px 10px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .close-btn {
        top: 5px;
        right: 5px;
        font-size: 16px;
        width: 24px;
        height: 24px;
    }
}
