/* =========================
   HERO – CLEAN / SAFE
   Αναφορά 1: το overlay μεταφέρθηκε στο image wrapper
   για να μη "φεύγει" αριστερά ή δεξιά από την εικόνα.
   Αναφορά 2: το .rs-hero κρατά το overall radius/overflow.
   Αναφορά 3: τα media queries κρατούν ίδιο scaling logic.
   ========================= */

.rs-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* =========================
   IMAGE WRAPPER
   Αναφορά: εδώ μπαίνει πλέον και το overlay anchor.
   ========================= */
.rs-hero .views-field-field-image,
.rs-hero .views-field-field-image .field-content,
.rs-hero .views-field-field-image a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.rs-hero .views-field-field-image {
  position: relative;
  z-index: 1;
}

/* =========================
   IMAGE
   ========================= */
.rs-hero .views-field-field-image img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rs-hero .views-field-field-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* =========================
   DARK OVERLAY
   Αναφορά: ΔΕΝ μπαίνει πλέον στο .rs-hero::after
   γιατί εκεί ήταν η αιτία που η σκιά έβγαινε στραβά.
   Τώρα κάθεται ακριβώς πάνω στο image box.
   ========================= */
.rs-hero .views-field-field-image::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 2px;
  bottom: 0;
  height: 32%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.58) 38%,
    rgba(0, 0, 0, 0.22) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 10;
  pointer-events: none;
}

/* =========================
   TITLE WRAPPER
   Αναφορά: ο τίτλος μένει πάνω από το overlay.
   ========================= */
.rs-hero .views-field-title {
  position: absolute;
  left: 80px; /* 40px */
  right: 40px;
  bottom: 34px;
  z-index: 20;
  margin: 0;
  padding-bottom: 6px;
  box-sizing: border-box;
}

/* TITLE COLORS */
.rs-hero .views-field-title,
.rs-hero .views-field-title a,
.rs-hero .views-field-title span,
.rs-hero .views-field-title .field-content {
  color: #fff;
}

/* =========================
   TITLE TEXT
   ========================= */
.rs-hero .views-field-title .field-content,
.rs-hero .views-field-title a {
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.12;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 8px 25px rgba(0, 0, 0, 0.85);
}

.rs-hero .views-field-title a {
  text-decoration: none;
}

/* =========================
   UNDERLINE EFFECT
   ========================= */
.rs-hero .views-field-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  max-width: 100%;
  height: 5px;
  background: #e10600;
  transition: width 0.35s ease;
}

.rs-hero:hover .views-field-title::after,
.rs-hero .views-field-title:hover::after {
  width: 100%;
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 992px) {
  .rs-hero,
  .rs-hero .views-field-field-image,
  .rs-hero .views-field-field-image .field-content,
  .rs-hero .views-field-field-image a,
  .rs-hero .views-field-field-image img {
    border-radius: 14px;
  }

  .rs-hero .views-field-field-image img {
    height: 420px;
  }

  .rs-hero .views-field-field-image::after {
    height: 44%;
    border-radius: 0 0 14px 14px;
  }

  .rs-hero .views-field-title {
    left: 28px;
    right: 28px;
    bottom: 26px;
    padding-bottom: 14px;
  }

  .rs-hero .views-field-title .field-content,
  .rs-hero .views-field-title a {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .rs-hero .views-field-title::after {
    height: 4px;
  }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
  .rs-hero,
  .rs-hero .views-field-field-image,
  .rs-hero .views-field-field-image .field-content,
  .rs-hero .views-field-field-image a,
  .rs-hero .views-field-field-image img {
    border-radius: 12px;
  }

  .rs-hero .views-field-field-image img {
    height: 280px;
  }

  .rs-hero .views-field-field-image::after {
    height: 48%;
    border-radius: 0 0 12px 12px;
  }

  .rs-hero .views-field-title {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding-bottom: 10px;
    overflow: hidden;
  }

  .rs-hero .views-field-title .field-content,
  .rs-hero .views-field-title a {
    font-size: 1.08rem;
    line-height: 1.22;
    font-weight: 800;
    width: auto;
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .rs-hero .views-field-title::after {
    height: 3px;
  }
}

/* =========================
   VERY SMALL MOBILE
   ========================= */
@media (max-width: 480px) {
  .rs-hero .views-field-field-image img {
    height: 240px;
  }

  .rs-hero .views-field-field-image::after {
    height: 50%;
  }

  .rs-hero .views-field-title {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding-bottom: 8px;
  }

  .rs-hero .views-field-title .field-content,
  .rs-hero .views-field-title a {
    font-size: 0.98rem;
    line-height: 1.24;
  }
}
