/* IKEP24 Sections — Gutenberg editable pattern styles */
.ikep24-page {
  --ikep-blue: #0f4c81;
  --ikep-blue-dark: #09365c;
  --ikep-teal: #16b8b1;
  --ikep-teal-soft: #e8fbfa;
  --ikep-bg: #f5fbff;
  --ikep-text: #172033;
  --ikep-muted: #5d6b82;
  --ikep-border: rgba(15, 76, 129, .14);
  --ikep-shadow: 0 18px 50px rgba(9, 54, 92, .12);
  color: var(--ikep-text);
}

.ikep24-page * {
  box-sizing: border-box;
}

.ikep24-page a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ikep24-section {
  padding: clamp(44px, 6vw, 86px) 20px;
  margin-block-start: 0 !important;
}

.ikep24-section > .wp-block-group__inner-container,
.ikep24-container {
  width: min(1160px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.ikep24-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px !important;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--ikep-teal-soft);
  color: var(--ikep-blue-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.ikep24-title,
.ikep24-page h1.ikep24-title,
.ikep24-page h2.ikep24-title {
  margin: 0 !important;
  color: var(--ikep-blue-dark);
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.ikep24-page h2.ikep24-title {
  font-size: clamp(27px, 3.2vw, 44px);
}

.ikep24-subtitle {
  margin: 18px 0 0 !important;
  max-width: 760px;
  color: var(--ikep-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.ikep24-center {
  text-align: center;
}

.ikep24-center .ikep24-eyebrow,
.ikep24-center .ikep24-subtitle {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ikep24-actions.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ikep24-actions .wp-block-button__link,
.ikep24-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ikep24-actions .wp-block-button__link:hover,
.ikep24-btn .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.ikep24-btn-primary .wp-block-button__link,
.ikep24-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: linear-gradient(135deg, var(--ikep-blue), var(--ikep-teal));
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(15, 76, 129, .22);
}

.ikep24-btn-secondary .wp-block-button__link,
.ikep24-actions .wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff;
  color: var(--ikep-blue-dark) !important;
  border-color: var(--ikep-border);
}

.ikep24-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(54px, 7vw, 105px);
  padding-bottom: clamp(54px, 7vw, 105px);
  background:
    radial-gradient(circle at top right, rgba(22,184,177,.28), transparent 34%),
    linear-gradient(135deg, #f7fcff 0%, #eefbfb 48%, #ffffff 100%);
}

.ikep24-hero-grid {
  align-items: center !important;
  gap: clamp(28px, 5vw, 62px) !important;
}

.ikep24-hero-image {
  margin: 0 !important;
}

.ikep24-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 34px;
  box-shadow: var(--ikep-shadow);
}

.ikep24-soft {
  background: var(--ikep-bg);
}

.ikep24-dark {
  background: var(--ikep-blue-dark);
  color: #fff;
}

.ikep24-dark .ikep24-title,
.ikep24-dark .ikep24-subtitle,
.ikep24-final .ikep24-title,
.ikep24-final .ikep24-subtitle {
  color: #fff;
}

.ikep24-dark .ikep24-subtitle,
.ikep24-final .ikep24-subtitle {
  opacity: .86;
}

.ikep24-card {
  position: relative;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--ikep-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 34px rgba(9, 54, 92, .08);
  overflow: hidden;
}

.ikep24-card h3,
.ikep24-card .wp-block-heading {
  margin-top: 12px !important;
  margin-bottom: 8px !important;
  color: var(--ikep-blue-dark);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.ikep24-card p {
  margin: 0 !important;
  color: var(--ikep-muted);
  line-height: 1.65;
}

.ikep24-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22,184,177,.16), rgba(15,76,129,.12));
  color: var(--ikep-blue-dark);
  font-size: 23px;
  line-height: 1;
}

.ikep24-chip-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  margin-top: 24px !important;
}

.ikep24-chip-list .wp-block-button,
.ikep24-chip-list .wp-block-button__link {
  width: 100%;
}

.ikep24-chip-list .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
  font-weight: 800;
  text-align: left;
  box-shadow: none;
}

.ikep24-chip-list .wp-block-button__link:hover {
  background: rgba(255,255,255,.16) !important;
}

.ikep24-cards-3,
.ikep24-cards-4,
.ikep24-steps-grid {
  gap: 18px !important;
  margin-top: 28px !important;
}

