/* =====================================================
   A.S. MODEL SCHOOL
   COMPLETE WEBSITE CSS
===================================================== */


/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #173b66;
    background: #ffffff;
}


/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
    width: 100%;
    height: 34px;

    background: #173b66;
    color: #ffffff;

    display: flex;
    align-items: center;
}

.top-container {
    width: 100%;
    max-width: 1200px;

    margin: auto;
    padding: 7px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;

    font-size: 13px;
}


/* =====================================================
   HEADER
===================================================== */

header {
    width: 100%;
    background: #ffffff;

    position: relative;
    z-index: 100;
}

.navbar {
    width: 100%;
    max-width: 1200px;

    min-height: 105px;

    margin: auto;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =====================================================
   SCHOOL BRAND
===================================================== */

.school-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.school-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.school-name h1 {
    font-size: 30px;
    color: #173b66;

    line-height: 1.1;
    margin-bottom: 5px;
}

.school-name p {
    font-size: 16px;
    color: #426789;
}


/* =====================================================
   NAVIGATION
===================================================== */

.nav-links {
    display: flex;
    align-items: center;

    gap: 30px;

    list-style: none;
}

.nav-links a {
    text-decoration: none;

    color: #102f52;

    font-size: 16px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f5b52c;
}


/* =====================================================
   MENU BUTTON
   Hidden on desktop
===================================================== */

.menu-button {
    display: none;

    background: none;
    border: none;

    font-size: 28px;

    color: #173b66;

    cursor: pointer;
}


/* =====================================================
   HERO SECTION
===================================================== */

.hero {
    position: relative;

    width: 100%;
    height: 650px;

    overflow: hidden;

    background: #173b66;
}


/* =====================================================
   HERO IMAGE
===================================================== */

.hero-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    /*
       Building position.
       Higher percentage moves image upward,
       allowing more lower part of building to show.
    */
    object-position: center 72%;
}


/* =====================================================
   HERO BLUE OVERLAY
===================================================== */

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(18, 59, 101, 0.97) 0%,
        rgba(22, 65, 109, 0.90) 25%,
        rgba(27, 72, 119, 0.62) 48%,
        rgba(27, 72, 119, 0.25) 70%,
        rgba(27, 72, 119, 0.05) 100%
    );
}


/* =====================================================
   HERO CONTENT
===================================================== */

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1200px;

    height: 100%;

    margin: auto;
    padding: 50px 20px;

    display: flex;

    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    color: #ffffff;
}


/* =====================================================
   HERO LABEL
===================================================== */

.hero-label {
    font-size: 14px;

    font-weight: 700;

    letter-spacing: 5px;

    margin-bottom: 25px;

    color: #ffffff;
}


/* =====================================================
   HERO TITLE
===================================================== */

.hero-content h2 {
    font-size: 62px;

    line-height: 1.05;

    margin-bottom: 15px;

    color: #ffffff;
}

.hero-content h2 span {
    color: #f7b52c;
}


/* =====================================================
   HERO TAGLINE
===================================================== */

.hero-content h3 {
    font-size: 28px;

    font-weight: 400;

    margin-bottom: 22px;

    color: #ffffff;
}


/* =====================================================
   HERO DESCRIPTION
===================================================== */

.hero-description {
    font-size: 19px;

    line-height: 1.7;

    margin-bottom: 30px;

    color: #ffffff;
}


/* =====================================================
   HERO BUTTONS
===================================================== */

.hero-buttons {
    display: flex;

    gap: 18px;
}

.hero-buttons .btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 215px;

    padding: 14px 25px;

    border-radius: 5px;

    font-size: 16px;

    font-weight: 700;

    text-decoration: none;

    transition: all 0.3s ease;
}


/* =====================================================
   ADMISSION BUTTON
===================================================== */

.admission-btn {
    background: #f7b52c;

    color: #173b66;

    border: 2px solid #f7b52c;
}

.admission-btn:hover {
    background: #ffffff;

    border-color: #ffffff;
}


/* =====================================================
   EXPLORE BUTTON
===================================================== */

.explore-btn {
    background: transparent;

    color: #ffffff;

    border: 2px solid #ffffff;
}

.explore-btn:hover {
    background: #ffffff;

    color: #173b66;
}


/* =====================================================
   FEATURES
===================================================== */

.features {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    background: #ffffff;

    padding: 40px 6%;

    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.06);
}

