﻿/*==================================================
            INFRASTRUCTURE PAGE
        GYAN DEEP SR. SEC. PUBLIC SCHOOL
===================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/*==================================================
                HERO
===================================================*/

.infra-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
}

    .infra-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.infra-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(9,32,63,.70),rgba(9,32,63,.72));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

    .infra-overlay h1 {
        font-size: 60px;
        font-weight: 800;
        margin-bottom: 18px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .infra-overlay p {
        max-width: 850px;
        margin: auto;
        font-size: 18px;
        line-height: 1.9;
    }



/*==================================================
            COMMON TITLE
===================================================*/

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

    .section-title span {
        display: inline-block;
        color: #0f9b57;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 12px;
        text-transform: uppercase;
    }

    .section-title h2 {
        font-size: 44px;
        color: #17335b;
        margin-bottom: 15px;
        font-weight: 800;
    }

    .section-title p {
        max-width: 800px;
        margin: auto;
        color: #666;
        line-height: 1.9;
        font-size: 17px;
    }



/*==================================================
            INTRO SECTION
===================================================*/

.infra-intro {
    padding: 90px 0;
    background: #fff;
}

    .infra-intro .container {
        max-width: 1250px;
        margin: auto;
        padding: 0 20px;
    }

.infra-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.infra-intro img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.infra-intro-content h2 {
    font-size: 42px;
    color: #17335b;
    margin-bottom: 25px;
    font-weight: 800;
}

.infra-intro-content p {
    line-height: 2;
    color: #666;
    margin-bottom: 22px;
    font-size: 17px;
}

.intro-points {
    margin-top: 25px;
}

    .intro-points li {
        list-style: none;
        margin-bottom: 14px;
        font-size: 16px;
        color: #333;
    }

    .intro-points i {
        color: #16a34a;
        margin-right: 12px;
    }
/*==================================================
            INFRASTRUCTURE CARDS
===================================================*/

.infra-section {
    padding: 90px 0;
    background: #f7f9fc;
}

    .infra-section .container {
        max-width: 1250px;
        margin: auto;
        padding: 0 20px;
    }

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 35px;
}

.infra-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: .4s;
    position: relative;
}

    .infra-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px rgba(0,0,0,.12);
    }

.infra-image {
    height: 250px;
    overflow: hidden;
}

    .infra-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .6s;
    }

.infra-card:hover img {
    transform: scale(1.08);
}

.infra-content {
    padding: 35px;
}

.infra-icon {
    width: 75px;
    height: 75px;
    background: #0f9b57;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 30px;
    margin-bottom: 25px;
}

.infra-content h3 {
    color: #17335b;
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
}

.infra-content p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 25px;
}

.infra-line {
    display: block;
    width: 70px;
    height: 4px;
    border-radius: 50px;
    background: #f9a826;
}



/*==================================================
            CAMPUS FEATURES
===================================================*/

.campus-features {
    padding: 90px 0;
    background: #fff;
}

    .campus-features .container {
        max-width: 1250px;
        margin: auto;
        padding: 0 20px;
    }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: .4s;
    border-top: 5px solid #16a34a;
}

    .feature-card:hover {
        transform: translateY(-10px);
    }

    .feature-card i {
        font-size: 55px;
        color: #16a34a;
        margin-bottom: 22px;
    }

    .feature-card h3 {
        color: #17335b;
        margin-bottom: 15px;
        font-size: 25px;
    }

    .feature-card p {
        color: #666;
        line-height: 1.9;
    }



/*==================================================
            LAB SECTION
===================================================*/

.lab-section {
    background: #f7f9fc;
    padding: 90px 0;
}

    .lab-section .container {
        max-width: 1250px;
        margin: auto;
        padding: 0 20px;
    }

.lab-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.lab-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .4s;
}

    .lab-card:hover {
        transform: translateY(-10px);
    }

    .lab-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.lab-content {
    padding: 30px;
}

    .lab-content h3 {
        color: #17335b;
        margin-bottom: 15px;
        font-size: 25px;
    }

    .lab-content p {
        color: #666;
        line-height: 1.8;
    }



/*==================================================
            LIBRARY / SPORTS SECTION
===================================================*/

.facility-row {
    padding: 90px 0;
    background: #fff;
}

    .facility-row .container {
        max-width: 1250px;
        margin: auto;
        padding: 0 20px;
    }

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 60px;
    align-items: center;
}

    .facility-grid img {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,.10);
    }

.facility-content h2 {
    font-size: 40px;
    color: #17335b;
    margin-bottom: 20px;
}

.facility-content p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 18px;
}

.facility-content ul {
    margin-top: 20px;
}

.facility-content li {
    list-style: none;
    margin-bottom: 12px;
    color: #333;
}

    .facility-content li i {
        color: #16a34a;
        margin-right: 10px;
    }
/*==================================================
        SPECIAL FEATURES
===================================================*/

.special-features {
    padding: 90px 0;
    background: #ffffff;
}

    .special-features .container {
        max-width: 1250px;
        margin: auto;
        padding: 0 20px;
    }

.special-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 35px;
}

    .special-grid > div {
        background: #f8fafc;
        padding: 35px;
        border-radius: 18px;
        border-left: 5px solid #f5a623;
        transition: .35s;
        box-shadow: 0 10px 30px rgba(0,0,0,.06);
    }

        .special-grid > div:hover {
            transform: translateY(-8px);
            background: #fff;
            box-shadow: 0 18px 40px rgba(0,0,0,.10);
        }

    .special-grid i {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: #16a34a;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .special-grid h4 {
        font-size: 24px;
        color: #17335b;
        margin-bottom: 15px;
    }

    .special-grid p {
        color: #666;
        line-height: 1.9;
    }