.ikep24-step-card {
  counter-increment: ikep-step;
}

.ikep24-steps-grid {
  counter-reset: ikep-step;
}

.ikep24-step-card:before {
  content: counter(ikep-step);
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ikep-blue-dark);
  color: #fff;
  font-weight: 900;
}

.ikep24-alert {
  padding: clamp(26px, 4vw, 42px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(22,184,177,.2), transparent 34%),
    linear-gradient(135deg, #ffffff, #eafbff);
  border: 1px solid var(--ikep-border);
  box-shadow: var(--ikep-shadow);
}

.ikep24-faq-wrap {
  margin-top: 28px !important;
}

.ikep24-faq-wrap details,
.ikep24-faq-wrap .wp-block-details {
  padding: 20px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ikep-border);
}

.ikep24-faq-wrap details + details,
.ikep24-faq-wrap .wp-block-details + .wp-block-details {
  margin-top: 12px;
}

.ikep24-faq-wrap summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ikep-blue-dark);
}

.ikep24-faq-wrap p {
  color: var(--ikep-muted);
  line-height: 1.65;
}

.ikep24-final {
  background: linear-gradient(135deg, var(--ikep-blue-dark), var(--ikep-blue));
  color: #fff;
}

@media (max-width: 980px) {
  .ikep24-chip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ikep24-cards-4.wp-block-columns {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 781px) {
  .ikep24-hero-grid.wp-block-columns,
  .ikep24-cards-3.wp-block-columns,
  .ikep24-cards-4.wp-block-columns,
  .ikep24-steps-grid.wp-block-columns {
    gap: 18px !important;
  }
}

@media (max-width: 640px) {
  .ikep24-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ikep24-actions.wp-block-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ikep24-actions .wp-block-button,
  .ikep24-actions .wp-block-button__link {
    width: 100%;
  }

  .ikep24-chip-list {
    grid-template-columns: 1fr;
  }

  .ikep24-card {
    padding: 20px;
    border-radius: 22px;
  }
}


/* v0.3.0 — service finder tighter intro + existing-page safety patch */
#vres-ypiresia,
.ikep24-service-finder-section {
  padding-top: clamp(52px, 5vw, 76px) !important;
  padding-bottom: clamp(58px, 6vw, 82px) !important;
  min-height: auto !important;
}

#vres-ypiresia > .wp-block-group__inner-container,
.ikep24-service-finder-section > .wp-block-group__inner-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#vres-ypiresia .ikep24-eyebrow,
.ikep24-service-finder-section .ikep24-eyebrow {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

#vres-ypiresia .ikep24-title,
.ikep24-service-finder-section .ikep24-title {
  max-width: 900px;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
}

#vres-ypiresia .ikep24-subtitle,
.ikep24-service-finder-section .ikep24-subtitle {
  max-width: 820px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* If the already-inserted Gutenberg section is missing the heading,
   add a visual heading without requiring the user to rebuild the page. */
#vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle {
  margin-top: 16px !important;
}

#vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle::before {
  content: "Βρείτε την υπηρεσία που χρειάζεστε";
  display: block;
  max-width: 900px;
  margin: 0 0 14px !important;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 900;
}

#vres-ypiresia .ikep24-title:empty {
  display: none !important;
}

#vres-ypiresia .ikep24-chip-list,
.ikep24-service-finder-section .ikep24-chip-list {
  margin-top: 28px !important;
}

/* Hero image is now a photorealistic 900x700 visual. */
.ikep24-hero-image img {
  aspect-ratio: 9 / 7;
  object-fit: cover;
  border-radius: 34px;
}


/* v0.4.0 — Service Finder graphic patch
   The service finder is already saved in the page, so we also apply this as CSS
   to existing Gutenberg content without rebuilding the page. */
#vres-ypiresia,
.ikep24-service-finder-section {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  background-color: var(--ikep-blue-dark) !important;
  background-image:
    linear-gradient(180deg, rgba(9, 54, 92, .14) 0%, rgba(9, 54, 92, .46) 46%, rgba(9, 54, 92, .98) 100%),
    url('ikep24-finder-graphic.png') !important;
  background-repeat: no-repeat !important;
  background-size: 100% auto !important;
  background-position: center top !important;
  padding-top: clamp(300px, 31vw, 430px) !important;
  padding-bottom: clamp(58px, 6vw, 86px) !important;
}

