/* ========================
   1. CORE VARIABLES & RESET
   ======================== */
:root {
  --run-blue: #298fc2;
  --run-blue-dark: #1c6ca1;
  --run-dark: #0f172a;
  --run-dark: #111318;
  --run-light: #ffffff;
  --run-gray: #f8fafc;
  --text-color: #ffffff;
  --accent-color: #34cdce;
  --dark-bg: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --nav-height: 80px;
  --font-main: "Manrope", sans-serif;
}

* {
  box-sizing: border-box !important;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  /* Αυτό είναι το μυστικό. Υπολογίζει το ύψος του μενού + αέρα */
  scroll-margin-top: 120px;
}

/* Mobile adjustment */
@media (max-width: 991px) {
  section[id] {
    scroll-margin-top: 100px;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: transparent;
  color: var(--run-blue);
  border: 2px solid #498ec2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 18px;
}

.back-to-top:hover {
  background: #c1e1c1;
}

/* ========================
   2. MODERN NAVBAR (Glassmorphism)
   ======================== */
.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  height: 70px;
}

.modern-nav.scrolled .brand-wrapper img {
  height: 75px;
  width: auto;
  filter: unset;
}

.modern-nav.scrolled .brand-wrapper {
  color: var(--run-dark);
}

.modern-nav.scrolled .nav-item {
  color: var(--run-dark);
}
.nav-content {
  width: 92%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- LOGO --- */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--run-light);
  text-transform: uppercase;
}
.brand-wrapper img {
  height: 75px;
  width: auto;
  filter: drop-shadow(2px 4px 6px black);
}
.brand-highlight {
  color: var(--run-blue);
}

/* --- DESKTOP MENU --- */
.desktop-menu {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--run-gray);
  position: relative;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color, #29c285);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-item:hover {
  color: var(--run-blue);
}
.nav-item:hover::after,
.nav-item.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- DESKTOP DROPDOWN (New) --- */
.dropdown-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.custom-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: white;
  min-width: 200px;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
/* Arrow on top */
.custom-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: white;
}

.dropdown-wrapper:hover .custom-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.custom-dropdown a {
  display: block;
  padding: 10px 15px;
  color: var(--run-dark);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}
.custom-dropdown a:hover {
  background-color: var(--run-gray);
  color: var(--run-blue);
}

/* --- CTA BUTTON --- */
.cta-btn {
  background: var(--run-blue);
  color: white;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(41, 143, 194, 0.3);
  transform: translateY(0);
}
.cta-btn:hover {
  background: var(--run-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(41, 143, 194, 0.4);
}

/* ========================
   3. MOBILE MENU
   ======================== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 6px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--run-dark);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--run-light);
  z-index: 999;
  padding-top: 100px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}
.mobile-overlay.is-active {
  transform: translateX(0);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 50px;
}
.mobile-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--run-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- MOBILE ACCORDION (New) --- */
.mobile-sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--run-gray);
  width: 80%;
  border-radius: 8px;
  text-align: center;
}
.mobile-sub-menu.open {
  max-height: 300px;
  padding: 10px 0;
  margin-bottom: 10px;
}

.mobile-sub-menu a {
  display: block;
  padding: 15px;
  font-size: 1.1rem;
  color: #555;
  font-weight: 600;
}
.mobile-sub-menu a:hover {
  color: var(--run-blue);
}

.rotate-icon {
  transform: rotate(180deg);
  transition: transform 0.3s;
}

@media (max-width: 992px) {
  .desktop-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Preloader  */
.postLoader svg {
  height: 100px;
  width: auto;
}

.postLoader {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color-primary-faded);
  border-radius: inherit;
  z-index: 999999;
}

#postLoader {
  display: none;
}

#postCheck {
  display: none;
}

/* #svgFail{
            display: none;
        } */

#failLoader,
#failLoaderLine1,
#failLoaderLine2 {
  display: none;
}

.path.circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  /* -webkit-animation: dash 3s ease-in-out infinite; */
  animation: dash 3s ease-in-out infinite;
}

.path.line {
  stroke-dashoffset: 1000;
  /* -webkit-animation: dash 0.9s 0.35s ease-in-out forwards; */
  animation: dash 0.9s 0.35s ease-in-out;
}

.path.check {
  stroke-dasharray: 1000;
  stroke-dashoffset: -100;
  /* -webkit-animation: dash-check 0.9s 0.35s ease-in-out forwards; */
  animation: dash-check 0.9s 0.35s ease-in-out;
}

@-webkit-keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@-webkit-keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }

  100% {
    stroke-dashoffset: 900;
  }
}

@keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }

  100% {
    stroke-dashoffset: 900;
  }
}

.bg-warning-subtle {
  background-color: var(--alma-warning);
}
.bg-danger-subtle {
  background-color: var(--alma-danger);
}
.bg-gr {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(245, 134, 52, 0.08) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  z-index: 0;
  pointer-events: none;
}
