/* =========================================================
   FIRST OXFORD SCHOOL
   STAFF MEMBERS PAGE
   CLEAN STAFF CSS
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    padding: 0;

    font-family: "Poppins", sans-serif;

    background-color: #f5f7fb;

    color: #222;

    overflow-x: hidden;
}


h3 {
    text-align: center;
}

img {
    max-width: 100%;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    min-height: 90px;

    padding: 10px 40px;

    background-color: rgb(241, 239, 97);

    display: grid;

    grid-template-columns:
        1fr 130px 1fr;

    align-items: center;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-right {
        width: auto;

        margin-left: auto;

        display: flex;

        align-items: center;
    }

    .nav-right a {
        display: none;
    }

    .menu-toggle {
        display: block !important;

        font-size: 28px;

        color: black;

        cursor: pointer;

        z-index: 1002;
    }


/* =========================================================
   MOBILE MENU / LEFT SIDE
   ========================================================= */

.nav-left {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 25px;

    width: 100%;
}


.nav-left a {
    position: relative;

    color: black;

    text-decoration: none;

    font-size: 16px;

    font-weight: 500;

    white-space: nowrap;
}


/* Hover line */

.nav-left a::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -5px;

    width: 0;

    height: 2px;

    background-color: white;

    transition: width 0.3s ease;
}


.nav-left a:hover::after {
    width: 100%;
}


/* =========================================================
   LOGO
   ========================================================= */

.nav-logo {
    width: 130px;

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 1001;
}


.nav-logo img {
    width: 110px;

    height: 75px;

    object-fit: contain;

    display: block;
}


/* =========================================================
   NAV RIGHT / HAMBURGER
   ========================================================= */

.nav-right {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 25px;
}


.menu-toggle {
    display: none;

    font-size: 28px;

    color: black;

    cursor: pointer;

    z-index: 1002;
}


/* =========================================================
   STAFF PAGE HEADER
   ========================================================= */

.section1 {
    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 20px;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

header {
    text-align: center;

    margin-bottom: 35px;
}


header h1 {
    margin: 0;

    font-size: 38px;

    font-weight: 700;

    color: #222;
}


header p {
    margin-top: 10px;

    font-size: 17px;

    color: #666;
}


/* =========================================================
   SEARCH SECTION
   ========================================================= */

.hero {
    width: 100%;

    min-height: 160px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px 20px;

    background:
        linear-gradient(
            rgba(14, 138, 176, 0.08),
            rgba(14, 138, 176, 0.08)
        );

    border-radius: 15px;

    box-sizing: border-box;
}


/* Search box */

.search-box {
    width: 100%;

    max-width: 650px;

    position: relative;
}


.search-box input {
    width: 100%;

    padding: 17px 22px;

    border: 1px solid #d7dce2;

    border-radius: 10px;

    outline: none;

    background-color: white;

    font-family: "Poppins", sans-serif;

    font-size: 15px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.search-box input:focus {
    border-color: #0e8ab0;

    box-shadow:
        0 0 0 3px rgba(14, 138, 176, 0.1);
}


/* =========================================================
   STAFF DIRECTORY
   ========================================================= */

#gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    gap: 40px;

    box-sizing: border-box;
}


/* =========================================================
   STAFF CARD
   ========================================================= */

.gallery-item {
    width: 100%;

    background-color: white;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.gallery-item:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12);
}


.gallery-item img {
    width: 100%;

    height: 280px;

    object-fit: cover;

    display: block;
}


.gallery-item p {
    margin: 0;

    padding: 17px;

    text-align: center;

    font-size: 15px;

    color: #444;

    line-height: 1.5;
}


/* =========================================================
   LOADING / EMPTY STATE
   ========================================================= */

#gallery-container:empty::before {
    content: "Loading staff members...";

    display: block;

    grid-column: 1 / -1;

    text-align: center;

    padding: 50px 20px;

    color: #777;

    font-size: 15px;
}


