/* =========================
   Alpha Section (Base)
========================= */

section.alpha-section {
  position: relative; /* important for ::before background */
  z-index: 1;
  margin: 2rem 0;
  padding: 4rem 2rem;
}

section.alpha-section::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100vw;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#222a3a),
    color-stop(15%, #142c55)
  );
  background: -o-linear-gradient(top, #222a3a 0%, #142c55 15%);
  background: linear-gradient(180deg, #222a3a 0%, #142c55 15%);
  z-index: -1;
}

/* =========================
   Layout
========================= */

.alpha-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

/* =========================
   Image Container
========================= */

.alpha-section .aplha-image-container {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  isolation: isolate; /* keeps blend/effects contained */
}

.alpha-section .aplha-image-container a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.alpha-section .aplha-image-container img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

/* Logo overlays */
.alpha-section .aplha-image-container::before,
.alpha-section .aplha-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 80%;
  pointer-events: none;
  z-index: 1;
}

.alpha-section .aplha-image-container::before {
  background-image: url(../images/alphabank/100-LOGO-1.svg);
  background-position: center 15%;
  /* καλύτερο control από opacity σκέτο */
  opacity: 0.85;
  -webkit-filter: brightness(0.58) contrast(1.12) saturate(0.85);
  filter: brightness(0.58) contrast(1.12) saturate(0.85);
}

.alpha-section .aplha-image-container::after {
  background-image: url(../images/alphabank/100-LOGO.svg);
  background-position: center 20%;
}

/* =========================
   Content
========================= */

.alpha-section .alpha-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 0;
}

.alpha-section .alpha-content img {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  display: block;
}

.alpha-section .alpha-content h3 {
  margin: 0;
}

.alpha-section .alpha-content h3 a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Button */
.alpha-section .alpha-content .alpha-button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  padding: 0.8rem 3.5rem;
  background-color: #ffffff;
  color: #1f3864;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 30px;
  border: 2px solid #ffffff;
  -webkit-transition: background-color 0.25s ease, color 0.25s ease,
    -webkit-transform 0.25s ease;
  transition: background-color 0.25s ease, color 0.25s ease,
    -webkit-transform 0.25s ease;
  -o-transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease, -webkit-transform 0.25s ease;
}

/* =========================
   Hover ONLY on hover-capable devices
========================= */

@media (hover: hover) and (pointer: fine) {
  .alpha-section .alpha-content h3 a:hover {
    opacity: 0.9;
  }

  .alpha-section .alpha-content .alpha-button:hover {
    background-color: transparent;
    color: #ffffff;
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
  }

  /* optional: subtle zoom for the image */
  .alpha-section .aplha-image-container img {
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: -webkit-transform 0.5s ease;
    -o-transition: transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
  }

  .alpha-section .aplha-image-container:hover img {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
  }
}

/* Keyboard accessibility */
.alpha-section a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .alpha-section .alpha-content .alpha-button,
  .alpha-section .aplha-image-container img {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
  }
}

/* =========================
   Responsive Breakpoints
========================= */

/* Large tablets / small laptops */
@media (max-width: 1300px) {
  .alpha-section {
    gap: 2.5rem;
  }

  .alpha-section .alpha-content .alpha-button {
    padding: 0.5rem 2.8rem;
  }
}

/* Tablets / mobile landscape */
@media (max-width: 768px) {
  section.alpha-section {
    padding: 2.5rem 1.5rem;
  }

  .alpha-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .alpha-section .aplha-image-container {
    border-radius: 22px;
    aspect-ratio: 16 / 10; /* λίγο πιο φυσικό σε mobile */
  }

  .alpha-section .aplha-image-container::before,
  .alpha-section .aplha-image-container::after {
    background-size: 88%;
  }

  .alpha-section .alpha-content {
    gap: 1rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  section.alpha-section {
    margin: 1.25rem 0;
  }

  .alpha-section .aplha-image-container {
    border-radius: 18px;
  }

  .alpha-section .alpha-content .alpha-button {
    width: 100%;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    text-align: center;
  }
}
