/**
 * WEB ARCHI
 * Header / Navigation
 *
 * Consolidated header styles.
 * Transparent homepage header, simple sticky scroll state,
 * global hamburger navigation and responsive brand.
 */

:root {
  --wa-header-text: #16201d;
  --wa-header-muted: #68736f;
  --wa-header-border: #e5e7e6;
  --wa-header-green: #009572;
  --wa-header-white: #ffffff;
}

/* =========================================================
   HEADER BASE
========================================================= */

.wa-header {
  position: relative;
  z-index: 1100;
  width: 100%;
  background: var(--wa-header-white);
  border-bottom: 1px solid var(--wa-header-border);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.wa-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  gap: 24px;
}

/* =========================================================
   BRAND
========================================================= */

.wa-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  gap: 14px;
  color: var(--wa-header-text);
  text-decoration: none;
}

.wa-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.wa-brand-logo-image {
  display: block;
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

.wa-brand-logo-placeholder {
  display: block;
  width: 46px;
  height: 46px;
  background: var(--wa-header-green);
}

/* =========================================================
   BRAND IDENTITY
========================================================= */

.wa-brand-text {
  display: grid;
  grid-template-columns: 124px auto;
  grid-template-rows: 21px 24px;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}

.wa-brand-university {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--wa-header-text);
  font-size: 15px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wa-brand-university span {
  display: block;
}

.wa-brand-faculty {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: var(--wa-header-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.wa-brand-title {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--wa-header-green);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

/* =========================================================
   HEADER ACTIONS
========================================================= */

.wa-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 18px;
}

/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.wa-header-language {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.wa-header-language ul {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wa-header-language li {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wa-header-language li::marker {
  content: "";
}

.wa-header-language a {
  color: #303a37;
  text-decoration: none;
  transition: color 160ms ease;
}

.wa-header-language a:hover,
.wa-header-language .current-lang a {
  color: var(--wa-header-green);
  font-weight: 700;
}

.wa-header-language .lang-item:not(:last-child)::after {
  content: "/";
  margin: 0 7px;
  color: #a5aeab;
}

/* =========================================================
   SEARCH
========================================================= */

.wa-header-search {
  position: relative;
  flex-shrink: 0;
}

.wa-header-search-toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(22, 32, 29, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--wa-header-text);
  cursor: pointer;
  list-style: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.wa-header-search-toggle::-webkit-details-marker {
  display: none;
}

.wa-header-search-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.wa-header-search-toggle:hover,
.wa-header-search-toggle:focus-visible {
  border-color: var(--wa-header-green);
  outline: none;
}

.wa-header-search-form {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--wa-header-border);
  background: var(--wa-header-white);
  box-shadow: 0 10px 30px rgba(22, 32, 29, 0.12);
}

.wa-header-search-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe5e2;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
}

.wa-header-search-form button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--wa-header-green);
  border-radius: 0;
  background: var(--wa-header-green);
  color: var(--wa-header-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   GLOBAL HAMBURGER MENU
========================================================= */

.wa-mobile-menu {
  display: block;
  position: relative;
  flex-shrink: 0;
  margin: 0;
}

/* Menu toggle */

.wa-menu-toggle {
  position: relative;
  z-index: 1003;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(22, 32, 29, 0.22);
  border-radius: 0;
  background: var(--wa-header-white);
  color: var(--wa-header-text);
  cursor: pointer;
  list-style: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.wa-menu-toggle::-webkit-details-marker {
  display: none;
}

.wa-menu-toggle:hover,
.wa-menu-toggle:focus-visible {
  border-color: var(--wa-header-green);
  outline: none;
}

/* Hamburger icon */

.wa-mobile-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 21px;
  height: 15px;
  pointer-events: none;
}

.wa-mobile-menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

/* Open state: hamburger becomes X */

.wa-mobile-menu[open] .wa-mobile-menu-icon span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.wa-mobile-menu[open] .wa-mobile-menu-icon span:nth-child(2) {
  opacity: 0;
}

.wa-mobile-menu[open] .wa-mobile-menu-icon span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================================
   MENU BACKDROP
========================================================= */

.wa-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 25, 21, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.wa-mobile-menu[open] .wa-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   SLIDE-OUT MENU PANEL
========================================================= */

.wa-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: min(420px, 88vw);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 104px 40px 36px;
  overflow-y: auto;
  border: 0;
  background: var(--wa-header-white);
  box-shadow: -12px 0 40px rgba(10, 25, 21, 0.12);
  transform: translateX(102%);
  visibility: hidden;
  transition:
    transform 260ms ease,
    visibility 260ms ease;
}

.wa-mobile-menu[open] .wa-mobile-panel {
  transform: translateX(0);
  visibility: visible;
}

/* Panel heading */

.wa-panel-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--wa-header-border);
}

