/*
* ----------[NOTIFICATION BAR]--------*
*/
#polybar {
  width: 100%;
  background: var(--yellow);
  color: var(--white);
  font-size: var(--copyFontSmall);
  text-align: center;
  /* Ensure z-index takes effect */
  position: relative;
  z-index: 99999;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--fira);
}
#polybar .message-text {
  flex: 1 1 auto;
  font-size: var(--copyFontSmall);
  padding: 0 10px 0 50px;
}
#polybar .message-text a {
  color: var(--white);
  font-weight: 700;
}
#polybar .close-btn {
  margin-right: 20px;
  margin-left: 20px;
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
#polybar .close-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
#polybar .close-btn:before {
  content: '';
  position: absolute;
  background-color: var(--white);
  height: 2px;
  top: 50%;
  left: 50%;
  width: 14px;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: all 0.3s ease-in-out;
}
#polybar .close-btn:after {
  content: '';
  position: absolute;
  background-color: var(--white);
  width: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  height: 14px;
  transition: all 0.3s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  #polybar .close-btn:before,
  #polybar .close-btn:after,
  .social-networks-shortcode ul li a.icon i,
  .social-networks-shortcode ul li a.icon svg {
    transition: none !important;
  }
}
/*
* ----------[SOCIAL NETWORKS]--------*
*/
.social-networks-shortcode ul {
  list-style: none;
  padding: 0;
  display: flex;
}
.social-networks-shortcode ul li:not(:last-child) {
  margin-right: 15px;
}
.et-social-icon.fa-icon a.icon:before {
  content: '';
}
.social-networks-shortcode ul li a i,
.social-networks-shortcode ul li a svg {
  transition:
    all 0.4s ease,
    fill 0.4s ease;
}
.social-networks-shortcode ul li a:hover i,
.social-networks-shortcode ul li a:hover svg {
  color: var(--primary-color); /* Hover color */
  fill: var(--primary-color); /* Hover color for SVG */
  transform: scale(1.3);
}
.social-networks-shortcode ul li a:focus-visible i,
.social-networks-shortcode ul li a:focus-visible svg {
  color: var(--primary-color);
  fill: var(--primary-color);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.et-db #et-boc .et-l #header-row {
  height: 118px;
  transition:
    background 0.5s ease,
    box-shadow 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 9999;
}

/* Account for WordPress admin bar when logged in */
.et-db.admin-bar #et-boc .et-l #header-row {
  top: 32px;
}

/* Account for admin bar on mobile */
@media screen and (max-width: 782px) {
  .et-db.admin-bar #et-boc .et-l #header-row {
    top: 46px;
  }
}

/* Account for admin bar when collapsed (small screens) */
@media screen and (max-width: 600px) {
  .et-db.admin-bar #et-boc .et-l #header-row {
    top: 46px;
  }
}
.et-db #et-boc .et-l #header-row.active {
  background: #e8e8e8;
}

