
/* =========================================
   SCHOLARIUS TESTIMONIAL SECTION
   ========================================= */

/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap');


/* MAIN SECTION */
.schol-testimonials {
    width: 100%;
    padding: 55px 25px;
    box-sizing: border-box;
    background: #f7f7f7;
}


/* SECTION HEADING */
.schol-test-header {
    text-align: center;
    margin-bottom: 40px;
}

.schol-test-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px;
}

.schol-test-header p {
    font-size: 16px;
    color: #666666;
    margin: 0;
}


/* FLEXBOX CONTAINER */
.schol-test-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto;
}


/* INDIVIDUAL TESTIMONIAL CARD */
.schol-test-card {
    position: relative;
    flex: 1 1 calc(33.333% - 25px);
    min-width: 260px;
    max-width: 390px;
    box-sizing: border-box;

    padding: 32px 28px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-bottom: 3px solid #d6aa28;
    border-radius: 5px;

    box-shadow: 0 3px 12px rgba(0,0,0,0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
}


/* HOVER EFFECT */
.schol-test-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 9px 22px rgba(0,0,0,0.12);
}


/* QUOTATION MARK */
.schol-test-card::before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 65px;
    line-height: 1;
    color: #d6aa28;

    position: absolute;
    top: 10px;
    left: 22px;
}


/* TESTIMONIAL TEXT */
.schol-test-content {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
    color: #444444;

    margin: 30px 0 25px;
    flex-grow: 1;
}


/* READ MORE / READ LESS */
.schol-test-toggle {
    display: inline-block;
    margin-top: 10px;
    padding: 0;

    border: none;
    background: transparent;

    color: #a18330;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    text-align: left;
}

.schol-test-toggle:hover {
    color: #333333;
    text-decoration: underline;
}

.schol-test-toggle:focus-visible {
    outline: 2px solid #a18330;
    outline-offset: 4px;
}

.schol-test-full[hidden],
.schol-test-preview[hidden] {
    display: none;
}


/* REVIEWER DETAILS */
.schol-test-reviewer {
    border-top: 1px solid #e8e8e8;
    padding-top: 16px;
    margin-top: auto;
}

.schol-test-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
}

.schol-test-website {
    display: inline-block;
    font-size: 13px;
    color: #9b7920;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.schol-test-website:hover {
    color: #333333;
    text-decoration: underline;
}


/* TABLET */
@media (max-width: 900px) {

    .schol-test-card {
        flex: 1 1 calc(50% - 25px);
    }

}


/* MOBILE */
@media (max-width: 600px) {

    .schol-testimonials {
        padding: 35px 15px;
    }

    .schol-test-header h2 {
        font-size: 26px;
    }

    .schol-test-header p {
        font-size: 15px;
    }

    .schol-test-container {
        gap: 18px;
    }

    .schol-test-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

}
