/* Student Testimonials Modern Styling */
:root {
    --primary-color: #F26722;
    --primary-light: #fcb900;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --accent-blue: #0056b3;
    --navy: #0a2463;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --card-border-radius: 12px;
    --transition: all 0.3s ease;
    --brand-gradient: linear-gradient(135deg, rgba(252, 185, 0, 1) 0%, rgba(255, 105, 0, 1) 100%);
}

/* Container styling with improved responsive design */
.student-speak-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

/* Add background shapes for visual interest */
.student-speak-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: rgba(242, 103, 34, 0.03);
    z-index: 0;
}

.student-speak-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(252, 185, 0, 0.03);
    z-index: 0;
}

.student-speak-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

/* Section header styling */
.student-speak-header {
    text-align: center;
    margin-bottom: 40px;
}

.student-speak-header h2 {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.student-speak-header h2 span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.student-speak-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Modern carousel styling */
.student-speak-carousel {
    width: 100%;
    margin: 0px auto 0;
    padding: 10px 0;
}

/* Modern card styling */
.student-speak-card {
    position: relative;
    border: none;
    border-radius: var(--card-border-radius);
    background-color: var(--white);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    margin: 20px 10px;
}

.student-speak-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Image container with modernized styling */
.student-speak-card-image {
    overflow: hidden;
    width: 100% !important;
    height: 220px;
    position: relative;
    background: linear-gradient(161.69deg, rgb(205, 195, 54) -16.46%, #FFFFFF 46.46%);
}

.student-speak-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.student-speak-card:hover .student-speak-card-image img {
    transform: scale(1.05);
}

/* Modern content styling */
.student-speak-card-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.student-speak-description {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    position: relative;
    padding-left: 24px;
}

.student-speak-description::before {
    content: '"';
    font-size: 48px;
    position: absolute;
    left: 0;
    top: -15px;
    color: rgba(242, 103, 34, 0.2);
    font-family: Georgia, serif;
}

/* Bottom section with student details and read more */
.student-speak-bottom-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.student-speak-details {
    max-width: 70%;
}

.student-speak-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    transition: var(--transition);
}

.student-speak-card:hover .student-speak-name {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.student-speak-info {
    font-size: 13px;
    color: var(--navy);
    line-height: 1.4;
    font-weight: 400;
}

.student-speak-read-more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.student-speak-read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.student-speak-read-more:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.student-speak-read-more:hover i {
    transform: translateX(3px);
}

/* Badge for highlighting featured testimonials */
.student-speak-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}

/* Responsive improvements */
@media (max-width: 1199.98px) {
    .student-speak-container {
        width: 90%;
    }
}

@media (max-width: 991.98px) {
    .student-speak-card {
        margin: 15px 8px;
    }
    
    .student-speak-card-image {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .student-speak-description {
        font-size: 14px;
    }
    
    .student-speak-card-content {
        padding: 20px 15px;
    }
}

@media (max-width: 575.98px) {
    .student-speak-container {
        width: 92%;
    }
    
    .student-speak-bottom-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .student-speak-details {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .student-speak-read-more {
        align-self: flex-end;
    }
}