﻿/* =========================================================
   DR. SHYAM SINGH PUBLIC ACADEMY
   INFRASTRUCTURE PAGE
   ========================================================= */

:root {
    --infra-maroon: #6E1423;
    --infra-maroon-dark: #4F0D19;
    --infra-gold: #D9A441;
    --infra-cream: #FBF6EC;
    --infra-green: #1F4B3F;
    --infra-dark: #2A2320;
    --infra-muted: #6D625C;
    --infra-white: #FFFFFF;
    --infra-border: rgba(110, 20, 35, 0.12);
}


/* =========================================================
   COMMON
   ========================================================= */

.infra-page,
.infra-hero,
.infra-intro,
.infra-facilities,
.science-feature,
.infra-stats,
.infra-closing {
    box-sizing: border-box;
}

    .infra-hero *,
    .infra-intro *,
    .infra-facilities *,
    .science-feature *,
    .infra-stats *,
    .infra-closing * {
        box-sizing: border-box;
    }

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    color: var(--infra-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

    .section-heading h2,
    .infra-intro h2,
    .science-content h2,
    .closing-card h2 {
        color: var(--infra-dark);
        font-family: Georgia, "Times New Roman", serif;
        line-height: 1.15;
    }

    .section-heading h2 {
        font-size: clamp(34px, 4vw, 52px);
        margin: 0 0 18px;
    }

        .section-heading h2 span,
        .infra-intro h2 span,
        .science-content h2 span,
        .closing-card h2 span {
            color: var(--infra-maroon);
        }

    .section-heading p {
        color: var(--infra-muted);
        line-height: 1.8;
        font-size: 16px;
    }


/* =========================================================
   HERO
   ========================================================= */

.infra-hero {
    position: relative;
    height: 610px;
    overflow: hidden;
    background: var(--infra-maroon-dark);
}

.infra-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.infra-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(48, 7, 16, 0.90) 0%, rgba(79, 13, 25, 0.70) 42%, rgba(79, 13, 25, 0.20) 100% );
}

.infra-hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    max-width: 650px;
    color: white;
}

.infra-kicker {
    display: inline-block;
    padding: 9px 17px;
    border: 1px solid rgba(217, 164, 65, 0.75);
    color: #F3D58F;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 22px;
    background: rgba(110, 20, 35, 0.28);
}

.infra-hero-content h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1;
    margin: 0 0 24px;
    color: white;
}

.infra-hero-content p {
    max-width: 590px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.90);
    margin-bottom: 30px;
}

.infra-hero-btn,
.infra-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    background: var(--infra-gold);
    color: var(--infra-dark);
    font-weight: 800;
    padding: 14px 22px;
    border-radius: 3px;
    transition: 0.3s ease;
}

    .infra-hero-btn:hover,
    .infra-main-btn:hover {
        background: white;
        color: var(--infra-maroon);
        transform: translateY(-3px);
    }

    .infra-hero-btn span,
    .infra-main-btn span {
        font-size: 20px;
    }


/* =========================================================
   INTRO
   ========================================================= */

.infra-intro {
    background: var(--infra-cream);
    padding: 105px 0;
}

.infra-intro-grid {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    align-items: center;
    gap: 75px;
}

.infra-intro h2 {
    font-size: clamp(35px, 4vw, 55px);
    margin: 0 0 25px;
}

.infra-intro-text > p {
    color: var(--infra-muted);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 17px;
}

.intro-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 18px;
    border-left: 4px solid var(--infra-gold);
    background: white;
    box-shadow: 0 15px 40px rgba(42, 35, 32, 0.08);
}

.highlight-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--infra-maroon);
    color: var(--infra-gold);
    border-radius: 50%;
    font-size: 20px;
}

.intro-highlight strong {
    display: block;
    color: var(--infra-maroon);
    margin-bottom: 4px;
}

.intro-highlight small {
    color: var(--infra-muted);
}

.infra-intro-image {
    position: relative;
}

.image-frame {
    position: relative;
    padding: 13px;
    background: white;
    box-shadow: 0 25px 60px rgba(42, 35, 32, 0.14);
}

    .image-frame::before {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        left: -20px;
        top: -20px;
        border-top: 3px solid var(--infra-gold);
        border-left: 3px solid var(--infra-gold);
    }

    .image-frame img {
        width: 100%;
        height: 440px;
        object-fit: cover;
        display: block;
    }

.image-badge {
    position: absolute;
    right: -18px;
    bottom: 35px;
    background: var(--infra-maroon);
    color: white;
    padding: 18px 24px;
    min-width: 180px;
    box-shadow: 0 15px 30px rgba(79,13,25,0.25);
}

    .image-badge strong {
        display: block;
        color: var(--infra-gold);
        font-size: 20px;
    }

    .image-badge span {
        font-size: 12px;
    }


/* =========================================================
   FACILITIES
   ========================================================= */