/* Sticky header scroll behavior - smooth background and shadow changes */
#header-row.scrolled,
#header-row.et-fixed-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
#header-row > .et_pb_row,
.et-db #et-boc .et-l #header-row > .et_pb_row {
  display: flex;
  align-items: start;
  height: 100%;
}
#header-row > .et_pb_row > .et_pb_column,
.et-db #et-boc .et-l #header-row > .et_pb_row > .et_pb_column {
  width: auto;
  margin: 0;
  padding: 0;
  flex: 0 1 30%;
}
#header-row .et_pb_row .et_pb_column#header-row-column-1 {
  height: 100%;
  align-items: center;
  display: flex;
  background: rgb(255 255 255 / 90%);
  max-width: 600px;
}
.et-db #et-boc .et-l #header-row .et_pb_row .et_pb_column#header-row-column-2 {
  flex: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 35px,
    rgba(255, 255, 255, 0.9) 0%
  );
}
#header-main-row {
  display: flex;
  margin-top: auto;
  margin-bottom: auto;
  align-items: center;
}
.et-db #et-boc .et-l #header-top-row {
  display: flex;
  align-items: center;
}
.et-db #et-boc .et-l #header-top-row .et_pb_column#header-row-top-column {
  margin-left: 30px;
  margin-right: 0;
  width: 100%;
}
.et-db #et-boc .et-l #header-top-row .et_pb_column,
.et-db #et-boc .et-l #header-main-row .et_pb_column {
  width: auto;
  margin: 0;
}
.et-db #et-boc .et-l .et_pb_column#main-menu-column {
  flex: 1;
}
.et-db #et-boc .et-l .et_pb_column#request-info-button-column {
  margin-left: auto;
}
.et-db #et-boc .et-l .et_pb_column#apply-now-button-column {
  margin-left: 20px;
  margin-right: 28px !important;
  flex: none;
  background: transparent;
}
ul#menu-top-menu,
ul#menu-main-menu {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 3vw;
  flex-wrap: nowrap;
}
ul#menu-main-menu {
  gap: 0px;
  /* justify-content: space-between; */
  width: 90%;
  padding-left: 30px;
}
ul#menu-main-menu li:not(:first-child) {
  margin-left: 4.5vw;
}
#header-top-row ul#menu-top-menu li a,
.et-db #et-boc .et-l #header-top-row ul#menu-top-menu li a {
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(var(--standardFontMin), 1.5vw, var(--standardFontMax));
}
#header-top-row ul#menu-top-menu li:not(.open-search) a,
.et-db #et-boc .et-l #header-top-row ul#menu-top-menu li:not(.open-search) a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
  text-decoration: none;
}
#header-top-row ul#menu-top-menu li:not(.open-search) a::after,
.et-db
  #et-boc
  .et-l
  #header-top-row
  ul#menu-top-menu
  li:not(.open-search)
  a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#header-top-row ul#menu-top-menu li:not(.open-search) a:hover::after,
#header-top-row ul#menu-top-menu li:not(.open-search) a:focus-visible::after,
.et-db
  #et-boc
  .et-l
  #header-top-row
  ul#menu-top-menu
  li:not(.open-search)
  a:hover::after,
.et-db
  #et-boc
  .et-l
  #header-top-row
  ul#menu-top-menu
  li:not(.open-search)
  a:focus-visible::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  #header-top-row ul#menu-top-menu li:not(.open-search) a::after,
  .et-db
    #et-boc
    .et-l
    #header-top-row
    ul#menu-top-menu
    li:not(.open-search)
    a::after {
    transition-duration: 0.01ms;
  }
}
ul#menu-main-menu li a {
  /* Use consistent color variable */
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: clamp(var(--smallestFontMin), 2vw, var(--smallestFontMax));
}
#header-top-row ul#menu-top-menu li a:focus-visible,
ul#menu-main-menu li a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.et-db #et-boc .et-l ul li.menu-item-has-children,
.et-db #et-boc .et-l ul li.open-mega-menu {
  position: relative;
}
.et-db #et-boc .et-l ul li.menu-item-has-children:after,
.et-db #et-boc .et-l ul li.open-mega-menu:after {
  content: url('../img/icon-down-arrow.svg');
  position: absolute;
  top: 9px;
  right: -20px;
  transition: 0.4s ease;
  width: 13px;
  line-height: 0;
}
.et-db #et-boc .et-l #mobile-menu-container-section ul li.open-mega-menu:after {
  display: none;
}
.et-db #et-boc .et-l ul li.open-search.open-mega-menu:after {
  content: url('../img/search-icon.svg');
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  transition: 0.4s ease;
  width: 12.25px;
  line-height: 0;
  cursor: pointer;
}
.et-db #et-boc .et-l ul li.menu-item-has-children.et-hover:after,
.et-db #et-boc .et-l ul li.active:not(.open-search):after {
  transform: rotate(180deg);
}
.et-db #et-boc .et-l li.open-search {
  margin-left: auto;
  margin-right: 16px;
}
.et-db #et-boc .et-l .mega-menu {
  position: fixed;
  top: 118px;
  left: 0;
  width: 100vw;
  /* height: calc(100vh - 118px); */
  max-width: 100%;
  z-index: -1;
  transition:
    opacity 0.5s ease-in-out,
    visibility 0.5s ease-in-out;
  overflow: scroll;
  padding: 0px;
  visibility: hidden;
  opacity: 0;
}
.et-db.admin-bar #et-boc .et-l .mega-menu {
  top: 150px;
}
.et-db #et-boc .et-l .mega-menu.active {
  visibility: visible;
  opacity: 1;
  z-index: 1;
}
@media (max-width: 1199px) {
  .et-db #et-boc .et-l .mega-menu > .et_pb_row {
    width: 90%;
    padding: 30px 0;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
  }
  .et-db #et-boc .et-l .mega-menu > .et_pb_row .et_pb_column {
    width: 100%;
  }
  .et-db #et-boc .et-l .mega-menu > .et_pb_row .et_pb_column:not(:last-child) {
    margin-bottom: 30px;
  }
  .et-db
    #et-boc
    .et-l
    .mega-menu
    > .et_pb_row
    .et_pb_column
    .et_pb_module.et_pb_image {
    line-height: 0;
  }
  .et-db
    #et-boc
    .et-l
    .mega-menu
    > .et_pb_row
    .et_pb_column
    .et_pb_text_1_tb_header,
  .et-db
    #et-boc
    .et-l
    .mega-menu
    > .et_pb_row
    .et_pb_column
    .et_pb_text_2_tb_header {
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
  }
  .et-db
    #et-boc
    .et-l
    .mega-menu
    > .et_pb_row
    .et_pb_column
    .et_pb_text_1_tb_header.et_pb_with_border {
    border-bottom: 1px solid;
    border-bottom-color: rgba(0, 93, 170, 0.3);
  }
}
/* Mega menu menu items styling */
.et-db #et-boc .et-l .mega-menu-menu-items {
  padding-left: 0 !important;
  padding-bottom: 0 !important;
  list-style: none !important;
  font-size: 1.6rem; /* 16px */
  font-family: var(--fira);
  color: var(--Primary-Blue, #005daa);
}
.et-db #et-boc .et-l #menu-admissions-miscellaneous.mega-menu-menu-items {
  font-weight: 700;
}

