/* =========================================================
   FIRST OXFORD SCHOOL
   MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    background-color: #f5f7fb;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 10px;
    margin-bottom: 10px;
}

p {
    text-align: justify;
}

a {
    text-decoration: none;
}


/* =====================================================
   DESKTOP NAVBAR
   ===================================================== */

.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 90px;
    background-color: rgb(241, 239, 97);
    padding: 10px 40px;
    display: grid;
    grid-template-columns: 1fr 130px 1fr;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* LEFT SIDE */

.nav-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}


/* CENTER LOGO */

.nav-logo {
    width: 130px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    z-index: 2;
}

.nav-logo img {
    width: 110px;
    height: 75px;

    object-fit: contain;

    display: block;
}


/* RIGHT SIDE */

.nav-right {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 25px;
}


/* NAVIGATION LINKS */

.navbar a {
    text-decoration: none;

    font-size: 16px;

    color: black;

    font-weight: 500;

    white-space: nowrap;

    position: relative;
}


/* HOVER LINE */

.navbar a::after {
    content: "";

    position: absolute;

    width: 0%;
    height: 2px;

    background: white;

    left: 0;
    bottom: -5px;

    transition: 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

a.active {
    color: white;
}


/* HAMBURGER HIDDEN ON DESKTOP */

@media (max-width: 768px) {

    .menu-toggle {
        display: block !important;
    }

}


/* HAMBURGER */

.menu-toggle {
    font-size: 22px;
    cursor: pointer;
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background-image: url("images/h1.jpeg");
    height: 100vh;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* HERO TEXT BOX */

.hero-text-box {
    margin-top: 70px;
    max-width: 1000px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    color: white;
    text-align: center;

}


/* HERO TITLE */

.hero-title {
    font-size: 55px;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
    opacity: 0;

    transform: translateX(-150px) scale(0.9);

    animation: premiumSlide 5.9s ease forwards;
}


/* HERO SUBTITLE */

.hero-subtitle {
    font-size: 24px;
    margin-top: 15px;
    color: white;
    opacity: 0;

    transform: translateX(-150px);

    animation: premiumSlide 3.8s ease forwards;

    animation-delay: 5.2s;
}


/* HERO SUBHEADING */

.hero-subheading {
    font-size: 30px;
    margin-top: 25px;

    opacity: 0;

    transform: translateX(-150px);

    animation: premiumSlide 2.8s ease forwards;

    animation-delay: 6.2s;
    color: white;
}


/* HERO TEXT ANIMATION */

@keyframes premiumSlide {

    0% {
        opacity: 0;
        transform: translateX(-150px) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translateX(10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


/* =========================================================
   GENERAL CONTAINERS
   ========================================================= */

.container {
    width: 90%;
    max-width: 1100px;

    margin: 30px auto;

    padding: 20px;
    padding-top: 50px;

    background-color: transparent;

    border-radius: 10px;
}

.container2 {
    width: 70%;
    max-width: 1100px;

    margin: auto;

    padding: 20px;
    padding-top: 50px;

    background-color: transparent;

    border-radius: 10px;
}

.container3 {
    width: 90%;
    max-width: 1200px;

    margin: auto;

    padding: 20px;
    padding-top: 50px;

    background-color: transparent;

    border-radius: 10px;
}

.container4 {
    width: 90%;
    max-width: 1200px;

    margin: auto;

    padding: 20px;
    padding-top: 50px;

    background-color: rgb(241, 239, 97);

    border-radius: 10px;
}

.container5 {
    display: block;
    text-align: right;
}

.s{
    font-size: 20px;
    margin-bottom: 0px;
}

.name{
    font-size: 20px;
    margin-bottom: 10px;
}

.DOS{
    font-size: 20px;
    margin-bottom: 10px;
}



.container6 {
    width: 100%;
    max-width: 1100px;

    margin: 30px auto;

    padding: 20px;
    padding-top: 50px;

    background-color: transparent;

    border-radius: 10px;
}


/* =========================================================
   SCHOOL INTRODUCTION
   ========================================================= */

.hero3 {
    min-height: 30vh;
    width: 100%;

    background-color: transparent;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding-top: 0;
}


/* =========================================================
   ABOUT HERO
   ========================================================= */

.about-hero {
    height: 90vh;
    width: 100%;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.6)
        ),
        url("images/h9.jpeg") center/cover;

    color: white;

    text-align: center;

    padding: 100px 20px;
}

.about-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.about-hero p {
    font-size: 48px;
    margin-bottom: 10px;
    text-align: center;
}


/* =========================================================
   IMAGE GRID
   ========================================================= */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: center;

    margin: 10px 15px 15px;
}

.about-grid img {
    width: 100%;
    max-width: 100%;

    border-radius: 12px;

    display: block;
}


/* =========================================================
   CARD SECTIONS
   ========================================================= */

.card-section {
    display: flex;

    gap: 25px;

    margin-top: 40px;
}

.card-sections {
    display: flex;

    gap: 25px;

    margin-top: 40px;
}


/* NORMAL CARD */

.card {
    background: white;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: #002147;

    border-bottom: 3px solid #ffcc00;

    padding-bottom: 8px;
}


/* MISSION */

.card1 {
    background: white;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.card1:hover {
    transform: translateY(-5px);
}

.card1 h2 {
    color: #002147;

    border-bottom: 3px solid #ffcc00;

    padding-bottom: 8px;
}


/* VISION */

.card2 {
    background: white;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.card2:hover {
    transform: translateY(-5px);
}

.card2 h2 {
    color: #002147;

    border-bottom: 3px solid #ffcc00;

    padding-bottom: 8px;
}


/* CULTURE */

.card3 {
    background: white;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.card3:hover {
    transform: translateY(-5px);
}

.card3 h2 {
    color: #002147;

    border-bottom: 3px solid #ffcc00;

    padding-bottom: 8px;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h2 {
    color: #0a2a66;
}


/* =========================================================
   HERO 4
   ========================================================= */

.hero4 {
    min-height: 40vh;
    width: 100%;

    background:
        linear-gradient(
            rgba(36, 36, 36, 0.6),
            rgba(0, 0, 0, 0.6)
        ),
        url("images/a2.jpg") center/cover;

    color: white;

    text-align: center;

    padding: 100px 20px;

    margin-top: 20px;
    margin-bottom: 15px;
}


/* =========================================================
   HERO 5
   ========================================================= */

.hero5 {
    min-height: 40vh;
    width: 100%;

    background:
        linear-gradient(
            rgba(36, 36, 36, 0.6),
            rgba(0, 0, 0, 0.6)
        ),
        url("images/h4.jpg") center/cover;

    color: white;

    text-align: center;

    padding: 100px 20px;
}


/* =========================================================
   ABOUT GRID 1
   ========================================================= */

.about-grid1 {
    background-color: rgb(241, 239, 97);

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    align-items: center;

    text-align: center;

    place-items: center;

    margin-top: 15px;
    margin-bottom: 20px;

    margin-left: 20px;
    margin-right: 20px;

    font-size: larger;
}

.about-grid1 img {
    width: 100%;
    height: 70vh;

    border-radius: 12px;
}


/* =========================================================
   GOALS
   ========================================================= */

#goals {
    margin-top: 50px;
    margin-bottom: 20px;

    margin-left: 20px;
    margin-right: 20px;
}


/* =========================================================
   HERO 6
   ========================================================= */

.hero6 {
    background-size: contain;

    color: white;

    text-decoration: none;

    font-weight: bolder;
}


/* =========================================================
   HERO 7
   ========================================================= */

.hero7 {
    width: 100%;
    min-height: 100px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.6)
        ),
        url("images/h8.jpg") center/cover;

    color: white;

    text-align: center;

    padding: 100px 20px;
}


/* =========================================================
   ANNOUNCEMENTS
   ========================================================= */

#announcement-container {
    max-width: 800px;

    margin: 20px auto;

    padding: 0 15px;
}

.announcement {
    background: white;

    padding: 15px;

    margin-bottom: 15px;

    border-left: 5px solid #007BFF;

    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement h3 {
    margin: 0 0 10px;

    color: #007BFF;
}

.announcement p {
    margin: 0;

    color: #333;
}

.announcement small {
    display: block;

    margin-bottom: 8px;

    color: #888;

    font-size: 0.9em;
}


/* =========================================================
   GALLERY
   ========================================================= */
.gallery-intro{
    background-image: url(images/a0.jpeg);
    background-size: cover;
    background-color: #000;
    padding: 100px 20px;
    background-repeat: no-repeat;
    width: 100%;
    text-align: center;
    border-radius: 10px;
}

.gallery-intro h2 {
    font-weight: 600;
    color: rgb(72, 12, 235);
    font-size: 48px;
    margin-bottom: 10px;
}

.gallery-intro p {
    font-size: 20px;
    color: #9b9917;
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.gallery-container {
    width: 100%;
    max-width: 1200px;

    margin: auto;

    padding: 0 20px 50px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 12px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;

    display: block;

    border-radius: 12px;

    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2);
}


/* GALLERY CAPTION */

.gallery-caption {
    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    background:
        rgba(10, 42, 102, 0.7);

    color: white;

    padding: 15px;

    font-size: 16px;

    text-align: center;

    opacity: 0;

    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}


/* SECOND GALLERY SYSTEM */

.gallery {
    width: 100%;
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    padding: 20px;
}

.item {
    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.item img,
.item video {
    width: 100%;
    max-width: 100%;
}

.caption {
    padding: 10px;

    text-align: center;

    color: #0a2a66;
}


/* =========================================================
   GALLERY CONTAINER FROM OTHER PAGES
   ========================================================= */

#gallery-container {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 15px;

    padding: 20px;
}


/* =========================================================
   VIDEO
   ========================================================= */

.hero video {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-text {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    color: white;

    text-align: center;

    background:
        rgba(0, 0, 0, 0.4);

    padding: 20px;

    border-radius: 10px;
}


/* =========================================================
   UPLOAD
   ========================================================= */

.upload-section {
    text-align: center;

    padding: 40px 20px;
}

#mediaInput {
    padding: 10px;
}


/* =========================================================
   TICKER
   ========================================================= */

.ticker {
    width: 100%;

    background: #ffcc00;

    color: black;

    overflow: hidden;

    white-space: nowrap;

    padding: 10px 0;
}

.ticker p {
    display: inline-block;

    padding-left: 100%;

    animation:
        scrollText 20s linear infinite;
}

@keyframes scrollText {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}


/* =========================================================
   HERO 2
   ========================================================= */

.hero2 {
    background-image: url("images/h8.jpg");

    height: 100vh;

    width: 100%;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


/* =========================================================
   LISTS
   ========================================================= */

ul {
    line-height: 1.8;
}


/* =========================================================
   ACHIEVEMENT
   ========================================================= */

.achievement {
    background: #eef5ff;

    padding: 12px;

    margin: 10px 0;

    border-left: 5px solid #002147;
}


/* =========================================================
   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;
        }
 
    }
 

/* =========================================================
   MOBILE RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 768px) {

    /* ---------- GLOBAL ---------- */

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden !important;
    }

    * {
        max-width: 100%;
    }


    /* ---------- NAVBAR ---------- */

    .navbar {
        width: 100%;
        height: 70px;

        min-height: 70px;

        padding: 5px 15px;

        display: flex;

        position: fixed;

        top: 0;
        z-index: 1000;
    }


    /* Hide links normally */

    .nav-left {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background-color:
            rgb(241, 239, 97);

        display: flex;

        flex-direction: column;

        align-items: center;

        padding: 15px 0;

        gap: 0;

        transform:
            translateY(-120%);

        transition:
            transform 0.3s ease;

        z-index: 999;

        box-shadow:
            0 5px 10px rgba(0, 0, 0, 0.15);
    }


    /* Open menu */

    .nav-left.active {
        transform:
            translateY(0);
    }


    /* Menu links */

    .nav-left a {
        width: 100%;

        padding: 14px 20px;

        text-align: center;

        font-size: 18px;

        color: black;
    }


    .nav-left a:hover {
        background-color:
            rgba(255, 255, 255, 0.4);
    }


    /* Center logo */

    .nav-logo {
        position: absolute;

        left: 50%;
        top: 50%;

        transform:
            translate(-50%, -50%);

        width: 100px;
        height: 60px;
    }

    .nav-logo img {
        width: 100px;
        height: 60px;

        object-fit: contain;
    }


    /* Hamburger */

    .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;
    }


    /* ---------- HERO ---------- */

    .hero {
        width: 100%;
        max-width: 100%;

        height: 720px;

        overflow: hidden;

        background-position: center;
    }

    .hero-text-box {
        width: 100%;
        max-width: 100%;

        padding: 25px 15px;

        overflow: hidden;
    }

    .hero-title {
        width: 100%;

        font-size: 40px;

        line-height: 1.15;

        letter-spacing: 0;

        overflow-wrap: break-word;
        word-break: normal;
    }

    .hero-subtitle {
        width: 100%;

        font-size: 20px;

        line-height: 1.3;
    }

    .hero-subheading {
        width: 100%;

        font-size: 24px;

        line-height: 1.3;

        margin-top: 25px;

        overflow-wrap: break-word;
    }


    /* ---------- HEADINGS / TEXT ---------- */

    h1 {
        font-size: 30px;

        max-width: 100%;

        overflow-wrap: break-word;
    }

    h2 {
        max-width: 100%;

        overflow-wrap: break-word;
    }

    p {
        max-width: 100%;

        font-size: 16px;

        line-height: 1.5;

        overflow-wrap: break-word;
    }


    /* ---------- CONTAINERS ---------- */

    .container,
    .container2,
    .container3,
    .container4 {

        width: 100%;
        max-width: 100%;

        margin-left: 0;
        margin-right: 0;

        padding-left: 15px;
        padding-right: 15px;

        box-sizing: border-box;
    }

    .container {
        padding-top: 30px;
    }


    /* ---------- SCHOOL INTRO ---------- */

    .hero3 {
        width: 100%;
        max-width: 100%;

        height: auto;

        overflow: hidden;
    }


    /* ---------- MISSION / VISION / CULTURE ---------- */

    .card-sections,
    .card-section {

        width: 100%;
        max-width: 100%;

        display: flex;

        flex-direction: column;

        gap: 20px;

        margin-top: 20px;

        padding: 0;
    }


    .card,
    .card1,
    .card2,
    .card3 {

        width: 100%;
        max-width: 100%;

        padding: 25px;

        box-sizing: border-box;

        overflow: hidden;
    }


    .card1 p,
    .card2 p,
    .card3 p {

        width: 100%;

        font-size: 17px;

        line-height: 1.5;
    }


    /* ---------- HERO 4 ---------- */

    .hero4 {

        width: 100%;
        max-width: 100%;

        min-height: 350px;

        height: auto;

        padding: 80px 20px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        overflow: hidden;

        box-sizing: border-box;
    }

    .hero4 h1 {
        font-size: 32px;
    }

    .hero4 p {
        font-size: 16px;
    }


    /* ---------- HERO 5 ---------- */

    .hero5 {

        width: 100%;
        max-width: 100%;

        min-height: 300px;

        height: auto;

        padding: 80px 20px;

        overflow: hidden;

        box-sizing: border-box;
    }


    /* ---------- ABOUT GRID ---------- */

    .about-grid {

        width: 100%;
        max-width: 100%;

        margin: 0;

        padding: 15px;

        display: flex;

        flex-direction: column;

        gap: 20px;

        box-sizing: border-box;
    }

    .about-grid img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 11px;
    }


    /* ---------- ABOUT GRID 1 ---------- */

    .about-grid1 {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin: 15px;
        padding: 25px 15px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .about-grid1 p {

        width: 100%;

        text-align: center;

        overflow-wrap: break-word;
    }

    .about-grid1 img {

        width: 100%;
        max-width: 100%;

        height: auto;
    }


    /* ---------- NISOTO ---------- */

    .hero7 {

        width: 100%;
        max-width: 100%;

        min-height: 250px;

        height: auto;

        padding: 80px 20px;

        box-sizing: border-box;

        overflow: hidden;
    }


    /* ---------- TICKER ---------- */

    .ticker {

        width: 100%;
        max-width: 100%;

        overflow: hidden;
    }

    .ticker p {

        white-space: nowrap;

        font-size: 15px;

        max-width: none;

        overflow-wrap: normal;
    }


    /* ---------- ANNOUNCEMENTS ---------- */

    #announcement-container {

        width: 100%;
        max-width: 100%;

        margin: 20px 0;

        padding: 0 15px;

        box-sizing: border-box;
    }

    .announcement {

        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        overflow: hidden;
    }


    /* ---------- GALLERY ---------- */

    .gallery-container,
    #gallery-container,
    .gallery {

        width: 100%;
        max-width: 100%;

        grid-template-columns: 1fr;

        padding: 15px;

        box-sizing: border-box;
    }

    .gallery-item {

        width: 100%;
        max-width: 100%;
    }

    .gallery-item img {

        width: 100%;
        max-width: 100%;

        height: auto;

        max-height: 300px;

        object-fit: cover;
    }


    /* ---------- OTHER IMAGES ---------- */

    img,
    video {

        max-width: 100%;

        height: auto;
    }


    /* ---------- UPLOAD ---------- */

    .upload-section {

        width: 100%;

        padding: 30px 15px;

        box-sizing: border-box;
    }

    #mediaInput {

        max-width: 100%;
    }


    /* ---------- FOOTER ---------- */

    footer {

        width: 100%;

        box-sizing: border-box;

        overflow: hidden;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .hero {
        height: 680px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-subheading {
        font-size: 21px;
    }

    .nav-logo,
    .nav-logo img {
        width: 90px;
        height: 55px;
    }

    .menu-toggle {
        font-size: 26px;
    }

    .card1,
    .card2,
    .card3,
    .card {
        padding: 20px;
    }
}

/* =========================================================
   ANNOUNCEMENT PAGE
   ========================================================= */


/* ---------- ANNOUNCEMENT HERO ---------- */

.announcement-hero {
    height: 100vh;
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ),
        url("images/s3.jpeg") center/cover;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}


