#carouselExampleCaptions > div:last-child {
  position: static;
}

#carouselExampleCaptions .carousel-control-prev,
#carouselExampleCaptions .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* For Font Size */
h3, h5, h6 {
    font-family: "Montserrat";
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}

/* For list bullets */
/* Restore list bullets like Drupal 9 */
/* override Bootstrap navbar-nav */
.menu--account.navbar-nav {
  list-style: disc !important;
  padding-left: 20px;
}

/* restore list behavior */
.menu--account.navbar-nav li {
  display: list-item !important;
}

/* marker styling */
.menu--account.navbar-nav li::marker {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.more-link.form-group.text-right.mt-20.mews-more-link.fw-bold a {
    color: #0d6efd;
}

/* For Menu font size */

#main-menu li,
#main-menu .nav-link {
  font-size: 14px !important;
}

/* EOF Menu font size */

/* For Footer Part */

.section-footer *, .top-nav *, .top-head-def *, .section-footer a:hover, .top-nav a:hover, .top-head-def a:hover {
    color: #ffffff !important;
}

/* EOF Footer Part */

/* For Header part */

/* ===== TITLE STYLE ===== */
.site-title {
  font-size: 3vw;
  color: #1a73e8;
  font-weight: 500;
  line-height: 1.2;
}

.top-head-def {
  color: #ffffff;
}

/* DO NOT force color on everything */
.top-head-def a,
.top-head-def span {
  color: #ffffff;
}

/* ===== MENU BAR ===== */
.menu-bar {
  background: #d9d9d9;
}

/* ===== CENTER MENU ===== */
.navbar-nav {
  margin: 0 auto;
}

/* ===== MENU LINKS ===== */
.navbar-nav .nav-link {
  color: #1a73e8;
  font-weight: 500;
  padding: 10px 0px;
  font-size: 16px;
}


/* ===== DROPDOWN ===== */
.dropdown-menu {
  border-radius: 4px;
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {

  .site-title {
    font-size: 5vw;
    text-align: center;
  }

  .menu-bar {
    background: #ffffff;
  }

  .navbar-nav {
    text-align: left;
  }
}

/* ============================= */
/* MOBILE HEADER FIX */
/* ============================= */

@media (max-width: 767px) {

  .top-head-def .row {
    display: flex;
    align-items: center;
    flex-direction: row !important;   /* force horizontal */
  }

  /* LEFT: branding */
  .top-head-def .col-sm-6:first-child {
    width: 70%;
  }

  /* RIGHT: hamburger */
  .top-head-def .col-sm-6:last-child {
    width: 30%;
    text-align: right;
  }

  /* FIX TEXT BREAKING */
  .site-title,
  h2 {
    font-size: 18px !important;
    line-height: 1.3;
    white-space: normal !important;
    word-break: normal !important;
  }

  /* LOGO */
  .top-head-def img {
    max-height: 60px !important;
  }

}


/* =============================== */
/* FINAL HAMBURGER FIX (OVERRIDE BS5) */
/* =============================== */

/* REMOVE bootstrap icon completely */
.navbar-toggler-icon {
  background-image: none !important;
}

/* =============================== */
/* CUSTOM HAMBURGER (BULLETPROOF) */
/* =============================== */

.navbar-toggler {
  position: relative;
  width: 36px;
  height: 30px;

  border: none !important;
  background: #cfcfcf !important;
  border-radius: 4px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* remove default span */
.navbar-toggler-icon {
  display: none !important;
}

/* create 3 lines */
.navbar-toggler::before,
.navbar-toggler::after,
.navbar-toggler span {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: #000;
  left: 50%;
  transform: translateX(-50%);
}

/* top line */
.navbar-toggler::before {
  top: 8px;
}

/* middle line */
.navbar-toggler span {
  top: 14px;
}

/* bottom line */
.navbar-toggler::after {
  top: 20px;
}

/* =============================== */
/* REMOVE HAMBURGER WHITE BORDER */
/* =============================== */

/* remove bootstrap focus ring */
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* remove any accidental border */
.navbar-toggler {
  border: none !important;
}

/* also remove browser tap highlight (mobile) */
.navbar-toggler {
  -webkit-tap-highlight-color: transparent;
}

/* ====================================== */
/* EOF FINAL HAMBURGER FIX (OVERRIDE BS5) */
/* ===================================== */

/* ============================= */
/* EXACT MOBILE HEADER STYLE */
/* ============================= */

.top-head-def {
  background: #4a4a4a;
  padding: 10px 15px;
}

/* LEFT TEXT */
.top-head-site-info {
  color: #fff;
  font-weight: 600;
  margin-left: 5px;
}

.top-head-def a {
  color: #fff;
}

/* RIGHT SIDE */
.top-head-right {
  gap: 10px;
}





/* MOBILE ONLY */
@media (max-width: 767px) {

  .top-head-left {
    display: flex;
    flex-direction: column;
    font-size: 14px;
  }

}

/* For Menu Part */
/* ============================= */
/* NAV ALIGN + TOP LINKS */
/* ============================= */

#main-menu {
  margin: 0;
  padding: 0;
}

#main-menu .nav-link {
  padding: 8px 12px;
  color: #007bff;
  font-weight: 700;
}

