/* Biography Section */
.biography-section {
    padding: 60px 0;
}

.biography-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 10px;
}

.bio-text {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
}

.bio-text p {
    margin-bottom: 20px;
}

.student-quote-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.student-quote-icon {
    font-size: 36px;
    color: #C62828;
    margin-right: 10px;
    vertical-align: top;
    display: inline-block;
}

.student-quote-content {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    display: inline;
}

.student-quote-author {
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    display: block;
}

.student-quote-subtitle {
    font-size: 14px;
    color: #666;
    display: block;
}

/* Carousel Section */
.carousel-section {
    padding: 40px 0;
    background: #fff;
}

.carousel-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.carousel-wrapper {
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot:hover {
    background: #999;
}

.carousel-dot.active {
    background: #667eea;
}

/* Student Memories Section */
.memories-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

.memory-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.memory-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.memory-quote-icon {
    font-size: 36px;
    color: #C62828;
    margin-right: 10px;
    vertical-align: top;
    display: inline-block;
}

.memory-testimonial {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 20px;
    display: inline;
}

.memory-author {
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

.memory-years {
    font-size: 14px;
    color: #666;
    display: block;
}

/* Large Memory Card */
.memory-large {
    grid-column: 1 / 1;
    position: relative;
}

.memory-large-wrapper {
    display: block;
}

.memory-large-content {
    text-align: justify;
    line-height: 1.7;
    display: inline;
}

.memory-large-image {
    float: right;
    width: 350px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 30px;
    margin-bottom: 20px;
}

/* clear float after text */
.memory-large-content::after {
    content: "";
    display: block;
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .biography-content,
    .carousel-content,
    .memory-grid,
    .memory-large {
        grid-template-columns: 1fr;
    }

    .carousel-image {
        height: 300px;
    }

    .memory-large-image {
        height: 250px;
    }

    .section-title {
        font-size: 24px;
    }
}