.announcement-hero-content {
    width: 100%;
    max-width: 850px;

    color: white;
}


.announcement-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: rgb(241, 239, 97);

    color: black;

    font-size: 30px;
}


.announcement-hero h1 {
    margin: 0;

    font-size: 48px;

    line-height: 1.2;
}


.announcement-hero p {
    margin: 18px auto 0;

    max-width: 700px;

    font-size: 18px;

    line-height: 1.6;
}

.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;
    }

/* ---------- INTRODUCTION ---------- */

.announcement-intro {
    width: 100%;
    max-width: 950px;

    margin: 0 auto;

    padding: 60px 20px 20px;

    text-align: center;

    box-sizing: border-box;
}


.announcement-intro h2 {
    margin: 0 0 15px;

    font-size: 30px;

    color: #222;
}


.announcement-intro p {
    margin: 0;

    color: #666;

    font-size: 16px;

    line-height: 1.7;
}


/* ---------- MAIN CONTAINER ---------- */

.announcement-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 40px 20px 70px;

    box-sizing: border-box;
}


/* ---------- EACH SECTION ---------- */

.announcement-section {
    width: 100%;

    margin-bottom: 55px;
}


/* ---------- SECTION HEADING ---------- */

.announcement-heading {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}


.announcement-heading i {
    font-size: 25px;

    color: #0e8ab0;
}


