/* ===== Module CSS Imports ===== */
@import url("footer.css");
@import url("modulecard.css");
/* =========================================================
   DPS Muzaffarpur – CASSIOPEIA USER.CSS
   Integrated Header Menu | Multi-Level Dropdown | Mega Menu
   ========================================================= */
/* =========================
   HEADER
   ========================= */

header.header {
  position: sticky;
  top: 0;
  z-index: 999;
}
/* =========================
   Remove Arrow
   ========================= */
.mod-menu .dropdown-toggle::after,
.mod-menu .parent > a::after,
.mod-menu svg,
.mod-menu span[class*="icon"] {
  display: none !important;
}


/* =========================
   DROPDOWN – LEVEL 1
   ========================= */

ul.mainmenu > li {
  position: relative;
}

ul.mainmenu > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 9999;
}

/* Desktop hover */
@media (min-width: 769px) {
  ul.mainmenu > li:hover > ul,
  ul.mainmenu > li:focus-within > ul {
    display: block !important;
  }
}

/* =========================
   LEVEL 2+
   ========================= */

ul.mainmenu li ul li {
  position: relative;
}

ul.mainmenu li ul li > ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #ffffff;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 10000;
}

@media (min-width: 769px) {
  ul.mainmenu li ul li:hover > ul,
  ul.mainmenu li ul li:focus-within > ul {
    display: block !important;
  }
}

/* =========================
   OPTIONAL UI POLISH
   ========================= */

.card {
  border-radius: 12px;
}

/* GLOBAL ARTICLE HEADER BAR (COMPACT) */
.page-header h1,
.page-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;

  background: linear-gradient(90deg, #174b3b, #24624e);
  color: #ffffff !important;

  padding: 8px 16px;            /* reduced height */
  border-radius: 8px;

  font-size: 1.35rem;           /* slightly smaller text */
  font-weight: 600;
  line-height: 1.2;             /* tight vertical spacing */

  margin-bottom: 18px;          /* less gap below */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Common card style */
.info-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  border-left: 6px solid;
}

