* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

.navigation-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 10px 30px 100px 30px;
  flex-wrap: wrap;

  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;

  background: linear-gradient(to bottom, white 45%, rgba(255, 255, 255, 0) 100%);
}

.mainlogo-block {
    width: 20%;
}

.primelogo-block {
    width: 10%;
}

.mainlogo, .primelogo {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  padding: 10px;
}

#menu-toggle {
  display: none;
}

.buttons-block {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease-in-out;
  font-family: sans-serif;
}

.buttons-block a {
  text-decoration: none;
  color: #333;
  padding: 8px 12px;

  font-family: Palladio;
}

.buttons-block label {
  text-decoration: none;
  color: #333;
  padding: 8px 12px;

  font-family: Palladio;
}

.buttons-block .label2 {

  font-family: Palladio-Normal;
}


.buttons-block a:hover {
  color: #007bff;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
  padding-top: 10px;
}

.dropdown-content a {
  padding: 10px;
  color: #333;
  white-space: nowrap;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

#more-toggle {
  display: none;
}

/* MOBILE VIEW */
@media screen and (max-width: 768px) {

  .mainlogo-block  {
    width: 60%;
  }

  .primelogo-block  {
    width: 25%;
    order: 2;
  }

  .hamburger {
    display: block;
    order: 3;
  }

  .buttons-block {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 45%; /* appear just below the fixed header */
    left: 0;
    width: 100%;
    background-color: #f9f9f9;
    z-index: 998;
    padding: 10px 0;
  }

  #menu-toggle:checked + .hamburger + .buttons-block {
    display: flex;
  }
  .mainlogo, .primelogo {
    width: 100%;
  }

  /* Fix: prevent hover dropdown in mobile */
  .dropdown:hover .dropdown-content {
    display: none !important;
  }

  /* Show label instead of "More" hover link */
  .more-label {
    display: block;
    cursor: pointer;
    padding: 8px 12px;
    color: #333;
    order: 3;
  }

  /* Hide desktop dropdown hover toggle */
  .dropdown > a {
    display: none;
  }

  /* Hide the mobile toggle checkbox */
  #more-toggle {
    display: none;
  }

  /* Mobile dropdown toggle effect */
  #more-toggle:checked + .more-label + .dropdown-content {
    display: flex !important;
    position: relative;
    box-shadow: none;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
    order: 3;
  }
}