.announcement-heading h2 {
    margin: 0;

    font-size: 28px;

    color: #222;
}


/* ---------- ANNOUNCEMENT CARD ---------- */

.announcement-card {
    width: 100%;

    display: flex;

    align-items: flex-start;

    gap: 25px;

    padding: 30px;

    background-color: white;

    border-radius: 15px;

    border-left: 5px solid #0e8ab0;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
}


/* ---------- CARD ICON ---------- */

.announcement-card-icon {
    width: 60px;
    height: 60px;

    min-width: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #eef7fa;

    color: #0e8ab0;

    font-size: 24px;
}


/* ---------- CARD CONTENT ---------- */

.announcement-card-content {
    width: 100%;

    min-width: 0;
}


.announcement-label {
    display: inline-block;

    padding: 5px 12px;

    border-radius: 20px;

    background-color: #eef7fa;

    color: #0e8ab0;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.5px;
}


.announcement-card-content h3 {
    margin: 12px 0 10px;

    font-size: 23px;

    color: #222;
}


.announcement-card-content p {
    margin: 0;

    color: #555;

    font-size: 16px;

    line-height: 1.7;

    overflow-wrap: break-word;
}


.announcement-card-content small {
    display: block;

    margin-top: 18px;

    color: #777;

    font-size: 14px;
}


.announcement-card-content small i {
    margin-right: 5px;
}


/* ---------- RESUMPTION INFORMATION ---------- */

.announcement-info {
    width: 100%;

    margin-top: 20px;

    padding: 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background-color: #f5f7fb;

    border-radius: 10px;

    box-sizing: border-box;
}


.announcement-info strong {
    font-size: 15px;
}


.announcement-info span {
    color: #0e8ab0;

    font-weight: 600;
}


/* ---------- EXAMINATION LIST ---------- */