/* =========================================================
   FOOTER
   ========================================================= */

    .fos-footer {
        background: #1a1a2e;
        color: #cfd2dc;
        font-family: 'Poppins', sans-serif;
        padding: 60px 30px 0;
    }
 
    .fos-footer a {
        color: #cfd2dc;
        text-decoration: none;
        transition: color 0.2s;
    }
 
    .fos-footer a:hover {
        color: rgb(241, 239, 97);
    }
 
    .fos-footer-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
 
    /* ---- Column 1: About + Social ---- */
 
    .fos-footer-about {
        flex: 1 1 280px;
        max-width: 340px;
    }
 
    .fos-footer-about h3 {
        color: white;
        font-size: 16px;
        margin: 0 0 14px;
    }
 
    .fos-footer-social {
        display: flex;
        gap: 12px;
        margin-bottom: 22px;
        flex-wrap: wrap;
    }
 
    .fos-footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
    }
 
    .fos-footer-social a:hover {
        background: rgb(241, 239, 97);
        color: #1a1a2e;
    }
 
    .fos-footer-about p {
        font-size: 13px;
        line-height: 1.7;
        color: #a9adba;
        margin: 0 0 12px;
    }
 
    /* ---- Columns 2-4: Link groups ---- */
 
    .fos-footer-links {
        flex: 1 1 180px;
    }
 
    .fos-footer-links h4 {
        color: white;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0 0 18px;
    }
 
    .fos-footer-links ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
 
    .fos-footer-links li {
        margin-bottom: 12px;
        font-size: 13px;
    }
 
    /* ---- Bottom bar ---- */
 
    .fos-footer-bottom {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        color: #8f93a1;
    }
 
    .fos-footer-bottom a {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #8f93a1;
    }
 
    .fos-footer-bottom a:hover {
        color: rgb(241, 239, 97);
    }
 
    @media (max-width: 600px) {
 
        .fos-footer {
            padding: 40px 20px 0;
        }
 
        .fos-footer-bottom {
            justify-content: center;
            text-align: center;
        }
 
    }
 


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .navbar {
        padding:
            10px 25px;

        grid-template-columns:
            1fr 110px 1fr;
    }


    .nav-left {
        gap: 15px;
    }


    .nav-left a {
        font-size: 14px;
    }


    .nav-logo {
        width: 110px;
    }


    .nav-logo img {
        width: 95px;

        height: 70px;
    }


    #gallery-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE NAVBAR
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       NAVBAR
       ----------------------------------------------------- */

    .navbar {

        width: 100%;

        height: 70px;

        min-height: 70px;

        padding: 5px 15px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        position: sticky;

        top: 0;

        z-index: 1000;
    }


    /* -----------------------------------------------------
       MOBILE MENU
       ----------------------------------------------------- */

    .nav-left {

        position: absolute;

        top: 70px;

        left: 0;

        width: 100%;

        padding: 10px 0;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 0;

        background-color:
            rgb(241, 239, 97);

        box-shadow:
            0 6px 15px rgba(0, 0, 0, 0.15);

        transform:
            translateY(-120%);

        transition:
            transform 0.3s ease;

        z-index: 999;
    }


    /* -----------------------------------------------------
       OPEN MENU
       ----------------------------------------------------- */

    .nav-left.active {

        transform:
            translateY(0);
    }


    /* -----------------------------------------------------
       MOBILE LINKS
       ----------------------------------------------------- */

    .nav-left a {

        display: block;

        width: 100%;

        padding: 14px 20px;

        text-align: center;

        font-size: 16px;

        color: black;

        white-space: nowrap;

        box-sizing: border-box;
    }


    .nav-left a::after {
        display: none;
    }


    .nav-left a:hover {

        background-color:
            rgba(255, 255, 255, 0.45);
    }


    /* -----------------------------------------------------
       CENTER LOGO
       ----------------------------------------------------- */

    .nav-logo {

        position: absolute;

        left: 50%;

        top: 50%;

        transform:
            translate(-50%, -50%);

        width: 100px;

        height: 60px;

        z-index: 1001;
    }


    .nav-logo img {

        width: 100px;

        height: 60px;

        object-fit: contain;
    }


    /* -----------------------------------------------------
       HAMBURGER
       ----------------------------------------------------- */

    .nav-right {

        width: auto;

        margin-left: auto;

        display: flex;

        align-items: center;

        justify-content: center;

        z-index: 1002;
    }


    .menu-toggle {

        display: block !important;

        font-size: 27px;

        color: black;

        cursor: pointer;
    }


    /* -----------------------------------------------------
       STAFF HEADER
       ----------------------------------------------------- */

    .section1 {

        padding:
            30px 15px;
    }


    header h1 {

        font-size: 30px;

        line-height: 1.2;
    }


    header p {

        font-size: 15px;

        line-height: 1.5;
    }


    /* -----------------------------------------------------
       SEARCH
       ----------------------------------------------------- */

    .hero {

        min-height: 140px;

        padding:
            25px 15px;
    }


    .search-box input {

        padding:
            14px 16px;

        font-size: 14px;
    }


    /* -----------------------------------------------------
       STAFF CARDS
       ----------------------------------------------------- */

    #gallery-container {

        width: 100%;

        margin:
            25px 0;

        padding:
            0 15px;

        grid-template-columns:
            1fr;

        gap: 20px;
    }


    .gallery-item img {

        height: 300px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .navbar {

        height: 65px;

        min-height: 65px;

        padding:
            5px 12px;
    }


    .nav-left {

        top: 65px;
    }


    .nav-left a {

        padding:
            13px 15px;

        font-size: 15px;
    }


    .nav-logo {

        width: 90px;

        height: 55px;
    }


    .nav-logo img {

        width: 90px;

        height: 55px;
    }


    .menu-toggle {

        font-size: 25px;
    }


    .section1 {

        padding:
            25px 10px;
    }


    header h1 {

        font-size: 25px;
    }


    header p {

        font-size: 14px;
    }


    #gallery-container {

        padding:
            0 10px;
    }


    .gallery-item img {

        height: 250px;
    }


    .gallery-item p {

        font-size: 14px;

        padding: 14px;
    }

}

