
/* section-3 */

/* Review Container - Main wrapper */
.testimonial-section {
    width: 100%;
    max-width: 1800px;
    background-color: white;
    border-radius: 12px;
    padding: 40px 20px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

/* Header and button */
.testimonial-section__heading {
    font-size: 45px;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #eaecef;
    padding-bottom: 15px;
}

.testimonial-section__add-button {
    background-color: #4a6cf7;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    /* box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2); */
    margin-bottom: 20px;
    display: inline-block;
}

.testimonial-section__add-button:hover {
    background-color: #3655d8;
    transform: translateY(-2px);
    /* box-shadow: 0 6px 15px rgba(74, 108, 247, 0.3); */
}















/* Add this to your CSS file or in the <style> tag */
.testimonial-card__college {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonial-card__college-flag {
    margin-right: 5px;
    border-radius: 2px;
    object-fit: cover;
    vertical-align: middle;
    width: 30px;
    height: 30px;
}






/* Add these styles to your CSS file */
.testimonial-card__read-more {
    background-color: transparent;
    color: #0077cc;
    border: none;
    padding: 5px 0;
    margin-top: 5px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    display: block;
    text-align: right;
    transition: color 0.3s ease;
  
}

.testimonial-card__read-more:hover {
    color: #005fa3;
    text-decoration: underline;
}

/* Ensure the text container has smooth height transitions */
.testimonial-card__text {
    transition: all 0.3s ease;
}






/* ============ modal styling ============ */
.review-modal__overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
  }
  
  .review-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
    z-index: 1001;
  }
  
  .review-modal__close {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
  }
  




/* Carousel Container */
.testimonial-carousel {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto 30px;
    overflow: hidden;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); */
    border-radius: 12px;
    padding: 15px 0;
    background: #f9fafc;
}

.testimonial-carousel__viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-carousel__track {
    display: flex;
    transition: transform 0.5s ease;
    width: max-content;
    will-change: transform;
}

/* Testimonial Card Styling */
.testimonial-carousel__list {
    display: flex;
    flex-wrap: nowrap;
    padding: 10px 5px;
}

.testimonial-card {
    width: 100%;
    max-width: 300px;
    height: 460px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background-color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    border: 1px solid #eaecef;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 20px;
    position: relative;
}

/* Ensure all cards have consistent margins */
.testimonial-card:last-child {
    margin-right: 20px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border-bottom: 1px solid #eaecef;
    object-position: 50% 0;
}
@media (max-width: 576px) {
  .testimonial-card__image {
    height: auto;
    max-height: 220px;
    width: 100%;
    object-fit: contain;
    object-position: center;
  }
}


.testimonial-card__content {
    flex: 1;
    overflow: hidden;
}

.testimonial-card__header {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
    position: relative;
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    margin: 10px 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-card__rating {
    color: #f59e0b;
    font-size: 16px;
    display: none;
}

.testimonial-card__text {
    flex: 1;
    overflow: hidden;
  }


  .testimonial-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* padding: 1rem; */
  }






.testimonial-card__location {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Navigation buttons */
.testimonial-carousel__nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(74, 108, 247, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.testimonial-carousel__nav-button:hover {
    background-color: #3655d8;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-carousel__nav-button--prev {
    left: 10px;
}

.testimonial-carousel__nav-button--next {
    right: 10px;
}

/* Pagination dots */
.testimonial-carousel__pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-carousel__dot--active {
    background-color: #4a6cf7;
    transform: scale(1.2);
}

.testimonial-carousel__dot:hover {
    background-color: #a3a9b3;
}

/* Review Form Popup Styling */
.testimonial-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    display: none;
}

.testimonial-popup__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: none;
}

.testimonial-popup--active .testimonial-popup__overlay {
    display: block;
}

.testimonial-popup__heading {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.testimonial-popup__input,
.testimonial-popup__textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.3s ease;
}

.testimonial-popup__input:focus,
.testimonial-popup__textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.testimonial-popup__rating {
    margin: 15px 0;
    font-size: 16px;
    color: #4a5568;
}

.testimonial-popup__star {
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-right: 3px;
}

.testimonial-popup__star--selected {
    color: #f59e0b;
}

.testimonial-popup__star:hover {
    color: #f59e0b;
}

.testimonial-popup__buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.testimonial-popup__submit {
    background-color: #4a6cf7;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-basis: 60%;
}

.testimonial-popup__submit:hover {
    background-color: #3655d8;
}

.testimonial-popup__cancel {
    background-color: white;
    color: #64748b;
    border: 1px solid #dcdfe6;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-basis: 35%;
}

.testimonial-popup__cancel:hover {
    background-color: #f3f4f6;
}

.testimonial-popup__preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
    display: none;
    border-radius: 8px;
    border: 1px solid #eaecef;
}

.testimonial-popup__upload {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    width: 100%;
}

.testimonial-popup__upload-label {
    display: block;
    padding: 12px 15px;
    background-color: #f3f4f6;
    color: #4a5568;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #dcdfe6;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-popup__upload-label:hover {
    background-color: #e5e7eb;
}

.testimonial-popup__upload-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 992px) {
    .testimonial-section {
        max-width: 800px;
    }

    .testimonial-carousel {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        max-width: 600px;
        padding: 30px 15px;
    }

    .testimonial-carousel {
        max-width: 500px;
    }

    .testimonial-card {
        margin: 0 5px;
    }

    .testimonial-carousel__nav-button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .testimonial-section {
        max-width: 400px;
        padding: 20px 10px;
    }

    .testimonial-section__add-button {
        width: 50%;
    }

    .testimonial-popup__buttons {
        flex-direction: column;
    }

    .testimonial-popup__submit,
    .testimonial-popup__cancel {
        width: 100%;
        margin-bottom: 10px;
    }

    .testimonial-card__image {
        height: 180px;
    }

    .testimonial-card__content {
        padding: 15px;
    }
}











/* College logo styling */
.testimonial-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.testimonial-card__info {
    flex: 1;
    min-width: 0;
    padding-right: 65px;
}

.testimonial-card__college-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f9fafc;
    border: 1px solid #eaecef;
}

.testimonial-card__college-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.testimonial-card__college-name {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.testimonial-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}


.testimonial-card__star--filled {
    color: #f59e0b;
}


@media (max-width: 576px) {
    .testimonial-card__college-logo {
        width: 50px;
        height: 50px;
    }

    .testimonial-card__info {
        padding-right: 55px;
    }

    .testimonial-card__avatar {
        width: 50px;
        height: 50px;
    }
}




@media screen and (max-width:1550px) {
    h1 {
        font-size: 35px;
    }
}


@media screen and (max-width:768px) {
    h1 {
        font-size: 30px;
    }
}

@media screen and (max-width:425px) {
    h1 {
        font-size: 25px;
    }
}