/* =========================
   HEADER
========================= */
.site-header {
  background: #fff;
  position: relative;
  top: 0;
  z-index: 500 !important;
  display: flex;
  align-items: center;
  overflow: visible;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg,
      #E01A4F 0%, #F9C22E 22.12%,
      #A6BB7D 41.83%, #F15946 65.38%,
      #AE90C3 84.13%, #F6B0BD 100%);
}

/* =========================
   NAVBAR LAYOUT
========================= */
.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 70px;
  padding: 0 30px;
  box-sizing: border-box;
}

/* =========================
   LOGO
========================= */
.navbar-left img {
  height: 40px;
  width: auto;
  display: block;
}

/* =========================
   MENU
========================= */
.navbar-center ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-center ul li {
  position: relative;
}

.navbar-center ul li>a,
.navbar-center ul li>span {
  text-decoration: none;
  color: #364153;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 4px;
  display: block;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}

.navbar-center ul li>a:hover,
.navbar-center ul li>a.is-active,
.navbar-center ul li>span:hover {
  color: #E01A4F;
}

.navbar-center ul ul {
  text-align: left;
}
/* =========================
   DROPDOWN
========================= */
.navbar-center ul li>ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border-radius: 8px;
  border-top: 3px solid #E01A4F;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  z-index: 999;
}

.navbar-center ul li:hover>ul {
  display: block;
}

.navbar-center ul li>ul li {
  width: 100%;
}

.navbar-center ul li>ul li>a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #364153;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.navbar-center ul li>ul li>a:hover {
  background: #fdf0f3;
  color: #E01A4F;
}

/* =========================
   RIGHT AREA
========================= */
.navbar-right {
  display: flex;
  align-items: center;
}

.navbar-right>div {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* =========================
   LANGUAGE SWITCHER
========================= */
#block-icpn-drupal-theme-languageswitcher {
  position: relative;
}

#block-icpn-drupal-theme-languageswitcher ul {
  display: none !important;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #2d2d2d;
  padding: 6px 4px;
  transition: color 0.2s;
  white-space: nowrap;
}

.lang-trigger:hover {
  color: #E01A4F;
}

.lang-trigger i {
  font-size: 14px;
}

.lang-trigger .lang-chevron {
  font-size: 10px;
  transition: transform 0.2s;
}

.lang-trigger.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  border-top: 3px solid #E01A4F;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  min-width: 75px;
  z-index: 1000;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 9px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown a:hover {
  background: #fdf0f3;
  color: #E01A4F;
}

.lang-dropdown a.active {
  color: #E01A4F;
}

/* =========================
   BUTTON
========================= */
#block-icpn-drupal-theme-navbarbutton p {
  margin: 0;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

#block-icpn-drupal-theme-navbarbutton a {
  background: #E01A4F;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
  white-space: nowrap;
}

#block-icpn-drupal-theme-navbarbutton a:hover {
  background: #c61643;
}

.site-header [id^="block-"] {
  margin-bottom: 0;
}


/* =========================
   MOBILE TOGGLE
========================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #2d2d2d;
  font-size: 20px;
  padding: 4px;
  line-height: 1;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {

  .menu-toggle {
    display: block;
  }

  .navbar-center {
    position: absolute;
    top: 66px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 499;
  }

  .navbar-center.active {
    display: block;
  }

  .navbar-center ul {
    flex-direction: column;
    gap: 0;
  }

  .navbar-center ul li {
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .navbar-center ul li>a,
  .navbar-center ul li>span {
    display: block;
    padding: 14px 20px;
  }

  /* Mobile dropdown — always visible when parent is open */
  .navbar-center ul li>ul {
    display: none;
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid #E01A4F;
    border-radius: 0;
    padding: 0;
    margin-left: 20px;
    min-width: unset;
  }

  .navbar-center ul li.open>ul {
    display: block;
  }

  .navbar-center ul li>ul li>a {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Right area */
  .navbar-right {
    display: none;
    position: absolute;
    top: auto;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 498;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-right>div {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .navbar-right.active {
    display: flex;
  }

  #block-icpn-drupal-theme-navbarbutton a {
    width: auto;
  }

  .lang-dropdown {
    top: 100%;
  }
}