.info-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Article Sidebar Color */
.card-curriculum { border-color: #16a34a; }
.card-evaluation { border-color: #2563eb; }
.card-campus     { border-color: #0f766e; }
.card-national   { border-color: #7c3aed; }
.card-coed       { border-color: #db2777; }
.card-physical   { border-color: #ea580c; }
.card-mission {border-left-color: #0284c7;}
.card-vision {border-left-color: #16a34a;}
.card-description {border-left-color: #2563eb;}
.card-affiliated {border-left-color: #7c3aed;}
.card-history {
  border-left-color: #0f766e; /* institutional green */
}

/* 1. GRID GAP — controls banner ↔ modules */
.site-grid {
    row-gap: 1px !important;
}

/* 2. NO EXTRA SPACE UNDER BANNER */
.container-banner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. NO TOP SPACE FROM GRID CHILDREN */
.container-sidebar-left,
.container-sidebar-right,
.container-component {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 4. ADD SAME GAP BETWEEN MODULES (CARD LEVEL) */
.grid-child .card {
    margin-bottom: 1px !important;
}

/* 5. PREVENT DOUBLE GAP AT GRID BOUNDARY */
.grid-child:last-child .card {
    margin-bottom: 0 !important;
}

/* Force ShowPlus banner image to center */
.container-banner,
.container-banner .mod-showplus,
.container-banner .showplus,
.container-banner .sp-slide,
.container-banner .sp-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure image itself is centered */
.container-banner img {
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.container-banner {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================================
   EXTEND CASSIOPEIA GRID – ADD TOP-C & TOP-D ROWS
   ========================================================= */

/* Desktop layout */
@supports (display: grid) {
  @media (width >= 992px) {

    .site-grid {
      grid-template-areas:
        ". banner banner banner banner ."
        ". top-a  top-a  top-a  top-a  ."
        ". top-b  top-b  top-b  top-b  ."
        ". top-c  top-c  top-c  top-c  ."
        ". top-d  top-d  top-d  top-d  ."
        ". side-l comp   comp   side-r ."
        ". bot-a  bot-a  bot-a  bot-a  ."
        ". bot-b  bot-b  bot-b  bot-b  .";
    }

    .container-top-c {
      grid-area: top-c;
    }

    .container-top-d {
      grid-area: top-d;
    }

  }
}

/* =========================================================
   MENU MODULE – VERTICAL SCROLL ONLY (NO HORIZONTAL)
   ========================================================= */

.menu-scroll-5 .mod-menu,
.menu-scroll-5 ul {
  max-height: 220px;        /* ~5 items visible */
  overflow-y: auto;         /* vertical scroll */
  overflow-x: hidden;       /* stop horizontal scroll */
}

/* Ensure menu items stay stacked vertically */
.menu-scroll-5 ul {
  display: block !important;
}

/* Prevent long text from forcing sideways scroll */
.menu-scroll-5 li a {
  white-space: normal;
  word-break: break-word;
}

/* Optional: clean scrollbar */
.menu-scroll-5 ul::-webkit-scrollbar {
  width: 6px;
}

.menu-scroll-5 ul::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
}

.menu-scroll-5 ul::-webkit-scrollbar-track {
  background: transparent;
}
/* =========================================================
   MAKE TOP-C & TOP-D MATCH TOP-A / TOP-B BEHAVIOR
   ========================================================= */

/* Apply same flex behavior */
.container-top-c,
.container-top-d {
  display: flex;
  gap: 1em;                 /* same visual gap as others */
  align-items: stretch;     /* equal height cards */
}

/* Make all modules inside equal width */
.container-top-c > *,
.container-top-d > * {
  flex: 1 1 0;
  margin: 0;                /* reset inconsistent margins */
}

/* Mobile: stack vertically like Cassiopeia */
@media (width <= 991.98px) {
  .container-top-c,
  .container-top-d {
    flex-direction: column;
  }

  .container-top-c > *,
  .container-top-d > * {
    flex: 0 auto;
  }
}
.container-top-c .card,
.container-top-d .card {
  height: 100%;
}
.container-top-c,
.container-top-d {
  margin-top: 0.5rem;
}
/* =========================================================
   MOBILE LAYOUT STABILITY – CASSIOPEIA
   Fix gaps, tall cards, and empty columns
   ========================================================= */

@media (max-width: 991.98px) {

  /* 1. Force true single-column flow */
  .site-grid {
    display: block !important;
  }

  .site-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    grid-area: unset !important;
    grid-column: unset !important;
  }

  /* 2. Remove container-level spacing (top-a / top-b) */
  .container-top-a,
  .container-top-b {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Let cards control their own height */
  .info-card {
    height: auto !important;
    min-height: unset !important;
    padding-bottom: 16px;
  }
}

/* =========================================================
   MEGA MENU – VERTICAL SCROLL (FIXED & WORKING)
   ========================================================= */

@media (min-width: 992px) {

  /* Scroll container = FIRST LEVEL UL */
  ul.mainmenu > li.item-110 > ul {
    max-height: calc(100vh - 180px); /* fits 1366x768 screens */
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }

  /* Restore box model for inner lists */
  ul.mainmenu > li.item-110 ul ul {
    position: static !important;
    display: block !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Prevent column overflow */
  ul.mainmenu > li.item-110 li {
    break-inside: avoid;
  }
}
ul.mainmenu > li.item-110 > ul::-webkit-scrollbar {
  width: 6px;
}

ul.mainmenu > li.item-110 > ul::-webkit-scrollbar-thumb {
  background-color: rgba(15, 61, 76, 0.45);
  border-radius: 6px;
}

ul.mainmenu > li.item-110 > ul::-webkit-scrollbar-track {
  background: transparent;
}
/* Reduce space between logo and menu in header */
.navbar-brand {
  margin-bottom: 1px !important;
}

.container-header {
  padding-bottom: 1px !important;
}
/* Social icons below main menu */
.menu-social-below {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  margin-right: 4px;
  padding-right: 6px;
}

.menu-social-below a {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-social-below a:hover {
  background: #d8b548;
  color: #174b3b;
}

@media (max-width: 768px) {
  .menu-social-below {
    justify-content: center;
    margin-top: 12px;
  }
}

/* =====================================================
   ARTICLE CARD SPACING — DO NOT AFFECT HOMEPAGE MODULES
===================================================== */

/* Normal article content */
.container-component .card {
    margin-bottom: 18px !important;
}

/* Extra space after first card (heading / alert) */
.container-component .card:first-child {
    margin-bottom: 28px !important;
}

/* Article cards that are inside Cassiopeia grid */
.view-article .grid-child .card {
    margin-bottom: 20px !important;
}
/* =========================================================
   DPS Muzaffarpur – FINAL HEADER MENU STYLE
   Clean / Integrated / Equal Alignment
   ========================================================= */


/* =========================================================
   NAVIGATION CONTAINER
   No background bar
   ========================================================= */

.container-nav {
    width: 100% !important;

    background: transparent !important;

    margin: 0 !important;
    padding: 6px 0 4px !important;

    border: 0 !important;
    box-shadow: none !important;
}

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

ul.mainmenu {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 5px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    list-style: none !important;
}


/* =========================================================
   ALL TOP LEVEL ITEMS
   Exact same height / alignment
   ========================================================= */

ul.mainmenu > li {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}

/* =========================================================
   TOP LEVEL LINKS
   ========================================================= */

ul.mainmenu > li > a {
    position: relative !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    height: 42px !important;

    padding: 0 15px !important;
    margin: 0 !important;

    background: transparent !important;

    color: #ffffff !important;

    border: 0 !important;
    border-radius: 5px !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    text-decoration: none !important;

    white-space: nowrap !important;

    transition:
        background-color 0.20s ease,
        color 0.20s ease;
}

/* =========================================================
   NORMAL HOVER
   ========================================================= */

ul.mainmenu > li > a:hover {

    background: rgba(255,255,255,0.10) !important;

    color: #ffffff !important;
}


/* =========================================================
   ACTIVE / CURRENT MENU
   Similar to your current Home but cleaner
   ========================================================= */

ul.mainmenu > li.active > a,
ul.mainmenu > li.current > a {

    background: rgba(255,255,255,0.12) !important;

    color: #ffffff !important;
}


/* =========================================================
   GOLD ACTIVE/HOVER LINE
   ========================================================= */

ul.mainmenu > li > a::before {

    content: "" !important;

    position: absolute !important;

    left: 50% !important;
    bottom: 3px !important;

    width: 0 !important;
    height: 2px !important;

    background: #e7bd45 !important;

    border-radius: 2px !important;

    transform: translateX(-50%) !important;

    transition: width 0.20s ease !important;
}


ul.mainmenu > li > a:hover::before {

    width: 35% !important;
}


ul.mainmenu > li.active > a::before,
ul.mainmenu > li.current > a::before {

    width: 52% !important;
}


/* =========================================================
   REMOVE ANY EXISTING SEPARATOR / EXTRA PSEUDO ELEMENT
   ========================================================= */

ul.mainmenu > li::after {
    display: none !important;
}


/* =========================================================
   DROPDOWN LEVEL 1
   ========================================================= */

ul.mainmenu > li > ul {

    top: 100% !important;

    background: #ffffff !important;

    min-width: 225px !important;

    margin: 0 !important;
    padding: 7px 0 !important;

    border: 1px solid #dce7e2 !important;
    border-top: 3px solid #d8b548 !important;

    border-radius: 5px !important;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.16) !important;
}

/* =========================================================
   SUBMENU ITEMS
   ========================================================= */

ul.mainmenu li ul li > a {

    display: block !important;

    padding: 9px 17px !important;

    background: transparent !important;

    color: #21483b !important;

    border: 0 !important;
    border-left: 3px solid transparent !important;

    border-radius: 0 !important;

    font-size: 13.5px !important;
    font-weight: 600 !important;

    line-height: 1.35 !important;

    text-decoration: none !important;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        padding-left 0.18s ease !important;
}


/* Submenu hover */

ul.mainmenu li ul li > a:hover {
    background: #dfece6 !important;

    color: #123f34 !important;

    border-left-color: #d8b548 !important;

    padding-left: 21px !important;
}


/* =========================================================
   LEVEL 2+
   ========================================================= */

ul.mainmenu li ul li > ul {

    background: #ffffff !important;

    border: 1px solid #dce7e2 !important;

    border-radius: 5px !important;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.15) !important;
}


/* =========================================================
   INFRASTRUCTURE MEGA MENU – DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    /* Mega-menu container */
    ul.mainmenu > li.item-110 > ul {
        display: none !important;

        position: absolute !important;

        top: 100% !important;
        left: 50% !important;

        transform: translateX(-50%) !important;

        width: 900px !important;
        max-width: calc(100vw - 40px) !important;

        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

        gap: 2px 18px !important;

        padding: 14px 18px !important;

        margin: 0 !important;

        background: #ffffff !important;

        border: 1px solid #dce7e2 !important;
        border-top: 3px solid #d8b548 !important;

        border-radius: 6px !important;

        box-shadow: 0 12px 30px rgba(0,0,0,0.17) !important;

        max-height: none !important;

        overflow: visible !important;

        z-index: 10000 !important;
    }


    /* Show mega menu */
    ul.mainmenu > li.item-110:hover > ul,
    ul.mainmenu > li.item-110:focus-within > ul {
        display: grid !important;
    }


    /* Each first-level Infrastructure item */
    ul.mainmenu > li.item-103 > ul > li {
        position: relative !important;

        display: block !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* Infrastructure links */
    ul.mainmenu > li.item-103 > ul > li > a {
        display: block !important;

        padding: 7px 10px !important;

        margin: 0 !important;

        color: #21483b !important;

        background: transparent !important;

        border: 0 !important;
        border-left: 3px solid transparent !important;

        font-size: 13px !important;
        font-weight: 600 !important;

        line-height: 1.25 !important;

        white-space: normal !important;
    }


    ul.mainmenu > li.item-103 > ul > li > a:hover {
        background: #dfece6 !important;

        color: #123f34 !important;

        border-left-color: #d8b548 !important;

        padding-left: 13px !important;
    }


    /* Nested items inside Infrastructure */
    ul.mainmenu > li.item-103 ul ul {
        position: static !important;

        display: block !important;

        width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;

        box-shadow: none !important;

        transform: none !important;
    }


    /* Remove arrows inside mega menu */
    ul.mainmenu > li.item-103 li > a::after {
        display: none !important;
    }

}

/* =========================================================
   MOBILE HAMBURGER MENU
   Menu Tag ID: mainmenu
   Works with user.js
   ========================================================= */


/* =========================================================
   DESKTOP - HIDE HAMBURGER
   ========================================================= */

@media (min-width: 769px) {

    .dps-hamburger {
        display: none !important;
    }

}


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

@media (max-width: 768px) {

    /* MENU CONTAINER */

    .container-nav {
        position: relative;
        min-height: 48px;
        padding: 4px 10px !important;
    }


    /* HAMBURGER BUTTON */

    .dps-hamburger {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        margin: 0;
        padding: 0;

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

        color: #ffffff;

        border: 1px solid rgba(255,255,255,.30);
        border-radius: 7px;

        font-size: 26px;
        line-height: 1;

        cursor: pointer;

        position: relative;

        z-index: 10003;
    }


    .dps-hamburger:hover,
    .dps-hamburger:focus {
        background: #1f4f63;
        color: #ffffff;
        border-color: rgba(255,255,255,.40);
    }


    /* HIDE MAIN MENU INITIALLY */

    ul#mainmenu {
        display: none !important;
    }


    /* OPEN MOBILE MENU */

    ul#mainmenu.dps-menu-open {
        display: block !important;

        position: fixed;

        top: 0;
        left: 0;

        width: 290px;
        max-width: 85vw;

        height: 100vh;

        margin: 0 !important;

        padding: 78px 0 25px !important;

        overflow-y: auto;
        overflow-x: hidden;

        background: #1D4533 !important;

        z-index: 10001;

        box-shadow:
            5px 0 25px rgba(0,0,0,.28);
    }


    /* HAMBURGER POSITION WHEN MENU IS OPEN */

    body.dps-menu-active .dps-hamburger {
        position: fixed;

        top: 30px;
        left: 10px;

        z-index: 10003;
    }


   
/* =========================================================
   DPS MUZAFFARPUR - UNIFORM MOBILE MENU ROWS
   ========================================================= */

ul#mainmenu.dps-menu-open > li {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-sizing: border-box;
}

/* All main menu links including submenu parents */
ul#mainmenu.dps-menu-open > li > a,
ul#mainmenu.dps-menu-open > li > span {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    height: 44px !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 15px !important;

    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    box-sizing: border-box;
}

/* Keep collapsed submenu lists out of layout */
ul#mainmenu.dps-menu-open li > ul:not(li.dps-submenu-open > ul) {
    display: none !important;
}

/* Preserve clickable expanded submenu */
ul#mainmenu.dps-menu-open li.dps-submenu-open > ul {
    display: block !important;
}


  /* Force submenu to stay below parent item */
ul#mainmenu.dps-menu-open > li > ul,
ul#mainmenu.dps-menu-open li ul li > ul {
    float: none !important;
    clear: both !important;
}

    ul#mainmenu.dps-menu-open > li > a:hover,
    ul#mainmenu.dps-menu-open > li.current > a,
    ul#mainmenu.dps-menu-open > li.active > a {
        background:
            rgba(255,255,255,.10) !important;

        color: #ffffff !important;
    }


    /* REMOVE DEFAULT MOBILE ARROW
       JS CONTROLS SUBMENUS */

    ul#mainmenu li.parent > a::after {
        display: none !important;
    }


    /* SUBMENU MOBILE STYLE */

    ul#mainmenu.dps-menu-open li > ul {
        position: static !important;

        width: 100% !important;
        min-width: 100% !important;

        margin: 0 !important;

        padding: 3px 0 5px 18px !important;

        background: #183A2B !important;
      
        border: 0 !important;

        border-left:
            3px solid rgba(255,255,255,.35) !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        transform: none !important;
    }


    /* HIDE SUBMENU BY DEFAULT */

    ul#mainmenu.dps-menu-open li > ul {
        display: none !important;
    }


    /* OPEN CLICKED SUBMENU */

    ul#mainmenu.dps-menu-open
    li.dps-submenu-open > ul {
        display: block !important;
    }


    /* SUBMENU LINKS */

    ul#mainmenu.dps-menu-open
    li ul li > a {
        display: block;

        padding: 10px 14px !important;

        background: transparent !important;

        color:
            rgba(255,255,255,.90) !important;

        border: 0 !important;

        border-bottom:
            1px solid rgba(255,255,255,.08) !important;

        border-radius: 0 !important;

        font-size: 13px;

        font-weight: 500;

        white-space: normal;
    }


    ul#mainmenu.dps-menu-open
    li ul li > a:hover {
        background:
            rgba(255,255,255,.10) !important;

        color: #ffffff !important;
    }


    /* INFRASTRUCTURE / MEGA MENU
       DISABLE DESKTOP MEGA MENU ON MOBILE */

    ul#mainmenu.dps-menu-open
    > li.item-110 > ul {
        display: none !important;

        max-height: none !important;

        overflow: visible !important;

        grid-template-columns: none !important;

        width: 100% !important;

        transform: none !important;
    }


    ul#mainmenu.dps-menu-open
    > li.item-110.dps-submenu-open > ul {
        display: block !important;
    }


    ul#mainmenu.dps-menu-open
    > li.item-110 ul ul {
        position: static !important;

        display: none !important;

        width: 100% !important;

        padding-left: 12px !important;
    }


    ul#mainmenu.dps-menu-open
    > li.item-110 ul
    li.dps-submenu-open > ul {
        display: block !important;
    }


    /* PREVENT PAGE SCROLL WHILE MENU IS OPEN */

    body.dps-menu-active {
        overflow: hidden;
    }

}


/* =========================================================
   MOBILE MENU BACKDROP
   ========================================================= */

@media (max-width: 768px) {

    .dps-menu-backdrop {
        display: none;

        position: fixed;

        inset: 0;

        background: rgba(0,0,0,.28);

        z-index: 10000;
    }


    body.dps-menu-active .dps-menu-backdrop {
        display: block;
    }


    ul#mainmenu.dps-menu-open {
        z-index: 10001;
    }


    .dps-hamburger {
        z-index: 10003;
    }

}
/* =========================================================
   DESKTOP MENU + SOCIAL ICON ALIGNMENT FIX
   Keep main menu perfectly centered
   ========================================================= */