#vres-ypiresia > .wp-block-group__inner-container,
.ikep24-service-finder-section > .wp-block-group__inner-container {
  position: relative !important;
  z-index: 2 !important;
}

#vres-ypiresia::after,
.ikep24-service-finder-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 54, 92, 0), var(--ikep-blue-dark) 72%);
}

#vres-ypiresia .ikep24-eyebrow,
.ikep24-service-finder-section .ikep24-eyebrow {
  margin-bottom: 18px !important;
}

#vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle::before,
.ikep24-service-finder-section .ikep24-eyebrow + .ikep24-subtitle::before {
  content: "Βρείτε την υπηρεσία που χρειάζεστε";
  display: block;
  max-width: 900px;
  margin: 0 0 16px !important;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 900;
}

#vres-ypiresia .ikep24-finder-graphic,
.ikep24-service-finder-section .ikep24-finder-graphic {
  display: none !important;
}

#vres-ypiresia .ikep24-subtitle,
.ikep24-service-finder-section .ikep24-subtitle {
  max-width: 820px;
}

@media (max-width: 980px) {
  #vres-ypiresia,
  .ikep24-service-finder-section {
    background-size: auto 330px !important;
    background-position: center top !important;
    padding-top: 330px !important;
  }
}

@media (max-width: 640px) {
  #vres-ypiresia,
  .ikep24-service-finder-section {
    background-size: auto 260px !important;
    padding-top: 270px !important;
  }
}


/* v0.4.1 — Service Finder readability/layout fix
   Graphic stays only as a supportive visual on the right.
   Content remains clearly readable on a clean dark-blue zone. */
#vres-ypiresia,
.ikep24-service-finder-section {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  background: var(--ikep-blue-dark) !important;
  padding-top: clamp(56px, 6vw, 88px) !important;
  padding-bottom: clamp(64px, 7vw, 92px) !important;
}

#vres-ypiresia::before,
.ikep24-service-finder-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46vw, 660px);
  background-image:
    linear-gradient(90deg, rgba(9,54,92,0) 0%, rgba(9,54,92,.08) 18%, rgba(9,54,92,.36) 72%, rgba(9,54,92,.58) 100%),
    url('ikep24-finder-graphic.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  opacity: .50;
  pointer-events: none;
  z-index: 0;
}

#vres-ypiresia::after,
.ikep24-service-finder-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,54,92,.97) 0%, rgba(9,54,92,.95) 50%, rgba(9,54,92,.88) 68%, rgba(9,54,92,.80) 100%);
  z-index: 1;
  pointer-events: none;
}

#vres-ypiresia > .wp-block-group__inner-container,
.ikep24-service-finder-section > .wp-block-group__inner-container {
  position: relative !important;
  z-index: 2 !important;
}

#vres-ypiresia .ikep24-eyebrow,
.ikep24-service-finder-section .ikep24-eyebrow {
  margin: 0 0 18px !important;
}