.infra-facilities {
    padding: 110px 0;
    background: white;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.facility-card {
    position: relative;
    background: var(--infra-cream);
    border: 1px solid var(--infra-border);
    overflow: hidden;
    transition: 0.35s ease;
}

    .facility-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 50px rgba(42,35,32,0.12);
    }

.facility-image {
    height: 280px;
    position: relative;
    overflow: hidden;
}

    .facility-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

.facility-card:hover .facility-image img {
    transform: scale(1.06);
}

.facility-number {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--infra-maroon);
    color: white;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.featured-tag {
    position: absolute;
    right: 18px;
    top: 18px;
    background: var(--infra-gold);
    color: var(--infra-dark);
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.facility-content {
    padding: 28px 30px 30px;
}

.facility-icon {
    font-size: 28px;
}

.facility-content h3 {
    margin: 12px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--infra-maroon);
    font-size: 25px;
}

.facility-content p {
    color: var(--infra-muted);
    line-height: 1.75;
    margin: 0;
}

.facility-line {
    display: block;
    width: 45px;
    height: 3px;
    background: var(--infra-gold);
    margin-top: 22px;
}

.wide-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

    .wide-card .facility-image {
        height: 100%;
        min-height: 350px;
    }

    .wide-card .facility-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 45px;
    }

.sports-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

    .sports-tags span {
        padding: 7px 12px;
        background: white;
        border: 1px solid var(--infra-border);
        color: var(--infra-green);
        font-size: 12px;
        font-weight: 700;
    }


/* =========================================================
   SCIENCE FEATURE
   ========================================================= */

.science-feature {
    background: var(--infra-green);
    padding: 105px 0;
    color: white;
}

.science-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 75px;
    align-items: center;
}

.science-image {
    position: relative;
    border: 1px solid rgba(217,164,65,0.5);
    padding: 12px;
}

    .science-image img {
        display: block;
        width: 100%;
        height: 460px;
        object-fit: cover;
    }

.science-overlay {
    position: absolute;
    left: 30px;
    bottom: 30px;
    background: var(--infra-maroon);
    padding: 13px 18px;
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.science-content .section-label {
    color: var(--infra-gold);
}

.science-content h2 {
    color: white;
    font-size: clamp(36px, 4vw, 55px);
    margin: 0 0 25px;
}

    .science-content h2 span {
        color: #F0C96E;
    }

.science-content > p {
    color: rgba(255,255,255,0.82);
    line-height: 1.85;
    margin-bottom: 16px;
}

.science-points {
    margin-top: 30px;
    display: grid;
    gap: 13px;
}

    .science-points div {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .science-points span {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--infra-gold);
        color: var(--infra-dark);
        font-weight: 900;
    }


/* =========================================================
   STATS
   ========================================================= */

.infra-stats {
    background: var(--infra-maroon);
    padding: 65px 0;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    color: white;
    padding: 10px 25px;
    border-right: 1px solid rgba(255,255,255,0.18);
}

    .stat-item:last-child {
        border-right: none;
    }

.stat-icon {
    display: block;
    color: var(--infra-gold);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-item strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    color: white;
}

.stat-item p {
    margin: 7px 0 0;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}


/* =========================================================
   CLOSING
   ========================================================= */

.infra-closing {
    background: var(--infra-cream);
    padding: 105px 0;
}

.closing-card {
    position: relative;
    text-align: center;
    max-width: 850px;
    margin: auto;
    background: white;
    padding: 65px 70px;
    border: 1px solid var(--infra-border);
    box-shadow: 0 20px 55px rgba(42,35,32,0.08);
    overflow: hidden;
}

.closing-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient( 90deg, var(--infra-maroon), var(--infra-gold), var(--infra-green) );
}

.closing-card h2 {
    font-size: clamp(35px, 4vw, 52px);
    margin: 0 0 20px;
}

.closing-card p {
    color: var(--infra-muted);
    line-height: 1.85;
    max-width: 680px;
    margin: 0 auto 30px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .infra-hero {
        height: 550px;
    }

    .infra-intro-grid,
    .science-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .facility-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

        .wide-card .facility-image {
            min-height: 280px;
            height: 280px;
        }

    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 35px;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }
}


@media (max-width: 600px) {

    .infra-hero {
        height: 570px;
    }

    .infra-hero-content {
        left: 7%;
        right: 7%;
    }

        .infra-hero-content h1 {
            font-size: 47px;
        }

        .infra-hero-content p {
            font-size: 15px;
        }

    .infra-intro,
    .infra-facilities,
    .science-feature,
    .infra-closing {
        padding: 75px 0;
    }

    .image-frame img {
        height: 320px;
    }

    .image-badge {
        right: 10px;
        bottom: 20px;
    }

    .facility-image,
    .wide-card .facility-image {
        height: 230px;
        min-height: 230px;
    }

    .facility-content,
    .wide-card .facility-content {
        padding: 25px;
    }

    .science-image img {
        height: 300px;
    }

    .stats-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 10px;
        border-right: none;
    }

        .stat-item strong {
            font-size: 30px;
        }

    .closing-card {
        padding: 45px 25px;
    }
}