.et-db #et-boc .et-l .mega-menu-menu-items li {
  list-style: none !important;
  margin-bottom: 6px;
}

.et-db #et-boc .et-l .mega-menu-menu-items a {
  color: var(--Primary-Blue, #005daa) !important;
}

.et-db #et-boc .et-l .mega-menu-menu-items ul {
  padding-left: 0 !important;
  padding-bottom: 0 !important;
  list-style: none !important;
}

/* Learn More dropdown (shortcode [learn_more_menu]) */
.faulkner-learn-more-dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 25px;
}
.faulkner-learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6em 1em;
  background-color: var(--Primary-Blue, #005daa);
  color: #fff;
  border: none;
  font-family: var(--fira);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.faulkner-learn-more-dropdown.is-open .faulkner-learn-more-btn,
.faulkner-learn-more-btn:hover {
  background-color: var(--Primart-Blue-Hover);
}
.faulkner-learn-more-btn-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.25s ease;
}
.faulkner-learn-more-dropdown.is-open .faulkner-learn-more-btn-caret {
  transform: rotate(180deg);
}
.faulkner-learn-more-panel {
  position: relative;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 0;
  padding: 12px 0;
  background-color: var(--Primart-Blue-Hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 100;
}
.faulkner-learn-more-dropdown.is-open .faulkner-learn-more-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.faulkner-learn-more-panel[hidden] {
  display: none !important;
}
.faulkner-learn-more-dropdown.is-open .faulkner-learn-more-panel {
  display: block;
}
.faulkner-learn-more-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faulkner-learn-more-panel li {
  margin: 0;
  padding: 0;
}
/* Desktop: inside Divi layout (#et-boc .et-l) */
.et-db #et-boc .et-l .faulkner-learn-more-panel a {
  display: block;
  padding: 8px 20px;
  color: var(--white) !important;
  font-family: var(--fira);
  font-size: 1.4rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
/* Mobile: panel can be inside #mobile-menu-container-section / mobile mega menu (outside #et-boc), so target panel links without that context. Overrides .mega-menu ul.mega-menu-menu-items li a */
#mobile-menu-container-section .faulkner-learn-more-panel a,
.faulkner-learn-more-panel .mega-menu-menu-items a {
  display: block;
  padding: 8px 20px;
  color: var(--white) !important;
  font-family: var(--fira);
  font-size: 1.4rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.faulkner-learn-more-panel a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Mobile: always show Learn More panels in the slide-in mega menu (content is cloned into #mobile-mega-menu-content); match button to panel color */
@media (max-width: 1199px) {
  #mobile-mega-menu-content .faulkner-learn-more-panel,
  #mobile-mega-menu-content .faulkner-learn-more-panel[hidden],
  .mobile-mega-menu-content .faulkner-learn-more-panel,
  .mobile-mega-menu-content .faulkner-learn-more-panel[hidden] {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  #mobile-mega-menu-content
    .faulkner-learn-more-dropdown
    .faulkner-learn-more-btn,
  .mobile-mega-menu-content
    .faulkner-learn-more-dropdown
    .faulkner-learn-more-btn {
    background-color: var(--Primart-Blue-Hover);
  }
  #mobile-mega-menu-content
    .faulkner-learn-more-dropdown
    .faulkner-learn-more-btn-caret,
  .mobile-mega-menu-content
    .faulkner-learn-more-dropdown
    .faulkner-learn-more-btn-caret {
    display: none;
  }
}

.et-db #et-boc .et-l #admissions-menu-section .et_pb_row {
  display: flex;
  justify-content: center;
}
.et-db #et-boc .et-l #admissions-menu-section .et_pb_column {
  width: auto;
}
/* Campus mega menu row - evenly distribute columns 2, 3, 4 */
.et-db #et-boc .et-l .campus-mega-menu-row,
.et-db #et-boc .et-l .student-mega-menu-row {
  display: flex;
  gap: 4rem;
}
@media (min-width: 1200px) {
  .et-db #et-boc .et-l .campus-mega-menu-row .et_pb_column:nth-child(2),
  .et-db #et-boc .et-l .student-mega-menu-row .et_pb_column:nth-child(2) {
    flex: 1;
    margin-left: auto;
  }

  .et-db #et-boc .et-l .campus-mega-menu-row .et_pb_column:nth-child(3),
  .et-db #et-boc .et-l .student-mega-menu-row .et_pb_column:nth-child(3) {
    flex: 1;
    padding-right: 4rem;
  }
  .et-db #et-boc .et-l .campus-mega-menu-row .et_pb_column:nth-child(4) {
    flex: 0;
  }
  .et-db #et-boc .et-l .student-mega-menu-row .et_pb_column:nth-child(4) {
    flex: 1;
  }
}