.wa-panel-heading {
  color: var(--wa-header-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.wa-panel-university {
  color: var(--wa-header-text);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

/* Navigation links */

.wa-mobile-nav {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}

.wa-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1ef;
  color: #303a37;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 160ms ease,
    padding 160ms ease;
}

.wa-mobile-nav a:last-child {
  border-bottom: 0;
}

.wa-mobile-nav a:hover,
.wa-mobile-nav a:focus-visible,
.wa-mobile-nav a.wa-nav-active {
  color: var(--wa-header-green);
}

.wa-mobile-nav a:hover {
  padding-left: 5px;
}

/* Optional language links inside menu */

.wa-mobile-language {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.wa-mobile-language a {
  color: var(--wa-header-muted);
  font-size: 13px;
  text-decoration: none;
}

.wa-mobile-language a:hover,
.wa-mobile-language .current-lang a {
  color: var(--wa-header-green);
}

/* =========================================================
   HOMEPAGE TRANSPARENT HEADER
========================================================= */

.wa-header.wa-header-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* White identity while over Hero / during intro */
.wa-header-transparent:not(.is-scrolled) .wa-brand-university,
.wa-header-transparent:not(.is-scrolled) .wa-brand-faculty,
.wa-header-transparent:not(.is-scrolled) .wa-brand-title,
.wa-header-transparent:not(.is-scrolled) .wa-header-language,
.wa-header-transparent:not(.is-scrolled) .wa-header-language a,
.wa-header-transparent:not(.is-scrolled) .wa-header-language span,
.wa-header-transparent:not(.is-scrolled) .wa-header-search-toggle {
  color: var(--wa-header-white);
}

.wa-header-transparent:not(.is-scrolled) .wa-header-language .current-lang a {
  color: var(--wa-header-white);
}

.wa-header-transparent:not(.is-scrolled) .wa-header-search-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.wa-header-transparent:not(.is-scrolled) .wa-menu-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--wa-header-white);
  color: var(--wa-header-text);
}

/* =========================================================
   HOMEPAGE HEADER — SIMPLE STICKY SCROLL STATE
========================================================= */

.wa-header-transparent.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--wa-header-border);
  box-shadow: 0 4px 20px rgba(22, 32, 29, 0.07);
  backdrop-filter: blur(10px);
}

/* Dark identity on the white header after scrolling */
.wa-header-transparent.is-scrolled .wa-brand-university,
.wa-header-transparent.is-scrolled .wa-brand-faculty,
.wa-header-transparent.is-scrolled .wa-brand-title,
.wa-header-transparent.is-scrolled .wa-header-language,
.wa-header-transparent.is-scrolled .wa-header-language a,
.wa-header-transparent.is-scrolled .wa-header-language span,
.wa-header-transparent.is-scrolled .wa-header-search-toggle {
  color: var(--wa-header-text);
}

.wa-header-transparent.is-scrolled .wa-header-language .current-lang a {
  color: var(--wa-header-green);
}

.wa-header-transparent.is-scrolled .wa-header-search-toggle {
  border-color: rgba(22, 32, 29, 0.22);
  background: transparent;
}