@media (min-width: 769px) {

    .container-nav {
        position: relative !important;
    }

    /* Main menu remains centred */
    ul.mainmenu {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Remove social icons from normal flex flow */
    .menu-social-below {
        position: absolute !important;

        right: 0 !important;
        top: 50% !important;

        transform: translateY(-50%) !important;

        width: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        gap: 8px !important;

        z-index: 10;
    }
}



/* DPS Muzaffarpur - Banner and News Scroller */

.container-banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;

    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Stack banner and news vertically */
.container-banner > * {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    min-width: 0;
    margin: 0 !important;
}

/* Preserve responsive images */
.container-banner img {
    max-width: 100%;
    height: auto;
}


/* DPS Muzaffarpur - News Scroller horizontal layout */

/* Keep banner modules stacked vertically */
.container-banner {
    flex-direction: column !important;
}

/* Keep News Scroller label and ticker in one row */
.container-banner .dps-announce-wrap,
.container-banner .dps-announcement,
.container-banner .dps-news-scroller {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100%;
}

/* Admissions label stays on the left */
.container-banner .dps-announce-label,
.container-banner .dps-news-label {
    flex: 0 0 auto !important;
    white-space: nowrap;
}

/* Scrolling announcements occupy remaining width */
.container-banner .dps-announce-track,
.container-banner .dps-news-track {
    flex: 1 1 auto !important;
    min-width: 0;
    overflow: hidden;
}


/* ==================================
   DPS Muzaffarpur - Mobile Banner
   ================================== */

@media (max-width: 767px) {

  /* Maintain adequate banner height */
  .container-banner img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
  }

  /* Prevent extra gaps around banner */
  .container-banner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

}