.et-db #et-boc .et-l #mobile-menu-section {
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background-color: transparent; */
  z-index: 9999;
  transition:
    background 0.5s ease,
    box-shadow 0.3s ease;
}

/* Account for WordPress admin bar when logged in */
.et-db.admin-bar #et-boc .et-l #mobile-menu-section {
  top: 32px;
}

/* Account for admin bar on mobile */
@media screen and (max-width: 782px) {
  .et-db.admin-bar #et-boc .et-l #mobile-menu-section {
    top: 46px;
  }
}

/* Account for admin bar when collapsed (small screens) */
@media screen and (max-width: 600px) {
  .et-db.admin-bar #et-boc .et-l #mobile-menu-section {
    top: 46px;
  }
}

/* Sticky mobile header scroll behavior */
.et-db #et-boc .et-l #mobile-menu-section.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.et-db #et-boc .et-l #mobile-menu-section .et_pb_row {
  display: flex;
  padding: 0;
  justify-content: center;
  width: 90%;
  height: 100%;
  align-items: center;
}
.et-db #et-boc .et-l #mobile-menu-section .et_pb_column {
  margin: 0;
  padding: 0;
  width: auto !important;
}
.et-db #et-boc .et-l #mobile-menu-section .et_pb_column:nth-child(2) {
  margin-left: auto;
}
.et-db #et-boc .et-l #mobile-menu-section .et_pb_column:last-child {
  margin-left: 20px;
}
.et-db #et-boc .et-l #mobile-menu-section #mobile-logo {
  padding: 0;
  margin: 0;
  width: 154px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.et-db #et-boc .et-l #mobile-menu-section #mobile-logo svg {
  width: 100%;
  height: 100%;
}
/* #mobile-header-apply-now-button {
  width: 96px;
} */
#mobile-menu-icon {
  cursor: pointer;
}

#mobile-menu-icon .et_pb_code_inner {
  line-height: 0;
}

