/* =========================================================
   GOLDEN JUBILEE HIGH SCHOOL
   GLOBAL WEBSITE CSS

   This file controls:
   - Header
   - Navigation
   - Buttons
   - Common sections
   - Footer
   - Responsive layout
========================================================= */


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

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


/* =========================================================
   ROOT COLORS

   CHANGE WEBSITE COLORS HERE
========================================================= */

:root {

    --primary: #164c3b;

    --primary-dark: #0c3025;

    --accent: #c9a45c;

    --text: #1d2522;

    --muted: #68716d;

    --light: #f5f7f5;

    --white: #ffffff;

    --border: #58bb79;

}


/* =========================================================
   HTML / BODY

   IMPORTANT:
   min-height + flex makes footer stay at bottom
========================================================= */

html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.6;

}


/* =========================================================
   MAIN

   flex: 1 pushes footer to bottom
========================================================= */

main {
    flex: 1;
}


img {
    max-width: 100%;
    display: block;
}


a {
    color: inherit;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin-left: auto;
    margin-right: auto;

}


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

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(255,255,255,.97);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(12px);

}


/* =========================================================
   NAV
========================================================= */

.nav {

    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


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

.brand {

    display: flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;

    min-width: 0;

}


/* =========================================================
   LOGO

   CHANGE LOGO SIZE HERE
========================================================= */

.brand-logo {

    width: 90px;

    height: 90px;

    flex:
        0 0 80px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.brand-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


/* =========================================================
   SCHOOL NAME
========================================================= */

.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.1;

}


.brand-text strong {

    font-size: 19px;

    font-weight: 800;

    white-space: nowrap;

}


.brand-text small {

    margin-top: 5px;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 1.3px;

    opacity: .58;

    white-space: nowrap;

}


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

.nav-links {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 2px;

}


.nav-links a {

    padding:
        10px 12px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;

}


.nav-links a:hover {

    color:
        var(--primary);

    background:
        #f1f5f2;

}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn {

    display: none;

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 25px;

    line-height: 1;

    padding: 6px;

}


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

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        11px 20px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition: .25s;

}


.btn-primary {

    color:
        var(--white);

    background:
        var(--primary);

}


.btn-primary:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-2px);

}


.btn-outline {

    color:
        var(--white);

    border:
        1px solid
        rgba(255,255,255,.6);

}


.btn-outline:hover {

    color:
        var(--primary);

    background:
        var(--white);

}


/* =========================================================
   COMMON SECTION
========================================================= */

.section {

    padding:
        80px 0;

}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;

}


.eyebrow {

    display: inline-block;

    color:
        var(--accent);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.8px;

}


.section-heading h2 {

    margin-top: 5px;

    font-size:
        clamp(32px, 5vw, 46px);

    line-height: 1.05;

}


.section-heading p {

    margin-top: 9px;

    max-width: 580px;

    color:
        var(--muted);

    font-size: 15px;

}


/* =========================================================
   YEAR SELECTOR
========================================================= */

