General Blog Section Styling
.blog-main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #e9f7ef; /* Light green background */
    margin-bottom: 40px;
    border-radius: 8px;
}

.hero-section h1 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2em;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.blog-section {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog-section h2 {
    text-align: center;
    color: #3498db; /* Blue heading */
    margin-bottom: 30px;
    font-size: 2.2em;
    position: relative;
}

.blog-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #3498db;
    margin: 10px auto 0;
}

/* What We Are Doing Section */
.what-we-do .content-wrapper p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
}

/* Teachers and Students Grid Styling */
.teachers-grid,
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.teacher-card,
.student-card {
    text-align: center;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover,
.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.teacher-card img,
.student-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #3498db;
}

.teacher-card h3,
.student-card h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.teacher-card p,
.student-card p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
}

.teacher-card p strong {
    color: #3498db;
}

/* Image Gallery Styling */
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.image-gallery-grid img {
    width: 100%;
    height: 220px; /* Fixed height for consistent look */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Indicates it's clickable, e.g., for a lightbox */
}

.image-gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2em;
    }
    .blog-section h2 {
        font-size: 1.8em;
    }
    .teachers-grid,
    .students-grid,
    .image-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .teacher-card,
    .student-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-main-content {
        padding: 10px;
    }
    .hero-section {
        padding: 40px 15px;
    }
    .blog-section {
        padding: 20px;
    }
    .teachers-grid,
    .students-grid,
    .image-gallery-grid {
        grid-template-columns: 1fr; /* Stack on very small screens */
    }
    .teacher-card img,
    .student-card img {
        width: 120px;
        height: 120px;
    }
}