#vres-ypiresia .ikep24-title,
.ikep24-service-finder-section .ikep24-title {
  max-width: 700px;
  color: #fff !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  font-size: clamp(32px, 3.1vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

#vres-ypiresia .ikep24-subtitle,
.ikep24-service-finder-section .ikep24-subtitle {
  max-width: 760px;
  color: rgba(255,255,255,.92) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle::before,
.ikep24-service-finder-section .ikep24-eyebrow + .ikep24-subtitle::before {
  content: "Βρείτε την υπηρεσία που χρειάζεστε";
  display: block;
  max-width: 700px;
  margin: 0 0 14px !important;
  color: #fff;
  font-size: clamp(32px, 3.1vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 900;
}

#vres-ypiresia .ikep24-chip-list,
.ikep24-service-finder-section .ikep24-chip-list {
  margin-top: 30px !important;
  max-width: 1180px;
}

#vres-ypiresia .ikep24-chip-list .wp-block-button__link,
.ikep24-service-finder-section .ikep24-chip-list .wp-block-button__link {
  background: rgba(255,255,255,.11) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  backdrop-filter: blur(2px);
}

#vres-ypiresia .ikep24-finder-graphic,
.ikep24-service-finder-section .ikep24-finder-graphic {
  display: none !important;
}

@media (max-width: 1100px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    width: min(44vw, 460px);
    opacity: .34;
  }
}

@media (max-width: 820px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    width: 100%;
    background-position: center top;
    background-size: auto 280px;
    opacity: .14;
  }

  #vres-ypiresia::after,
  .ikep24-service-finder-section::after {
    background: linear-gradient(180deg, rgba(9,54,92,.88) 0%, rgba(9,54,92,.95) 34%, rgba(9,54,92,.98) 100%);
  }

  #vres-ypiresia,
  .ikep24-service-finder-section {
    padding-top: clamp(48px, 6vw, 64px) !important;
  }
}


/* v0.4.2 — Finder visual card refinement
   Rounded corners and a more central placement for the right-side visual. */
#vres-ypiresia::before,
.ikep24-service-finder-section::before {
  top: clamp(72px, 6vw, 108px);
  right: clamp(28px, 4vw, 84px);
  bottom: auto;
  width: min(40vw, 640px);
  height: clamp(220px, 22vw, 370px);
  border-radius: 38px;
  background-color: rgba(255,255,255,.025);
  background-image:
    linear-gradient(90deg, rgba(9,54,92,.08) 0%, rgba(9,54,92,.18) 30%, rgba(9,54,92,.34) 100%),
    url('ikep24-finder-graphic.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 22px 50px rgba(4, 26, 45, .22);
  opacity: .52;
}

@media (max-width: 1100px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    right: 18px;
    width: min(42vw, 500px);
    height: clamp(200px, 20vw, 300px);
    border-radius: 30px;
    opacity: .40;
  }
}

@media (max-width: 820px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    top: 18px;
    right: 16px;
    left: 16px;
    width: auto;
    height: 220px;
    border-radius: 28px;
    background-size: cover;
    opacity: .16;
  }
}


/* v0.4.3 — Strong visible finder visual fix
   Make the right graphic clearly appear as a rounded visual card and bring it inward. */
#vres-ypiresia::before,
.ikep24-service-finder-section::before {
  top: clamp(96px, 7vw, 128px) !important;
  left: auto !important;
  right: max(48px, calc((100vw - 1280px) / 2 + 34px)) !important;
  bottom: auto !important;

  width: min(34vw, 560px) !important;
  height: clamp(245px, 18vw, 320px) !important;

  border-radius: 46px !important;
  overflow: hidden !important;

  background-color: rgba(255,255,255,.045) !important;
  background-image:
    linear-gradient(90deg, rgba(9,54,92,.10) 0%, rgba(9,54,92,.24) 46%, rgba(9,54,92,.50) 100%),
    url('ikep24-finder-graphic.png') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;

  opacity: .72 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

#vres-ypiresia::after,
.ikep24-service-finder-section::after {
  background:
    linear-gradient(90deg,
      rgba(9,54,92,.98) 0%,
      rgba(9,54,92,.97) 45%,
      rgba(9,54,92,.84) 66%,
      rgba(9,54,92,.76) 100%
    ) !important;
}

#vres-ypiresia .ikep24-chip-list,
.ikep24-service-finder-section .ikep24-chip-list {
  max-width: 1040px !important;
}

@media (max-width: 1180px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    right: 28px !important;
    width: min(37vw, 460px) !important;
    height: 270px !important;
    opacity: .56 !important;
    border-radius: 38px !important;
  }
}

@media (max-width: 900px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    display: none !important;
  }

  #vres-ypiresia::after,
  .ikep24-service-finder-section::after {
    background: rgba(9,54,92,.98) !important;
  }
}


/* v0.4.4 — Finder visual top alignment fix */
#vres-ypiresia::before,
.ikep24-service-finder-section::before {
  background-position: center 18% !important;
  background-size: 106% auto !important;
}

@media (max-width: 1180px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    background-position: center 16% !important;
    background-size: 108% auto !important;
  }
}


/* v0.5.0 — HARD RESET for Service Finder layout
   No more fake background hacks. The real image block becomes a proper visual card,
   with a clean grid layout so the user sees exactly what is intended. */
#vres-ypiresia,
.ikep24-service-finder-section {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  background: var(--ikep-blue-dark) !important;
  background-image: none !important;
  padding-top: clamp(58px, 6vw, 86px) !important;
  padding-bottom: clamp(72px, 7vw, 96px) !important;
}