/* Mobile menu container section - hidden by default */
.et-db #et-boc .et-l #mobile-menu-container-section {
  display: none;
  position: fixed;
  top: 80px; /* Position below fixed mobile header */
  left: 0;
  width: 100%;
  bottom: 0; /* Extend to bottom of viewport */
  /* Use dvh (dynamic viewport height) for better mobile support, fallback to vh */
  /* Account for Safari bottom bar - use bottom: 0 instead of height calc for better scrolling */
  height: auto;
  max-height: calc(100dvh - 80px);
  max-height: calc(
    100vh - 80px
  ); /* Fallback for browsers that don't support dvh */
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9998;
  background: #ffffff;
  flex-direction: column;
  /* Enable smooth scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Ensure content can scroll */
  overscroll-behavior: contain;
}

/* Account for WordPress admin bar when logged in */
.et-db.admin-bar #et-boc .et-l #mobile-menu-container-section {
  top: calc(80px + 32px);
  max-height: calc(100dvh - 80px - 32px);
  max-height: calc(100vh - 80px - 32px); /* Fallback */
}

/* Account for admin bar on mobile */
@media screen and (max-width: 782px) {
  .et-db.admin-bar #et-boc .et-l #mobile-menu-container-section {
    top: calc(80px + 46px);
    max-height: calc(100dvh - 80px - 46px);
    max-height: calc(100vh - 80px - 46px); /* Fallback */
  }
}

.et-db #et-boc .et-l #mobile-menu-container-section.active {
  display: flex;
}

/* Make the row inside use flexbox for sticky footer */
.et-db #et-boc .et-l #mobile-menu-container-section .et_pb_row {
  display: flex;
  flex-direction: column;
  min-height: 100%; /* Ensure row takes full height */
}

/* Make the column grow to fill space */
.et-db #et-boc .et-l #mobile-menu-container-section .et_pb_column {
  display: flex;
  flex-direction: column;
  min-height: 100%; /* Ensure column takes full height */
  /* Add 100px padding-bottom to ensure content scrolls and footer is visible above Safari bottom bar */
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 100px);
}

/* Make all modules except the last one not grow */
.et-db
  #et-boc
  .et-l
  #mobile-menu-container-section
  .et_pb_column
  > .et_pb_module:not(:last-child) {
  flex-shrink: 0;
}

/* Copyright text module - sticks to bottom when content is short */
.et-db
  #et-boc
  .et-l
  #mobile-menu-container-section
  .et_pb_column
  > .et_pb_text:last-child,
.et-db
  #et-boc
  .et-l
  #mobile-menu-container-section
  .et_pb_column
  > .et_pb_module:last-child {
  margin-top: auto;
  flex-shrink: 0;
  /* Ensure footer has bottom padding on mobile - add extra for Safari bottom bar */
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 100px);
  margin-bottom: 0;
}

/* Mobile menu search styling */
.et-db #et-boc .et-l #mobile-menu-search {
  padding: 20px 0;
  border: 0;
  border-radius: 0;
  margin-bottom: 0px;
}

.et-db #et-boc .et-l #mobile-menu-search .et_pb_searchform {
  position: relative;
}

.et-db #et-boc .et-l #mobile-menu-search .et_pb_searchform > div {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* "SEARCH" label inline with input */
/* #mobile-menu-search .et_pb_searchform > div:before {
  content: 'SEARCH';
  display: inline-block;
  color: var(--primary-color, #005daa);
  font-family: var(--fira);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding-bottom: 8px;
} */

/* Input field styling - bottom border only */
.et-db #et-boc .et-l #mobile-menu-search input.et_pb_s {
  flex: 1;
  padding: 8px 50px 8px 0;
  border: none;
  border-bottom: 1px solid rgba(0, 93, 170, 0.3);
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  font-family: var(--fira);
  color: #333;
  transition: border-color 0.3s ease;
}

.et-db #et-boc .et-l #mobile-menu-search input.et_pb_s:focus {
  border-bottom-color: var(--primary-color, #005daa);
}

.et-db #et-boc .et-l #mobile-menu-search input.et_pb_s::placeholder {
  color: var(--primary-color, #005daa) !important;
  text-transform: uppercase;
  font-size: 14px;
}