/* =========================================
   STAFF PHOTO FIX
   ========================================= */

.gallery-item img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    object-position: center top;
    display: block;
    background-color: #ffffff;
    border-radius: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .gallery-item img {
        height: 360px;
        object-fit: contain;
        object-position: center top;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 320px;
        object-fit: contain;
        object-position: center top;
    }
}

/* =========================================
   STAFF CATEGORY GRID LAYOUT
   ========================================= */

.staff-category {
    width: 100%;
    display: block;
}

.staff-category h2 {
    margin-bottom: 25px;
    text-align: center;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

/* Tablet */
@media (max-width: 1000px) {
    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   FIRST OXFORD SCHOOL - STAFF PAGE STYLES (staffpage.css)
   Load this AFTER style.css (style.css gives the navbar and footer).
   Every class here starts with "st-" or "fos-" so it never clashes with other pages.
   ========================================================== */

:root { /* Defines the school colours once so we can reuse them */
    --fos-yellow: rgb(241, 239, 97); /* Light yellow */
    --fos-gold: #ffcc00; /* Gold */
    --fos-navy: #0a2a66; /* Navy blue */
    --fos-deep: #002147; /* Darker navy */
    --fos-bg: #f5f7fb; /* Soft page background */
} /* Ends the colour list */

h1, h2, h3, h4 { /* Selects all headings */
    font-family: 'Poppins', Arial, Helvetica, sans-serif; /* Poppins font, or Arial if Poppins does not load */
} /* Ends the heading rule */

:focus-visible { /* Applies when someone uses the keyboard to move around */
    outline: 3px solid var(--fos-navy); /* Navy outline so they can see where they are */
    outline-offset: 3px; /* Small gap between the item and the outline */
} /* Ends the focus rule */

/* ---------- NAVBAR (small touches, same as the other pages) ---------- */

.navbar { /* The top menu bar */
    position: fixed; /* Keeps the menu stuck to the screen while the visitor scrolls */
    top: 0; /* Sticks it to the very top edge */
    left: 0; /* Starts it at the left edge */
    width: 100%; /* Makes it stretch across the whole screen */
    z-index: 1500; /* Keeps it above the page content (but below the pop-up, which is 2000) */
    box-sizing: border-box; /* Stops padding from making the bar wider than the screen */
    border-bottom: 3px solid var(--fos-navy); /* Navy line under the menu */
} /* Ends the navbar rule */

.navbar a { /* The menu links */
    font-family: 'Poppins', Arial, Helvetica, sans-serif; /* Poppins font */
    font-size: 15px; /* Text size */
} /* Ends the link rule */

.navbar a::after { /* The hover underline on menu links */
    background: var(--fos-navy); /* Navy underline */
} /* Ends the underline rule */

/* ---------- HERO (top banner with the search box) ---------- */

.st-hero { /* The big banner at the top */
    height: 90vh;
    width: 100%;
    position: relative; /* Lets the dark layer sit inside the banner */
    overflow: hidden; /* Hides anything sticking out */
    padding: 170px 20px 90px; /* Space inside (top, sides, bottom) so text clears the menu */
    background: url("images/s1.jpg") center/cover no-repeat; /* Background picture, centred and stretched */
    background-color: #181a20; /* Blue shown if the picture fails to load */
    border-bottom: 5px solid var(--fos-yellow); /* Yellow line under the banner */
    text-align: center; /* Centres all the text */
} /* Ends the banner rule */

.st-hero::before { /* A dark layer over the picture */
    content: ""; /* Needed so the layer exists */
    position: absolute; /* Places it over the banner */
    inset: 0; /* Stretches it to all four edges */
    background: linear-gradient(180deg, rgba(0, 20, 60, 0.45), rgba(0, 20, 60, 0.7)); /* Dark navy fade so text is easy to read */
    z-index: 0; /* Keeps it behind the text */
} /* Ends the dark layer rule */

.st-hero-inner { /* The box holding the banner text and search */
    position: relative; /* Needed so z-index works */
    z-index: 1; /* Puts the content above the dark layer */
    max-width: 780px; /* Stops the content from getting too wide */
    margin: 0 auto; /* Centres the box */
} /* Ends the inner rule */

.st-hero h1 { /* The big title */
    margin: 0; /* Removes default space */
    color: #fff; /* White text */
    font-size: 46px; /* Large text */
    font-weight: 700; /* Bold */
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5); /* Soft shadow for readability */
} /* Ends the title rule */

.st-hero h1::after { /* Small yellow line under the title */
    content: ""; /* Needed so the line exists */
    display: block; /* Puts the line on its own row */
    width: 90px; /* Line length */
    height: 4px; /* Line thickness */
    margin: 16px auto 0; /* Space above and centres the line */
    border-radius: 4px; /* Rounded ends */
    background: var(--fos-yellow); /* Yellow colour */
} /* Ends the line rule */

.st-hero p { /* The sentence under the title */
    margin: 18px auto 0; /* Space above and centres the text */
    font-size: 20px; /* Text size */
    line-height: 1.6; /* Space between lines */
    color: var(--fos-yellow); /* Yellow text */
} /* Ends the sentence rule */

.st-search { /* The search bar wrapper */
    position: relative; /* Lets us place the magnifier icon inside */
    max-width: 520px; /* Search bar never wider than this */
    margin: 30px auto 0; /* Space above and centres the bar */
} /* Ends the wrapper rule */

.st-search i { /* The magnifier icon */
    position: absolute; /* Places the icon inside the bar */
    top: 50%; /* Moves it halfway down */
    left: 22px; /* Space from the left edge */
    transform: translateY(-50%); /* Centres it exactly up and down */
    color: var(--fos-navy); /* Navy icon */
} /* Ends the icon rule */

.st-search input { /* The text box itself */
    width: 100%; /* Fills the wrapper */
    padding: 15px 22px 15px 52px; /* Space inside (left is bigger to make room for the icon) */
    border: 3px solid transparent; /* Invisible border that turns yellow on focus */
    border-radius: 50px; /* Round pill shape */
    font-family: 'Poppins', Arial, Helvetica, sans-serif; /* Poppins font */
    font-size: 15px; /* Text size */
    box-sizing: border-box; /* Keeps padding inside the 100% width */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* Soft shadow */
} /* Ends the input rule */

.st-search input:focus { /* When someone clicks inside the search box */
    outline: none; /* Removes the default outline */
    border-color: var(--fos-yellow); /* Yellow border */
} /* Ends the focus rule */

/* ---------- VALUES STRIP (same as index, about and academics) ---------- */

.fos-values { /* The navy strip */
    background: var(--fos-navy); /* Navy background */
    border-bottom: 5px solid var(--fos-yellow); /* Yellow line under it */
} /* Ends the strip rule */

.fos-values-grid { /* Lays the four values side by side */
    max-width: 1200px; /* Never wider than 1200px */
    margin: 0 auto; /* Centres it */
    display: grid; /* Uses a grid */
    grid-template-columns: repeat(4, 1fr); /* Four equal columns */
} /* Ends the grid rule */

.fos-value { /* One value */
    padding: 30px 20px; /* Space inside */
    text-align: center; /* Centres the text */
    color: #fff; /* White text */
    border-right: 1px solid rgba(255, 255, 255, 0.14); /* Faint line between values */
} /* Ends the value rule */

.fos-value:last-child { /* The last value */
    border-right: none; /* No line after the last one */
} /* Ends the last-child rule */

.fos-value i { /* The value icon */
    display: block; /* Puts the icon on its own row */
    margin-bottom: 12px; /* Space under the icon */
    font-size: 32px; /* Icon size */
    color: var(--fos-yellow); /* Yellow icon */
} /* Ends the icon rule */

.fos-value h3 { /* The value title */
    margin: 0 0 6px; /* Space under the title only */
    font-size: 17px; /* Title size */
    color: #fff; /* White title */
} /* Ends the title rule */

.fos-value span { /* The value description */
    display: block; /* Puts it on its own row */
    font-size: 13px; /* Small text */
    line-height: 1.5; /* Space between lines */
    color: #c9d3ea; /* Light blue text */
} /* Ends the description rule */

/* ---------- STAFF SECTIONS ---------- */

.st-wrap { /* Wraps all the staff categories */
    width: 90%; /* Uses 90% of the screen width */
    max-width: 1200px; /* Never wider than 1200px */
    margin: 60px auto; /* Space above and below, and centres it */
} /* Ends the wrapper rule */

.st-category { /* One category (Management, Academic or Non-Academic) */
    margin-bottom: 55px; /* Space between categories */
} /* Ends the category rule */

.st-category h2 { /* The category heading */
    margin: 0 0 30px; /* Space under the heading */
    font-size: 30px; /* Heading size */
    color: var(--fos-navy); /* Navy colour */
    text-align: center; /* Centres the heading */
} /* Ends the heading rule */

.st-category h2::after { /* Gold line under the heading */
    content: ""; /* Needed so the line exists */
    display: block; /* Puts the line on its own row */
    width: 90px; /* Line length */
    height: 4px; /* Line thickness */
    margin: 14px auto 0; /* Space above and centres it */
    border-radius: 4px; /* Rounded ends */
    background: var(--fos-gold); /* Gold colour */
} /* Ends the line rule */

.st-grid { /* The grid that holds the staff cards */
    display: grid; /* Uses a grid */
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); /* As many columns as fit, each at least 230px wide */
    gap: 24px; /* Space between cards */
} /* Ends the grid rule */