.exam-list {
    width: 100%;

    margin-top: 25px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.exam-item {
    width: 100%;

    padding: 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background-color: #f5f7fb;

    border-radius: 8px;

    box-sizing: border-box;
}


.exam-item div {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.exam-item div i {
    color: #0e8ab0;
}


.exam-item span {
    overflow-wrap: break-word;
}


.exam-item strong {
    color: #666;

    font-size: 14px;

    text-align: right;

    flex-shrink: 0;
}


/* ---------- ACHIEVEMENTS ---------- */

.coming-soon {
    margin-top: 20px !important;

    color: #f5a623 !important;

    font-weight: 600;
}


.coming-soon i {
    margin-right: 8px;
}


/* ---------- REMINDERS ---------- */

.reminder-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.reminder-card {
    width: 100%;

    padding: 25px;

    background-color: white;

    border-radius: 12px;

    text-align: center;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.06);

    box-sizing: border-box;
}


.reminder-card i {
    margin-bottom: 15px;

    font-size: 30px;

    color: #0e8ab0;
}


.reminder-card h3 {
    margin: 0 0 10px;

    font-size: 19px;
}


.reminder-card p {
    margin: 0;

    color: #666;

    font-size: 14px;

    line-height: 1.6;

    overflow-wrap: break-word;
}


/* =========================================================
   ANNOUNCEMENT MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* HERO */

    .announcement-hero {
        min-height: 300px;

        padding: 55px 20px;
    }


    .announcement-icon {
        width: 60px;
        height: 60px;

        font-size: 25px;
    }


    .announcement-hero h1 {
        font-size: 36px;

        overflow-wrap: break-word;
    }


    .announcement-hero p {
        font-size: 16px;

        line-height: 1.5;
    }


    /* INTRO */

    .announcement-intro {
        padding: 45px 15px 15px;
    }


    .announcement-intro h2 {
        font-size: 25px;
    }


    .announcement-intro p {
        font-size: 15px;
    }


    /* CONTAINER */

    .announcement-container {
        padding: 35px 15px 50px;
    }


    /* SECTION */

    .announcement-section {
        margin-bottom: 40px;
    }


    /* HEADING */

    .announcement-heading h2 {
        font-size: 23px;
    }


    .announcement-heading i {
        font-size: 21px;
    }


    /* CARD */

    .announcement-card {
        flex-direction: column;

        gap: 18px;

        padding: 22px;

        border-left: none;

        border-top: 5px solid #0e8ab0;
    }


    .announcement-card-icon {
        width: 55px;
        height: 55px;

        min-width: 55px;
    }


    .announcement-card-content h3 {
        font-size: 20px;
    }


    .announcement-card-content p {
        font-size: 15px;

        line-height: 1.7;
    }


    /* RESUMPTION */

    .announcement-info {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }


    /* EXAM */

    .exam-item {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }


    .exam-item strong {
        text-align: left;
    }


    /* REMINDERS */

    .reminder-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .reminder-card {
        padding: 22px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .announcement-hero {
        min-height: 270px;

        padding: 45px 15px;
    }


    .announcement-hero h1 {
        font-size: 30px;
    }


    .announcement-hero p {
        font-size: 14px;
    }


    .announcement-intro {
        padding: 35px 15px 10px;
    }


    .announcement-intro h2 {
        font-size: 22px;
    }


    .announcement-container {
        padding: 30px 12px 45px;
    }


    .announcement-heading h2 {
        font-size: 21px;
    }


    .announcement-card {
        padding: 18px;
    }


    .announcement-card-content h3 {
        font-size: 19px;
    }


    .announcement-card-content p {
        font-size: 14px;
    }


    .announcement-label {
        font-size: 11px;
    }


    .reminder-card {
        padding: 20px;
    }

}

/* =====================================================
   GALLERY SECTION
   ===================================================== */

.gallery-section {
    width: 92%;
    max-width: 1400px;
    margin: 60px auto;
}

.gallery-heading {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-heading i {
    font-size: 32px;
    margin-bottom: 10px;
}

.gallery-heading h2 {
    font-size: 32px;
    margin: 5px 0;
}


/* =====================================================
   PHOTO GALLERY
   ===================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* PHOTO CARD */

.gallery-item {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}


/* PHOTO */

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}


/* PHOTO CAPTION */

.gallery-caption {
    padding: 20px;
    text-align: center;
}

.gallery-caption h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.gallery-caption p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}


/* =====================================================
   VIDEO GALLERY
   ===================================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}


/* VIDEO CARD */

.video-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    padding-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}


/* VIDEO */

.video-card video {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
    background: #000;
}


/* VIDEO TEXT */

.video-card h3 {
    font-size: 21px;
    margin: 18px 20px 8px;
}

.video-card p {
    margin: 0 20px;
    font-size: 15px;
    line-height: 1.6;
}


/* =====================================================
   LIGHTBOX
   ===================================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 30px;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 45px;
    color: white;
    cursor: pointer;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 300px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card video {
        height: 420px;
    }
}


/* =====================================================
   PHONE
   ===================================================== */

@media (max-width: 600px) {

    .gallery-section {
        width: 94%;
        margin: 40px auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-item img {
        height: 350px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .video-card video {
        height: 350px;
    }

    .gallery-heading h2 {
        font-size: 27px;
    }

    .gallery-caption {
        padding: 18px;
    }
}

/* =========================================================
   HOME PAGE GALLERY SLIDER
   ========================================================= */

.home-gallery {

    width: 100%;

    padding: 70px 20px;

    background-color: #f5f7fb;

    box-sizing: border-box;

}


/* HEADER */

.home-gallery-header {

    text-align: center;

    margin-bottom: 35px;

}


.home-gallery-header h1 {

    font-size: 35px;

    margin-bottom: 10px;

}


.home-gallery-header p {

    font-size: 16px;

    color: #666;

}


/* SLIDER */

.gallery-slider {

    position: relative;

    width: 100%;

    max-width: 1000px;

    height: 550px;

    margin: auto;

    overflow: hidden;

    border-radius: 20px;

    background-color: #111;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);

}


/* SLIDER CONTAINER */

.home-gallery-container {

    width: 100%;

    height: 100%;

    position: relative;

}


/* EACH SLIDE */

.home-gallery-slide {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.5s ease;

}


.home-gallery-slide.active {

    opacity: 1;

    visibility: visible;

}


/* IMAGES */

.home-gallery-slide img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


/* VIDEOS */

.home-gallery-slide video {

    width: 100%;

    height: 100%;

    object-fit: contain;

    background-color: #000;

    display: block;

}


/* CAPTION */

.slide-caption {

    position: absolute;

    bottom: 0;

    left: 0;

    width: 100%;

    padding: 20px;

    box-sizing: border-box;

    color: white;

    font-size: 16px;

    text-align: center;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.8)
        );

}


/* =========================================================
   PREVIOUS / NEXT BUTTONS
   ========================================================= */

.slider-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 48px;

    height: 48px;

    border: none;

    border-radius: 50%;

    background-color:
        rgba(255, 255, 255, 0.85);

    color: #222;

    font-size: 20px;

    cursor: pointer;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;

}


.slider-btn:hover {

    background-color: white;

    transform:
        translateY(-50%) scale(1.08);

}


.prev-btn {

    left: 20px;

}


.next-btn {

    right: 20px;

}


/* =========================================================
   DOTS
   ========================================================= */

.gallery-dots {

    position: absolute;

    bottom: 15px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 8px;

    z-index: 20;

}


