/* ================= HEADER ================= */

.dos-header-navbar {
  background: #fff;
  position: relative;
  z-index: 50;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dos-header-navbar .container {
  align-items: center;
}

.dos-header-navbar .navbar-toggler {
  border: 0;
  box-shadow: none;
  padding: 0.65rem 0.75rem;
}

.dos-header-navbar .navbar-toggler:focus {
  box-shadow: none;
}

/* ================= TOP MENU ================= */

.dos-navbar-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dos-navbar-menu > .nav-item {
  position: relative;
}

.dos-navbar-menu .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.9rem 1rem;
  font-weight: 700; /* ήταν 600 */
  color: #222;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.dos-navbar-menu .nav-link:hover,
.dos-navbar-menu .nav-link:focus {
  color: #c21d23;
  background: rgba(194, 29, 35, 0.08);
}

.dos-navbar-menu .nav-link.is-active {
  color: #c21d23;
  background: transparent;
}

/* underline μόνο desktop */
.dos-navbar-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: #c21d23;
  transition: width 0.25s ease;
}

.dos-navbar-menu .nav-link:hover::after,
.dos-navbar-menu .nav-link.is-active::after {
  width: 70%;
}

/* ================= ARROW ================= */

.arrow {
  margin-left: 6px;
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

/* ================= DESKTOP DROPDOWN ================= */

.dos-header-navbar .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 240px;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: #fff;
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.dos-header-navbar .dropdown-item-wrapper {
  position: relative;
}

.dos-header-navbar .dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  white-space: normal;
}

.dos-header-navbar .dropdown-item:hover,
.dos-header-navbar .dropdown-item:focus {
  background: rgba(194, 29, 35, 0.06);
  color: #c21d23;
}

.dos-header-navbar .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
}

/* desktop show on hover/focus */
@media (min-width: 992px) {
  .dos-header-navbar .nav-item.dropdown:hover > .dropdown-menu,
  .dos-header-navbar .nav-item.dropdown:focus-within > .dropdown-menu,
  .dos-header-navbar .dropdown-submenu:hover > .dropdown-menu,
  .dos-header-navbar .dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
  }
}

/* Διόρθωση γραμμάτων */
/* ================= DESKTOP FONT FIX ================= */

@media (min-width: 992px) {

  .dos-navbar-menu .nav-link {
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
  }

}

/* ================= EXTRA (για μεγάλες λέξεις π.χ. DE) ================= */

.dos-navbar-menu .nav-link {
  letter-spacing: 0.2px;
}

/* ================= OPTIONAL πιο premium ================= */

@media (min-width: 1200px) {

  .dos-navbar-menu .nav-link {
    font-size: 17px;
  }

}

/* ================= MOBILE ================= */

@media (max-width: 991.98px) {
  .dos-header-navbar .navbar-collapse {
    padding: 0.75rem 0 1rem;
  }

  .dos-navbar-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }

  .dos-navbar-menu > .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .dos-navbar-menu .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 10px;
    font-size: 16px;
    border-radius: 0;
    background: transparent;
  }

  .dos-navbar-menu .nav-link::after {
    display: none !important;
  }

  .arrow {
    margin-left: auto;
    font-size: 18px;
  }

  .has-submenu.open .arrow {
    transform: rotate(90deg);
  }

  .dos-header-navbar .dropdown-menu {
    display: block;
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 8px;
    padding: 0;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.02);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .dos-header-navbar .dropdown-menu.open {
    max-height: 500px;
  }

  .dos-header-navbar .dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dos-header-navbar .dropdown-submenu > .dropdown-menu {
    left: 0;
    margin-left: 0;
  }
}

@media (min-width: 992px) {

  .dos-header-navbar .nav-item.dropdown:hover > .dropdown-menu,
  .dos-header-navbar .nav-item.dropdown:focus-within > .dropdown-menu,
  .dos-header-navbar .nav-item.dropdown.active-trail > .dropdown-menu {
    display: block;
  }

}

/* για να εμφανίζει την λέξη Μενού στο μενού του κινητού */
/* ================= MOBILE MENU BUTTON TEXT ================= */

/* ================= MOBILE MENU LABEL ================= */

@media (max-width: 991.98px) {

  .dos-header-navbar .navbar-toggler {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #222 !important;
    font-weight: 700 !important;
  }

  .dos-header-navbar .navbar-toggler .dos-mobile-menu-label {
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #222 !important;
  }
}

@media (min-width: 992px) {

  .dos-header-navbar .navbar-toggler .dos-mobile-menu-label {
    display: none !important;
  }

}
