@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8faf9;
    color: #2d3748;
    line-height: 1.7;
}

.academics-main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.academics-header {
    text-align: center;
    margin: 30px 0 20px 0;
}

.academics-header h1 {
    font-size: 2.2em;
    color: #1a202c;
    font-weight: 700;
}

.heading-divider {
    height: 4px;
    width: 60px;
    background-color: #0e6231;
    margin: 12px auto 24px auto;
    border-radius: 2px;
}

/* Hero Section */
.academ-hero-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.academ-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.academ-hero-text {
    flex: 1;
}

.academ-hero-text h2 {
    font-size: 1.35em;
    color: #0e6231;
    line-height: 1.5;
    margin-bottom: 16px;
    font-weight: 600;
}

.academ-hero-text p {
    font-size: 1em;
    color: #4a5568;
}

.academ-hero-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.academ-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4-Card Academic Pillars Grid */
.academ-grid-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 45px;
}

.academ-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.academ-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
}

.academ-card h3 {
    color: #1a202c;
    font-size: 1.25em;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
}

.academ-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: #0e6231;
    border-radius: 2px;
}

.academ-card p {
    font-size: 0.95em;
    color: #4a5568;
    line-height: 1.6;
}

/* Gallery Strip */
.academ-gallery-container {
    margin-bottom: 50px;
}

.academ-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-frame {
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-frame img:hover {
    transform: scale(1.05);
}

/* Beyond Academics Section */
.academ-beyond-banner {
    background-color: #0e6231;
    color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(14, 98, 49, 0.2);
}

.beyond-content {
    max-width: 850px;
    margin: 0 auto;
}

.beyond-content h2 {
    font-size: 1.8em;
    font-weight: 700;
}

.section-divider-light {
    height: 3px;
    width: 50px;
    background-color: #a7f3d0;
    margin: 12px auto 20px auto;
    border-radius: 2px;
}

.beyond-content p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 14px;
    color: #f0fdf4;
}

.beyond-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Media Queries */
@media screen and (max-width: 900px) {
    .academ-hero {
        flex-direction: column;
    }

    .academ-grid-section {
        grid-template-columns: 1fr;
    }

    .academ-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .academ-hero-container, .academ-beyond-banner {
        padding: 22px;
    }

    .academ-gallery-grid {
        grid-template-columns: 1fr;
    }

    .academics-header h1 {
        font-size: 1.8em;
    }
}