.gallery-dot {

    width: 10px;

    height: 10px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background-color:
        rgba(255, 255, 255, 0.5);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;

}


.gallery-dot.active {

    background-color: white;

    transform: scale(1.3);

}


/* LOADING */

.gallery-loading {

    position: absolute;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%, -50%);

    color: white;

    text-align: center;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .home-gallery {

        padding:
            50px 15px;

    }


    .home-gallery-header h1 {

        font-size: 28px;

    }


    .home-gallery-header p {

        font-size: 14px;

    }


    .gallery-slider {

        height: 400px;

        border-radius: 15px;

    }


    .slider-btn {

        width: 40px;

        height: 40px;

        font-size: 16px;

    }


    .prev-btn {

        left: 10px;

    }


    .next-btn {

        right: 10px;

    }


    .slide-caption {

        padding:
            15px;

        font-size: 14px;

    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .gallery-slider {

        height: 320px;

    }


    .home-gallery-header h1 {

        font-size: 25px;

    }


    .slider-btn {

        width: 35px;

        height: 35px;

        font-size: 14px;

    }

}

/* =========================================================
   ADMISSION PAGE
   ========================================================= */

/* ---------- ADMISSION HERO ---------- */

.admission-hero {
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    position: relative;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("images/admission.jpg");

    background-size: cover;
    background-position: center;

    color: white;
}


.admission-hero-content {
    max-width: 850px;

    margin: auto;
}


.admission-hero-content > i {
    font-size: 55px;

    color: rgb(241, 239, 97);

    margin-bottom: 20px;
}


.admission-hero h1 {
    font-size: 52px;

    margin: 10px 0 15px;

    font-weight: 700;

    line-height: 1.2;
}