.year-selector-wrapper {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.year-selector-wrapper label {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.year-selector-wrapper select {

    min-width: 140px;

    padding:
        10px 13px;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background:
        var(--white);

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

}


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

   UPDATED:
   - Compact
   - Same original footer design
   - Left / center / right alignment
   - Responsive
========================================================= */

.site-footer {

    margin-top: auto;

    background:
        #0d3027;

    color:
        var(--white);

}


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

   Four equal / balanced columns
========================================================= */

.footer-grid {

    display: grid;

    grid-template-columns:
        1.45fr
        1fr
        1fr
        1.45fr;

    align-items: start;

    gap: 35px;

    padding:
        38px 0 32px;

}


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

.footer-brand {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.footer-logo {

    width: 90px;

    height: 90px;

    margin-bottom: 5px;

}


.footer-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


.footer-brand h3 {

    font-size: 19px;

    line-height: 1.2;

    font-weight: 800;

}


.footer-brand p {

    margin-top: 6px;

    font-size: 13px;

    opacity: .65;

}


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

.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.site-footer h4 {

    margin-bottom: 13px;

    color:
        var(--accent);

    font-size: 17px;

    font-weight: 800;

}


.footer-column a {

    margin-bottom: 7px;

    color:
        rgba(255,255,255,.72);

    text-decoration: none;

    font-size: 15px;

    line-height: 1.55;

    transition:
        color .2s ease;

}


.footer-column a:hover {

    color:
        var(--white);

}


.footer-column p {

    margin-bottom: 8px;

    color:
        rgba(255,255,255,.72);

    font-size: 13px;

    line-height: 1.5;

}


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

.footer-bottom {

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 20px;

    padding:
        14px 20px;

    border-top:
        1px solid
        rgba(255,255,255,.1);

    color:
        rgba(255,255,255,.5);

    font-size:
        12px;

}


.footer-powered {

    text-align:
        left;

}


.footer-copyright {

    text-align:
        center;

}


.footer-developed {

    text-align:
        right;

}


.footer-developed a {

    color:
        var(--accent);

    text-decoration:
        none;

    font-weight:
        700;

}


.footer-developed a:hover {

    text-decoration:
        underline;

}


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

@media (max-width: 950px) {


    .nav-links a {

        padding:
            8px 7px;

        font-size: 13px;

    }


    .brand-text strong {

        font-size: 16px;

    }


    .footer-grid {

        grid-template-columns:
            1.3fr
            1fr
            1fr
            1.3fr;

        gap: 22px;

    }

}


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

@media (max-width: 800px) {


    .container {

        width:
            min(
                100% - 30px,
                1180px
            );

    }


    .nav {

        min-height: 68px;

    }


    .brand-logo {

        width: 43px;

        height: 43px;

        flex-basis: 43px;

    }


    .brand-text strong {

        font-size: 15px;

    }


    .brand-text small {

        font-size: 6px;

        letter-spacing: 1px;

    }


    /* SHOW MOBILE BUTTON */

    .menu-btn {

        display: block;

    }


    /* MOBILE NAV */

    .nav-links {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        padding:
            10px 15px 15px;

        background:
            var(--white);

        border-bottom:
            1px solid var(--border);

        box-shadow:
            0 12px 25px
            rgba(0,0,0,.07);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-8px);

        transition: .25s;

    }


    .nav-links.active {

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);

    }


    .nav-links a {

        width: 100%;

        padding:
            11px 13px;

        font-size: 14px;

    }


    /* SECTION */

    .section {

        padding:
            60px 0;

    }


    .section-heading {

        align-items: flex-start;

        flex-direction: column;

    }


    /* FOOTER */

    .footer-grid {

        grid-template-columns:
            1fr 1fr;

        gap:
            28px 20px;

        padding:
            35px 0 28px;

    }


    /* FOOTER BOTTOM */

    .footer-bottom {

        grid-template-columns:
            1fr;

        gap:
            7px;

        padding:
            14px 20px;

    }


    .footer-powered,
    .footer-copyright,
    .footer-developed {

        text-align:
            center;

    }

}


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

@media (max-width: 500px) {


    .footer-grid {

        grid-template-columns:
            1fr;

        gap: 24px;

    }


    .footer-brand,
    .footer-column {

        align-items:
            flex-start;

    }


    .footer-bottom {

        gap:
            6px;

    }

}

/* =========================================================
   LARGER TILE / CARD TYPOGRAPHY

   Increase these values here if you want the content tiles
   across the website to look even more prominent.
========================================================= */

.achievement-card h3 {
    font-size: 19px;
}

.achievement-card p {
    font-size: 14px;
}

.achievement-number {
    font-size: 42px;
}

.ranker-content h3 {
    font-size: 20px;
}

.ranker-class {
    font-size: 13px;
}

.ranker-score {
    font-size: 18px;
}

.ranker-description {
    font-size: 13px;
}

.event-content h3 {
    font-size: 23px;
}

.event-content p {
    font-size: 14px;
}

.academic-card h3 {
    font-size: 18px;
}

.academic-card p {
    font-size: 14px;
}

.process h3 {
    font-size: 18px;
}

.process p {
    font-size: 14px;
}

.contact-item strong {
    font-size: 15px;
}

.contact-item p {
    font-size: 14px;
}

/* =========================================================
   FIXED SOCIAL MEDIA BAR

   Added without changing existing website styling.
========================================================= */

.social-bar {

    position: fixed;

    right: 10px;

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    flex-direction: column;

    gap: 7px;

    z-index: 9999;

}


.social-bar a {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e32620;

    color: #ffffff;

    border: 2px solid #ffffff;

    text-decoration: none;

    box-shadow: 0 2px 7px rgba(0,0,0,.18);

    transition: transform .2s ease, background .2s ease;

}


.social-bar a:hover {

    transform: scale(1.08);

    background: var(--primary);

}


.social-bar svg {

    width: 21px;

    height: 21px;

    display: block;

    fill: #ffffff;

    stroke: #ffffff;

    stroke-width: 1.8;

}


.social-bar svg rect,
.social-bar svg circle {

    fill: none;

}


.social-bar svg .social-fill {

    fill: #ffffff;

    stroke: none;

}


@media (max-width: 700px) {

    .social-bar {

        right: 6px;

        gap: 6px;

    }

    .social-bar a {

        width: 36px;

        height: 36px;

    }

    .social-bar svg {

        width: 19px;

        height: 19px;

    }

}

