/* header section*/

.header-container {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  position: fixed;
  box-sizing: border-box;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.5s ease, box-shadow 0.5s ease, border-bottom-style 0.5s ease;
}

body>header.header-container {
  margin: 0 !important;
  padding: 0 !important;
}

.header-container.transparent {
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom-style: none !important;

}

.header-container.solid {
  background-color: white;
  /* or any solid color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid darkgray;
}


/* header left section*/
.header-left-section,
#header-left-section-html {
  flex: 1;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  padding: 10px;
}

@media (min-width:600px) {
  .header-left-section {
    margin-left: 20px;
  }
}

@media (min-width: 1024px) {
  .header-left-section {
    margin-left: 50px;
  }
}

.geonusa-logo-header {
  width: 100px;
  height: auto;
  padding: 0;
}

/* header middle section*/



/* General Navigation Styling */
.header-middle-section,
#header-middle-section-en-html,
#header-middle-section-id-html {
  height: auto;
  display: flex;
  flex: 1 1 auto;
  min-width: fit-content;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-wrap: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.navigation {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-text {
  text-decoration: none;
  list-style: none;
  color: rgb(0, 13, 255);
  font-weight: 500;
}

.dropdown {
  text-decoration: none;
  list-style: none;
}

.menu>li {
  position: relative;
  margin: 0;
  /* For dropdown positioning */

}

.menu>li a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: rgb(40, 40, 40);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.menu>li a:hover {
  background-color: rgb(180, 180, 180);
}

/* Dropdown Styling */
.dropdown-menu {
  display: none;
  /* Initially hidden */
  position: absolute;
  top: 100%;
  /* Align below parent */
  left: 0;
  background-color: rgb(225, 225, 225);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 150px;
  z-index: 1000;
}

.dropdown-menu li a {
  padding: 1rem;
  text-decoration: none;
  color: black;
}

.dropdown-menu li a:hover {
  background-color: rgb(200, 200, 200);
}

/* Show Dropdown on Hover */
.menu>li:hover>.dropdown-menu,
.dropdown-menu>li:hover>.dropdown-menu {
  display: block;
  /* Show dropdown */
}

/* Multi-Level Dropdown Styling */
.dropdown-menu>li {
  position: relative;
  /* For submenu positioning */
}

.dropdown-menu>li>.dropdown-menu {
  top: 0;
  left: 100%;
  /* Align submenu to the right of parent */
}


/* header right section*/

.header-right-section {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  font-weight: 500;
  overflow: hidden;
}

.language-selector {
  margin: 8px;
  text-decoration: none;
  color: black;
}

.language-selector-panel {
  margin-right: 15px;
  text-decoration: none;
  color: white;
}

.header-hamburger-menu-section {
  display: none;
  flex: 0.3;
  padding: 14px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
}

.hamburger-button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  align-items: center;
  justify-content: center;
  position: fixed;
}

.hamburger-button span {
  width: 25px;
  height: 4px;
  background-color: #838383;
  transition: all 0.3s ease;
}

/* Hamburger menu panel (hidden by default) */
.hamburger-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: rgb(120, 120, 120);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  padding: 20px 20px 20px;
  overflow-y: auto;
  transition: background-color 0.5s ease, right 0.3s ease;
  z-index: 1001;
  border-right: 2px solid grey;
}

.hamburger-menu div {
  margin-bottom: 80px;
}

.hamburger-menu ul {
  list-style: none;
  padding-left: 0;
}

.hamburger-menu li {
  margin-bottom: 2rem;
}

.hamburger-menu li:hover {
    background-color: rgb(100, 100, 100);
}

.hamburger-menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  display: block;
  font-size: 20px;
}

.hamburger-menu divider {
  color: #ffffff;
  margin: 0 10px;
}

/* Show menu when active */

.hamburger-menu.active {
  right: 0;
}

.hamburger-menu .dropdown {
  position: relative;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: opacity 0.3s ease;
  pointer-events: none;
  opacity: 0;
}

.overlay.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

/* Transparent state: white text */
.header-container.transparent .menu>li>a,
.header-container.transparent .dropdown-menu li a,
.header-container.transparent .language-selector {
  color: white !important;
}

/* Solid state: default black or blue text */
.header-container.solid .menu>li>a,
.header-container.solid .dropdown-menu li a,
.header-container.solid .language-selector {
  color: black !important;
}

.header-container.transparent .dropdown-menu {
  background-color: rgba(0, 0, 0, 0.8);
  /* dark background */
}

.header-container.transparent .dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .menu {
    display: none;
  }

  .dropdown-menu {
    display: none !important;
  }

  .header-right-section {
    display: none;
  }

  .header-hamburger-menu-section {
    display: flex;
  }
}

.small-page-header-container {
  height: 50vh;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(to right, rgba(0, 0, 155, 0.1), rgba(0, 0, 155, 1));
}

.small-page-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  object-position: 70% 30%;
  /* or top / bottom if you want to crop differently */
  filter: brightness(80%);
  mix-blend-mode: multiply;
  position: absolute;
  top: 0;
  left: 0;
}


.small-page-header-text {
  position: relative;
  padding: 50px;
  font-size: 4vw;
  text-align: center;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

@media (max-width: 768px) {
  .small-page-header-text {
    font-size: 6vw;
  }

  .small-page-header-container {
    height: 35vh;
  }
}