/* For menu */


/* =========================================================
   ACCESSIBILITY MENU INSIDE HEADER
   ========================================================= */

.access-panel-wrapper {
  display: none;
  position: static;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  z-index: 99999 !important;
}

.access-panel-wrapper.active {
  display: flex;
  align-items: center;
}

/* Header accessibility controls in one horizontal row */
.access-panel-wrapper .grid {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

/* Each accessibility option */
.access-panel-wrapper .control-button {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Make the links/buttons compact */
.access-panel-wrapper .control-button a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
  color: #000029;
  background: transparent;
}

/* Smaller icons */
.access-panel-wrapper .control-button svg {
  width: 24px;
  height: 24px;
}

/* Accessibility heading is not needed in horizontal menu */
.access-panel-wrapper .accessibility-header {
  display: none;
}

/* Close button is not needed for inline menu */
.access-panel-close {
  display: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.steel-contact-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: nowrap;
  min-height: 50px;
}

/* Government / ministry text */
.steel-contact-item-container {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Last container contains utilities */
.steel-contact-item-container:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Social icons */
ul.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

ul.social-icons li {
  display: flex;
  align-items: center;
  list-style: none;
  white-space: nowrap;
}

/* Search / sitemap / help icons */
ul.social-icons img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Accessibility trigger */
.access-trigger-container {
  display: flex;
  align-items: center;
}

.access-trigger-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 0;
  border-radius: 50% !important;
  background: #2c5271;
  cursor: pointer;
}

.access-trigger-button svg {
  width: 22px;
  height: 22px;
}

/* =========================================================
   WHEN ACCESSIBILITY MENU IS OPEN
   ========================================================= */

/*
   Put the accessibility menu next to the accessibility
   button instead of creating a right-side popup.
*/

.access-trigger-container .access-panel-wrapper {
  display: none;
}

.access-trigger-container .access-panel-wrapper.active {
  display: flex;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .steel-contact-container {
    flex-wrap: wrap;
  }

  .steel-contact-item-container:last-child {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  ul.social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .access-panel-wrapper .grid {
    flex-wrap: wrap;
    justify-content: center;
  }
}





/* Menu only css */

/* =========================================================
   HEADER
   ========================================================= */

header.steel-header {
  position: relative;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.steel-header {
    position: relative;
    width: 100%;
    background: #ffffff;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
}

header.steel-header .container {
  min-height: 75px;
}

.steel-header .logo img {
  max-height: 70px;
  width: auto;
}

.steel-header .nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.steel-header .headicon {
  height: 38px;
  width: auto;
  transition: transform 0.2s ease;
}

.steel-header .headicon:hover {
  transform: scale(1.05);
}

header.steel-header .header-inner {
  display: flex;
  justify-content: space-between;
  padding: 5px 70px;
}



/* =========================================================
   STICKY NAVIGATION
   ========================================================= */

.steel-horizontal-nav {
    position: sticky !important;
    top: 0 !important;

    width: 100%;
    background-color: #0b3260;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);

    z-index: 9999 !important;
}


/* =========================================================
   NAVIGATION MENU
   ========================================================= */

.steel-horizontal-nav ul.steel-nav-list,
.steel-horizontal-nav ul.menu {
  display: flex !important;

  flex-direction: row !important;
  flex-wrap: wrap !important;

  align-items: center !important;
  justify-content: flex-start !important;

  width: 100%;

  margin: 0 !important;
  padding: 12px 15px !important;

  list-style: none !important;
}


/* =========================================================
   TOP LEVEL ITEMS
   ========================================================= */

.steel-horizontal-nav ul.steel-nav-list > li,
.steel-horizontal-nav ul.menu > li {
  position: relative !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   TOP LEVEL LINKS
   ========================================================= */

.steel-horizontal-nav ul.steel-nav-list > li > a,
.steel-horizontal-nav ul.menu > li > a {
  display: inline-flex !important;

  align-items: center !important;
  gap: 6px;

  padding: 10px 12px !important;

  color: #fff !important;

  font-size: 1.5rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;

  text-decoration: none !important;

  background: transparent !important;
  border: none !important;

  white-space: nowrap !important;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}


/* Hover / active */

.steel-horizontal-nav ul.steel-nav-list > li:hover > a,
.steel-horizontal-nav ul.steel-nav-list > li > a:focus,
.steel-horizontal-nav ul.steel-nav-list > li.is-active > a,

.steel-horizontal-nav ul.menu > li:hover > a,
.steel-horizontal-nav ul.menu > li > a:focus,
.steel-horizontal-nav ul.menu > li.is-active > a {
  background-color: #062142 !important;
  color: #fff !important;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.steel-horizontal-nav ul.steel-nav-list > li > ul,
.steel-horizontal-nav ul.dropdown-menu {
  display: none !important;

  position: absolute !important;

  top: 100% !important;
  left: 0 !important;

  min-width: 240px !important;

  margin: 0 !important;
  padding: 6px 0 !important;

  background: #fff !important;

  list-style: none !important;

  border: 1px solid #e2e8f0 !important;
  border-top: 3px solid #13559e !important;

  border-radius: 0 0 6px 6px !important;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15) !important;

  z-index: 1100 !important;
}


/* Show dropdown */

.steel-horizontal-nav ul.steel-nav-list > li:hover > ul,
.steel-horizontal-nav ul.steel-nav-list > li:focus-within > ul,

.steel-horizontal-nav ul.menu > li:hover > ul,
.steel-horizontal-nav ul.menu > li:focus-within > ul {
  display: block !important;
}


/* =========================================================
   DROPDOWN ITEMS
   ========================================================= */

.steel-horizontal-nav ul.dropdown-menu > li,
.steel-horizontal-nav ul.steel-nav-list > li > ul > li {
  position: relative !important;

  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}


.steel-horizontal-nav ul.dropdown-menu > li > a,
.steel-horizontal-nav ul.steel-nav-list > li > ul > li > a {
  display: block !important;

  width: 100% !important;

  box-sizing: border-box;

  padding: 10px 18px !important;

  color: #1e293b !important;

  font-size: 1.3rem !important;
  font-weight: 400 !important;

  line-height: 1.4;

  text-decoration: none !important;

  background: #fff !important;

  border-bottom: 1px solid #f1f5f9 !important;

  white-space: normal !important;
}


/* Dropdown hover */

.steel-horizontal-nav ul.dropdown-menu > li > a:hover,
.steel-horizontal-nav ul.dropdown-menu > li > a:focus,

.steel-horizontal-nav ul.steel-nav-list > li > ul > li > a:hover,
.steel-horizontal-nav ul.steel-nav-list > li > ul > li > a:focus {
  background: #f1f5f9 !important;
  color: #0b3260 !important;
}


/* =========================================================
   SECOND LEVEL FLYOUT
   ========================================================= */

.steel-horizontal-nav ul.dropdown-menu > li > ul,
.steel-horizontal-nav ul.steel-nav-list > li > ul > li > ul {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  margin: 0 !important;
}

/* Hover and focus state */
.steel-horizontal-nav ul.menu > li:hover > a,
.steel-horizontal-nav ul.menu > li > a:focus,
.steel-horizontal-nav ul.menu > li.is-active > a {
  background-color: #072242; /* Darker navy */
  color: #ffffff;
}

/* Down arrow indicator on parent items (Drupal's .menu-item--expanded) */
.steel-horizontal-nav ul.menu > li.menu-item--expanded > a::after {
  content: "▾";
  font-size: 1.5rem;
  margin-left: 0px;
  transition: transform 0.2s ease;
}

.steel-horizontal-nav ul.menu > li.menu-item--expanded:hover > a::after {
  transform: rotate(180deg);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

main {
  position: relative;
  width: 100%;
  margin: 0;
  padding-top: 0;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

  .steel-horizontal-nav {
    display: block !important;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991px) {

  /* =========================================
     MOBILE NAV PANEL
     ========================================= */

  .steel-horizontal-nav {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;

    width: min(340px, 88vw) !important;
    height: 100dvh !important;

    margin: 0 !important;
    padding: 70px 20px 30px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    background: #0b3260 !important;

    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.22);

    z-index: 99999 !important;

    /*
     * Hidden by default.
     * Add .mobile-menu-open to show it.
     */
    transform: translateX(100%);
    visibility: hidden;

    transition:
      transform 0.3s ease,
      visibility 0.3s ease;
  }


  /* Open mobile menu */
  body.mobile-menu-open .steel-horizontal-nav {
    transform: translateX(0);
    visibility: visible;
  }


  /* =========================================
     CLOSE BUTTON
     ========================================= */

  .steel-horizontal-nav .menu-close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,0.12);
    color: #fff;

    font-size: 30px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
      background 0.2s ease,
      transform 0.2s ease;
  }

  .steel-horizontal-nav .menu-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
  }


  /* =========================================
     MENU LIST
     ========================================= */

  .steel-horizontal-nav ul.steel-nav-list,
  .steel-horizontal-nav ul.menu {
    display: flex !important;

    flex-direction: column !important;
    align-items: stretch !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
  }


  .steel-horizontal-nav ul.menu > li,
  .steel-horizontal-nav ul.steel-nav-list > li {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  /* =========================================
     MAIN LINKS
     ========================================= */

  .steel-horizontal-nav ul.menu > li > a,
  .steel-horizontal-nav ul.steel-nav-list > li > a {

    display: flex !important;

    align-items: center !important;

    width: 100% !important;
    min-height: 50px;

    box-sizing: border-box;

    padding: 13px 8px !important;

    color: #fff !important;

    font-size: 16px !important;
    font-weight: 500 !important;

    line-height: 1.3 !important;

    text-decoration: none !important;

    background: transparent !important;

    border-bottom: 1px solid rgba(255,255,255,0.12) !important;

    cursor: pointer;
  }


  .steel-horizontal-nav ul.menu > li > a:hover,
  .steel-horizontal-nav ul.menu > li > a:focus {
    background: rgba(255,255,255,0.08) !important;
  }


  /* =========================================
     DROPDOWN
     ========================================= */

  .steel-horizontal-nav ul.menu > li > ul,
  .steel-horizontal-nav ul.steel-nav-list > li > ul,
  .steel-horizontal-nav ul.dropdown-menu {

    position: static !important;

    display: none !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #07264a !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
  }


  /* OPEN DROPDOWN */

  .steel-horizontal-nav li.menu-item--expanded.is-open > ul,
  .steel-horizontal-nav li.menu-item--expanded.open > ul,
  .steel-horizontal-nav li.has-dropdown.is-open > ul {

    display: block !important;
  }


  /* =========================================
     DROPDOWN LINKS
     ========================================= */

  .steel-horizontal-nav ul.menu > li > ul > li > a,
  .steel-horizontal-nav ul.steel-nav-list > li > ul > li > a,
  .steel-horizontal-nav ul.dropdown-menu > li > a {

    display: block !important;

    width: 100% !important;

    box-sizing: border-box;

    padding: 12px 12px 12px 22px !important;

    color: #dbeafe !important;

    font-size: 14px !important;
    font-weight: 400 !important;

    line-height: 1.45 !important;

    text-decoration: none !important;

    background: transparent !important;

    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  }


  .steel-horizontal-nav ul.menu > li > ul > li > a:hover,
  .steel-horizontal-nav ul.menu > li > ul > li > a:focus {

    color: #fff !important;

    background: rgba(255,255,255,0.08) !important;
  }


  /* =========================================
     MOBILE ARROW
     ========================================= */

  .steel-horizontal-nav li.menu-item--expanded > a::after,
  .steel-horizontal-nav li.has-dropdown > a::after {

    content: "";

    width: 8px;
    height: 8px;

    margin-left: auto;
    margin-right: 5px;

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(45deg) translateY(-3px);

    transition: transform 0.25s ease;
  }


  /* Rotate arrow when opened */

  .steel-horizontal-nav li.menu-item--expanded.is-open > a::after,
  .steel-horizontal-nav li.has-dropdown.is-open > a::after {

    transform: rotate(225deg) translateY(-2px);
  }


  /* =========================================
     SECOND LEVEL
     ========================================= */

  .steel-horizontal-nav ul.menu > li > ul > li > ul,
  .steel-horizontal-nav ul.steel-nav-list > li > ul > li > ul {

    position: static !important;

    display: none !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #051d38 !important;

    border: 0 !important;

    box-shadow: none !important;
  }


  .steel-horizontal-nav ul.menu > li > ul > li.is-open > ul,
  .steel-horizontal-nav ul.menu > li > ul > li.open > ul {

    display: block !important;
  }


  /* =========================================
     BODY LOCK WHEN MENU OPEN
     ========================================= */

  body.mobile-menu-open {
    overflow: hidden !important;
  }
}

.menu-toggle {
  width: 44px;
  height: 44px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5px;

  padding: 0;

  border: 0;
  border-radius: 8px;

  background: #0b3260;
  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 22px;
  height: 2px;

  background: #fff;

  border-radius: 2px;
}


/* Search from */
#block-steel-searchform {
  width: 100%;
  width: 25vw;
}

#search-block-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

#search-block-form .form-item-keys {
  position: relative;
  flex: 1;
  margin: 0;
}

/* SVG search icon */
#search-block-form .form-item-keys::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 50%;
  width: 19px;
  height: 19px;

  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E")
    center / contain no-repeat;

  transform: translateY(-50%);
  pointer-events: none;
}

#search-block-form #edit-keys {
  box-sizing: border-box;
  width: 100%;
  height: 48px;

  padding: 0 18px 0 46px;

  border: 1px solid #d9dee7;
  border-radius: 12px;

  background: #fff;
  color: #1f2937;

  font-family: inherit;
  font-size: 15px;
  line-height: 1;

  outline: none;

  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#search-block-form #edit-keys::placeholder {
  color: #9ca3af;
}

#search-block-form #edit-keys:hover {
  border-color: #b8c0cc;
}

#search-block-form #edit-keys:focus {
  border-color: #2563eb;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.12),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

/* Button */
#search-block-form .form-actions {
  display: flex;
  flex-shrink: 0;
  margin: 0;
}

#search-block-form .search-form__submit {
  height: 48px;
  padding: 0 22px;

  border: 0;
  border-radius: 12px;

  background: #2563eb;
  color: #fff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#search-block-form .search-form__submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

#search-block-form .search-form__submit:active {
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 600px) {
  #search-block-form {
    flex-direction: column;
  }

  #search-block-form .form-actions,
  #search-block-form .search-form__submit {
    width: 100%;
  }
}