.et-db
  #et-boc
  .et-l
  #mobile-menu-search
  input.et_pb_s::-webkit-input-placeholder {
  color: var(--primary-color, #005daa) !important;
}

.et-db #et-boc .et-l #mobile-menu-search input.et_pb_s::-moz-placeholder {
  color: var(--primary-color, #005daa) !important;
  opacity: 1;
}

.et-db #et-boc .et-l #mobile-menu-search input.et_pb_s:-ms-input-placeholder {
  color: var(--primary-color, #005daa) !important;
}

.et-db #et-boc .et-l #mobile-menu-search input.et_pb_s:-moz-placeholder {
  color: var(--primary-color, #005daa) !important;
  opacity: 1;
}

/* Magnifying glass icon - blue, no background */
.et-db #et-boc .et-l #mobile-menu-search .et_pb_searchform > div:after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  background-image: url('../img/search-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(25%) sepia(95%) saturate(2000%)
    hue-rotate(200deg) brightness(0.6) contrast(1);
}

/* Hide the submit button */
.et-db #et-boc .et-l #mobile-menu-search input.et_pb_searchsubmit {
  display: none;
}

/* Mobile menu container - Main Menu styling */
#mobile-menu-container-section ul.menu,
#mobile-menu-container-section [class*='menu'] ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu-container-section ul.menu li,
#mobile-menu-container-section [class*='menu'] ul li {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

/* Main Menu list styling */
#mobile-menu-container-section ul.mobile-main-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu-container-section ul.mobile-main-menu-links li {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

#mobile-menu-container-section ul.menu li a,
#mobile-menu-container-section [class*='menu'] ul li a {
  display: inline-block;
  padding: 12px 20px 12px 8px;
  color: var(--primary-color, #005daa);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--fira);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

/* Main Menu links styling */
#mobile-menu-container-section ul.mobile-main-menu-links li a {
  display: inline-block;
  padding: 12px 20px 12px 8px;
  color: var(--primary-color, #005daa);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--fira);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}
.mega-menu ul.mega-menu-menu-items li a {
  color: var(--primary-color, #005daa);
}
.mobile-mega-menu-content .mega-menu .et_pb_column {
  margin-bottom: 20px;
}

/* Main Menu specific styling */
#mobile-menu-container-section ul.mobile-main-menu-links {
  border-bottom: 1px solid rgba(0, 93, 170, 0.3);
  padding-bottom: 20px;
}

/* Top Menu specific styling - black text, two columns */
#mobile-menu-container-section ul.mobile-top-menu-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
  border-bottom: 1px solid rgba(0, 93, 170, 0.3);
}

#mobile-menu-container-section ul.mobile-top-menu-links li {
  margin: 0;
  padding: 0;
}

/* Hide Search menu item from Top Menu */
#mobile-menu-container-section ul.mobile-top-menu-links li.open-search {
  display: none;
}

#mobile-menu-container-section ul.mobile-top-menu-links li a {
  color: #000000;
  padding: 12px 8px;
  display: block;
}

#mobile-menu-container-section ul.menu li a:hover,
#mobile-menu-container-section [class*='menu'] ul li a:hover {
  color: var(--primary-color, #005daa);
}

/* Main Menu hover state */
#mobile-menu-container-section ul.mobile-main-menu-links li a:hover {
  color: var(--primary-color, #005daa);
}

/* Top Menu hover state - keep black */
#mobile-menu-container-section ul.mobile-top-menu-links li a:hover {
  color: #000000;
}

/* Dropdown arrow: only mega-menu parents (slide-in panel). Plain links get no chevron. */
#mobile-menu-container-section ul.menu li.open-mega-menu > a:after,
#mobile-menu-container-section [class*='menu'] ul li.open-mega-menu > a:after,
#mobile-menu-container-section
  ul.mobile-main-menu-links
  li.open-mega-menu
  > a:after {
  content: '';
  width: 12px;
  height: 12px;
  background-image: url('../img/icon-down-arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

/* Remove chevrons from Top Menu items (they're just links) */
#mobile-menu-container-section ul.mobile-top-menu-links li > a:after {
  display: none;
  content: none;
}

#mobile-menu-container-section ul.menu li.open-mega-menu.open > a:after,
#mobile-menu-container-section
  [class*='menu']
  ul
  li.open-mega-menu.open
  > a:after,
#mobile-menu-container-section
  ul.mobile-main-menu-links
  li.open-mega-menu.open
  > a:after {
  transform: rotate(180deg);
}

/* Prevent body scrolling when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* Prevent body scrolling when mobile mega menu panel is open */
body.mobile-mega-menu-open {
  overflow: hidden;
}

/* Mobile Mega Menu Slide-in Panel */
.mobile-mega-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10001; /* Higher than mobile menu (9998) and mobile header (9999) */
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.3s ease,
    opacity 0.3s ease;
  pointer-events: none;
}

