* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    color: #1b2b49;
    background: #ffffff;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

html {
    scroll-behavior: smooth;
}


/* HERO */
.facilities-hero {
    background: linear-gradient(to right, #0b4fa3, #1b78d6);
    color: white;
    text-align: center;
    padding: 60px 20px 40px;
}

.facilities-hero h1 {
    font-size: 40px;
    margin-bottom: 6px;
    margin-top: o;
}

.facilities-hero span {
    display: block;
    margin-top: 10px;
    opacity: 0.9;
}

/* INTRO */
/* ===== FACILITIES INTRO RESPONSIVE ===== */
.facilities-intro{
    padding: 60px 0;
    text-align: center;
}

.facilities-intro .container{
    max-width: 900px;
    margin: auto;
}

/* paragraph desktop */
.facilities-intro p{
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
    text-align: center;
}

/* FACILITY CARDS */
.facility-list {
    padding: 30px 0 10px;
}

.facility-card {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 45px;
    padding: 0 20px;
}

.facility-card.reverse {
    flex-direction: row-reverse;
}

.facility-card img {
    width: 45%;
    height: 280px;
    object-fit: cover;
    border-radius: 14px;
}

.facility-content h3 {
    margin-bottom: 10px;
}

.facility-content ul {
    margin-top: 15px;
    padding-left: 18px;
}

.facility-content li {
    margin-bottom: 8px;
}

/* ===== FIX LIST ALIGNMENT FOR ALL FACILITY CARDS ===== */

.facility-content {
    text-align: center;
}

/* Make all lists identical */
.facility-content ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: fit-content;
    /* keeps all lists same center width */
}

/* Each list item */
.facility-content li {
    text-align: left;
    /* keeps bullet + text neat */
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Custom bullet */
.facility-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0b4fa3;
}

/* GALLERY */
.gallery {
    background: #f4f6fb;
    padding: 60px 20px;
    text-align: center;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 12px;
    /* space between title & images */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

/* VIDEOS */
.virtual-tour {
    padding: 60px 20px;
    text-align: center;
}

.virtual-tour h2 {
    margin-bottom: 25px;
}

.video-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.video-card {
    width: 320px;
    position: relative;
}

.video-card img {
    width: 100%;
    border-radius: 14px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CLOSING */
.facilities-closing {
    background: #fff4d6;
    color: black;
    padding: 60px 20px;
    text-align: center;
}

/* ================= FOOTER ================= */

.school-footer {
    background: #063360;
    color: #ffffff;
    padding-top: 50px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* LOGO */
.footer-logo img {
    max-width: 140px;
    margin-bottom: 15px;
}

.footer-text {
    line-height: 1.6;
    opacity: 0.9;
}

/* COLUMNS */
.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #facc15;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

.footer-col ul li a:hover {
    color: #facc15;
}

/* SOCIAL MEDIA */
/* .footer-social {
    margin-top: 30px;
    text-align: center;
} */


.footer-social a {
    color: white;            /* icon color */
    font-size: 22px;
    margin: 0 10px;
    display: inline-block;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #ffd000;          /* hover color */
    transform: scale(1.2);
}


.footer-social {
    margin-top: 30px;
    text-align: center;
    display: flex;              /* make flex */
    justify-content: center;    /* center horizontally */
    align-items: center;
    gap: 20px;                  /* space between icons */
    flex-wrap: nowrap;          /* prevent wrapping */
}


/* BOTTOM BAR */
.footer-bottom {
    margin-top: 30px;
    padding: 15px 20px;
    text-align: center;
    background: #063360;
    font-size: 13px;
}


/* ================= RESPONSIVE IMPROVEMENTS ================= */

/* TABLETS */
@media (max-width: 768px) {

    .container {
        padding: 0 16px;
    }

    .facility-card {
        gap: 25px;
    }

    .facility-card img {
        height: 240px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {

   

    /* ===== HERO ===== */
    .facilities-hero {
        padding: 60px 15px;
    }

    .facilities-hero h1 {
        font-size: 26px;
    }

    .facilities-hero span {
        font-size: 14px;
    }

    /* INTRO */

   .facilities-intro{
        padding: 40px 0;
    }

    .facilities-intro .container{
        padding: 0 18px;   /* prevents text touching edges */
    }

    .facilities-intro h2{
        font-size: 24px;
        margin-bottom: 8px;
    }

    .facilities-intro .subtitle{
        font-size: 15px;
        margin-bottom: 14px;
    }

    .facilities-intro p{
        font-size: 15px;
        line-height: 1.7;
        text-align: justify;   /* clean alignment */
        max-width: 100%;
    }


 /* ================= FACILITY MOBILE FINAL FIX ================= */


    .facility-card{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 45px;
    }

    /* remove reverse layout safely */
    .facility-card.reverse{
        display: flex;
        flex-direction: column;
    }

    /* IMAGE */
    .facility-card img{
        width: 100%;
        max-width: 330px;
        border-radius: 14px;
    }

    /* CONTENT */
    .facility-content{
        width: 100%;
        max-width: 500px;
        text-align: center;
        padding: 0 15px;
    }

    /* TITLE */
    .facility-content h3{
        text-align: center;
        margin-bottom: 12px;
        font-size: 20px;
    }

    /* LIST CENTER PERFECT */
        .facility-content ul {
            width: fit-content;
            margin: 0 auto;
        }

    .facility-content li{
        position: relative;
        padding-left: 18px;
        margin-bottom: 8px;
        text-align: left;
    }

    /* custom bullet center aligned */
    .facility-content li::before{
        content: "•";
        position: absolute;
        left: 0;
        color: #0b4fa3;
    }

    /* GALLERY */
    .gallery {
        padding: 40px 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 200px;
    }

    /* VIDEOS */
    .virtual-tour {
        padding: 40px 15px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-grid video {
        height: 220px;
    }

    .gallery h2,
    .virtual-tour h2 {
    margin-bottom: 18px;
    font-size: 22px;
    }

    /* CLOSING */
    .facilities-closing {
        padding: 40px 15px;
        font-size: 14px;
    }

    /* ================= RESPONSIVE FOOTER ================= */


    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 15px;
    }

    .footer-col h4 {
        margin-top: 20px;
    }

    .footer-social a {
        display: block;
        margin: 10px 0;
    }


}