.admission-hero p {
    font-size: 20px;

    margin: 0;

    line-height: 1.6;
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.admission-intro {
    max-width: 900px;

    margin: 0 auto;

    padding: 70px 25px 40px;

    text-align: center;
}


.admission-intro h2 {
    font-size: 34px;

    margin-bottom: 18px;

    color: #111;
}


.admission-intro p {
    font-size: 17px;

    line-height: 1.8;

    color: #555;

    margin: 0;
}


/* =========================================================
   ADMISSION CARDS
   ========================================================= */

.admission-container {
    width: 90%;

    max-width: 1200px;

    margin: 20px auto 80px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.admission-card {
    background: white;

    padding: 35px 30px;

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    border-top: 5px solid #0e8ab0;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.admission-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12);
}


/* ---------- CARD ICON ---------- */

.admission-card-icon {
    width: 65px;

    height: 65px;

    border-radius: 50%;

    background: #e8f6fa;

    color: #0e8ab0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 27px;

    margin-bottom: 20px;
}


.admission-card h2 {
    font-size: 23px;

    margin-bottom: 18px;

    color: #111;
}


.admission-card p {
    color: #555;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 15px;
}


/* =========================================================
   REQUIREMENTS LIST
   ========================================================= */

.admission-card ul {
    list-style: none;

    padding: 0;

    margin: 0;
}


.admission-card li {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 10px 0;

    color: #444;

    font-size: 15px;

    line-height: 1.5;

    border-bottom: 1px solid #eee;
}


.admission-card li:last-child {
    border-bottom: none;
}


.admission-card li i {
    color: #0e8ab0;

    margin-top: 4px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.admission-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 15px;

    padding: 13px 22px;

    background: #0e8ab0;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}


.admission-button:hover {
    background: #096d8c;

    transform: translateY(-2px);
}


.admission-secondary-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    color: #0e8ab0;

    text-decoration: none;

    font-weight: 600;
}


.admission-secondary-button:hover {
    text-decoration: underline;
}


/* =========================================================
   ADMISSION PROCESS
   ========================================================= */

.admission-process {
    background: white;

    padding: 70px 20px 80px;

    text-align: center;
}


.admission-process > h2 {
    font-size: 34px;

    margin-bottom: 50px;

    color: #111;
}


.process-grid {
    width: 90%;

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}


.process-item {
    position: relative;

    padding: 30px 20px;

    border-radius: 15px;

    background: #f5f7fb;

    transition:
        transform 0.3s ease;
}


.process-item:hover {
    transform: translateY(-5px);
}


.process-item > span {
    position: absolute;

    top: -15px;

    left: 50%;

    transform: translateX(-50%);

    width: 35px;

    height: 35px;

    border-radius: 50%;

    background: #0e8ab0;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;
}


.process-item > i {
    font-size: 35px;

    color: #0e8ab0;

    margin: 15px 0;
}


.process-item h3 {
    font-size: 20px;

    margin: 10px 0;
}


.process-item p {
    color: #666;

    font-size: 14px;

    line-height: 1.6;

    margin: 0;
}


/* =========================================================
   CALL TO ACTION
   ========================================================= */

.admission-cta {
    width: 100%;

    padding: 80px 20px;

    box-sizing: border-box;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #0e8ab0,
            #075a75
        );

    color: white;
}


.admission-cta h2 {
    font-size: 38px;

    margin: 0 0 10px;
}


.admission-cta p {
    font-size: 17px;

    margin-bottom: 25px;
}


.admission-cta .admission-button {
    background: rgb(241, 239, 97);

    color: black;
}


.admission-cta .admission-button:hover {
    background: white;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    text-align: center;

    background: rgb(241, 239, 97);

    color: white;

    padding: 15px;

    margin-top: 40px;
}


footer p {
    margin: 0;

    font-size: 14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .admission-container {
        grid-template-columns: 1fr 1fr;
    }


    .admission-card:last-child {
        grid-column: 1 / -1;
    }


    .process-grid {
        grid-template-columns: 1fr 1fr;

        gap: 35px 20px;
    }


    .admission-hero h1 {
        font-size: 42px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .admission-hero {
        min-height: 350px;

        padding: 70px 20px;
    }


    .admission-hero-content > i {
        font-size: 45px;
    }


    .admission-hero h1 {
        font-size: 36px;

        line-height: 1.2;
    }


    .admission-hero p {
        font-size: 16px;

        line-height: 1.6;
    }


    .admission-intro {
        padding: 50px 20px 25px;
    }


    .admission-intro h2 {
        font-size: 27px;

        line-height: 1.3;
    }


    .admission-intro p {
        font-size: 15px;

        line-height: 1.7;
    }


    .admission-container {
        width: 100%;

        padding: 20px 15px 50px;

        margin: 0;

        box-sizing: border-box;

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .admission-card {
        padding: 28px 22px;
    }


    .admission-card:last-child {
        grid-column: auto;
    }


    .admission-card h2 {
        font-size: 21px;
    }


    .admission-card p,
    .admission-card li {
        font-size: 15px;
    }


    .admission-button {
        width: 100%;

        box-sizing: border-box;
    }


    .admission-process {
        padding: 55px 15px 70px;
    }


    .admission-process > h2 {
        font-size: 28px;

        margin-bottom: 45px;
    }


    .process-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 40px;
    }


    .process-item {
        padding: 30px 20px;
    }


    .admission-cta {
        padding: 65px 20px;
    }


    .admission-cta h2 {
        font-size: 30px;
    }


    .admission-cta p {
        font-size: 15px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .admission-hero {
        min-height: 320px;

        padding: 60px 15px;
    }


    .admission-hero h1 {
        font-size: 30px;
    }


    .admission-hero p {
        font-size: 14px;
    }


    .admission-intro h2 {
        font-size: 24px;
    }


    .admission-card {
        padding: 24px 18px;

        border-radius: 12px;
    }


    .admission-card-icon {
        width: 55px;

        height: 55px;

        font-size: 23px;
    }


    .admission-card h2 {
        font-size: 20px;
    }


    .admission-card li {
        font-size: 14px;
    }


    .process-item h3 {
        font-size: 19px;
    }


    .admission-cta h2 {
        font-size: 27px;
    }

}

/* =========================================================
   SIMPLE ADMISSION FORM
   ========================================================= */


/* ---------- PAGE ---------- */

.admission-page {
    width: 100%;

    max-width: 1000px;

    margin: 0 auto;

    padding: 130px 20px 60px;

    box-sizing: border-box;
}


/* ---------- FORM HEADER ---------- */

.admission-header {
    text-align: center;

    margin-bottom: 30px;
}

.admission-header h1 {
    margin: 0 0 10px;

    font-size: 38px;

    color: #0a2a66;
}

.admission-header p {
    margin: 0;

    color: #666;

    font-size: 16px;

    line-height: 1.6;

    text-align: center;
}


/* ---------- FORM ---------- */

.admission-form {
    width: 100%;

    background: white;

    padding: 35px;

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
}


/* ---------- FORM HEADINGS ---------- */

.admission-form h2 {
    margin: 30px 0 20px;

    padding-bottom: 10px;

    border-bottom: 2px solid #eee;

    color: #0a2a66;

    font-size: 22px;
}

.admission-form h2:first-child {
    margin-top: 0;
}


/* ---------- FORM GRID ---------- */

.form-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


/* ---------- FORM GROUP ---------- */

.form-group {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}


/* ---------- LABEL ---------- */

.form-group label {
    font-size: 14px;

    font-weight: 600;

    color: #333;
}


/* ---------- INPUTS ---------- */

.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    padding: 13px;

    border: 1px solid #d5d9df;

    border-radius: 8px;

    background: white;

    color: #222;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* ---------- INPUT FOCUS ---------- */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: #0e8ab0;

    box-shadow:
        0 0 0 3px rgba(14, 138, 176, 0.12);
}


/* ---------- TEXTAREA ---------- */

.form-group textarea {

    resize: vertical;

    min-height: 120px;
}


/* ---------- FILE INPUT ---------- */

.form-group input[type="file"] {

    padding: 10px;

    cursor: pointer;

    background: #fafafa;
}

.form-group input[type="file"]::file-selector-button {

    border: none;

    padding: 9px 14px;

    margin-right: 10px;

    border-radius: 6px;

    background: #0e8ab0;

    color: white;

    font-size: 13px;

    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button:hover {

    background: #096d8c;
}


/* ---------- DECLARATION ---------- */

.declaration {

    margin-top: 25px;

    padding: 15px;

    background: #f5f7fb;

    border-radius: 8px;

    color: #555;

    font-size: 14px;

    line-height: 1.6;
}

.declaration label {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;
}

.declaration input {

    width: 17px;

    height: 17px;

    margin-top: 2px;

    flex-shrink: 0;

    accent-color: #0e8ab0;
}


/* ---------- SUBMIT ---------- */

.submit-button {

    width: 100%;

    margin-top: 25px;

    padding: 15px;

    border: none;

    border-radius: 8px;

    background: #0e8ab0;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}

.submit-button:hover {

    background: #096d8c;

    transform: translateY(-2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .admission-page {

        padding:
            110px 15px 50px;
    }


    .admission-header h1 {

        font-size: 32px;
    }


    .admission-header p {

        font-size: 15px;
    }


    .admission-form {

        padding: 25px 20px;

        border-radius: 12px;
    }


    .form-grid {

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .form-group.full {

        grid-column: auto;
    }


    .admission-form h2 {

        font-size: 20px;

        margin-top: 25px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .admission-page {

        padding:
            100px 10px 40px;
    }


    .admission-header {

        margin-bottom: 20px;
    }


    .admission-header h1 {

        font-size: 27px;
    }


    .admission-header p {

        font-size: 14px;

        line-height: 1.5;
    }


    .admission-form {

        padding: 20px 15px;

        border-radius: 10px;
    }


    .admission-form h2 {

        font-size: 18px;

        margin-bottom: 18px;
    }


    .form-group label {

        font-size: 13px;
    }


    .form-group input,
    .form-group select,
    .form-group textarea {

        padding: 12px;

        font-size: 14px;
    }


    .declaration {

        font-size: 13px;

        padding: 13px;
    }


    .submit-button {

        padding: 14px;

        font-size: 15px;
    }

}
.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f7fb;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#name, #email, #phone, #subject, #message {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#btn {
    background-color: #0e8ab0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-message {
display: none;
margin: 25px 0;
padding: 30px;
border-radius: 14px;
text-align: center;
line-height: 1.7;
}

.form-message.success {
background: #eefbf3;
border: 1px solid #b7e4c7;
color: #185c35;
}

.success-icon {
width: 60px;
height: 60px;
margin: 0 auto 15px;
border-radius: 50%;
background: #28a745;
color: white;
font-size: 36px;
font-weight: bold;
line-height: 60px;
}

.form-message.success h3 {
margin: 10px 0 15px;
font-size: 24px;
}

.form-message.success p {
margin: 8px 0;
}

.success-thanks {
margin-top: 18px !important;
font-weight: 600;
}

.form-message.error {
background: #fff0f0;
border: 1px solid #f1b5b5;
color: #a52222;
}

.form-message.error strong {
font-size: 18px;
}

.submit-button:disabled {
opacity: 0.7;
cursor: not-allowed;
}

/* =====================================================
   FOS SHOP
   ===================================================== */


.shop-hero-content {
    max-width: 800px;
    margin: auto;
}


.shop-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
}


.shop-hero p {
    font-size: 17px;
    opacity: 0.9;
    margin: 0;
}


/* SEARCH */

.shop-search-section {
    padding: 30px 20px 10px;
}


.shop-search-box {
    text-align: center;
    max-width: 650px;
    margin-top: 10px;
    margin-left: 260px;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}


.shop-search-box i {
    color: #fbff00;
    font-size: 18px;
}


.shop-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    background: transparent;
}


/* BOOK SECTION */

.books-section {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 80px;
}


.section-heading {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}


.section-heading h2 {
    color: #0a2a66;

    font-size: 30px;

    margin-bottom: 8px;
}

/* BOOK GRID */

.books-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(230px, 1fr));

    gap: 25px;
}


/* BOOK CARD */

.book-card {
    background: white;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 6px 20px rgba(0,0,0,0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    display: flex;

    flex-direction: column;
}


.book-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.14);
}


/* BOOK IMAGE */

.book-image-container {
    width: 100%;

    height: 280px;

    background: #f1f3f7;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;
}


.book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    object-fit: contain;
    display: block;
}


.book-card:hover .book-image {
    transform: scale(1.04);
}


/* BOOK INFO */

.book-info {
    padding: 20px;

    display: flex;

    flex-direction: column;

    flex: 1;
}