.feature {
    text-align: center;

    padding: 10px 20px;

    border-right: 1px solid #e4e8ed;
}

.feature:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 30px;

    margin-bottom: 10px;
}

.feature h3 {
    color: #173b66;

    font-size: 17px;

    margin-bottom: 7px;
}

.feature p {
    color: #718096;

    font-size: 14px;

    line-height: 1.5;
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.simple-section {
    min-height: 400px;

    padding: 85px 10%;

    text-align: center;

    background: #ffffff;
}

.simple-section:nth-child(even) {
    background: #f5f8fc;
}


/* =====================================================
   SECTION LABEL
===================================================== */

.section-label {
    color: #d99a18;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 12px;
}


/* =====================================================
   SECTION HEADINGS
===================================================== */

.simple-section h2 {
    font-size: 36px;

    color: #173b66;

    margin-bottom: 20px;
}

.simple-section > p:not(.section-label) {
    max-width: 750px;

    margin: auto;

    color: #60758f;

    line-height: 1.8;
}


/* =====================================================
   FACILITIES
===================================================== */

.facility-list {
    display: flex;

    justify-content: center;

    gap: 25px;

    margin-top: 35px;
}

.facility-list div {
    padding: 25px 40px;

    background: #ffffff;

    border-radius: 8px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    font-weight: 600;

    color: #173b66;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-preview {
    max-width: 850px;

    margin: 35px auto 0;

    overflow: hidden;

    border-radius: 8px;
}

.gallery-preview img {
    width: 100%;

    display: block;

    object-fit: cover;
}


/* =====================================================
   GALLERY GRID
===================================================== */

.gallery-grid {
    max-width: 1100px;

    margin: 40px auto 0;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 240px;

    object-fit: cover;

    display: block;

    border-radius: 8px;

    transition: all 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #173b66;

    color: #ffffff;

    text-align: center;

    padding: 25px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .navbar {
        padding: 10px 20px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .school-name h1 {
        font-size: 26px;
    }

    .hero-content h2 {
        font-size: 52px;
    }

    .hero-content h3 {
        font-size: 24px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    /* TOP BAR */

    .top-container {
        padding: 0 12px;

        font-size: 11px;
    }


    /* HEADER */

    .navbar {
        min-height: auto;

        padding: 15px;

        flex-direction: row;

        gap: 10px;
    }

    .school-logo {
        width: 60px;
        height: 60px;
    }

    .school-name h1 {
        font-size: 22px;
    }

    .school-name p {
        font-size: 12px;
    }


    /* MOBILE MENU BUTTON */

    .menu-button {
        display: block;

        margin-left: auto;
    }


    /* NAVIGATION */

    .nav-links {
        display: none;

        width: 100%;

        flex-direction: column;

        align-items: center;

        gap: 15px;

        padding: 15px 0;
    }

    .nav-links.show {
        display: flex;
    }


    /* HERO */

    .hero {
        height: 650px;
    }

    .hero-image img {
        object-position: center center;
    }

    .hero::after {
        background: linear-gradient(
            90deg,
            rgba(18, 59, 101, 0.94),
            rgba(22, 65, 109, 0.70)
        );
    }

    .hero-content {
        padding: 35px 25px;
    }

    .hero-label {
        font-size: 11px;

        letter-spacing: 3px;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .hero-content h3 {
        font-size: 21px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }


    /* FEATURES */

    .features {
        grid-template-columns: 1fr;

        padding: 25px 20px;
    }

    .feature {
        border-right: none;

        border-bottom: 1px solid #e4e8ed;

        padding: 20px;
    }

    .feature:last-child {
        border-bottom: none;
    }


    /* GENERAL SECTIONS */

    .simple-section {
        min-height: 350px;

        padding: 65px 25px;
    }

    .simple-section h2 {
        font-size: 30px;
    }


    /* FACILITIES */

    .facility-list {
        flex-direction: column;

        gap: 15px;
    }


    /* GALLERY */

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

        gap: 15px;
    }

    .gallery-grid img {
        height: 220px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .school-name h1 {
        font-size: 19px;
    }

    .school-name p {
        font-size: 11px;
    }

    .school-logo {
        width: 55px;
        height: 55px;
    }

    .hero {
        height: 600px;
    }

    .hero-content h2 {
        font-size: 34px;
    }

    .hero-content h3 {
        font-size: 19px;
    }

    .hero-description {
        font-size: 15px;
    }

    .simple-section h2 {
        font-size: 27px;
    }
}
/* =====================================================
   ABOUT US SECTION
===================================================== */

.about-section {
    width: 100%;
    background: #ffffff;
    padding: 90px 20px;
}

.about-container {
    max-width: 1200px;
    margin: auto;
}


/* ABOUT HEADING */

.about-heading {
    text-align: center;
    margin-bottom: 55px;
}

.about-heading h2 {
    font-size: 40px;
    color: #173b66;
    margin-bottom: 15px;
}

.heading-line {
    width: 60px;
    height: 3px;
    background: #f7b52c;
    margin: auto;
}


/* ABOUT CONTENT */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.about-text {
    color: #60758f;
    font-size: 16px;
    line-height: 1.8;
}

.about-intro {
    font-size: 18px;
    color: #3e5873;
    margin-bottom: 20px;
}


/* ABOUT IMAGE */

.about-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
    width: 100%;
    height: 380px;
    display: block;
    object-fit: cover;
}


/* MISSION */

.mission-section {
    margin-top: 90px;
    padding: 65px;
    background: #f5f8fc;
    border-left: 4px solid #f7b52c;
}

.mission-content h3 {
    font-size: 30px;
    color: #173b66;
    margin-bottom: 35px;
}

.mission-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 45px;
}

.mission-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.mission-number {
    min-width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #173b66;
    color: #ffffff;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 700;
}

.mission-item p {
    color: #60758f;
    line-height: 1.7;
}


/* WHY CHOOSE US */

.why-school {
    margin-top: 90px;
}

.why-heading {
    text-align: center;
    margin-bottom: 45px;
}

.why-heading h3 {
    font-size: 30px;
    color: #173b66;
}


/* WHY GRID */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.why-card {
    padding: 32px 25px;

    background: #ffffff;

    border: 1px solid #e5eaf0;

    border-radius: 8px;

    text-align: center;

    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.why-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef4fa;

    color: #173b66;

    border-radius: 50%;

    font-size: 21px;
}

.why-card h4 {
    font-size: 18px;
    color: #173b66;

    margin-bottom: 10px;
}

.why-card p {
    color: #718096;

    font-size: 14px;

    line-height: 1.7;
}


/* =====================================================
   ABOUT RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .about-section {
        padding: 65px 20px;
    }

    .about-heading h2 {
        font-size: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image img {
        height: 280px;
    }

    .mission-section {
        margin-top: 60px;
        padding: 35px 25px;
    }

    .mission-content h3 {
        font-size: 25px;
    }

    .mission-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .why-school {
        margin-top: 60px;
    }

    .why-heading h3 {
        font-size: 25px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}
/* =====================================================
   ACADEMICS SECTION
===================================================== */

.academics-section {
    width: 100%;

    padding: 90px 20px;

    background: #f5f8fc;
}

.academics-container {
    max-width: 1200px;

    margin: auto;
}


/* =====================================================
   ACADEMICS HEADING
===================================================== */

.academics-heading {
    max-width: 800px;

    margin: 0 auto 55px;

    text-align: center;
}

.academics-heading h2 {
    font-size: 40px;

    color: #173b66;

    margin-bottom: 18px;
}

.academics-heading > p:last-child {
    color: #60758f;

    font-size: 16px;

    line-height: 1.7;
}


/* =====================================================
   ACADEMIC OVERVIEW
===================================================== */

.academic-overview {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-bottom: 80px;
}

.academic-info-card {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 28px;

    background: #ffffff;

    border-radius: 8px;

    border: 1px solid #e3e9ef;

    transition: all 0.3s ease;
}

.academic-info-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.academic-icon {
    min-width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eef4fa;

    color: #173b66;

    border-radius: 50%;

    font-size: 21px;
}

.academic-info-card h3 {
    font-size: 17px;

    color: #173b66;

    margin-bottom: 7px;
}

.academic-info-card p {
    font-size: 15px;

    color: #718096;
}


/* =====================================================
   SUBSECTION HEADING
===================================================== */

.subsection-heading {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 40px;
}

.subsection-heading h3 {
    font-size: 32px;

    color: #173b66;

    margin-bottom: 12px;
}

.subsection-heading > p:last-child {
    color: #60758f;

    line-height: 1.7;
}


/* =====================================================
   STREAMS
===================================================== */

.streams-section {
    margin-bottom: 85px;
}

.streams-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.stream-card {
    background: #ffffff;

    padding: 40px 25px;

    text-align: center;

    border-radius: 8px;

    border: 1px solid #e3e9ef;

    transition: all 0.3s ease;
}

.stream-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stream-icon {
    width: 65px;

    height: 65px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #173b66;

    color: #ffffff;

    border-radius: 50%;

    font-size: 24px;
}

.stream-card h4 {
    font-size: 21px;

    color: #173b66;

    margin-bottom: 8px;
}

.stream-card p {
    color: #718096;

    font-size: 14px;
}


/* =====================================================
   EXAMINATION SYSTEM
===================================================== */

.examination-section {
    padding-top: 10px;
}

.examination-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 15px;
}

.exam-item {
    min-height: 150px;

    padding: 25px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: #ffffff;

    border-radius: 8px;

    border: 1px solid #e3e9ef;
}

.exam-item span {
    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 15px;

    background: #f7b52c;

    color: #173b66;

    border-radius: 50%;

    font-size: 12px;

    font-weight: 700;
}

.exam-item h4 {
    font-size: 15px;

    color: #173b66;

    line-height: 1.4;
}


/* =====================================================
   ACADEMICS RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .academic-overview {
        grid-template-columns: 1fr;
    }

    .streams-grid {
        grid-template-columns: 1fr 1fr;
    }

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


@media (max-width: 768px) {

    .academics-section {
        padding: 65px 20px;
    }

    .academics-heading h2 {
        font-size: 30px;
    }

    .subsection-heading h3 {
        font-size: 26px;
    }

    .streams-grid {
        grid-template-columns: 1fr;
    }

    .examination-grid {
        grid-template-columns: 1fr;
    }

    .academic-info-card {
        padding: 22px;
    }
}
/* Academic Overview - 4 Cards */
.academic-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

/* Tablet */
@media (max-width: 1000px) {
    .academic-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .academic-overview {
        grid-template-columns: 1fr;
    }
}
/* =========================
   FACILITIES SECTION
========================= */

.facilities-section {
    width: 100%;
    padding: 90px 20px;
    background: #ffffff;
}

.facilities-container {
    max-width: 1200px;
    margin: auto;
}

.facilities-heading {
    max-width: 800px;
    margin: 0 auto 65px;
    text-align: center;
}

.facilities-heading h2 {
    font-size: 40px;
    color: #173b66;
    margin-bottom: 18px;
}

.facilities-heading > p:last-child {
    color: #60758f;
    font-size: 16px;
    line-height: 1.7;
}

.facility-category {
    margin-bottom: 85px;
}

.category-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.category-heading h3 {
    font-size: 32px;
    color: #173b66;
    margin-bottom: 12px;
}

.category-heading > p:last-child {
    color: #60758f;
    line-height: 1.7;
}


/* Facility Cards */

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.facility-card {
    background: #ffffff;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.facility-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-content {
    padding: 25px;
}

.facility-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #eef4fa;
    color: #173b66;
    border-radius: 50%;
    font-size: 19px;
}