/*==================================================
        ACTIVITIES
===================================================*/

.activities {
    padding: 90px 0;
    background: linear-gradient(135deg,#0d6b3b,#118c50);
}

    .activities .section-title span,
    .activities .section-title h2,
    .activities .section-title p {
        color: #fff;
    }

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
}

.activity-item {
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    text-align: center;
    color: #fff;
    padding: 35px 20px;
    transition: .35s;
    font-size: 18px;
    font-weight: 600;
}

    .activity-item:hover {
        background: #fff;
        color: #0d6b3b;
        transform: translateY(-8px);
    }

    .activity-item i {
        display: block;
        font-size: 42px;
        margin-bottom: 18px;
    }



/*==================================================
        TIMELINE
===================================================*/

.timeline {
    padding: 90px 0;
    background: #f8fafc;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

    .timeline-grid > div {
        background: #fff;
        padding: 45px 30px;
        border-radius: 18px;
        text-align: center;
        box-shadow: 0 12px 35px rgba(0,0,0,.08);
        transition: .35s;
    }

        .timeline-grid > div:hover {
            transform: translateY(-8px);
        }

    .timeline-grid h3 {
        font-size: 52px;
        color: #16a34a;
        margin-bottom: 15px;
        font-weight: 800;
    }

    .timeline-grid p {
        color: #666;
        line-height: 1.8;
    }



/*==================================================
        COUNTER SECTION
===================================================*/

.infra-highlight {
    padding: 90px 0;
    background: #17335b;
}

.highlight-grid {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.highlight-box {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
    text-align: center;
    border-radius: 18px;
    padding: 40px 20px;
    transition: .35s;
}

    .highlight-box:hover {
        background: rgba(255,255,255,.15);
    }

    .highlight-box h3 {
        color: #ffd54f;
        font-size: 48px;
        margin-bottom: 12px;
    }

    .highlight-box p {
        color: #fff;
        font-size: 18px;
    }



/*==================================================
        CTA
===================================================*/

.infra-cta {
    padding: 100px 0;
    background: linear-gradient(135deg,#17335b,#214f88);
    text-align: center;
    color: #fff;
}

    .infra-cta .container {
        max-width: 950px;
    }

    .infra-cta h2 {
        font-size: 46px;
        margin-bottom: 25px;
        line-height: 1.4;
    }

    .infra-cta p {
        font-size: 18px;
        line-height: 1.9;
        margin-bottom: 40px;
    }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    padding: 15px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: .35s;
}

.btn-primary {
    background: #f5a623;
    color: #fff;
}

    .btn-primary:hover {
        background: #dc9500;
    }

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

    .btn-outline:hover {
        background: #fff;
        color: #17335b;
    }



/*==================================================
        RESPONSIVE
===================================================*/

@media(max-width:1200px) {

    .feature-grid,
    .lab-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .activity-grid {
        grid-template-columns: repeat(3,1fr);
    }
}



@media(max-width:992px) {

    .infra-intro-grid,
    .facility-grid {
        grid-template-columns: 1fr;
    }

    .special-grid {
        grid-template-columns: 1fr;
    }

    .highlight-grid,
    .timeline-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .activity-grid {
        grid-template-columns: repeat(2,1fr);
    }
}



@media(max-width:768px) {

    .feature-grid,
    .lab-grid,
    .activity-grid,
    .highlight-grid,
    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 34px;
    }

    .infra-overlay h1 {
        font-size: 38px;
    }

    .infra-overlay p {
        font-size: 16px;
    }

    .facility-content h2 {
        font-size: 30px;
    }

    .infra-cta h2 {
        font-size: 34px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}



@media(max-width:576px) {

    .infra-intro,
    .infra-section,
    .lab-section,
    .facility-row,
    .special-features,
    .activities,
    .timeline,
    .infra-highlight,
    .infra-cta {
        padding: 70px 0;
    }

    .infra-content,
    .lab-content {
        padding: 25px;
    }

    .highlight-box h3 {
        font-size: 38px;
    }

    .highlight-box p {
        font-size: 16px;
    }
}
/*====================================
        ACADEMIC FACILITIES
=====================================*/

.infra-alt {
    padding: 90px 0;
    background: #f7f9fc;
}

    .infra-alt .container {
        width: 90%;
        max-width: 1300px;
        margin: auto;
    }

.infra-alt-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
    margin-top: 50px;
}

.infra-box {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .35s;
}

    .infra-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 45px rgba(0,0,0,.15);
    }

    .infra-box img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: .5s;
    }

    .infra-box:hover img {
        transform: scale(1.08);
    }

    .infra-box h3 {
        padding: 25px 25px 15px;
        font-size: 26px;
        color: #17335b;
        font-weight: 700;
    }

    .infra-box p {
        padding: 0 25px 30px;
        color: #666;
        line-height: 1.9;
        font-size: 16px;
    }



/* Mobile */

@media(max-width:992px) {

    .infra-alt-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {

    .infra-alt-grid {
        grid-template-columns: 1fr;
    }
}


/*==================================================
            END
===================================================*/