
:root {
    --navy: #12345B;
    --gold: #D6B45C;
    --white: #FFFFFF;
}

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

body {
    font-family: Arial, sans-serif;
    background: var(--white);
    color: var(--navy);
}

.header {
    background: var(--navy);
    color: var(--white);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.logo-placeholder {
    width: 90px;
    height: 90px;
    border: 2px dashed var(--gold);
    display: grid;
    place-items: center;
    font-size: 12px;
}

.school-info h1 {
    font-size: 27px;
}

.school-info span {
    color: var(--gold);
    font-weight: bold;
}

.navbar {
    background: var(--gold);
    padding: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.navbar a {
    color: var(--navy);
    text-decoration: none;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 40px 15px;
}

.building-placeholder {
    background: #E8EDF3;
    border: 2px dashed var(--navy);
    max-width: 950px;
    margin: auto;
    min-height: 250px;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.hero h2 {
    margin-top: 30px;
    font-size: 28px;
}

.hero h3 {
    color: #B58C35;
    margin: 15px;
}

.hero p {
    margin: 12px;
}

.contact-btn {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 14px 25px;
    margin-top: 15px;
    text-decoration: none;
    border-radius: 5px;
}

footer {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
}

@media(max-width: 600px) {
    .header {
        flex-direction: column;
    }

    .school-info h1 {
        font-size: 20px;
    }

    .navbar {
        gap: 15px;
    }
}

/* COMMON SECTION TITLE */

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    color: #12345B;
    font-size: 28px;
    margin-bottom: 12px;
}

.section-title span {
    display: block;
    width: 75px;
    height: 4px;
    background: #D6B45C;
    margin: auto;
}

.section-title p {
    margin-top: 15px;
    color: #555;
}


/* ABOUT SECTION */

.about-section {
    padding: 55px 8%;
    text-align: center;
    background: #F5F7FA;
}

.about-section p {
    max-width: 900px;
    margin: 15px auto;
    line-height: 1.8;
    color: #444;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #12345B;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}


/* SCHOOL HIGHLIGHTS */

.highlights-section {
    padding: 55px 8%;
    background: white;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    background: #12345B;
    color: white;
    text-align: center;
    padding: 30px 15px;
    border-bottom: 4px solid #D6B45C;
    border-radius: 8px;
}

.highlight-card h3 {
    color: #D6B45C;
    margin-bottom: 10px;
}


/* FACILITIES SECTION */

.facilities-section {
    padding: 55px 8%;
    background: #F5F7FA;
}

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

.facility-card {
    background: white;
    padding: 30px 15px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #E1E5EA;
    transition: 0.3s;
}

.facility-card:hover {
    transform: translateY(-5px);
    border-color: #D6B45C;
    box-shadow: 0 5px 18px rgba(0,0,0,0.10);
}

.facility-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.facility-card h3 {
    color: #12345B;
    font-size: 17px;
}


/* MOBILE RESPONSIVE */

@media(max-width: 768px) {

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

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

    .section-title h2 {
        font-size: 22px;
    }

}

@media(max-width: 450px) {

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

}

/* SOCIAL MEDIA TOP BAR */

.social-topbar {
    background: #0B2542;
    color: #FFFFFF;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-left {
    font-size: 13px;
    color: #FFFFFF;
}

.social-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    text-decoration: none;
    color: #FFFFFF;
    padding: 7px 13px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.facebook {
    background: #1877F2;
}

.instagram {
    background: #C13584;
}

.youtube {
    background: #FF0000;
}

.whatsapp {
    background: #25D366;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

@media(max-width: 600px) {

    .social-topbar {
        justify-content: center;
        text-align: center;
    }

    .social-right {
        justify-content: center;
    }

}

/* CHAIRMAN MESSAGE SECTION */

.chairman-section {
    padding: 65px 8%;
    background: #FFFFFF;
}

.chairman-container {
    max-width: 1100px;
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    background: #F5F7FA;
    padding: 35px;
    border-radius: 12px;
    border-left: 5px solid #D6B45C;
}

/* CHAIRMAN PHOTO */

.chairman-photo {
    width: 100%;
}

.photo-placeholder {
    width: 100%;
    height: 330px;
    background: #E1E7EF;
    border: 2px dashed #12345B;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #12345B;
    font-weight: bold;
    gap: 10px;
}

.photo-placeholder small {
    color: #777777;
    font-weight: normal;
}

/* CHAIRMAN CONTENT */

.chairman-content h2 {
    color: #12345B;
    font-size: 26px;
    margin-bottom: 10px;
}

.chairman-content h4 {
    color: #B58C35;
    margin-bottom: 8px;
}

.chairman-content h5 {
    color: #555555;
    margin-bottom: 20px;
}

.chairman-content p {
    color: #444444;
    line-height: 1.9;
    margin-bottom: 15px;
    text-align: justify;
}

.chairman-signature {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid #D6B45C;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chairman-signature strong {
    color: #12345B;
}

.chairman-signature small {
    color: #B58C35;
}

/* MOBILE RESPONSIVE */

@media(max-width: 768px) {

    .chairman-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }

    .chairman-photo {
        max-width: 260px;
        margin: auto;
    }

    .photo-placeholder {
        height: 300px;
    }

    .chairman-content h2 {
        font-size: 21px;
    }

}
/* SCHOOL LOGO */

.school-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* PHOTO GALLERY */

.page-banner {
    background: #12345B;
    color: #FFFFFF;
    text-align: center;
    padding: 45px 20px;
}

.page-banner h1 {
    color: #D6B45C;
    margin-bottom: 10px;
}

.gallery-section {
    padding: 50px 6%;
    text-align: center;
}

.gallery-section h2 {
    color: #12345B;
    margin-bottom: 12px;
}

.gallery-intro {
    margin-bottom: 30px;
    color: #555;
}

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

.gallery-item {
    background: #FFFFFF;
    border: 1px solid #dddddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.gallery-placeholder {
    height: 210px;
    background: #e9eef4;
    color: #12345B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.gallery-item h3 {
    color: #12345B;
    padding: 15px;
    margin: 0;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* NEWS AND ANNOUNCEMENTS */

.news-section {
    padding: 50px 6%;
    text-align: center;
}

.news-section h2 {
    color: #12345B;
    margin-bottom: 12px;
}

.news-intro {
    color: #555;
    margin-bottom: 30px;
}

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

.news-card {
    background: #FFFFFF;
    border: 1px solid #dddddd;
    border-left: 5px solid #D6B45C;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.news-date {
    color: #98751e;
    font-weight: bold;
    margin-bottom: 15px;
}

.news-card h3 {
    color: #12345B;
    margin-bottom: 12px;
}

.news-card p {
    color: #555;
    line-height: 1.7;
}

.news-status {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    background: #eef3f8;
    color: #12345B;
    border-radius: 4px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* SCHOOL EVENTS */

.events-section {
    padding: 50px 6%;
    text-align: center;
}

.events-section h2 {
    color: #12345B;
    margin-bottom: 12px;
}

.events-intro {
    color: #555;
    margin-bottom: 30px;
}

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

.event-card {
    background: #FFFFFF;
    padding: 30px 22px;
    border: 1px solid #dddddd;
    border-bottom: 4px solid #D6B45C;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.event-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.event-card h3 {
    color: #12345B;
    margin-bottom: 12px;
}

.event-card p {
    color: #555;
    line-height: 1.7;
}

.events-note {
    margin-top: 40px;
    padding: 25px;
    background: #eef3f8;
    border-radius: 8px;
}

.events-note h3 {
    color: #12345B;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* CONTACT PAGE */

.contact-section {
    padding: 50px 6%;
    text-align: center;
}

.contact-section h2 {
    color: #12345B;
    margin-bottom: 12px;
}

.contact-intro {
    color: #555;
    margin-bottom: 30px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    text-align: left;
}

.contact-card,
.contact-map {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #dddddd;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.contact-card h3,
.contact-map h3 {
    color: #12345B;
    margin-bottom: 22px;
}

.contact-item {
    margin-bottom: 18px;
}

.contact-item strong {
    color: #98751e;
}

.contact-item p {
    color: #444;
    line-height: 1.6;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.contact-item a {
    color: #12345B;
    text-decoration: none;
}

.contact-whatsapp {
    display: inline-block;
    background: #168b4b;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.contact-map iframe {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* FINAL WEBSITE RESPONSIVE IMPROVEMENTS */

/* HEADER */

.header {
    width: 100%;
    flex-wrap: wrap;
    padding: 20px 5%;
}

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

.school-info h1 {
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.3;
}

.school-info p {
    margin: 8px 0;
    font-size: 15px;
}

/* NAVIGATION */

.navbar {
    width: 100%;
    padding: 14px 10px;
    gap: 10px 22px;
}

.navbar a {
    padding: 8px 5px;
    transition: 0.3s;
}

.navbar a:hover {
    color: #FFFFFF;
}

/* SOCIAL MEDIA */

.social-topbar {
    width: 100%;
}

.social-btn {
    display: inline-block;
}

/* GENERAL CONTENT */

img {
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

/* TABLET */

@media (max-width: 768px) {

    .header {
        gap: 12px;
    }

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

    .navbar {
        gap: 8px 14px;
    }

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

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

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

    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .header {
        flex-direction: column;
        text-align: center;
        padding: 20px 12px;
    }

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

    .school-info h1 {
        font-size: 20px;
    }

    .school-info p {
        font-size: 13px;
    }

    .navbar {
        gap: 5px 10px;
        padding: 12px 8px;
    }

    .navbar a {
        font-size: 13px;
        padding: 7px 5px;
    }

    .social-topbar {
        flex-direction: column;
        text-align: center;
    }

    .social-right {
        justify-content: center;
    }

    .social-btn {
        padding: 6px 9px;
        font-size: 11px;
    }

    .hero {
        padding: 30px 15px;
    }

    .hero h2 {
        font-size: 23px;
    }

    .about-section,
    .highlights-section,
    .facilities-section,
    .chairman-section {
        padding: 35px 5%;
    }

    .gallery-section,
    .news-section,
    .events-section,
    .contact-section {
        padding: 35px 5%;
    }
}

/* SMALL MOBILE */

@media (max-width: 450px) {

    .highlights-grid,
    .facilities-grid,
    .gallery-grid,
    .news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .school-info h1 {
        font-size: 18px;
    }

    .navbar {
        gap: 4px 8px;
    }
}

/* IMPROVE WEBSITE TEXT READABILITY */

/* General text */
body {
    font-size: 16px;
    line-height: 1.7;
}

/* Section headings */
.about-section h2,
.highlights-section h2,
.facilities-section h2,
.chairman-section h2,
.gallery-section h2,
.news-section h2,
.events-section h2,
.contact-section h2 {
    font-size: 26px;
}

/* Paragraphs */
.about-section p,
.facilities-section p,
.chairman-section p,
.news-section p,
.events-section p,
.contact-section p {
    font-size: 16px;
    line-height: 1.8;
}

/* Facility cards */
.facility-card,
.facility-card h3,
.facility-card p {
    font-size: 16px;
}

/* Highlight cards */
.highlight-card {
    font-size: 16px;
}

/* Chairman details */
.chairman-content h3 {
    font-size: 22px;
}

/* Mobile screens */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .about-section h2,
    .highlights-section h2,
    .facilities-section h2,
    .chairman-section h2 {
        font-size: 22px;
    }

    .about-section p,
    .facilities-section p,
    .chairman-section p {
        font-size: 15px;
    }
}

/* CHAIRMAN PHOTO */
.chairman-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 2px solid #D6B45C;
    display: block;
}

/* SCHOOL BUILDING PHOTO */
.building-placeholder {
    width: 100%;
    max-width: 760px;
    height: 300px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 8px;
}

.school-building-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 600px) {
    .building-placeholder {
        height: 220px;
    }
}

/* ONLINE ENQUIRY FORM */

.contact-enquiry {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-enquiry h3 {
    color: #102c54;
    border-bottom: 3px solid #d4a017;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.enquiry-field {
    margin-bottom: 16px;
}

.enquiry-field label {
    display: block;
    font-weight: bold;
    color: #263b57;
    margin-bottom: 7px;
}

.enquiry-field input,
.enquiry-field select,
.enquiry-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd5e0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.enquiry-field textarea {
    resize: vertical;
}

.enquiry-submit,
.enquiry-reset {
    padding: 12px 22px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin: 5px 5px 5px 0;
}

.enquiry-submit {
    background: #102c54;
    color: white;
}

.enquiry-submit:hover {
    background: #d4a017;
    color: #102c54;
}

.enquiry-reset {
    background: #e5e9ef;
    color: #263b57;
}

.enquiry-note { 
    color: #888;
    font-size: 12px;
    margin-top: 12px;
}

@media(max-width: 768px) {
    .contact-enquiry {
        padding: 18px;
    }
}

