/* =========================================
   SCHOOL MANAGEMENT
========================================= */


/* =========================================
   HERO
========================================= */

.school-hero {
    width: 100%;
    min-height: 520px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    background: #eef8fc;
}

.school-hero-content {
    padding: 70px 8%;
}

.school-hero-content h2 {
    color: #15577d;

    font-size: 42px;
    line-height: 1.2;

    margin-bottom: 22px;
}

.school-hero-content p {
    max-width: 570px;

    color: #444;

    font-size: 17px;
    line-height: 1.7;

    margin-bottom: 30px;
}

.school-hero-image {
    width: 100%;
    height: 100%;
}

.school-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;

    display: block;

    object-fit: cover;
}


/* =========================================
   BUTTON
========================================= */

.school-btn {
    display: inline-block;

    padding: 13px 30px;

    background: #15577d;
    color: #fff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: background 0.3s ease;
}

.school-btn:hover {
    background: #0d405d;
}


/* =========================================
   SECTION HEADING
========================================= */

.school-section-heading {
    max-width: 850px;

    margin: 0 auto 45px;

    text-align: center;
}

.school-section-heading h2 {
    color: #15577d;

    font-size: 34px;
    line-height: 1.3;

    margin: 0;
}


/* =========================================
   FEATURES
========================================= */

.school-features {
    padding: 80px 6%;

    background: #fff;
}

.school-feature-grid {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}


/* =========================================
   FEATURE CARD
========================================= */

.school-feature-card {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    cursor: pointer;

    background: #302f2f;
}

.school-feature-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.school-feature-card:hover img {
    transform: scale(1.05);
}


/* =========================================
   BOTTOM TO TOP OVERLAY
========================================= */

.school-feature-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    padding: 30px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: rgba(48, 47, 47, 0.68);

    transform: translateY(100%);

    transition: transform 0.45s ease;
}

.school-feature-card:hover .school-feature-overlay {
    transform: translateY(0);
}

.school-feature-overlay i {
    color: #fff;

    font-size: 30px;

    margin-bottom: 15px;
}

.school-feature-overlay h3 {
    color: #fff;

    font-size: 20px;
    line-height: 1.3;

    margin: 0 0 14px;
}

.school-feature-overlay p {
    color: #fff;

    font-size: 14px;
    line-height: 1.6;

    margin: 0;
}


/* =========================================
   BENEFITS
========================================= */

.school-benefits {
    padding: 80px 6%;

    background: #eef8fc;
}

.school-benefit-grid {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.school-benefit-card {
    display: flex;

    align-items: flex-start;

    gap: 20px;

    padding: 30px;

    background: #fff;

    border: 1px solid #dcecf3;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.school-benefit-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}


/* Benefit Icon */

.school-benefit-icon {
    min-width: 58px;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #15577d;

    color: #fff;

    font-size: 22px;
}


/* Benefit Content */

.school-benefit-content h3 {
    color: #15577d;

    font-size: 19px;

    margin: 0 0 10px;
}

.school-benefit-content p {
    color: #555;

    font-size: 14px;
    line-height: 1.6;

    margin: 0;
}


/* =========================================
   CONTACT
========================================= */

.school-contact {
    padding: 80px 6%;

    background: #15577d;

    text-align: center;
}

.school-contact-content {
    max-width: 850px;

    margin: 0 auto;
}

.school-contact h2 {
    color: #fff;

    font-size: 34px;

    margin-bottom: 20px;
}

.school-contact p {
    color: #fff;

    font-size: 16px;
    line-height: 1.7;

    margin-bottom: 30px;
}

.school-contact .school-btn {
    background: #fff;

    color: #15577d;
}

.school-contact .school-btn:hover {
    background: #eaf5f9;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {

    .school-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 750px) {

    .school-hero {
        grid-template-columns: 1fr;
    }

    .school-hero-content {
        padding: 55px 7%;
    }

    .school-hero-content h2 {
        font-size: 35px;
    }

    .school-hero-image img {
        min-height: auto;
        height: auto;
    }

    .school-feature-grid,
    .school-benefit-grid {
        grid-template-columns: 1fr;
    }

    .school-features,
    .school-benefits,
    .school-contact {
        padding: 60px 6%;
    }
}


@media (max-width: 480px) {

    .school-feature-overlay {
        padding: 22px;
    }

    .school-feature-overlay i {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .school-feature-overlay h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .school-feature-overlay p {
        font-size: 13px;
        line-height: 1.5;
    }

    .school-benefit-card {
        padding: 24px;
    }
}