/* ============================= */
/* Root Variables & General Styling */
/* ============================= */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #f39c12;
  --text-color: #333;
  --light-bg: #ecf0f1;
  --dark-bg: #fff;
  --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Manrope', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

.no-scroll {
  overflow: hidden !important;
  /* Prevent background scrolling when mobile menu is open */
}

/* ============================= */
/* Main Navbar Styling */
/* ============================= */
.navbar {
  /* Basic layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  background-color: var(--primary-color);
  padding: 0 20px;

  /* Sticky position and initial state */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  /* Initially visible but will be hidden by JS */
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.nav-left .nav-button {
  height: 60px;
  width: 50px;
  object-fit: contain;
}

.nav-left .nav-button {
  transition: transform 0.5s ease;
}

.nav-left .nav-button:hover {
  transform: scale(1.2);

}

.nav-center {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  list-style: none;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-bg);
  font-weight: 700;
  padding: 5px 10px;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

.nav-right {
  margin-left: auto;
}

/* Προσθήκη στυλ για τον επιλογέα γλώσσας */
.language-selector {
  position: relative;
  display: inline-block;
  margin-right: 15px;
}

.language-button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.language-button:hover {
  transform: scale(1.1);
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  left: -50px;
  background-color: var(--primary-color);
  min-width: 120px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.language-dropdown.show {
  display: flex;
  flex-direction: column;
}

.language-dropdown .lang-option {
  color: #fff;
  padding: 12px 10px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.language-dropdown .lang-option:hover {
  background-color: #555;
}

.fa-check {
  margin-left: 5px;
}

/* ============================= */
/* Hide/Show on Scroll CSS */
/* ============================= */

/* Class to hide the navbar */
.navbar--hidden {
  transform: translateY(-100%);
  /* Slides the navbar up and out of view */
}

/* ============================= */
/* Mobile Specific Styling */
/* ============================= */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: var(--dark-bg);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 70px;
  left: -100%;
  width: 90%;
  height: calc(100vh - 70px);
  background-color: var(--primary-color);
  transition: left 0.3s ease-in-out;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  z-index: 1000;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 0;
  text-align: center;
}

.mobile-menu__links .nav-link {
  font-size: 1.5rem;
  color: var(--dark-bg);
  padding: 10px 0;
}

.footer-separator {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
  width: 90%;
}

/* Στυλ για την ενότητα βοήθειας */
.help-links {
  display: flex;
  /* Ενεργοποιεί το flexbox */
  align-items: center;
  /* Ευθυγραμμίζει τα στοιχεία κατακόρυφα στο κέντρο */
  justify-content: center;
  /* Ευθυγραμμίζει τα στοιχεία οριζόντια στο κέντρο */
  gap: 1.1rem;
  /* Ρυθμίζει την απόσταση μεταξύ των στοιχείων */
  padding: 1rem;
}

.help-links .help-heading {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

/* Στυλ για τα links "Help & FAQs" και "Contact" */
.help-links .nav-link {
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.help-links .nav-link:hover {
  opacity: 1;
}


@media (max-width: 768px) {
  .nav-center {
    display: none;
  }

  .hamburger {
    display: flex;
    order: -1;
    /* Τοποθετεί το hamburger στα αριστερά */
  }

  .nav-left {
    order: 0;
    /* Τοποθετεί το logo στη μέση */
    flex-grow: 1;
    /* Δίνει χώρο στο κοντέινερ να απλωθεί */
    display: flex;
    /* Ενεργοποιεί το flexbox για κεντράρισμα */
    justify-content: center;
    /* Κεντράρει το περιεχόμενο (logo) */
  }

  .nav-right {
    order: 1;
    /* Τοποθετεί το κουμπί γλώσσας στα δεξιά */
  }

  .mobile-menu {
    display: flex;
  }
}