/* Mobile menu hamburger: large touch target and above overlays so it stays clickable (EN + KR) */
.btnOpen {
  font-size: 2.1875rem; /* 35px - large enough on EN; matches KR */
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  position: relative;
  z-index: 20;
  color: #595478;
  -webkit-tap-highlight-color: transparent;
}

.btnOpen:hover {
  color: #595478;
  background: transparent;
}

.btnOpen:focus {
  outline: 2px solid #595478;
  outline-offset: 2px;
}

.navbar {
  background-color: #595478;
  font-size: 0.875rem; /* 14px converted to rem - allows browser font size scaling */
  position: fixed;
  /* max-width:1920px; */
  width: 100%;
  margin: 0 auto;
  min-height: 5rem; /* 80px converted to rem - allows expansion */
  height: auto;
  /* z-index: 1; */
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar img {
  margin-top: 2px;
}

/*
.navbar-expand-lg {
    z-index: 9;
}
*/

.foot {
  position: relative;
  bottom: 0;
  background-color: #595478;
  color: white;
  font-size: 9px;
  width: 100%;

  animation: opac 2s;
}

@keyframes opac {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

button {
  outline: none !important;
  border-style: none !important;
}

.footmobile {
  position: relative;
  bottom: 0px;
  height: 100px;
  background-color: #595478;
  color: white;
  font-size: 9px;
  width: 100%;

  animation: opac 2s;
}

@keyframes opac {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

button {
  outline: none !important;
  border-style: none !important;
}

.footerimg {
  margin-top: 20px;
  margin-bottom: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 140px;
}

.subfoot {
  position: absolute;
  bottom: 0px;
  height: 100px;
  background-color: #595478;
  color: white;
  font-size: 9px;
  width: 100%;

  animation: opac 2s;
}

@keyframes opac {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

button {
  outline: none !important;
  border-style: none !important;
}

.subfootmobile {
  position: absolute;
  bottom: 0;
  height: 100px;
  background-color: #595478;
  color: white;
  font-size: 9px;
  width: 100%;

  animation: opac 2s;
}

@keyframes opac {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

button {
  outline: none !important;
  border-style: none !important;
}

.text {
  font-size: 10px;
}

.image-right {
  align-content: flex-end;
}

.header {
  font-size: 28px;
}

.menu-item {
  font-size: 0.8125rem; /* 13px converted to rem - allows browser font size scaling */
}

.menu-item.d-2 {
  color: var(--Black, #212529) !important;
  font-size: 1rem; /* 16px converted to rem - allows browser font size scaling */
  font-weight: 700;
  line-height: 150%;
  text-transform: uppercase;

}

/* Ensure list markup doesn't change visual appearance */
.navbar-nav-list li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

/* Ensure language selector container aligns properly with navigation */
.lang-selector-container {
  display: flex;
  align-items: center;
  flex-shrink: 1; /* Allow shrinking to prevent cutoff */
  min-width: 0; /* Allow container to shrink below content size if needed */
}

.sidenav-nav-list li {
  display: block;
  margin: 0;
  padding: 0;
}

.menu-item.active {
  text-decoration: underline;
  color: #595378 !important;
}

.sidenav,
.sidebar:hover {
  top: 0 !important; /* Stay at the top */
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 12; /* Stay on top */
  left: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.2s; /* 0.5 second transition effect to slide in the sidenav */
  display: none; /* Hide from screen readers and prevent keyboard focus when closed */
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 1.5625rem; /* 25px converted to rem - allows browser font size scaling */
  color: #818181;
  display: block;
  transition: 0.2s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 2.25rem; /* 36px converted to rem - allows browser font size scaling */
  margin-left: 50px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left 0.2s;
  padding: 0px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 1.125rem; /* 18px converted to rem - allows browser font size scaling */
  }
}

/* Dropdown Button */
.dropbtn {
  background-color: #4caf50;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #595478;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #231b57;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}
.lang-selector-container .lang-item .lang-name,
.lang-selector-container .lang-select-button .lang-name {
  color: var(--Black, #212529) !important;
  white-space: normal; /* Allow text to wrap to prevent cutoff */
  font-weight: 700;
}
.lang-selector-container .lang-item .lang-flag,
.lang-selector-container .lang-select-button .lang-flag {
  background-image: url('/assets/img/globe.png') !important;
}

/* Style the button trigger to match original appearance */
.lang-select-button {
  background: transparent;
  border: none;
  padding: 4px 8px 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  gap: 4px;
  align-items: center;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem; /* 16px converted to rem - allows browser font size scaling */
  color: var(--Black, #212529);
  font-weight: 700;
  line-height: 150%;
  text-transform: uppercase;
  white-space: normal; /* Allow text to wrap instead of nowrap */
  flex-wrap: wrap; /* Allow wrapping to prevent cutoff */
  box-sizing: border-box;
  /* Ensure the button contains all content including icon and text */
  position: relative;
  min-width: 0; /* Allow shrinking if needed */
}

/* Clean, simple blue outline focus indicator */
.lang-select-button:focus,
.lang-select-button:focus-visible {
  /* Simple blue outline - clean and visible */
  outline: 3px solid #0066cc !important;
  outline-offset: 2px !important;
  border: 1px solid #0066cc !important;
  border-radius: 4px;
  /* Remove background changes and complex shadows */
  background: transparent !important;
  box-shadow: none !important;
  /* Ensure proper positioning */
  position: relative;
  box-sizing: border-box;
}

.lang-select-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-selector-container .lang-item,
.side-nav-lang-selector-container .lang-item,
.lang-select-dropdown .lang-item {
  display: flex;
  justify-content: center;
  gap: 4px;
  align-items: center;
  padding: 4px 8px 4px;
  border-radius: 4px;
}
.lang-selector-container .lang-item:hover,
.side-nav-lang-selector-container .lang-item:hover,
.lang-select-dropdown .lang-item:hover {
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.lang-selector-container .lang-name,
.side-nav-lang-selector-container .lang-name,
.lang-select-dropdown .lang-name {
  color: white;
  margin-right: 8px;
  flex-grow: 1;
  width: 150px;
  /* width: 100%; */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-left: 8px;

}


.lang-selector-container .lang-flag,
.side-nav-lang-selector-container .lang-flag,
.lang-select-dropdown .lang-flag {
  flex-grow: 0;
  width: 24px;
  height: 24px;
  display: block;
  margin-left: 4px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.lang-selector-container .lang-item .lang-name {
  color: var(--Black, #212529);
  font-size: 1rem; /* 16px converted to rem - allows browser font size scaling */
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  text-transform: uppercase;
  white-space: normal; /* Allow text to wrap */
  width: 100%;
}

.side-nav-lang-selector-container .lang-name {
  color: #818181;
  font-size: 1.25rem; /* 20px converted to rem - allows browser font size scaling */
}
.side-nav-lang-selector-container .lang-item {
  margin-left: 0.5em;
  padding: 0.5em;
}

.lang-select-dropdown {
  background: #595478;
  font-size: 0.875rem; /* 14px converted to rem - allows browser font size scaling */
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-select-dropdown li {
  margin: 0;
  padding: 0;
}

.lang-select-dropdown .lang-item {
  border-radius: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

.lang-select-dropdown .lang-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-select-dropdown .lang-item:focus,
.lang-select-dropdown .lang-item:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: 3px solid #FFFFFF;
  outline-offset: -2px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sidenav hr {
  background: #818181;
  margin: 1em;
  height: 2px;
}

.our-firm-selector-container .our-firm-item,
.side-nav-our-firm-selector-container .our-firm-item,
.our-firm-select-dropdown .our-firm-item {
  padding: 4px 8px 4px;
  border-radius: 4px;
}
.our-firm-selector-container .our-firm-item:hover,
.side-nav-our-firm-selector-container .our-firm-item:hover,
.our-firm-select-dropdown .our-firm-item:hover {
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.our-firm-selector-container .our-firm-name,
.side-nav-our-firm-selector-container .our-firm-name,
.our-firm-select-dropdown .our-firm-name {
  color: white;
  margin-right: 8px;
  flex-grow: 1;
  width: 100px;
  margin-left: 8px;
  flex-shrink: 0;
}

.side-nav-our-firm-selector-container .our-firm-name {
  color: #818181;
  font-size: 20px;
}
.side-nav-our-firm-selector-container .our-firm-item {
  margin-left: 0.5em;
  padding: 0.5em;
}

.our-firm-select-dropdown {
  background: #595478;
  font-size: 14px;
}

.our-firm-select-dropdown .our-firm-item {
  border-radius: 0;
}

.submenu {
  display: none;
}

.submenu a {
  padding-left: 1.2em !important;
  font-size: 0.95em !important;
}
