/* Voices of Transformation: Our Students Speak Section */
.students-speak-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.students-speak-title {
    font-size: 2rem;
    font-weight: 600;
    color: #862C91;
    text-align: center;
    margin-bottom: 1.5rem;
}

.students-speak-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
    color: #4b5563;
    font-size: 1.05rem;
}

/* Students Grid Container */
.students-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid layout - 3 in first row, 2 in second row */
.students-row-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.students-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Student Card Styles */
.student-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.students-speak-section .student-photo {
    width: calc(100% + 3rem);
    max-width: 420px;
    height: 320px;
    margin: 0 -1.5rem 1.5rem -1.5rem;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.students-speak-section .student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.student-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.student-program {
    font-size: 0.95rem;
    color: #862C91;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.student-university {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.student-description {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.student-text-short {
    margin-bottom: 0;
}

.student-text-expanded {
    margin-top: 1rem;
    animation: fadeIn 0.5s ease;
}

.student-text-expanded p {
    margin-bottom: 1rem;
}

.student-text-expanded p:last-child {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.student-read-more {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.student-read-more:hover {
    background-color: #d0d0d0;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .students-row-1 {
        grid-template-columns: repeat(2, 1fr);
    }

    .students-row-2 {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .students-speak-section .student-photo {
        width: 100%;
        max-width: none;
        height: 290px;
        margin: 0 -1.5rem 1.5rem -1.5rem;
    }
}

@media (max-width: 768px) {
    .students-speak-section {
        padding: 3rem 0;
    }

    .students-speak-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }

    .students-speak-description {
        padding: 0 1rem;
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .students-row-1,
    .students-row-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .students-row-2 {
        max-width: 100%;
    }

    .students-speak-section .student-card {
        padding: 0 0 1.25rem 0;
    }

    .students-speak-section .student-photo {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 420 / 320;
        margin: 0 0 1.5rem 0;
        border-radius: 8px 8px 0 0;
    }

    .students-speak-section .student-name {
        padding: 0 1.25rem;
    }

    .students-speak-section .student-program {
        padding: 0 1.25rem;
    }

    .students-speak-section .student-university {
        padding: 0 1.25rem;
    }

    .students-speak-section .student-description {
        padding: 0 1.25rem;
    }

    .students-speak-section .student-read-more {
        margin: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .students-speak-section {
        padding: 2.5rem 0;
    }

    .students-speak-title {
        font-size: 1.5rem;
    }

    .students-speak-description {
        font-size: 0.95rem;
    }

    .students-grid {
        padding: 0 0.5rem;
    }

    .students-row-1,
    .students-row-2 {
        gap: 1rem;
    }

    .students-speak-section .student-card {
        padding: 0 0 1rem 0;
    }

    .students-speak-section .student-photo {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 420 / 320;
        margin: 0 0 1rem 0;
        border-radius: 8px 8px 0 0;
    }

    .student-name {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .student-program {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .student-university {
        padding: 0 1rem;
    }

    .student-description {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .student-read-more {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin: 0 1rem;
    }
}