/* =====================================================================
   site.css — styles that were duplicated inline in admin.master and
   Default.aspx. Brand colour comes from branch.config (--brand).
   ===================================================================== */

:root { --brand: #912105; }

.edu-footer.footer-dark p a { color: #fff; }
.edu-footer.footer-dark p a:hover { color: yellow; }
.footer-sep { display: inline-block; width: 2.5em; }

/* Homepage: translucent desktop nav over the banner */
body.sticky-header .mainmenu-nav { background-color: rgba(130, 105, 105, .5); border-radius: 10px; }

@media screen and (max-width: 600px) {
    .img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }
}

@media only screen and (max-width: 667px) {
    #banner-section { position: relative; width: 100%; height: 260px; }
    #banner-section .carousel { position: relative; width: 100%; height: 280px; overflow: hidden; }
}

/* ---------------- Mobile header / burger menu ---------------- */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 10; background-color: var(--brand);
}
.header__container {
    padding: 0 30px; max-width: 1200px; margin: 0 auto;
    display: none; align-items: center; justify-content: space-between; min-height: 70px;
}

@media screen and (max-width: 600px) {
    .header__container { display: flex; }
    .header__logo { position: relative; z-index: 5; width: 100%; }

    .menu__icon { display: none; }
    .menu__list > li { position: relative; margin-left: 0; }
    .menu__link { color: #fff; font-size: 18px; border-bottom: 1px solid #fff; }
    .menu__link:hover { color: #fff; border-radius: 5px; background: #9dccef7a; }

    .menu__sub-list {
        position: absolute; top: 100%; right: 0;
        background-color: #000; padding: 15px; min-width: 200px;
    }
    .menu__sub-list li { margin-bottom: 10px; }
    .menu__sub-list li:last-child { margin-bottom: 0; }
    .menu__sub-link { color: #fff; }
    .menu__sub-link:hover { text-decoration: underline; }
    .menu__arrow { display: none; }

    body._pc .menu__list > li:hover .menu__sub-list,
    body._touch .menu__list > li._active .menu__sub-list {
        opacity: 1; visibility: visible; transform: translate(0, 0); pointer-events: all;
    }
    body._touch .menu__list > li { display: flex; align-items: center; }
    body._touch .menu__arrow {
        display: block; width: 0; height: 0; margin-left: 5px;
        transition: transform .3s ease 0s;
        border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid #fff;
    }
    body._touch .menu__list > li._active .menu__arrow { transform: rotate(180deg); }

    @media (min-width: 767px) {
        .menu__list { display: flex; align-items: center; }
        .menu__list > li { padding: 10px 0; }
        .menu__sub-list {
            transform: translate(0, 10px); opacity: 0; visibility: hidden;
            pointer-events: none; transition: all .3s ease 0s;
        }
    }

    @media (max-width: 767px) {
        .menu__icon { z-index: 5; display: block; position: relative; width: 30px; height: 18px; cursor: pointer; }
        .menu__icon span, .menu__icon::before, .menu__icon::after {
            left: 0; position: absolute; height: 10%; width: 100%;
            transition: all .3s ease 0s; background-color: #fff;
        }
        .menu__icon::before, .menu__icon::after { content: ''; }
        .menu__icon::before { top: 0; }
        .menu__icon::after { bottom: 0; }
        .menu__icon span { top: 50%; transform: scale(1) translate(0, -50%); }
        .menu__icon._active span { transform: scale(0) translate(0, -50%); }
        .menu__icon._active::before { top: 50%; transform: rotate(-45deg) translate(0, -50%); }
        .menu__icon._active::after { bottom: 50%; transform: rotate(45deg) translate(0, 50%); }

        .menu__body {
            position: fixed; top: 0; left: -100%; width: 100%; height: 100%;
            background-color: rgba(0, 0, 0, .9); padding: 100px 30px 30px;
            transition: left .3s ease 0s; overflow: auto;
        }
        .menu__body._active { left: 0; }
        .menu__body::before {
            content: ''; position: fixed; width: 100%; top: 0; left: 0;
            height: 70px; background-color: var(--brand); z-index: 2;
        }
        .menu__list > li { flex-wrap: wrap; margin-bottom: 10px; }
        .menu__list > li:last-child { margin-bottom: 0; }
        .menu__list > li._active .menu__sub-list { display: block; }
        .menu__link { font-size: 16px; }
        .menu__sub-list {
            position: relative; background-color: #fff; flex: 1 1 100%;
            margin-top: 20px; display: none;
        }
        .menu__sub-link { font-size: 20px; color: #000; }
    }
}

@media (max-width: 767px) {
    .edu-header .header-brand img.logo-light { display: none; }
}

/* ---------------- Homepage helpers (replace repeated inline styles) ---------------- */
.section-pad { padding: 55px 0 50px; }
.section-title.flush { margin-bottom: 0; }
.events-title { color: #fff; font-weight: 600; background-color: #af0011; font-size: 18px; padding: 10px 0; }
.events-list { padding: 18px; height: 330px; }
.events-list li { color: maroon; list-style: none; padding: 10px 0; border-bottom: 1px solid #adaaaa; }
.campus-content.fixed-h { height: 575px; }
.topper-badge { text-align: center; background-color: #ad6812; padding: 10px; }
.topper-badge a { font-weight: 800; color: #fff; }
.bg-map { background-image: url('../images/map-2.png'); background-size: cover; background-attachment: fixed; }
.bg-divine { background-image: url('../images/divne.jpg'); background-size: cover; background-attachment: fixed; }
.map-embed { display: block; width: 100%; height: 450px; border: 0; }

/* ---------------- Desk message pages (Principal / Manager …) ---------------- */
.desk-message { padding: 60px 0; background: url('../images/page-bg.jpg') center / cover fixed; }
.desk-photo { margin: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.desk-photo img { width: 100%; display: block; }
.desk-photo figcaption { text-align: center; padding: 14px 10px; font-size: 17px; color: #333; }
.desk-text { background: rgba(255,255,255,.92); border-radius: 8px; padding: 30px; line-height: 1.8; text-align: justify; }
.desk-text p { margin-bottom: 1em; }
.desk-sign { margin-top: 24px; text-align: right; }
@media (max-width: 991px) { .desk-photo { max-width: 340px; margin: 0 auto; } .desk-text { padding: 20px; } }

/* ---------------- Contact page ---------------- */
.contact-page { background: url('../images/page-bg.jpg') center / cover fixed; }
.contact-page textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: block; margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.form-msg.ok { background: #e7f6ec; color: #1e7b3c; }
.form-msg.err { background: #fdecea; color: #b3261e; }