.st-card { /* One staff card */
    display: flex; /* Stacks the content */
    flex-direction: column; /* Top to bottom */
    align-items: center; /* Centres the content left to right */
    padding: 28px 20px 24px; /* Space inside the card */
    background: #fff; /* White card */
    border-radius: 16px; /* Rounded corners */
    border-top: 5px solid var(--fos-gold); /* Gold top line like the other pages */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* Soft shadow */
    text-align: center; /* Centres the text */
    cursor: pointer; /* Hand cursor because the card is clickable */
    overflow-wrap: break-word; /* Breaks very long words so they do not overflow */
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; /* Smooth hover effect */
} /* Ends the card rule */

.st-card:hover { /* When the mouse is over a card */
    transform: translateY(-5px); /* Lifts the card */
    box-shadow: 0 12px 28px rgba(10, 42, 102, 0.16); /* Bigger shadow */
    background: var(--fos-navy); /* Turns navy, same as the tiles on index */
} /* Ends the hover rule */

.st-card img { /* The staff photo */
    width: 130px; /* Photo width */
    height: 130px; /* Photo height (same as width makes a circle) */
    object-fit: cover; /* Crops the photo instead of squashing it */
    border-radius: 50%; /* Makes the photo round */
    border: 4px solid var(--fos-yellow); /* Yellow ring around the photo */
    margin-bottom: 16px; /* Space under the photo */
    background: #e8edf8; /* Light colour shown while the photo loads */
} /* Ends the photo rule */