.book-category {
    display: inline-block;

    color: #0a2a66;

    background: #eef3ff;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

    width: fit-content;

    margin-bottom: 10px;
}


.book-name {
    margin: 0 0 8px;

    color: #222;

    font-size: 19px;
}


.book-description {
    color: #666;

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 20px;

    flex: 1;
}


.book-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;
}


.book-price {
    color: #0a2a66;

    font-size: 18px;
}


.buy-book-btn {
    border: none;

    background: #fffb00;

    color: #0a2a66;

    padding: 10px 14px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;

    transition: 0.2s ease;
}


.buy-book-btn:hover {
    background: #fffb00;

    transform: translateY(-1px);
}


/* NO BOOKS */

.no-books {
    text-align: center;

    padding: 60px 20px;

    color: #777;
}


.no-books i {
    font-size: 45px;

    color: #0a2a66;

    margin-bottom: 15px;
}


.no-books h3 {
    margin-bottom: 8px;

    color: #333;
}


/* MOBILE */

@media (max-width: 600px) {

    .shop-hero {
        padding: 50px 20px;
    }


    .shop-hero h1 {
        font-size: 32px;
    }


    .books-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    .book-image-container {
        height: 210px;
    }


    .book-info {
        padding: 14px;
    }


    .book-name {
        font-size: 16px;
    }


    .book-description {
        font-size: 13px;
    }


    .book-price {
        font-size: 15px;
    }


    .buy-book-btn {
        padding: 8px 10px;

        font-size: 12px;
    }

}


@media (max-width: 380px) {

    .books-grid {
        grid-template-columns: 1fr;
    }

}

/* ============================================================
   FOS SHOP MANAGER
============================================================ */

.shop-manager-header {
    margin-bottom: 25px;
}

.shop-manager-header h2 {
    margin: 0;
    color: #0a2a66;
    font-size: 26px;
}

.shop-manager-header p {
    margin-top: 8px;
    color: #777;
}


/* PRODUCT LIST */

#shopAdminList {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}


/* PRODUCT CARD */

.shop-product-card {
    display: flex;
    align-items: center;
    gap: 18px;

    background: #ffffff;

    border: 1px solid #e6e9ef;
    border-radius: 14px;

    padding: 16px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.shop-product-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.08);
}


/* PRODUCT IMAGE */

