
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #ffffff;
    color: #1b2b49;
}

html {
    scroll-behavior: smooth;
}


/* PAGE CONTENT ONLY – NOT NAVBAR */
.hero .container,
.features .container,
.why .container,
.facilities .container,
.life .container,
.chairman .container,
.testimonial .container {
    max-width: 100%;
    padding: 0 30px;
}


/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

/* FULL IMAGE */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* TEXT OVER IMAGE */
.hero-overlay {
    position:absolute;
    inset: 0;
    

    display: flex;
    flex-direction: column;
    align-items: center;     /* left aligned */
    justify-content: start; /* top aligned */

    padding: 0px 60px;         /* controls position on image */

    background: rgba(0, 0, 0, 0.4);
    color: #fff;
   
    
}


/* ===== HERO SLIDER (SAFE ADDITION) ===== */

.hero-slider {
    position: absolute;
    inset: 0;
}

/* override ONLY opacity, nothing else */
.hero-slider .hero-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

/* visible image */
.hero-slider .hero-img.active {
    opacity: 1;
}


.hero-overlay h1 {
    font-size:40px;
    font-weight: 700px;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 900px;
    text-align: center;
    margin-top: 10px;
}

.hero-overlay p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 520px;
    text-align: center;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
   
}

.btn {
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn.primary {
    background:  rgba(237, 167, 36, 0.995);
    color: #000000;
}

.btn.secondary {
    background: #2563eb;
    color: #fff;
}


/* FEATURES */
.features {
    background: #f4f6fb;
    padding: 30px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
    font-weight: bold;
}

/* WHY */
.why {
    padding: 60px 0;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.why-card {
    background: #f4f6fb;
    padding: 25px;
    border-radius: 10px;
}

/* FACILITIES */
.facilities {
    background: linear-gradient(to right, #0b4fa3, #1b78d6);
    padding: 35px 0 40px 0;
    color: white;
    text-align: center;
}

.facilities h2 {
    margin-top: 0;
    margin-bottom: 15px;
    /* reduce space below heading */
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 20px auto 30px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.facility-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
}

.center .btn{
    padding: 14px 40px;   /* increases length left-right */
}


/* LIFE */
.life {
    padding: 60px 0;
    text-align: center;
}

.life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.life-card img {
    width: 100%;
    border-radius: 10px;
}



/* ================= CHAIRMAN MESSAGE ================= */
.chairman {
    background: #f9fafb;
    padding: 40px 0 60px 0;
}

.chairman-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

/* IMAGE */
.chairman-photo img {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* CONTENT */
.chairman-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    margin-top: 0;
    color: #0b4fa3;
}

.chairman-quote {
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 25px;
}

.chairman-name {
    font-size: 15px;
    color: #111827;
}


/* TESTIMONIAL */
.testimonial {
    background: #fff4d6;
    padding: 60px 0;
    text-align: center;
}

blockquote {
    max-width: 700px;
    margin: auto;
    font-size: 18px;
    font-style: italic;
}

blockquote span {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}


/* ================= FOOTER ================= */

.school-footer {
    /* background: linear-gradient(to right, #0b4fa3, #1b78d6); */
    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 {
    display: inline-block;
    margin: 0 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.footer-social a:hover {
    color: #facc15;
}

/* BOTTOM BAR */
.footer-bottom {
    margin-top: 30px;
    padding: 15px 20px;
    text-align: center;
    background: #063360;
    font-size: 13px;
}




/* ================= AUTO SCROLL UPDATES ================= */
.updates {
    background: #f8fafc;
    padding: 40px 0 80px 0;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

/* remove side gap */
.updates .container {
    max-width: 100%;
    padding: 0 10px;
    /* reduce side padding */
}

.updates-header {
    text-align: center;
    margin-bottom: 40px;
}

.updates-header h2 {
    font-size: 34px;
    color: #0b4fa3;
}

/* SLIDER */
.updates-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* TRACK */
.updates-track {
    display: flex;
    gap: 30px;
    animation: scrollUpdates 25s linear infinite;
    width: max-content;
    padding-left: 10px;
}

/* PAUSE ON HOVER */
.updates-slider:hover .updates-track {
    animation-play-state: paused;
}

/* CARD */
.update-card {
    min-width: 360px;
    max-width: 360px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    transition: 0.3s;
}

.update-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* gradient top */
.update-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(to right,#facc15,#0b4fa3);
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #facc15;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: bold;
}

.update-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.update-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.update-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-btn {
    background: #0b4fa3;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.read-btn:hover {
    background: #063360;
}

/* SCROLL ANIMATION */
@keyframes scrollUpdates {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* MOBILE */
@media(max-width:768px){
    .update-card{
        min-width:260px;
        max-width:260px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .updates-slider:hover .updates-track {
        animation-play-state: paused;
    }
}


/* ================= MOBILE RESPONSIVE FIXES ================= */
@media (max-width: 768px) {

    /* ===== HERO ===== */
        .hero {
        height: 75vh; /* slightly shorter for mobile */
    }

    .hero-img {
        object-position: center;
    }

    .hero-overlay {
        padding: 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-overlay h1 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 14px;
        max-width: 100%;
    }

    .hero-overlay p {
        font-size: 0.95rem;
        margin-bottom: 22px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 12px 0;
        font-size: 0.95rem;
    }

    /* SLIDER IMAGE SAFETY */
    .hero-slider .hero-img {
        width: 100%;
        height: 100%;
    }


    /* ===== FEATURES ===== */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .center .btn.primary{
        padding: 16px 70px;   /* even longer on mobile */
    }



    /* ===== WHY ===== */
    .why {
        padding: 40px 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    /* ===== FACILITIES ===== */
    .facility-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .facility-card img {
        height: 180px;
    }

    /* ===== LIFE AT SCHOOL ===== */
    .life {
        padding: 40px 0;
    }

    .life-grid {
        grid-template-columns: 1fr;
    }

    
    /* ================= 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;
    }

}

/* ---------- MOBILE ONLY ---------- */
@media (max-width: 768px){


    .chairman .container{
        padding-top: 0;
        margin-top: 0;
    }

    .chairman{
        padding-top: 20px !important;   /* reduce top space */
        padding-bottom: 40px;
    }

    .chairman-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Title at top */
    .chairman-content h2{
        order: -1;
        margin-bottom: 15px;
        margin-top: 0;
        padding-top: 0;
    }

    /* Image below title */
    .chairman-photo{
        order: 1;
        margin-bottom: 20px;
    }

    /* Bigger image on mobile */
    .chairman-photo img{
        width: 230px;      /* increase size */
        max-width: 90%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 12px;
    }

    /* Content text */
    .chairman-content{
        order: 2;
        padding: 0 15px;
    }

    /* Proper paragraph alignment */
    .chairman-quote{
        text-align: justify;      /* same alignment each line */
        line-height: 1.7;
        font-size: 15px;
    }

    .chairman-name{
        text-align: center;
        margin-top: 15px;
    }
}