.st-card h3 { /* The staff name */
    margin: 0 0 6px; /* Space under the name */
    font-size: 18px; /* Name size */
    color: var(--fos-navy); /* Navy name */
    transition: color 0.25s ease; /* Smooth colour change */
} /* Ends the name rule */

.st-card p { /* The staff position */
    margin: 0; /* Removes default space */
    font-size: 13px; /* Small text */
    font-weight: 600; /* Semi-bold */
    letter-spacing: 0.5px; /* Slight space between letters */
    text-transform: uppercase; /* Makes the letters CAPITAL */
    color: #667; /* Grey text */
    transition: color 0.25s ease; /* Smooth colour change */
} /* Ends the position rule */

.st-card:hover h3 { /* Name when hovering */
    color: #fff; /* White so it shows on navy */
} /* Ends the rule */

.st-card:hover p { /* Position when hovering */
    color: var(--fos-yellow); /* Yellow so it shows on navy */
} /* Ends the rule */

.st-empty { /* The "No staff members found" message */
    display: none; /* Hidden until the search finds nothing */
    text-align: center; /* Centres the message */
    color: #4a5266; /* Soft text colour */
    font-size: 17px; /* Text size */
} /* Ends the empty rule */

/* ---------- BIO POP-UP (MODAL) ---------- */