#vres-ypiresia::before,
#vres-ypiresia::after,
.ikep24-service-finder-section::before,
.ikep24-service-finder-section::after {
  content: none !important;
  display: none !important;
}

#vres-ypiresia > .wp-block-group__inner-container,
.ikep24-service-finder-section > .wp-block-group__inner-container {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 520px);
  grid-template-areas:
    "eyebrow visual"
    "title visual"
    "subtitle visual"
    "chips chips";
  gap: 16px 48px !important;
  align-items: start !important;
}

#vres-ypiresia .ikep24-eyebrow,
.ikep24-service-finder-section .ikep24-eyebrow {
  grid-area: eyebrow;
  margin: 0 0 8px !important;
  justify-self: start;
}

#vres-ypiresia .ikep24-title,
.ikep24-service-finder-section .ikep24-title {
  grid-area: title;
  max-width: 760px;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(34px, 3.6vw, 58px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em;
}

#vres-ypiresia .ikep24-subtitle,
.ikep24-service-finder-section .ikep24-subtitle {
  grid-area: subtitle;
  max-width: 760px;
  margin: 0 !important;
  color: rgba(255,255,255,.88) !important;
  font-size: clamp(18px, 1.35vw, 20px) !important;
  line-height: 1.7 !important;
}

#vres-ypiresia .ikep24-finder-graphic,
.ikep24-service-finder-section .ikep24-finder-graphic {
  display: block !important;
  grid-area: visual;
  width: 100%;
  max-width: 520px;
  margin: 6px 0 0 auto !important;
  border-radius: 34px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
}

#vres-ypiresia .ikep24-finder-graphic img,
.ikep24-service-finder-section .ikep24-finder-graphic img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 34px !important;
}

#vres-ypiresia .ikep24-chip-list,
.ikep24-service-finder-section .ikep24-chip-list {
  grid-area: chips;
  margin-top: 8px !important;
  width: 100%;
}

/* disable legacy synthetic title fallback when a real heading exists */
#vres-ypiresia .ikep24-title + .ikep24-subtitle::before,
.ikep24-service-finder-section .ikep24-title + .ikep24-subtitle::before,
#vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle::before,
.ikep24-service-finder-section .ikep24-eyebrow + .ikep24-subtitle::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 1180px) {
  #vres-ypiresia > .wp-block-group__inner-container,
  .ikep24-service-finder-section > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 16px 28px !important;
  }

  #vres-ypiresia .ikep24-title,
  .ikep24-service-finder-section .ikep24-title {
    font-size: clamp(32px, 3.2vw, 48px) !important;
  }
}

@media (max-width: 980px) {
  #vres-ypiresia > .wp-block-group__inner-container,
  .ikep24-service-finder-section > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "subtitle"
      "visual"
      "chips";
    gap: 16px !important;
  }

  #vres-ypiresia .ikep24-finder-graphic,
  .ikep24-service-finder-section .ikep24-finder-graphic {
    max-width: min(100%, 680px);
    margin: 4px auto 8px !important;
  }
}

@media (max-width: 640px) {
  #vres-ypiresia,
  .ikep24-service-finder-section {
    padding-top: 42px !important;
    padding-bottom: 56px !important;
  }

  #vres-ypiresia .ikep24-title,
  .ikep24-service-finder-section .ikep24-title {
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  #vres-ypiresia .ikep24-finder-graphic,
  .ikep24-service-finder-section .ikep24-finder-graphic,
  #vres-ypiresia .ikep24-finder-graphic img,
  .ikep24-service-finder-section .ikep24-finder-graphic img {
    border-radius: 24px !important;
  }
}


/* v0.5.1 — restore finder visual safely from plugin CSS
   Do not rely on a saved Gutenberg image block. The plugin itself provides
   the visual card as a pseudo-element so existing pages keep working. */
#vres-ypiresia,
.ikep24-service-finder-section {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: var(--ikep-blue-dark) !important;
  padding-top: clamp(58px, 6vw, 86px) !important;
  padding-bottom: clamp(72px, 7vw, 96px) !important;
}

/* Re-enable the plugin-controlled graphic panel */
#vres-ypiresia::before,
.ikep24-service-finder-section::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;

  top: clamp(86px, 7vw, 120px) !important;
  right: max(44px, calc((100vw - 1280px) / 2 + 36px)) !important;
  left: auto !important;
  bottom: auto !important;

  width: min(36vw, 570px) !important;
  height: clamp(250px, 19vw, 330px) !important;

  border-radius: 42px !important;
  overflow: hidden !important;

  background-image:
    linear-gradient(90deg, rgba(9,54,92,.10) 0%, rgba(9,54,92,.20) 44%, rgba(9,54,92,.44) 100%),
    url('ikep24-finder-graphic.png') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;

  opacity: .68 !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Keep a readable content zone above the visual. */
#vres-ypiresia::after,
.ikep24-service-finder-section::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg,
      rgba(9,54,92,.99) 0%,
      rgba(9,54,92,.98) 42%,
      rgba(9,54,92,.88) 64%,
      rgba(9,54,92,.78) 100%
    ) !important;
}