/* =========================================================
   DPS MUZAFFARPUR - MAIN NAVIGATION MENU
   Left Aligned with Banner | White Separators
   Joomla 6 Cassiopeia
   ========================================================= */


/* =========================================================
   DESKTOP MENU CONTAINER
   Match the 1140px banner width
   ========================================================= */

@media (min-width: 992px) {

    .container-header .container-nav {
        width: 100% !important;
        max-width: 1140px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Keep navigation aligned to the left */

    .container-header .mod-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;

        width: 100%;
        margin: 0 !important;
        padding: 0 !important;

        list-style: none;
    }

    /* Individual menu items */

    .container-header .mod-menu > li {
        position: relative;
        display: flex;
        align-items: center;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove extra space before Home */

    .container-header .mod-menu > li:first-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Align Home text with banner start */

    .container-header .mod-menu > li:first-child > a,
    .container-header .mod-menu > li:first-child > span {
        padding-left: 0 !important;
    }

    
/* =========================================================
   DPS MUZAFFARPUR - WHITE MENU SEPARATORS
   ========================================================= */

@media (min-width: 992px) {

    /* Separator before every item except Home */
    .container-header .mod-menu > li + li {
        position: relative;
    }

    .container-header .mod-menu > li + li::before {
        content: "" !important;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);

        display: block !important;
        width: 1px;
        height: 16px;
        background-color: rgba(255,255,255,0.65);

        border: 0;
        pointer-events: none;
    }

}

/* Hide separators on mobile */
@media (max-width: 991px) {
    .container-header .mod-menu > li::before {
        display: none !important;
    }
}

}