.wa-header-solid {
  position: relative;
  width: 100%;
  background: var(--wa-header-white);
  border-bottom: 1px solid var(--wa-header-border);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {
  .wa-header-inner {
    width: calc(100% - 32px);
    min-height: 76px;
    gap: 12px;
  }

  .wa-brand-logo,
  .wa-brand-logo-image {
    width: 52px;
    height: 52px;
  }

  .wa-brand-logo {
    flex-basis: 52px;
  }

  .wa-brand-logo-image {
    max-width: 52px;
    max-height: 52px;
  }

  .wa-brand-text {
    grid-template-columns: 100px auto;
    grid-template-rows: 18px 20px;
    column-gap: 8px;
  }

  .wa-brand-university {
    font-size: 12px;
  }

  .wa-brand-faculty {
    font-size: 9px;
  }

  .wa-brand-title {
    font-size: 14px;
  }

  .wa-header-actions {
    gap: 10px;
  }

  .wa-header-search-toggle,
  .wa-menu-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .wa-header-inner {
    width: calc(100% - 24px);
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .wa-brand {
    flex: 1 1 0;
    min-width: 0;
    gap: 6px;
  }

  .wa-brand-logo,
  .wa-brand-logo-image {
    width: 38px;
    height: 38px;
  }

  .wa-brand-logo {
    flex: 0 0 38px;
  }

  .wa-brand-logo-image {
    max-width: 38px;
    max-height: 38px;
  }

  .wa-brand-text {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 3px;
    row-gap: 2px;
  }

  .wa-brand-university {
    font-size: 10px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .wa-brand-faculty {
    font-size: 8px;
    line-height: 1.1;
    white-space: normal;
    transform: translateX(-5px);
  }

  .wa-brand-title {
    font-size: 11px;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: normal;
    transform: translateX(-5px);
  }

  .wa-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 9px;
    margin-left: 4px;
  }

  /* Search is hidden on mobile, as in the current design */
  .wa-header-search {
    display: none !important;
  }

  .wa-header-language {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
  }

  .wa-header-language ul {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .wa-header-language li {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wa-header-language .lang-item:not(:last-child)::after {
    margin: 0 5px;
  }

  .wa-mobile-menu {
    display: block;
    flex: 0 0 auto;
    margin: 0;
  }

  .wa-mobile-menu .wa-menu-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .wa-mobile-panel {
    width: min(390px, 90vw);
    padding: 88px 28px 28px;
  }
}

/* =========================================================
   WORDPRESS ADMIN BAR
========================================================= */

body.admin-bar .wa-header-transparent,
body.admin-bar .wa-header-transparent.is-scrolled {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .wa-header-transparent,
  body.admin-bar .wa-header-transparent.is-scrolled {
    top: 46px;
  }
}

/* =========================================================
   MENU OPEN STATE
========================================================= */

body.wa-menu-open {
  overflow: hidden;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .wa-header,
  .wa-menu-backdrop,
  .wa-mobile-panel,
  .wa-mobile-menu-icon span,
  .wa-header-search-toggle,
  .wa-menu-toggle {
    transition: none;
  }
}

/* =========================================================
   HEADER ACTIONS — FINAL HOVER INTERACTION
   WEB ARCHI Smart Emerald
========================================================= */

:root {
  --wa-header-hover: #009572;
  --wa-header-hover-light: #35c9a3;
  --wa-header-hover-transition: 180ms ease;
}

/* ---------------------------------------------------------
   EN / ID — POLYLANG LANGUAGE SWITCHER
--------------------------------------------------------- */

.wa-header-language a,
.wa-header-language a span {
  transition: color 180ms ease !important;
}

/* Normal and sticky header */
.wa-header .wa-header-language li:hover > a,
.wa-header .wa-header-language li:hover > a span,
.wa-header .wa-header-language a:hover,
.wa-header .wa-header-language a:hover span,
.wa-header .wa-header-language a:focus-visible,
.wa-header .wa-header-language a:focus-visible span {
  color: #009572 !important;
  outline: none;
}

/* Transparent header over Hero */
.wa-header-transparent:not(.is-scrolled) .wa-header-language li:hover > a,
.wa-header-transparent:not(.is-scrolled) .wa-header-language li:hover > a span,
.wa-header-transparent:not(.is-scrolled) .wa-header-language a:hover,
.wa-header-transparent:not(.is-scrolled) .wa-header-language a:hover span,
.wa-header-transparent:not(.is-scrolled) .wa-header-language a:focus-visible,
.wa-header-transparent:not(.is-scrolled) .wa-header-language a:focus-visible span {
  color: #35c9a3 !important;
}

/* ---------------------------------------------------------
   SEARCH — BORDER ONLY
--------------------------------------------------------- */

.wa-header-search-toggle {
  box-sizing: border-box;
  border-width: 1px;
  transition:
    border-color var(--wa-header-hover-transition),
    border-width var(--wa-header-hover-transition),
    color var(--wa-header-hover-transition),
    background-color var(--wa-header-hover-transition);
}

/* Normal header and sticky header */
.wa-header-search-toggle:hover,
.wa-header-search-toggle:focus-visible {
  border-width: 2px;
  border-color: var(--wa-header-hover) !important;
  background-color: transparent !important;
  color: var(--wa-header-hover) !important;
  outline: none;
}

/* Transparent header over Hero */
.wa-header-transparent:not(.is-scrolled) .wa-header-search-toggle:hover,
.wa-header-transparent:not(.is-scrolled) .wa-header-search-toggle:focus-visible {
  border-width: 2px;
  border-color: var(--wa-header-hover-light) !important;
  background-color: transparent !important;
  color: var(--wa-header-hover-light) !important;
}

/* ---------------------------------------------------------
   HAMBURGER — BORDER ONLY
--------------------------------------------------------- */

.wa-menu-toggle {
  box-sizing: border-box;
  border-width: 1px;
  transition:
    border-color var(--wa-header-hover-transition),
    border-width var(--wa-header-hover-transition),
    color var(--wa-header-hover-transition),
    background-color var(--wa-header-hover-transition);
}

/* Normal header and sticky header */
.wa-menu-toggle:hover,
.wa-menu-toggle:focus-visible {
  border-width: 2px;
  border-color: var(--wa-header-hover) !important;
  background-color: #ffffff !important;
  color: var(--wa-header-hover) !important;
  outline: none;
}

/* Transparent header over Hero */
.wa-header-transparent:not(.is-scrolled) .wa-menu-toggle:hover,
.wa-header-transparent:not(.is-scrolled) .wa-menu-toggle:focus-visible {
  border-width: 2px;
  border-color: var(--wa-header-hover-light) !important;
  background-color: #ffffff !important;
  color: var(--wa-header-hover-light) !important;
}

/* Hamburger lines follow button text color */
.wa-mobile-menu-icon span {
  background-color: currentColor;
}

/* =========================================================
   HAMBURGER NAVIGATION — WORDPRESS MENU
========================================================= */

/* Reset WordPress menu lists */
.wa-mobile-nav .wa-menu-list,
.wa-mobile-nav .wa-menu-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Main menu */
.wa-mobile-nav .wa-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* Every menu item */
.wa-mobile-nav .wa-menu-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  width: 100%;
}

/* Menu links */
.wa-mobile-nav .wa-menu-list li > a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 14px 0;
  color: #202b29;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px solid #e9eeec;
  transition: color 180ms ease;
}

/* Hover and current menu item */
.wa-mobile-nav .wa-menu-list li > a:hover,
.wa-mobile-nav .wa-menu-list li.current-menu-item > a,
.wa-mobile-nav .wa-menu-list li.current-menu-ancestor > a,
.wa-mobile-nav .wa-menu-list li.current-menu-parent > a {
  color: #009572;
}

/* Submenu toggle button */
.wa-mobile-nav .wa-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin-left: auto;
  color: #52615c;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.wa-mobile-nav .wa-submenu-toggle:hover,
.wa-mobile-nav .wa-submenu-toggle:focus-visible {
  color: #009572;
  background: #edf8f4;
  outline: none;
}

.wa-mobile-nav .wa-submenu-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.wa-mobile-nav .wa-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Submenu */
.wa-mobile-nav .wa-menu-list ul.sub-menu {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0 0 4px 14px;
  margin: 0;
  border-left: 2px solid #dceee8;
}

.wa-mobile-nav .wa-menu-list ul.sub-menu[hidden] {
  display: none !important;
}

.wa-mobile-nav .wa-menu-list ul.sub-menu:not([hidden]) {
  display: block;
}

/* Second-level links */
.wa-mobile-nav .wa-menu-list ul.sub-menu > li > a {
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 0;
}

/* Third-level submenu */
.wa-mobile-nav .wa-menu-list ul.sub-menu ul.sub-menu {
  padding-left: 14px;
  border-left-color: #e7eeeb;
}

.wa-mobile-nav .wa-menu-list ul.sub-menu ul.sub-menu > li > a {
  padding: 8px 0;
  font-size: 13px;
}

/* Current item indicator */
.wa-mobile-nav .wa-menu-list li.current-menu-item > a,
.wa-mobile-nav .wa-menu-list li.current_page_item > a {
  font-weight: 600;
}

/* Keyboard accessibility */
.wa-mobile-nav .wa-menu-list a:focus-visible {
  outline: 2px solid #009572;
  outline-offset: 3px;
}

/* =========================================================
   MOBILE HEADER — SPACING REFINEMENT
   Improve horizontal breathing space on small screens
========================================================= */

@media (max-width: 640px) {
  .wa-header-inner {
    width: calc(100% - 40px) !important;
    max-width: none;
    min-height: 72px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
    gap: 8px;
  }

  .wa-brand {
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
  }

  .wa-brand-logo,
  .wa-brand-logo-image {
    width: 36px;
    height: 36px;
  }

  .wa-brand-logo {
    flex: 0 0 36px;
  }

  .wa-brand-logo-image {
    max-width: 36px;
    max-height: 36px;
  }

  .wa-brand-text {
    flex: 1 1 auto;
    min-width: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 6px;
    row-gap: 3px;
  }

  .wa-brand-university {
    font-size: 9px;
    line-height: 1.1;
  }

  .wa-brand-faculty {
    font-size: 8px;
    line-height: 1.15;
    transform: none;
  }

  .wa-brand-title {
    font-size: 10px;
    line-height: 1.15;
    transform: none;
  }

  .wa-header-actions {
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 2px;
  }

  .wa-header-language {
    font-size: 11px;
  }

  .wa-mobile-menu .wa-menu-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* =========================================================
   HAMBURGER PANEL — WIDE TWO-COLUMN NAVIGATION
   Desktop/tablet: wider panel expands toward the left.
   Mobile: retain a single-column layout.
========================================================= */

@media (min-width: 641px) {
  .wa-mobile-panel {
    width: min(780px, 92vw);
    max-width: 100%;
    padding: 104px 44px 36px;
    box-sizing: border-box;
  }

  .wa-mobile-nav {
    width: 100%;
  }

  /* Two-column layout for the top-level menu groups only. */
  .wa-mobile-nav .wa-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 8px;
    align-items: start;
    width: 100%;
  }

  .wa-mobile-nav .wa-menu-list > li {
    min-width: 0;
    align-content: start;
    align-items: start;
  }

  /* Keep each submenu attached to its own parent item. */
  .wa-mobile-nav .wa-menu-list > li > ul.sub-menu {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .wa-mobile-nav .wa-menu-list > li > a {
    overflow-wrap: anywhere;
  }
}

/* Slightly tighter spacing on compact tablets. */
@media (min-width: 641px) and (max-width: 900px) {
  .wa-mobile-panel {
    width: min(700px, 94vw);
    padding-right: 30px;
    padding-left: 30px;
  }

  .wa-mobile-nav .wa-menu-list {
    column-gap: 24px;
  }
}

/* =========================================================
   MOBILE HAMBURGER — COMPACT FULL-HEIGHT NAVIGATION
   Keep one column, reduce vertical spacing, and ensure the
   complete navigation can be reached by scrolling the panel.
========================================================= */

@media (max-width: 640px) {
  .wa-mobile-panel {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 76px 20px 22px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .wa-panel-header {
    flex: 0 0 auto;
    gap: 5px;
    padding-bottom: 14px;
  }

  .wa-panel-heading {
    font-size: 10px;
  }

  .wa-panel-university {
    font-size: 17px;
    line-height: 1.25;
  }

  .wa-mobile-nav {
    flex: 0 0 auto;
    width: 100%;
    padding-top: 7px;
  }

  .wa-mobile-nav .wa-menu-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .wa-mobile-nav .wa-menu-list > li {
    width: 100%;
    min-width: 0;
  }

  /* Main section links */
  .wa-mobile-nav .wa-menu-list > li > a {
    min-height: 0;
    padding: 9px 0;
    font-size: 14px;
    line-height: 1.35;
  }

  /* Submenu links */
  .wa-mobile-nav .wa-menu-list ul.sub-menu {
    padding-left: 12px;
    padding-bottom: 3px;
  }

  .wa-mobile-nav .wa-menu-list ul.sub-menu > li > a {
    min-height: 0;
    padding: 7px 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .wa-mobile-nav .wa-menu-list ul.sub-menu ul.sub-menu > li > a {
    padding: 6px 0;
    font-size: 12px;
  }

  .wa-mobile-nav .wa-submenu-toggle {
    width: 30px;
    height: 30px;
  }
}