.st-modal-overlay { /* The dark background behind the pop-up */
    display: none; /* Hidden until a card is clicked */
    position: fixed; /* Stays in place on the screen */
    top: 0; /* Starts at the top edge */
    left: 0; /* Starts at the left edge */
    width: 100%; /* Full screen width */
    height: 100%; /* Full screen height */
    background: rgba(0, 0, 0, 0.7); /* Dark see-through background */
    z-index: 2000; /* Puts it above everything else */
    align-items: center; /* Centres the box up and down */
    justify-content: center; /* Centres the box left and right */
    padding: 20px; /* Keeps the box away from the screen edges */
    box-sizing: border-box; /* Keeps the padding inside the full size */
} /* Ends the overlay rule */

.st-modal-overlay.open { /* When JavaScript adds the word "open" */
    display: flex; /* Shows the pop-up */
} /* Ends the open rule */

.st-modal-box { /* The white pop-up box */
    position: relative; /* Lets us place the close button inside */
    width: 100%; /* Fills the available width */
    max-width: 480px; /* But never wider than 480px */
    max-height: 85vh; /* Never taller than 85% of the screen */
    overflow-y: auto; /* Adds a scroll bar if the bio is long */
    padding: 35px 30px 30px; /* Space inside the box */
    background: #fff; /* White box */
    border-radius: 16px; /* Rounded corners */
    border-top: 5px solid var(--fos-gold); /* Gold top line */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3); /* Big soft shadow */
    box-sizing: border-box; /* Keeps the padding inside the width */
} /* Ends the box rule */

.st-modal-close { /* The X button */
    position: absolute; /* Places it in the corner */
    top: 12px; /* Space from the top */
    right: 16px; /* Space from the right */
    background: none; /* No background */
    border: none; /* No border */
    font-size: 26px; /* Size of the X */
    line-height: 1; /* Keeps the X tight */
    color: #777; /* Grey X */
    cursor: pointer; /* Hand cursor */
} /* Ends the close rule */

.st-modal-close:hover { /* When the mouse is over the X */
    color: var(--fos-navy); /* Turns navy */
} /* Ends the hover rule */

.st-modal-img { /* The photo in the pop-up */
    display: block; /* Needed so we can centre it */
    width: 120px; /* Photo width */
    height: 120px; /* Photo height */
    margin: 0 auto 16px; /* Centres it and adds space under it */
    object-fit: cover; /* Crops instead of squashing */
    border-radius: 50%; /* Round photo */
    border: 4px solid var(--fos-yellow); /* Yellow ring */
} /* Ends the photo rule */

