#hero {
  height: fit-content;
}

.hero-image,
.hero-video {
  width: 100%;
  height: 700px;
  border-radius: 0px 0px 50px 0px;
  object-fit: cover;
  filter: brightness(0.8);
}

.hero-image,
.hero-video {
  border-radius: 0;
}

.hero-sidebar {
  width: 30%;
  height: 700px;
  min-width: 320px;
  background-color: var(--header-bg);
  padding: 0 40px;
  position: relative;
}

@media screen and (max-width: 425px) {
  .hero-sidebar {
    height: 580px;
  }

  .hero-image,
  .hero-video {
    height: 550px;
  }
}

.image-slider {
  position: relative;
}

.slider-btn {
  width: 10px;
  height: 10px;
  background-color: #707070;
  border-radius: 50%;
  margin-right: 0.5rem;
  border: none;
}

.slider-btn.active {
  background-color: #d89685;
  cursor: default;
  pointer-events: none;
}

.video-control {
  width: fit-content;
  color: #707070;
  border: none;
  background: none;
  font-weight: 300;
}

.slider-btn-wrapper {
  margin: 10px 40px 0 0;
}

.hero-links-txt {
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  flex-wrap: wrap;
  align-items: flex-end;
}

.hero-links-txt p:nth-child(1) {
  font-size: 12px;
  color: #403e3e;
  text-align: end;
  font-weight: 600;
}

.hero-links-txt p:nth-child(2) {
  font-size: 10px;
  color: #707070;
  text-align: end;
  max-width: 150px;
  width: 125px;
}

.hero-links {
  position: absolute;
  top: 16rem;
  display: flex;
  flex-direction: row;
  background-color: #fff;
  text-align: center;
  align-content: center;
  padding: 4px;
  border-radius: 0px 30px 30px 0px;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: 200px;
  width: 100px;
  height: 51px;
  transition: all ease 0.5s;
  box-shadow: 0px 2px 4px #00000029;
}

.hero-links:hover {
  cursor: pointer;
  width: 200px;
  transition: all ease 0.5s;
}

.hero-links p {
  display: none;
  transition: all ease 0.5s;
}

.hero-links:hover p {
  display: block;
  margin-bottom: 0rem;
  transition: all ease 0.5s;
}

.hero-links img {
  max-width: 45px;
  max-height: 45px;
  border-radius: 140px;
  /* object-fit: none; */
  /* width: 100%; */
}

.hero-links.no-click {
  cursor: default;
}

@media (max-width: 574px) {
  .hero-links {
    position: absolute;
    width: 55px;
    z-index: 999;
  }
}

.hero-video-controls {
  display: none !important;
}

.hero-text-and-search {
  max-width: 660px;
  z-index: 1;
  padding: 23px 32px;
  background: rgba(18, 47, 103, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  /* Κρυφή μέχρι να είναι έτοιμο το search (βλ. script στο section-hero.php), μετά fade όλη μαζί */
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-text-and-search > * {
  transform: translateY(8px);
  transition: transform 0.45s ease;
}

.hero-text-and-search.is-ready {
  opacity: 1;
}

.hero-text-and-search.is-ready > * {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-text-and-search,
  .hero-text-and-search > * {
    transition: none;
    transform: none;
  }
}

.hero-welcome-text {
  /* top + αρνητικό margin: κατεβαίνει προς το search χωρίς να αφήνει κενό στην κάρτα */
  position: relative;
  /* top: 40px; */
  width: 100%;
  /* margin: -28px 0 0; */
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.48);
}

.hero-welcome-title {
  display: inline-block;
  font-size: 38px;
  font-weight: 700;
}

.hero-welcome-subtitle {
  display: inline-block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 400;
}

.hero-govgr-btn {
  position: relative;
  /* top: -40px; */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* margin: 8px 0 -28px; */
  padding: 8px 20px 8px 14px;
  background-color: #122f67;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.hero-govgr-btn:hover,
.hero-govgr-btn:focus-visible {
  background-color: #0d2350;
  color: #fff;
}

.hero-govgr-btn img {
  height: 20px;
  width: auto;
}

.hero-govgr-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.hero-govgr-btn:hover .hero-govgr-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .hero-govgr-btn {
    gap: 8px;
    padding: 7px 14px 7px 10px;
    font-size: 11px;
  }

  .hero-govgr-btn img {
    height: 16px;
  }

  .hero-text-and-search {
    width: calc(100% - 32px) !important;
    padding: 14px 18px;
    border-radius: 18px;
  }

  .hero-welcome-title {
    font-size: 26px;
  }

  .hero-welcome-subtitle {
    font-size: 15px;
  }
}

/* Το search widget γίνεται render με JS μετά το φόρτωμα. Κρατάμε από την αρχή το ύψος του,
   αλλιώς η κάρτα ξεκινάει κοντή και το κουμπί gov.gr πέφτει πάνω στον τίτλο. */
#hero .search-block-wrapper {
  min-height: var(--hero-search-height, 150px);
}

@media (max-width: 768px) {
  #hero .search-block-wrapper {
    min-height: var(--hero-search-height-mobile, 150px);
  }
}

/* Search plugin (Tailwind): gap-12 → gap-5 μόνο μέσα στο hero */
#hero .search-block-wrapper .flex.flex-col.items-center.gap-12 {
  gap: 1.25rem !important;
}

.quick-access {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 25px;
  width: 120px;
  max-width: 120px;
  background-color: #e7f3f7;
  padding: 26px 0 26px 34px;
  transform: translateY(-50%);
  border-radius: 25px 0px 0px 25px;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  z-index: 10;
}

.quick-access:hover {
  width: 340px;
  max-width: 340px;
}

.quick-access a {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 36px;
}

.quick-access a img {
  width: 58px;
  height: auto;
}

.quick-access a p {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  transform: translateX(-8px);
  overflow: hidden;
  transition:
    max-width 1s ease,
    opacity 0.25s ease,
    transform 0.5s ease,
    visibility 0.4s linear;
  color: #122f67;
  font-weight: bold;
  font-size: 20px;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
.quick-access a:hover p {
  color: #4090ae;
}
.quick-access:hover a p {
  opacity: 1;
  visibility: visible;
  max-width: 100%;
  transform: translateX(0);
}

@media (max-width: 870px) {
  .quick-access {
    gap: 15px;
    width: 60px;
    max-width: 80px;
    padding: 16px 0 16px 13px;
    transform: translateY(-60%);
  }
  .quick-access:hover {
    width: 260px;
    max-width: 260px;
  }
  .quick-access a img {
    width: 38px;
    height: auto;
  }

  .quick-access a p {
    font-size: 14px;
  }
}