/* Existing content sits above both pseudo-elements. */
#vres-ypiresia > .wp-block-group__inner-container,
.ikep24-service-finder-section > .wp-block-group__inner-container {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
}

/* If a real image block exists, hide it to avoid duplicates. */
#vres-ypiresia .ikep24-finder-graphic,
.ikep24-service-finder-section .ikep24-finder-graphic {
  display: none !important;
}

/* Give the text/cards a safe width so they do not collide with the visual. */
#vres-ypiresia .ikep24-title,
.ikep24-service-finder-section .ikep24-title {
  max-width: 720px !important;
  color: #fff !important;
}

#vres-ypiresia .ikep24-subtitle,
.ikep24-service-finder-section .ikep24-subtitle {
  max-width: 780px !important;
  color: rgba(255,255,255,.90) !important;
}

#vres-ypiresia .ikep24-chip-list,
.ikep24-service-finder-section .ikep24-chip-list {
  max-width: 1050px !important;
}

/* Existing saved pages without a real heading still get a visible heading. */
#vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle::before,
.ikep24-service-finder-section .ikep24-eyebrow + .ikep24-subtitle::before {
  content: "Βρείτε την υπηρεσία που χρειάζεστε" !important;
  display: block !important;
  max-width: 720px !important;
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: clamp(34px, 3.6vw, 58px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  font-weight: 900 !important;
}

/* If the real heading exists, normal styling. */
#vres-ypiresia .ikep24-title,
.ikep24-service-finder-section .ikep24-title {
  font-size: clamp(34px, 3.6vw, 58px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
}

@media (max-width: 1180px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    right: 24px !important;
    width: min(36vw, 440px) !important;
    height: 270px !important;
    border-radius: 34px !important;
    opacity: .48 !important;
  }
}

@media (max-width: 980px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    display: none !important;
  }

  #vres-ypiresia::after,
  .ikep24-service-finder-section::after {
    background: rgba(9,54,92,.99) !important;
  }

  #vres-ypiresia .ikep24-chip-list,
  .ikep24-service-finder-section .ikep24-chip-list {
    max-width: 100% !important;
  }
}


/* v0.5.2 — Proper visual crop and separation for finder card */
#vres-ypiresia::before,
.ikep24-service-finder-section::before {
  top: clamp(96px, 7vw, 128px) !important;
  right: max(48px, calc((100vw - 1280px) / 2 + 36px)) !important;
  width: min(36vw, 575px) !important;
  height: clamp(290px, 21vw, 360px) !important;
  border-radius: 40px !important;

  /* real visual fix: zoom and crop so the people sit higher */
  background-size: 118% auto !important;
  background-position: center 78% !important;
  opacity: .84 !important;

  /* make the card read as a real separate panel */
  background-color: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow:
    0 26px 70px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

/* give the lower cards a bit more space from the visual */
#vres-ypiresia .ikep24-chip-list,
.ikep24-service-finder-section .ikep24-chip-list {
  margin-top: 22px !important;
}

@media (max-width: 1180px) {
  #vres-ypiresia::before,
  .ikep24-service-finder-section::before {
    width: min(37vw, 460px) !important;
    height: 300px !important;
    background-size: 125% auto !important;
    background-position: center 80% !important;
  }
}


/* v0.5.3 — Service Finder redesign
   User request: image should fill the whole section, and text should sit in a framed panel. */
#vres-ypiresia,
.ikep24-service-finder-section {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #0b3f6b !important;
  padding-top: clamp(72px, 7vw, 92px) !important;
  padding-bottom: clamp(78px, 8vw, 104px) !important;
}

/* Full-section visual */
#vres-ypiresia::before,
.ikep24-service-finder-section::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  background-image: url('ikep24-finder-graphic.png') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  opacity: 1 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Readability overlay */
#vres-ypiresia::after,
.ikep24-service-finder-section::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg,
      rgba(7, 34, 61, 0.94) 0%,
      rgba(7, 34, 61, 0.88) 24%,
      rgba(7, 34, 61, 0.72) 48%,
      rgba(7, 34, 61, 0.62) 100%
    ) !important;
}