.st-modal-name { /* The name in the pop-up */
    margin: 0 0 4px; /* Space under the name */
    text-align: center; /* Centres it */
    font-size: 22px; /* Name size */
    color: var(--fos-navy); /* Navy name */
} /* Ends the name rule */

.st-modal-position { /* The position in the pop-up */
    margin: 0 0 18px; /* Space under the position */
    text-align: center; /* Centres it */
    font-size: 13px; /* Small text */
    font-weight: 600; /* Semi-bold */
    letter-spacing: 0.5px; /* Slight letter spacing */
    text-transform: uppercase; /* CAPITAL letters */
    color: #8a7a00; /* Dark gold so it is readable on white */
} /* Ends the position rule */

.st-modal-bio { /* The bio text in the pop-up */
    font-size: 15px; /* Text size */
    line-height: 1.8; /* Space between lines */
    color: #3d4659; /* Dark grey-blue text */
    white-space: pre-wrap; /* Keeps the line breaks you typed in the bio */
    overflow-wrap: break-word; /* Breaks very long words */
    text-align: center; /* Centres the bio */
} /* Ends the bio rule */

/* ---------- CALL TO ACTION (same as the other pages) ---------- */

.fos-btn { /* Base style of the round buttons */
    display: inline-flex; /* Puts the icon and text side by side */
    align-items: center; /* Centres them up and down */
    gap: 10px; /* Space between icon and text */
    padding: 14px 28px; /* Space inside the button */
    border-radius: 50px; /* Round pill shape */
    font-family: 'Poppins', Arial, Helvetica, sans-serif; /* Poppins font */
    font-size: 15px; /* Text size */
    font-weight: 600; /* Semi-bold */
    text-decoration: none; /* Removes the link underline */
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease; /* Smooth hover effect */
} /* Ends the button rule */

.fos-btn:hover { /* When the mouse is over a button */
    transform: translateY(-3px); /* Lifts the button */
} /* Ends the hover rule */

.fos-btn-primary { /* The yellow button */
    background: var(--fos-yellow); /* Yellow background */
    color: var(--fos-deep); /* Dark navy text */
} /* Ends the primary rule */

.fos-btn-primary:hover { /* Yellow button on hover */
    background: #fff; /* Turns white */
} /* Ends the hover rule */

.fos-btn-outline { /* The outline button */
    border: 2px solid #fff; /* White border */
    color: #fff; /* White text */
} /* Ends the outline rule */

.fos-btn-outline:hover { /* Outline button on hover */
    background: #fff; /* Turns white */
    color: var(--fos-navy); /* Navy text */
} /* Ends the hover rule */

.fos-cta { /* The call-to-action section */
    padding: 75px 20px; /* Space inside */
    text-align: center; /* Centres the content */
    background: linear-gradient(rgba(0, 33, 71, 0.93), rgba(10, 42, 102, 0.93)), url("images/h5.jpg") center/cover; /* Navy layer over your h5.jpg picture */
    border-top: 5px solid var(--fos-yellow); /* Yellow line on top */
} /* Ends the section rule */

.fos-cta-inner { /* Keeps the content narrow */
    max-width: 780px; /* Never wider than 780px */
    margin: 0 auto; /* Centres it */
} /* Ends the inner rule */

.fos-cta h2 { /* The call-to-action heading */
    margin: 0 0 12px; /* Space under the heading */
    font-size: 34px; /* Heading size */
    line-height: 1.25; /* Space between lines */
    color: #fff; /* White text */
} /* Ends the heading rule */

.fos-cta p { /* The call-to-action sentence */
    margin: 0 0 30px; /* Space under the sentence */
    font-size: 17px; /* Text size */
    line-height: 1.7; /* Space between lines */
    text-align: center; /* Centres it */
    color: #d6def2; /* Light blue text */
} /* Ends the sentence rule */

.fos-cta-actions { /* Holds the two buttons */
    display: flex; /* Puts the buttons side by side */
    flex-wrap: wrap; /* Moves a button to the next line if there is no space */
    justify-content: center; /* Centres the buttons */
    gap: 14px; /* Space between buttons */
} /* Ends the actions rule */