.mobile-mega-menu-panel.active {
  pointer-events: auto;
}

.mobile-mega-menu-panel.active {
  visibility: visible;
  opacity: 1;
}

/* Overlay background */
.mobile-mega-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-mega-menu-panel.active .mobile-mega-menu-overlay {
  opacity: 1;
}

/* Slide-in container */
.mobile-mega-menu-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-mega-menu-panel.active .mobile-mega-menu-container {
  transform: translateX(0);
}

/* Panel header with back button */
.mobile-mega-menu-header {
  padding: 12px 20px;

  border-bottom: 1px solid rgba(0, 93, 170, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  background: #ffffff;
  position: relative;
  z-index: 10;
  min-height: 60px;
}

/* Account for WordPress admin bar when logged in */
.et-db.admin-bar .mobile-mega-menu-header {
  padding-top: calc(12px + 80px + 32px);
}

/* Account for admin bar on mobile */
@media screen and (max-width: 782px) {
  .et-db.admin-bar .mobile-mega-menu-header {
    padding-top: calc(12px + 80px + 46px);
  }
}

/* Menu title in header */
.mobile-mega-menu-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--fira);
  color: var(--primary-color, #005daa);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.mobile-mega-menu-back {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--primary-color, #005daa);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-mega-menu-back:hover {
  opacity: 0.7;
}

.mobile-mega-menu-back:focus-visible {
  opacity: 0.7;
  outline: 2px solid var(--primary-color, #005daa);
  outline-offset: 2px;
}

.mobile-mega-menu-back svg {
  width: 24px;
  height: 24px;
}

/* Panel content area */
.mobile-mega-menu-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

/* Style mega menu content within mobile panel */
.mobile-mega-menu-content .mega-menu {
  position: relative;
  visibility: visible;
  opacity: 1;
  padding: 20px 20px 100px;
  height: auto;
  overflow: visible;
}
#mobile-mega-menu-content .bottom-border {
  border-bottom: 1px solid rgba(0, 93, 170, 0.3);
}
/* Hide desktop mega menus when hamburger header is active */
@media (max-width: 1199px) {
  .et-db #et-boc .et-l .mega-menu:not(.mobile-mega-menu-content .mega-menu) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Show mobile header / hide desktop header below 1200px
   (!important beats Divi Theme Builder Disable-on rules still keyed to ~981) */
@media (max-width: 1199px) {
  .et-db #et-boc .et-l #header-row,
  #header-row {
    display: none !important;
  }

  .et-db #et-boc .et-l #header-row-column-2 {
    display: none !important;
  }

  .et-db #et-boc .et-l #mobile-menu-section,
  #mobile-menu-section {
    display: flex !important;
  }
}

/* Hide mobile header on desktop (1200px+) */
@media (min-width: 1200px) {
  .et-db #et-boc .et-l #mobile-menu-section,
  #mobile-menu-section {
    display: none !important;
  }
}

/* Mobile spacing tweaks */
@media (max-width: 767px) {
  ul#menu-top-menu,
  ul#menu-main-menu {
    gap: 12px;
  }
  .social-networks-shortcode ul li:not(:last-child) {
    margin-right: 16px;
  }

  /* Ensure mobile menu container uses full available height on small screens */
  #mobile-menu-container-section {
    bottom: 0;
    max-height: calc(100dvh - 80px);
    max-height: calc(100vh - 80px); /* Fallback */
    max-height: -webkit-fill-available; /* iOS Safari fix */
  }

  /* Ensure proper scrolling on mobile */
  #mobile-menu-container-section .et_pb_column {
    overflow: visible; /* Let parent handle scrolling */
    /* Increase bottom padding on mobile for Safari bottom bar - 100px ensures scrolling */
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 100px);
  }
}