#main-menu .nav-link.active {
  border-bottom: 2px solid #007bff;
}

/* ============================= */
/* DROPDOWN (REMOVE BS5 EFFECTS) */
/* ============================= */

#main-menu .dropdown {
  position: relative;
}

#main-menu .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;

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

  min-width: 220px;

  border: 1px solid #ccc !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;

  /* kill BS5 animation */
  transform: none !important;
  transition: none !important;

  /* override BS5 vars */
  --bs-dropdown-padding-y: 0 !important;
  --bs-dropdown-border-radius: 0 !important;
  --bs-dropdown-bg: #fff !important;
}

/* ============================= */
/* ITEMS (TARGET nav-link, not dropdown-item) */
/* ============================= */

#main-menu .dropdown-menu li {
  list-style: none;
}

#main-menu .dropdown-menu .nav-link {
  display: block !important;
  width: 100%;

  padding: 10px 15px !important;
  margin: 0 !important;
  font-size: 14px;
  color: #007bff !important;
  background: #fff !important;

  border-bottom: 1px solid #ddd;
}

#main-menu .dropdown-menu li:last-child .nav-link {
  border-bottom: none;
}

#main-menu .dropdown-menu .nav-link:hover {
  background: #f5f5f5 !important;
  color: #0056b3 !important;
}

/* ============================= */
/* CARET (small like D9) */
/* ============================= */

#main-menu .dropdown-toggle::after {
  margin-left: 3px;
  vertical-align: 0.2em;
}

#main-menu .dropdown-menu {
  border-radius: 0 !important;
  border: 1px solid #ccc !important;
  padding: 0 !important;
  margin-top: 0 !important;
  min-width: 220px;
  box-shadow: none !important;
  background: #fff;
}


/* items */
#main-menu .dropdown-menu .nav-link {
  padding: 10px 15px !important;
  color: #007bff !important;
  background: #fff !important;
  border-bottom: 1px solid #ddd;
}

/* ============================= */
/* DESKTOP: DROP DOWN (LIKE D9) */
/* ============================= */
/* last item */
#main-menu .dropdown-menu li:last-child .nav-link {
  border-bottom: none;
}

/* hover */
#main-menu .dropdown-menu .nav-link:hover {
  background: #f5f5f5 !important;
  color: #0056b3 !important;
}

/* remove Bootstrap animation gap */
#main-menu .dropdown-menu {
  transform: none !important;
  transition: none !important;
}

/* ============================= */
/* DESKTOP: HOVER OPEN (LIKE D9) */
/* ============================= */

