/* ===== Module CSS Imports ===== */
@import url("footer.css");
@import url("modulecard.css");
/* =========================================================
   DPS VAPI – 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 VAPI – 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;
    }


    /* MAIN MENU ITEMS */

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

    width: 100% !important;
    height: auto !important;

    align-items: stretch !important;

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

    border-bottom:
        1px solid rgba(255,255,255,.12);
}


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

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

    width: 100% !important;

    height: auto !important;
    min-height: 48px;

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

        background: transparent !important;

        color: #ffffff !important;

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

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

        text-align: left;

        text-decoration: none !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;
    }
}