#vres-ypiresia > .wp-block-group__inner-container,
.ikep24-service-finder-section > .wp-block-group__inner-container {
  position: relative !important;
  z-index: 3 !important;
  max-width: 1280px !important;
}

/* Text panel / framed content */
#vres-ypiresia .ikep24-eyebrow,
.ikep24-service-finder-section .ikep24-eyebrow {
  display: inline-flex !important;
  margin: 0 0 18px !important;
}

#vres-ypiresia .ikep24-title,
.ikep24-service-finder-section .ikep24-title,
#vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle::before,
.ikep24-service-finder-section .ikep24-eyebrow + .ikep24-subtitle::before {
  max-width: 720px !important;
  background: rgba(5, 22, 40, 0.46) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 22px 52px rgba(0,0,0,.18) !important;
  border-radius: 28px 28px 0 0 !important;
  padding: 28px 30px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(34px, 3.8vw, 58px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
}

#vres-ypiresia .ikep24-subtitle,
.ikep24-service-finder-section .ikep24-subtitle {
  max-width: 720px !important;
  background: rgba(5, 22, 40, 0.46) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-top: 0 !important;
  border-radius: 0 0 28px 28px !important;
  box-shadow: 0 22px 52px rgba(0,0,0,.18) !important;
  padding: 22px 30px !important;
  margin: 0 0 28px !important;
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(18px, 1.35vw, 20px) !important;
  line-height: 1.65 !important;
}

/* If there is no real title and previous CSS injects one, keep spacing clean */
#vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle,
.ikep24-service-finder-section .ikep24-eyebrow + .ikep24-subtitle {
  padding-top: 24px !important;
}

/* Cards below */
#vres-ypiresia .ikep24-chip-list,
.ikep24-service-finder-section .ikep24-chip-list {
  position: relative !important;
  z-index: 4 !important;
  max-width: 1080px !important;
  margin-top: 0 !important;
}

#vres-ypiresia .ikep24-chip,
.ikep24-service-finder-section .ikep24-chip {
  background: rgba(255,255,255,0.13) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#vres-ypiresia .ikep24-finder-graphic,
.ikep24-service-finder-section .ikep24-finder-graphic {
  display: none !important;
}

@media (max-width: 980px) {
  #vres-ypiresia,
  .ikep24-service-finder-section {
    padding-top: 56px !important;
    padding-bottom: 72px !important;
  }

  #vres-ypiresia::after,
  .ikep24-service-finder-section::after {
    background:
      linear-gradient(180deg,
        rgba(7, 34, 61, 0.88) 0%,
        rgba(7, 34, 61, 0.82) 38%,
        rgba(7, 34, 61, 0.86) 100%
      ) !important;
  }

  #vres-ypiresia .ikep24-title,
  .ikep24-service-finder-section .ikep24-title,
  #vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle::before,
  .ikep24-service-finder-section .ikep24-eyebrow + .ikep24-subtitle::before,
  #vres-ypiresia .ikep24-subtitle,
  .ikep24-service-finder-section .ikep24-subtitle {
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  #vres-ypiresia .ikep24-title,
  .ikep24-service-finder-section .ikep24-title,
  #vres-ypiresia .ikep24-eyebrow + .ikep24-subtitle::before,
  .ikep24-service-finder-section .ikep24-eyebrow + .ikep24-subtitle::before {
    border-radius: 22px 22px 0 0 !important;
    padding: 22px 20px !important;
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  #vres-ypiresia .ikep24-subtitle,
  .ikep24-service-finder-section .ikep24-subtitle {
    border-radius: 0 0 22px 22px !important;
    padding: 18px 20px !important;
  }
}