/* ---------- FOOTER (small touches, same as the other pages) ---------- */

.fos-footer { /* The footer */
    border-top: 5px solid var(--fos-yellow); /* Yellow line on top */
} /* Ends the footer rule */

.fos-footer-links h4 { /* Footer column headings */
    padding-bottom: 10px; /* Space under the text */
    border-bottom: 2px solid var(--fos-yellow); /* Yellow underline */
    display: inline-block; /* Underline is only as long as the text */
} /* Ends the heading rule */

/* ---------- TABLET AND PHONE SCREENS ---------- */

@media (max-width: 900px) { /* Applies on screens 900px wide or less */
    .fos-values-grid { /* The values strip */
        grid-template-columns: repeat(2, 1fr); /* Two columns instead of four */
    } /* Ends the grid rule */
    .fos-value:nth-child(2) { /* The second value */
        border-right: none; /* No line on its right */
    } /* Ends the rule */
    .fos-value:nth-child(-n+2) { /* The first two values */
        border-bottom: 1px solid rgba(255, 255, 255, 0.14); /* Faint line under them */
    } /* Ends the rule */
} /* Ends the 900px rules */

@media (max-width: 768px) { /* Applies on screens 768px wide or less */
    .st-hero { /* The banner */
        padding: 130px 20px 60px; /* Less space inside */
    } /* Ends the banner rule */
    .st-hero h1 { /* The title */
        font-size: 30px; /* Smaller title */
    } /* Ends the title rule */
    .st-hero p { /* The sentence */
        font-size: 16px; /* Smaller text */
    } /* Ends the sentence rule */
    .st-wrap { /* The staff area */
        margin: 40px auto; /* Less space above and below */
    } /* Ends the wrapper rule */
    .st-category h2 { /* Category headings */
        font-size: 24px; /* Smaller heading */
    } /* Ends the heading rule */
    .fos-btn { /* Buttons */
        padding: 12px 22px; /* Smaller buttons */
        font-size: 14px; /* Smaller text */
    } /* Ends the button rule */
    .fos-cta { /* Call-to-action */
        padding: 60px 20px; /* Less space inside */
    } /* Ends the section rule */
    .fos-cta h2 { /* Call-to-action heading */
        font-size: 27px; /* Smaller heading */
    } /* Ends the heading rule */
} /* Ends the 768px rules */

@media (max-width: 480px) { /* Applies on small phones */
    .st-grid { /* The staff grid */
        grid-template-columns: repeat(2, 1fr); /* Two small cards per row */
        gap: 14px; /* Smaller gap */
    } /* Ends the grid rule */
    .st-card { /* Staff cards */
        padding: 20px 12px 18px; /* Less space inside */
    } /* Ends the card rule */
    .st-card img { /* Staff photos */
        width: 100px; /* Smaller photo */
        height: 100px; /* Smaller photo */
    } /* Ends the photo rule */
    .st-card h3 { /* Staff names */
        font-size: 15px; /* Smaller name */
    } /* Ends the name rule */
    .st-card p { /* Staff positions */
        font-size: 11px; /* Smaller position */
    } /* Ends the position rule */
    .fos-value { /* Values */
        padding: 22px 12px; /* Less space inside */
    } /* Ends the value rule */
    .fos-value i { /* Value icons */
        font-size: 26px; /* Smaller icon */
    } /* Ends the icon rule */
    .fos-value h3 { /* Value titles */
        font-size: 15px; /* Smaller title */
    } /* Ends the title rule */
    .fos-value span { /* Value descriptions */
        font-size: 12px; /* Smaller text */
    } /* Ends the description rule */
} /* Ends the 480px rules */

@media (prefers-reduced-motion: reduce) { /* For people who set their device to reduce animations */
    .st-card, .fos-btn { /* Cards and buttons */
        transition: none; /* Turns off smooth movement */
    } /* Ends the transition rule */
    .st-card:hover, .fos-btn:hover { /* Hovered cards and buttons */
        transform: none; /* Stops them from lifting */
    } /* Ends the hover rule */
} /* Ends the reduced-motion rules */