.shop-product-image {
    width: 90px;
    height: 90px;

    flex-shrink: 0;

    border-radius: 10px;

    overflow: hidden;

    background: #f3f5f8;

    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* PRODUCT INFO */

.shop-product-info {
    flex: 1;
    min-width: 0;
}

.shop-product-name {
    margin: 0 0 6px;

    color: #0a2a66;

    font-size: 17px;
    font-weight: 600;
}

.shop-product-meta {
    color: #777;

    font-size: 13px;

    margin-bottom: 8px;
}

.shop-product-price {
    font-size: 15px;

    font-weight: 600;

    color: #222;

    margin-bottom: 10px;
}


/* STOCK INFORMATION */

.shop-stock-info {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.shop-stock-badge {
    padding: 5px 9px;

    border-radius: 6px;

    font-size: 12px;

    background: #f1f3f5;

    color: #444;
}

.shop-stock-badge.purchased {
    background: #fff4cc;
}

.shop-stock-badge.remaining {
    background: #e9f7ef;
}


/* ACTION BUTTONS */

.shop-product-actions {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.shop-edit-btn,
.shop-delete-btn {
    border: none;

    padding: 8px 16px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 500;
}

.shop-edit-btn {
    background: #0a2a66;
    color: white;
}

.shop-edit-btn:hover {
    background: #08204f;
}

.shop-delete-btn {
    background: #dc3545;
    color: white;
}

.shop-delete-btn:hover {
    background: #b02a37;
}


/* MOBILE */

@media (max-width: 700px) {

    .shop-product-card {
        align-items: flex-start;

        flex-wrap: wrap;
    }

    .shop-product-actions {
        width: 100%;

        flex-direction: row;
    }

    .shop-edit-btn,
    .shop-delete-btn {
        flex: 1;
    }

}

/* =====================================================
   FOS SHOP — CLASS & STOCK
   ===================================================== */

.book-class {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0a2a66;
}

.book-stock {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.shop-tabs-section {
    width: 100%;
    padding: 120px 20px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
}

.shop-tab {
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    color: #0a2a66;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.shop-tab.active {
    background: #d8ca03be;
    color: #ffffff;
}

/* ===== UNIFORM PURCHASE POPUP ===== */
.uniform-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5000;
}

.uniform-modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.uniform-modal-box h2 { margin: 0 0 4px; }

.uniform-modal-item {
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
}

.uniform-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}

.uniform-modal-box label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.uniform-modal-box input,
.uniform-modal-box select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.uniform-order-status {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.uniform-order-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #efff11;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.uniform-order-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== CART ===== */
.cart-badge {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    margin-left: 6px;
    border-radius: 20px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.cart-badge.empty { display: none; }

@keyframes cartBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.shop-tab.cart-bump { animation: cartBump 0.4s ease; }

.fly-image {
    position: fixed;
    z-index: 6000;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#cartItems, #cartSummary {
    max-width: 800px;
    margin: 0 auto;
}

.cart-line {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid transparent;
}
.cart-line-problem { border-color: #e74c3c; }
.cart-line-out {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.25s ease;
}

.cart-line-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.cart-line-info { flex: 1 1 160px; min-width: 0; overflow-wrap: break-word; }
.cart-line-info h4 { margin: 0 0 4px; }
.cart-line-meta { font-size: 13px; color: #777; }
.cart-line-note { font-size: 13px; color: #c0392b; margin-top: 4px; }

.cart-qty { display: flex; align-items: center; gap: 10px; }
.cart-qty button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 18px;
    cursor: pointer;
}
.cart-qty button:hover { background: #e5e5e5; }

.cart-line-total { min-width: 80px; text-align: right; }

.cart-remove {
    border: none;
    background: none;
    color: #e74c3c;
    font-size: 16px;
    cursor: pointer;
}

.cart-summary {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 15px;
}
.checkout-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #efff11;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 7000;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== CHECKOUT POPUP ===== */
.uniform-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5000;
}

.uniform-modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.uniform-modal-box h2 { margin: 0 0 4px; }

.uniform-modal-item {
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
}

.uniform-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}

.uniform-modal-box label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.uniform-modal-box input,
.uniform-modal-box select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.uniform-order-status {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.uniform-order-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #efff11;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
.uniform-order-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* =========================================================
   SHOP — MOBILE FIX
========================================================= */

@media (max-width: 600px) {

    /* Prevent ANYTHING from creating horizontal scrolling */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    /* =========================
       SHOP TABS
    ========================= */

    .shop-tabs-section {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
        margin: 0;
    }

    .shop-tab {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        width: calc(50% - 4px);

        font-size: 13px;
        padding: 11px 6px;

        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #cartTab {
        flex: 1 1 100%;
        width: 100%;
    }


    /* =========================
       SEARCH
    ========================= */

    .shop-search-section {
        width: 100%;
        padding: 10px 12px;
    }

    .shop-search-box {
        width: 100%;
        max-width: 100%;
    }

    .shop-search-box input {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }


    /* =========================
       BOOK / UNIFORM SECTION
    ========================= */

    .books-section {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        overflow: hidden;
    }

    .section-heading {
        width: 100%;
        max-width: 100%;
    }


    /* =========================
       PRODUCT GRID
    ========================= */

    .books-grid {
        width: 100%;
        max-width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        gap: 16px;

        margin: 0;
        padding: 0;
    }


    /* =========================
       PRODUCT CARD
    ========================= */

    .book-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin: 0;

        overflow: hidden;
    }

    .book-image-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .book-image {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .book-info {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow: hidden;
    }

    .book-name,
    .book-description,
    .book-category,
    .book-class,
    .book-stock {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =========================
       CARD BOTTOM
    ========================= */

    .book-bottom {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-wrap: wrap;

        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .book-price {
        max-width: 100%;
    }

    .buy-book-btn {
        max-width: 100%;
        white-space: normal;
    }


    /* =========================
       CART
    ========================= */

    #cartItems,
    #cartSummary {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .cart-line {
        width: 100%;
        max-width: 100%;

        display: grid;

        grid-template-columns: 60px minmax(0, 1fr) auto;

        grid-template-areas:
            "img info remove"
            "img qty total";

        gap: 8px 10px;

        align-items: center;

        padding: 12px;

        overflow: hidden;
    }

    .cart-line-img {
        grid-area: img;

        width: 60px;
        height: 60px;

        object-fit: cover;

        max-width: 60px;
    }

    .cart-line-info {
        grid-area: info;

        min-width: 0;
        overflow: hidden;
    }

    .cart-line-info h4 {
        margin: 0;

        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .cart-line-meta,
    .cart-line-note {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .cart-remove {
        grid-area: remove;

        align-self: start;
    }

    .cart-qty {
        grid-area: qty;

        display: flex;
        align-items: center;
        gap: 6px;
    }

    .cart-line-total {
        grid-area: total;

        min-width: 0;

        text-align: right;

        white-space: nowrap;
    }

    .cart-total-row {
        font-size: 18px;
    }


    /* =========================
       CHECKOUT MODAL
    ========================= */

    .uniform-modal {
        padding: 10px;

        width: 100%;
        max-width: 100%;
    }

    .uniform-modal-box {
        width: 100%;
        max-width: 500px;

        padding: 22px 18px;

        max-height: 92vh;

        overflow-y: auto;
        overflow-x: hidden;
    }

    .uniform-modal-box input,
    .uniform-modal-box select,
    .uniform-modal-box button {
        max-width: 100%;
    }

    .uniform-modal-box input,
    .uniform-modal-box select {
        width: 100%;
        font-size: 16px;
    }


    /* =========================
       CART TOAST
    ========================= */

    .cart-toast {
        width: calc(100% - 40px);
        max-width: 400px;

        left: 20px;
        right: 20px;

        text-align: center;

        bottom: 20px;
    }
}

/* =========================================================
   FOS SHOP - REAL PHONE FIX
========================================================= */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    /* =========================
       SHOP TABS
    ========================= */

    .shop-tabs-section {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        margin-top: 100px !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .shop-tab {
        box-sizing: border-box !important;
        flex: 1 1 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-top: 80px !important;
        padding: 11px 6px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }

    #cartTab {
        flex: 1 1 100% !important;
        width: 100% !important;
    }


    /* =========================
       SEARCH
    ========================= */

    .shop-search-section {
        width: 100% !important;
        max-width: 100% !important;

        padding: 15px 12px !important;

        overflow: hidden !important;
    }

    .shop-search-box {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
    }

    .shop-search-box input {
        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;

        font-size: 16px !important;
    }


    /* =========================
       SHOP SECTION
    ========================= */

    .books-section {
        width: 100% !important;
        max-width: 100% !important;

        padding-left: 12px !important;
        padding-right: 12px !important;

        box-sizing: border-box !important;

        overflow: hidden !important;
    }


    /* =========================
       PRODUCT GRID
    ========================= */

    .books-grid {
        width: 100% !important;
        max-width: 100% !important;

        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 18px !important;

        padding: 0 !important;
        margin: 0 !important;
    }


    /* =========================
       PRODUCT CARD
    ========================= */

    .book-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;

        overflow: hidden !important;
    }

    .book-image-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .book-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .book-info {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }


    /* =========================
       TEXT
    ========================= */

    .book-name,
    .book-description,
    .book-class,
    .book-category,
    .book-stock {
        max-width: 100% !important;

        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }


    /* =========================
       CARD BOTTOM
    ========================= */

    .book-bottom {
        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        flex-wrap: wrap !important;

        gap: 10px !important;
    }


    /* =========================
       CART
    ========================= */

    #cartItems,
    #cartSummary {
        width: 100% !important;
        max-width: 100% !important;

        padding: 0 !important;
    }

    .cart-line {
        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;

        grid-template-columns: 60px minmax(0, 1fr) auto !important;
    }


    /* =========================
       CHECKOUT
    ========================= */

    .uniform-modal {
        width: 100% !important;
        max-width: 100% !important;

        padding: 10px !important;
    }

    .uniform-modal-box {
        width: 100% !important;
        max-width: 500px !important;

        box-sizing: border-box !important;

        padding: 22px 18px !important;
    }

    .uniform-modal-box input,
    .uniform-modal-box select {
        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;

        font-size: 16px !important;
    }
}

/* =========================================================
   FINAL BOOK IMAGE OVERRIDE
   ========================================================= */

.book-image,
.books-grid .book-image,
.book-card .book-image {
    width: 100% !important;
    height: 220px !important;
    max-width: 100% !important;
    max-height: 220px !important;

    object-fit: contain !important;
    object-position: center center !important;

    display: block !important;
    margin: 0 auto !important;
}

/* Make sure the image container doesn't crop the image */
.book-image-container,
.book-card-image,
.book-card .book-image-container {
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* ===== PAYMENT POPUPS ===== */
.payment-account-box {
    background: #f8f9fa;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}
.payment-account-box p { margin: 6px 0; font-size: 14px; }
.payment-account-box button {
    margin-top: 8px;
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    background: #eee;
    font-weight: 600;
    cursor: pointer;
}
.checkout-payment-note { font-size: 13px; color: #777; margin: 0 0 16px; }
.checkout-submit-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #efff11;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
.checkout-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.checkout-status {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 10px;
}
.uniform-modal-box small {
    display: block;
    color: #777;
    font-size: 12px;
    margin: -8px 0 14px;
}

#proofStudentClass {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    min-height: 46px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 7px;
    -webkit-appearance: menulist;
    appearance: menulist;
}

.uniform-modal-box {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* =====================================================
   MOBILE CHECKOUT SELECT FIX
   ===================================================== */

#proofModal select,
#proofStudentClass {
    position: relative;
    z-index: 10002;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-user-select: auto;
    user-select: auto;
}

#proofModal .uniform-modal-box {
    position: relative;
    z-index: 10001;
}

#proofModal {
    z-index: 10000;
}

@media (max-width: 768px) {

    #proofStudentClass {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 16px;
        background: #ffffff;
        color: #222222;
        border: 1px solid #ccc;
        border-radius: 8px;
        cursor: pointer;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

}