@media (min-width: 992px) {
  #main-menu .dropdown:hover > .dropdown-menu {
    display: block;
  }
  
  #main-menu .dropdown-toggle::after {
    display: inline-block !important;  /* keep arrow */
  }

   /* hover dropdown */
  #main-menu .dropdown:hover > .dropdown-menu {
    display: block;
  }

  /* ============================= */
  /* CARET (RESTORED CORRECTLY) */
  /* ============================= */

  #main-menu .dropdown-toggle::after {
    content: "" !important;
    display: inline-block !important;

    width: 0;
    height: 0;

    margin-left: 4px;
    vertical-align: 0.2em;

    border-top: 0.3em solid #848484;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
  }

  /* For Home tab Only */
  body.path-frontpage #main-menu a[href="/"]::before {
  width: 100%;
  }

  /* ============================= */
  /* UNDERLINE (FIXED - USE ::before) */
  /* ============================= */

  #main-menu .nav-link {
  position: relative;
  display: inline-block; /* IMPORTANT */
 }

  #main-menu .nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;

    width: 0;
    height: 3px;
    background: #337ab7;
    
    transform: translateX(-50%);
    transition: width 0.25s ease;
  }

  /* hover underline */
  #main-menu .nav-link:hover::before {
    width: 100%;
  }

  /* active underline */
  #main-menu .nav-link.active::before,
  #main-menu .nav-item.active > .nav-link::before {
    width: 100%;
  }

  /* ============================= */
  /* REMOVE UNDERLINE FROM DROPDOWN ITEMS */
  /* ============================= */

  #main-menu .dropdown-menu .nav-link::before {
    display: none !important;
  }

  #main-menu .dropdown-menu .nav-link:hover::before {
  display: none !important;
  }

}

/* ============================= */
/* MOBILE: STACK + NO ABSOLUTE */
/* ============================= */

@media (max-width: 991px) {
  #main-menu .dropdown-toggle::after {
    content: none !important;   /* remove Bootstrap arrow */
  }
}

/* ============================= */
/* D9 MOBILE MENU (FINAL FIX) */
/* ============================= */

@media (max-width: 991px) {

  #main-menu {
    width: 100%;
    background: #d9d9d9;
  }
  
   #main-menu .nav-link {
    border: none !important;
  }

  #main-menu li {
    border-bottom: 1px solid #ddd;
    position: relative;
    background: #f2f2f2;
  }
  
  a.nav-link.dropdown-toggle.show {
    background-color: #337ab7 !important;
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
  }
  
  #main-menu .dropdown > .nav-link {
  position: relative;
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: space-between; /* text left, icon right */
  padding-right: 45px;
  }

  /* MAIN LINKS */
  #main-menu .nav-link {
    display: block;
    padding: 12px 15px;
    color: #337ab7;
    font-weight: 700;
    position: relative;
    background: #f2f2f2;
  }
  
  /* ACTIVE OPEN ITEM (blue bar like your screenshot) */
  #main-menu .dropdown.show > .nav-link {
    background: #3f6f9e !important;
    color: #fff !important;
  }

  /* SUBMENU */
  #main-menu .dropdown-menu {
    position: static !important;
    display: none;
    border: none;
    background: #fff;
    padding: 0;
    margin: 0;
  }
    
  /* SHOW WHEN OPEN */
  #main-menu .dropdown.open > .dropdown-menu {
    display: block;
  }

  /* CHILD ITEMS */
  #main-menu .dropdown-menu .nav-link {
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    background: #fff !important;
    color: #007bff;
  }

  /* ================= */
  /* PLUS ICON (D9 STYLE) */
  /* ================= */

  #main-menu .dropdown > .nav-link::before {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    font-weight: bold;
    color: #337ab7;
    background: rgba(0, 0, 0, 0.1);
    width: 34px;
    height: 34px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #main-menu .dropdown.open > .nav-link::before {
    content: "−";
    color: #fff;
  }

}

/* ============================= */
/* REMOVE BLUE FOCUS / BORDER */
/* ============================= */

/* remove focus outline everywhere */
#main-menu .nav-link:focus,
#main-menu .nav-link:active,
#main-menu .nav-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* remove Bootstrap active button border */
#main-menu .dropdown > .nav-link {
  border: none !important;
  box-shadow: none !important;
}

/* also remove when open */
#main-menu .dropdown.show > .nav-link {
  outline: none !important;
  box-shadow: none !important;
}

/* ============================= */
/* REMOVE ACTIVE / FOCUS BORDER (FINAL FIX) */
/* ============================= */

/* kill all focus/active borders from menu-base-theme */
.menu-base-theme li a,
.menu-base-theme li a:focus,
.menu-base-theme li a:active,
.menu-base-theme li a:hover {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* also target your main menu specifically */
#main-menu .nav-link,
#main-menu .nav-link:focus,
#main-menu .nav-link:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* prevent any border on open accordion item */
#main-menu .dropdown.show > .nav-link {
  border: none !important;
  box-shadow: none !important;
}

/* remove mobile tap highlight (Android fix) */
* {
  -webkit-tap-highlight-color: transparent;
}


/* EOF Menu Part */
/* End of File Header part */