/* =========================================================
   MAIN MENU TYPOGRAPHY
   ========================================================= */

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    font-size: 14px !important;
    font-weight: 600 !important;

    line-height: 1.5 !important;

    padding: 9px 14px;

    white-space: nowrap;
    text-decoration: none;
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.container-header .mod-menu .mod-menu__sub a {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.5;
}


/* =========================================================
   TABLET & MOBILE MENU
   Preserve Cassiopeia hamburger behaviour
   ========================================================= */

@media (max-width: 991px) {

    .container-header .container-nav {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .container-header .mod-menu {
        display: block;
        width: 100%;

        margin: 0;
        padding: 0;
    }

    .container-header .mod-menu > li {
        display: block;
        margin: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        font-size: 14px !important;
        font-weight: 600 !important;

        padding: 10px 14px;
        white-space: normal;
    }

    /* Hide separators on mobile */

    .container-header .mod-menu > li::after {
        display: none !important;
    }
}

/* DPS Muzaffarpur - Refined Active Menu */

@media (min-width: 992px) {

  .container-header .mod-menu > li.current > a,
  .container-header .mod-menu > li.active > a,
  .container-header .mod-menu > li.current > span,
  .container-header .mod-menu > li.active > span {
    background: rgba(255,255,255,0.14) !important;
    border-radius: 5px !important;
    padding: 9px 16px !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  .container-header .mod-menu > li.current > a::after,
  .container-header .mod-menu > li.active > a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
  }

  .container-header .mod-menu > li > a {
    position: relative;
  }

}

/* DPS Muzaffarpur - Dropdown Menu */

@media (min-width: 992px) {

  .container-header .mod-menu .mod-menu__sub {
    background: #ffffff !important;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.14);
    padding: 6px 0;
    z-index: 1100;
  }

  .container-header .mod-menu .mod-menu__sub a {
    color: #174638 !important;
    font-size: 14px !important;
    padding: 10px 16px;
  }

  .container-header .mod-menu .mod-menu__sub a:hover,
  .container-header .mod-menu .mod-menu__sub a:focus-visible {
    color: #8b0035 !important;
    background: #fff2e8 !important;
  }
}


/* =========================================================
   DPS MUZAFFARPUR - MOBILE MENU REFINEMENT
   Consistent rows / No gold underline
   ========================================================= */

@media (max-width: 768px) {

    /* Remove desktop menu gap */
    ul#mainmenu.dps-menu-open {
        gap: 0 !important;
        row-gap: 0 !important;
    }

    /* Consistent top-level rows */
    ul#mainmenu.dps-menu-open > li {
        position: relative !important;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Normal and submenu-parent links */
    ul#mainmenu.dps-menu-open > li > a,
    ul#mainmenu.dps-menu-open > li > span {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 15px !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        font-size: 15px !important;
    }

    /* Hide the gold desktop active underline */
    ul#mainmenu.dps-menu-open > li > a::before {
        content: none !important;
        display: none !important;
    }

    /* Make submenu toggle controls occupy no extra row */
    ul#mainmenu.dps-menu-open > li > button {
        position: absolute !important;
        top: 0 !important;
        right: 8px !important;
        width: 36px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Cleaner active menu background */
    ul#mainmenu.dps-menu-open > li.active > a,
    ul#mainmenu.dps-menu-open > li.current > a {
        background: rgba(255,255,255,0.10) !important;
        border-radius: 0 !important;
    }

}