.facility-content h4 {
    font-size: 20px;
    color: #173b66;
    margin-bottom: 10px;
}

.facility-content p {
    color: #718096;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   SPORTS SECTION
========================= */

/* =========================
   SPORTS PHOTO CARDS
========================= */

.sports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.sport-card {
    background: #ffffff;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sport-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.sport-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.sport-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sport-card:hover .sport-image img {
    transform: scale(1.05);
}

.sport-content {
    padding: 20px;
    text-align: center;
}

.sport-content h4 {
    font-size: 20px;
    color: #173b66;
}


/* =========================
   SPORTS RESPONSIVE
========================= */

@media (max-width: 1000px) {

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

@media (max-width: 768px) {

    .sports-grid {
        grid-template-columns: 1fr;
    }

    .sport-image {
        height: 220px;
    }
}

/* =========================
   FACILITIES RESPONSIVE
========================= */

@media (max-width: 1000px) {

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

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


@media (max-width: 768px) {

    .facilities-section {
        padding: 65px 20px;
    }

    .facilities-heading h2 {
        font-size: 30px;
    }

    .category-heading h3 {
        font-size: 26px;
    }

    .facility-grid {
        grid-template-columns: 1fr;
    }

    .sports-grid {
        grid-template-columns: 1fr;
    }

    .facility-image {
        height: 220px;
    }
}