/* ═══════════════════════════════════════════════════════════
   HERO BLOCK
   Two-column layout: image left, content right
═══════════════════════════════════════════════════════════ */

.hero-block {
  padding: 20px 0;
  position: relative;
  background: #ffffff;
  margin: 30px 0px;
}

.hero-block.image_right .hero-grid {
  flex-direction: row-reverse;
}

/* ── Background variants ────────────────────────────────── */
.hero-block.light {
  background: #ffffff;
}

.hero-block.gray {
  background: #f6f7f9;
}

.hero-block.pattern {
  background: #f6f7f9;
}

/* ── Two-column grid ────────────────────────────────────── */
.hero-grid {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

/* ═══════════════════════════════════════════════════════════
   IMAGE COLUMN
═══════════════════════════════════════════════════════════ */

.hero-image {
  flex: 0 0 520px;
  display: flex;
  margin-block-start: 0;
  position: relative;
  overflow: visible;
  border-radius: 14px;
}

.hero-image img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* Deco ON — stretch to full column height */
.hero-image.deco-enabled {
  align-items: stretch;
}

.hero-image.deco-enabled img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Deco OFF — natural image height */
.hero-image.deco-disabled {
  display: flex;
  align-items: stretch;
}

.hero-image.deco-disabled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Decorative squiggle lines */
.deco {
  position: absolute;
  width: 90px;
  height: 38px;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 2;
}

.deco-top-left {
  top: -22px;
  left: 50px;
  background-image: url("/themes/custom/icpn_drupal_theme/assets/img/deco-img-1.png");
}

.deco-bottom-right {
  bottom: 50px;
  right: -50px;
  background-image: url("/themes/custom/icpn_drupal_theme/assets/img/deco-img-2.png");
}

/* ═══════════════════════════════════════════════════════════
   CONTENT COLUMN
═══════════════════════════════════════════════════════════ */

.hero-block .hero-content {
  flex: 1;
}

/* ── Title ──────────────────────────────────────────────── */
.hero-block .hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.hero-block h1.hero-title {
  font-size: 56px;
}

.hero-block h2.hero-title {
  font-size: 36px;
}

.hero-block .hero-title-icon {
  display: inline-block;
  vertical-align: text-top;
  margin-left: -10px;
}

/* ── Body text ──────────────────────────────────────────── */
.hero-block .hero-body {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  text-align: justify;
}

.hero-block .hero-body p {
  margin-bottom: 14px;
}

.hero-block .hero-body a {
  color: #0097A7;
  text-decoration: none;
}

.hero-block .hero-body a:hover {
  text-decoration: underline;
}

.hero-block .hero-body .highlight-teal {
  color: #0097A7;
}

.hero-block .hero-body strong {
  color: #1a1a1a;
}

/* ── CTA button ─────────────────────────────────────────── */
.hero-block .hero-actions {
  margin-top: 10px;
}

/* ── Hero actions wrapper ───────────────────────────────── */
.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions>div {
  display: contents;

}
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .hero-block {
    padding: 40px 0;
  }

  .hero-grid {
    flex-direction: column;
    gap: 32px;
  }

  .hero-block .hero-image {
    flex: unset;
    width: 100%;
    order: 1;
    justify-content: center;
  }

  /* On mobile both modes behave the same */
  .hero-image.deco-enabled img,
  .hero-image.deco-disabled img {
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-block .hero-content {
    order: 2;
    max-width: 100%;
  }

  .hero-block h1.hero-title {
    font-size: 36px;
  }

  .hero-block h2.hero-title {
    font-size: 28px;
  }

  .hero-block .hero-body {
    text-align: left;
    text-align: justify;
  }

  .hero-block .hero-actions {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 576px) {

  .hero-block h1.hero-title {
    font-size: 30px;
  }

  .hero-block h2.hero-title {
    font-size: 24px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   DECORATION RESPONSIVE FIX
═══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .deco {
    width: 70px;
    height: 30px;
  }

  .deco-top-left {
    top: -18px;
    left: 30px;
  }

  .deco-bottom-right {
    right: -30px;
    bottom: 40px;
  }
}

@media (max-width: 992px) {
  .deco {
    width: 60px;
    height: 26px;
  }

  .deco-top-left {
    top: -12px;
    left: 20px;
  }

  .deco-bottom-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .deco {
    width: 50px;
    height: 22px;
    opacity: 0.8;
  }

  .deco-top-left {
    top: -10px;
    left: 15px;
  }

  .deco-bottom-right {
    display: none;
  }
}

@media (max-width: 576px) {
  .deco-bottom-right {
    display: none;
  }

  .deco-top-left {
    top: -8px;
    left: 10px;
    width: 45px;
    height: 20px;
  }
}
