/* ==========================================================================
   MOUNT SION SCHOOL — consolidated custom stylesheet
   Replaces ~10 scattered inline <style> blocks that were duplicated across
   the master page. Keep ALL site-wide tweaks in this ONE file from now on.
   ========================================================================== */

:root {
    --brand: #6f066d;
    --brand-dark: #5d085b;
    --brand-light: #7d68c8;
    --accent: #f9ac29;
    --white: #ffffff;
}

/* ---------- Top utility bar (Admission / Login links) ---------- */
.top-utility-bar {
    background: var(--brand);
    padding: 6px 15px;
    text-align: right;
}

.top-utility-bar .aj {
    display: inline-block;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    padding: 5px 12px;
    margin: 3px;
    background: #B30000;
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

    .top-utility-bar .aj:hover {
        background: #8a0000;
        color: var(--white);
    }

/* ---------- Secondary nav pills (kept for pages that still use them) ---------- */
.navbar {
    position: relative;
    min-height: 0;
}

.icon img {
    max-width: 100%;
}

.navbar-collapse ul li .aj {
    background-color: #fdfdfd;
    color: var(--accent);
    border-radius: 15px;
}

    .navbar-collapse ul li .aj:hover {
        background-color: #fff;
        color: #555dfe;
        border-radius: 17px;
        box-shadow: 2px 2px 8px #444;
    }

.navbar-header .aj a {
    padding: 5px 10px;
    margin-top: 10px;
    background-color: #fff;
    color: #555dfe;
}

.ss a {
    padding: 2px 8px;
    color: #281e00;
    background-color: #fff8df;
    text-align: center;
    box-shadow: 3px 5px 5px #160d0d;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

    .ss a:hover {
        color: #555dfe;
        background-color: #fff;
        box-shadow: 2px 5px 2px #404040;
        border-radius: 18px;
        transform: scale(1.05); /* fixed: was invalid `scale(20px;)` */
    }

.tt {
    background-color: #d3f8e1;
    padding: 0 8px;
    margin: 3px;
    border: 1px solid #83deb2;
    border-radius: 30px;
    box-shadow: 0 5px 10px #012a17;
    font-weight: bold;
    transition: 0.3s;
}

    .tt a {
        font-size: 14px;
        color: #024e22;
    }

        .tt a:hover {
            color: #1f2aff;
        }

    .tt:hover {
        color: #555dfe;
        background-color: #fff8df;
        border: 1px solid #ff7d00;
        border-radius: 35px;
        box-shadow: 0 5px 10px #012a17;
    }

.bg-primary {
    background-color: var(--brand);
}

/* ---------- Header logo row ---------- */
.header-middle {
    background: #fff;
}

.header-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    gap: 10px;
}

    .header-logos img {
        width: 180px;
        max-width: 100%;
        display: block;
    }

    .header-logos .school-icon img {
        width: 100px;
    }

/* ---------- Main nav (dark bar with dropdowns) ---------- */
.header-nav .nav > li .sub-menu li a {
    color: #fff;
}

.navbar-nav > li > a {
    color: #fff !important;
    background-color: var(--brand) !important;
}

    .navbar-nav > li > a:hover {
        background: #fff !important;
        color: var(--brand) !important;
    }

.navbar-nav > li.active > a {
    background: #fff !important;
    color: var(--brand) !important;
    font-weight: 600;
}

.sub-menu li.active > a {
    background: var(--brand) !important;
    color: #fff !important;
}

@media (max-width: 991px) {
    .header-nav .nav > li .sub-menu {
        background: var(--brand-dark) !important;
    }

        .header-nav .nav > li .sub-menu li {
            background: var(--brand-dark) !important;
            border-bottom: 1px solid rgba(255,255,255,.2);
        }

            .header-nav .nav > li .sub-menu li a {
                color: #fff !important;
                display: block;
                padding: 12px 20px;
            }

            .header-nav .nav > li .sub-menu li:hover {
                background: var(--brand) !important;
            }

                .header-nav .nav > li .sub-menu li:hover > a {
                    color: #fff !important;
                }
}

/* ---------- Banner image responsiveness ---------- */
.banner-img {
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .banner-img {
        height: 30vw !important;
        object-fit: fill !important;
    }
}

@media (min-width: 769px) {
    .banner-img {
        height: 15vw !important;
        object-fit: cover !important;
    }
}

/* ---------- Home "services" cards ---------- */
.services {
    background-image: linear-gradient(#ccd7ff, #aebbff);
    margin: 4px 0 2px;
    position: relative;
    padding: 2px 2px 0 7px;
    display: block;
    border: none;
    border-radius: 40px;
    color: #7aa7fa;
    height: 35px;
    transition: 0.4s;
}

    .services .icon {
        width: 32px;
        height: 32px;
        margin: 0 -5px 0;
        float: left;
        display: block;
        border-radius: 50%;
        background-color: var(--accent);
        padding: 5px;
        text-align: center;
    }

        .services .icon i {
            font-size: 36px;
            color: #2e2e2e;
            width: 70px;
            height: 70px;
            transition: 0.3s;
        }

    .services .desc {
        padding: 1px 2px;
    }

        .services .desc h5 {
            font-size: 14px;
            font-weight: 500;
            color: var(--accent);
            margin: 6px 3px 0;
            line-height: 18px;
        }

    .services:hover {
        background-image: linear-gradient(#e7fff2, #f9f2e5);
        box-shadow: 0 2px 4px #8a8a8a;
        transform: none;
    }

        .services:hover .icon i {
            color: #2e2e2e;
        }

        .services:hover .desc h5 {
            color: #003c26;
        }

.services2 {
    background-color: rgb(42, 255, 205);
    margin: 10px 0 2px;
    position: relative;
    border: 1px solid #fff;
    border-radius: 4px;
    color: var(--accent);
    height: 35px;
    transition: 0.4s;
}

    .services2 .icon1 {
        width: 32px;
        height: 32px;
        margin: 0 -5px 0;
        float: left;
        display: block;
        background-color: #a75e00;
        padding: 5px;
        text-align: center;
    }

        .services2 .icon1 i {
            font-size: 36px;
            color: #2e2e2e;
            width: 70px;
            height: 70px;
            transition: 0.3s;
        }

    .services2 .desc1 h5 {
        font-size: 14px;
        font-weight: 500;
        color: var(--accent);
        margin: 6px 3px 0;
        line-height: 18px;
    }

    .services2:hover {
        transform: none;
        background-color: rgba(3, 107, 55, 0.3);
    }

        .services2:hover .icon1 i {
            color: #2e2e2e;
        }

        .services2:hover .desc1 h5 {
            color: #fff;
        }

.animate-box,
.animate-box2 {
    padding: 0 5px;
    margin-top: 0;
}

#colorlib-services {
    padding: 0;
    clear: both;
}

/* ---------- Footer social icons ---------- */
.dez-social-icon {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

    .dez-social-icon li a {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff !important;
        font-size: 20px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .dez-social-icon .fa-facebook { background: #1877F2; }
    .dez-social-icon .fa-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
    .dez-social-icon .fa-map-marker { background: #EA4335; }

    .dez-social-icon li a:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

/* ---------- Mobile navigation polish ---------- */
@media (max-width: 767px) {
    .top-utility-bar {
        text-align: center;
    }

    .header-logos img {
        width: 130px;
    }

    .header-logos .school-icon img {
        width: 70px;
    }

    .site-footer .col-md-3 {
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-bottom .col-md-4 {
        text-align: center !important;
    }
}

/* Smooth scroll + smoother collapsing mobile menu */
html {
    scroll-behavior: smooth;
}

.header-nav.collapse.in,
.header-nav.collapsing {
    transition: height 0.35s ease;
}

/* Scroll-to-top button */
.scroltop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
