/* =========================================================
   ARCHITECTURE PROGRAM STUDY IN ACTION — REFERENCE LAYOUT
   Replace the previous .wa-home-action section rules with this.
========================================================= */

.wa-home-action {
  position: relative;
  overflow: hidden;
  padding: 48px 0 84px;
  background: #f7f6ed;
  color: #123f32;
}

.wa-home-action .wa-home-container {
  position: relative;
  z-index: 1;
}

/* Masthead: green program title + IN ACTION lockup + tagline */
.wa-home-action-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.8fr) minmax(190px, 0.65fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.wa-home-action-brand-name {
  margin: 0 0 10px;
  color: #006b50;
  font-size: clamp(17px, 1.65vw, 25px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.wa-home-action-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wa-home-action-in {
  display: inline-block;
  padding: 9px 30px 11px;
  background: #006b50;
  color: #fff;
  font-size: clamp(29px, 3.4vw, 52px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.025em;
  transform: skew(-13deg);
}

.wa-home-action-gold-slash {
  display: block;
  width: 48px;
  height: 72px;
  flex: 0 0 48px;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.wa-home-action-tagline {
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid #1a4e3d;
  color: #163d32;
  font-size: clamp(16px, 1.7vw, 25px);
  line-height: 1.28;
  font-style: italic;
  font-weight: 600;
}

.wa-home-action-house {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  justify-self: end;
  color: #9bbda8;
}

/* Featured story + two compact stories */
.wa-home-action-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.wa-home-action-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(0, 107, 80, 0.1);
  border-radius: 26px;
  background: #fffdf6;
  box-shadow: 0 8px 20px rgba(28, 58, 42, 0.1);
}

.wa-home-action-feature-image {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 50%;
  overflow: hidden;
  background: #dcebdc;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.wa-home-action-feature-image img,
.wa-home-action-side-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-home-action-feature-image img {
  object-position: center;
}

.wa-home-action-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ddf2e5, #e8f2f7);
}

.wa-home-action-badge {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #087c5d;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.wa-home-action-badge-icon {
  font-size: 18px;
  line-height: 1;
}

.wa-home-action-feature-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  width: 54%;
  margin-left: auto;
  padding: 56px 28px 28px 8px;
}

.wa-home-action-slider-dots {
  position: absolute;
  top: 26px;
  right: 28px;
  display: flex;
  gap: 7px;
}

.wa-home-action-slider-dots i {
  display: block;
  width: 19px;
  height: 7px;
  border-radius: 99px;
  background: #dce5d9;
}

.wa-home-action-slider-dots i:first-child {
  width: 31px;
  background: #006b50;
}

.wa-home-action-feature-title {
  margin: 0;
  color: #064d3a;
  font-size: clamp(24px, 1.9vw, 31px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.wa-home-action-feature-title a,
.wa-home-action-side-content h3 a {
  color: inherit;
  text-decoration: none;
}

.wa-home-action-feature-title a:hover,
.wa-home-action-side-content h3 a:hover {
  color: #009572;
}

.wa-home-action-feature-excerpt {
  margin: 14px 0 17px;
  color: #394d43;
  font-size: 14px;
  line-height: 1.45;
}

.wa-home-action-discover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px 19px;
  border-radius: 999px;
  background: #00805d;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.wa-home-action-discover:hover,
.wa-home-action-discover:focus-visible {
  background: #006b50;
  color: #fff;
  transform: translateY(-1px);
}

.wa-home-action-discover span {
  font-size: 22px;
  line-height: 0.8;
}

.wa-home-action-side-stories {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.wa-home-action-side-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-width: 0;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid rgba(0, 107, 80, 0.08);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 6px 16px rgba(28, 58, 42, 0.08);
}

.wa-home-action-side-image {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e4efe6;
}

.wa-home-action-side-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 18px 16px 44px;
}

.wa-home-action-side-category {
  margin: 0 0 10px;
  color: #006b50;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.wa-home-action-side-content h3 {
  margin: 0;
  color: #17251f;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.23;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.wa-home-action-side-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dce7df;
  border-radius: 50%;
  color: #006b50;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
}

.wa-home-action-side-arrow:hover {
  background: #ddf2e5;
}

/* Six topic labels with thin separators */
.wa-home-action-topics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 38px;
}

.wa-home-action-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid #d8ddd3;
  color: #07543e;
  text-align: center;
  text-decoration: none;
}

.wa-home-action-topic:last-child {
  border-right: 0;
}

.wa-home-action-topic-icon {
  display: block;
  width: 38px;
  height: 38px;
  color: #087653;
}

.wa-home-action-topic-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wa-home-action-topic-label {
  max-width: 155px;
  font-size: 15px;
  line-height: 1.16;
  font-weight: 750;
}

.wa-home-action-topic:hover {
  color: #009572;
}

/* Centered outline CTA */
.wa-home-action-bottom-cta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding-bottom: 12px;
}

.wa-home-action-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 290px;
  padding: 12px 25px;
  border: 1.5px solid #006b50;
  border-radius: 999px;
  color: #07543e;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.wa-home-action-more span {
  font-size: 22px;
  line-height: 0.8;
  transition: transform 180ms ease;
}

.wa-home-action-more:hover,
.wa-home-action-more:focus-visible {
  background: #006b50;
  color: #fff;
}

.wa-home-action-more:hover span,
.wa-home-action-more:focus-visible span {
  transform: translateX(4px);
}

/* Layered flowing wave: narrow, organic bands like the approved reference */
.wa-home-action-wave {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 112px;
  object-fit: fill;
  pointer-events: none;
}

.wa-home-action-wave-light {
  fill: #dceee0;
}

.wa-home-action-wave-dark {
  fill: #07805e;
}

/* Tablet */
@media (max-width: 1050px) {
  .wa-home-action-masthead {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
  }

  .wa-home-action-house {
    display: none;
  }

  .wa-home-action-feature-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 14px;
  }

  .wa-home-action-feature {
    min-height: 330px;
  }

  .wa-home-action-feature-content {
    width: 54%;
    padding-right: 20px;
  }

  .wa-home-action-side-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .wa-home-action-side-content {
    padding: 18px 14px 46px;
  }

  .wa-home-action-topics {
    margin-top: 30px;
  }

  .wa-home-action-topic {
    padding: 0 8px;
  }

  .wa-home-action-topic-label {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .wa-home-action {
    padding: 38px 0 36px;
  }

  .wa-home-action-masthead {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 22px;
  }

  .wa-home-action-brand-name {
    font-size: 16px;
  }

  .wa-home-action-in {
    padding: 8px 22px 10px;
    font-size: 34px;
  }

  .wa-home-action-gold-slash {
    width: 36px;
    height: 52px;
    flex-basis: 36px;
  }

  .wa-home-action-wave {
    height: 82px;
  }

  .wa-home-action-tagline {
    max-width: 360px;
    padding-left: 14px;
    font-size: 16px;
  }

  .wa-home-action-feature-layout {
    grid-template-columns: 1fr;
  }

  .wa-home-action-feature {
    min-height: 0;
    padding-top: 220px;
  }

  .wa-home-action-feature-image {
    width: 100%;
    height: 245px;
    inset: 0 0 auto;
    clip-path: none;
  }

  .wa-home-action-badge {
    top: 16px;
    left: 16px;
    font-size: 11px;
  }

  .wa-home-action-feature-content {
    width: auto;
    margin: 0;
    padding: 34px 22px 24px;
  }

  .wa-home-action-slider-dots {
    top: 15px;
    right: 20px;
  }

  .wa-home-action-feature-title {
    font-size: clamp(23px, 5.4vw, 27px);
  }

  .wa-home-action-feature-excerpt {
    font-size: 14px;
  }

  .wa-home-action-side-stories {
    grid-template-rows: none;
    gap: 14px;
  }

  .wa-home-action-side-card {
    min-height: 150px;
    border-radius: 18px;
  }

  .wa-home-action-side-content h3 {
    font-size: 16px;
  }

  .wa-home-action-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 22px;
    margin-top: 28px;
  }

  .wa-home-action-topic:nth-child(3n) {
    border-right: 0;
  }

  .wa-home-action-topic-label {
    font-size: 12px;
  }

  .wa-home-action-topic-icon {
    width: 32px;
    height: 32px;
  }

  .wa-home-action-more {
    min-width: 0;
    width: min(100%, 290px);
  }
}

@media (max-width: 420px) {
  .wa-home-action-side-card {
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .wa-home-action-side-content {
    padding: 15px 12px 44px;
  }

  .wa-home-action-side-category {
    font-size: 10px;
  }

  .wa-home-action-side-content h3 {
    font-size: 14px;
  }

  .wa-home-action-side-arrow {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-home-action *,
  .wa-home-action *::before,
  .wa-home-action *::after {
    transition: none !important;
  }
}

/* =========================================================
   ARCHI IN ACTION — FINAL POSITION ADJUSTMENT
   Shorter gold accent + raised layered wave
========================================================= */

/* Gold accent: shorter and visually aligned with IN ACTION */
.wa-home-action-gold-slash {
  width: 34px;
  height: 100px;
  flex-basis: 34px;
  align-self: center;
}

/* Raise the wave while keeping its bottom anchored */
.wa-home-action-wave {
  height: 120px;
}

/* Tablet */
@media (max-width: 1050px) {
  .wa-home-action-wave {
    height: 100px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .wa-home-action-gold-slash {
    width: 12px;
    height: 36px;
    flex-basis: 12px;
  }

  .wa-home-action-wave {
    height: 78px;
  }
}

/* =========================================================
   ARCHI IN ACTION — FEATURE CONTENT OVERFLOW FIX
   Keep the headline, excerpt and CTA inside the white panel
========================================================= */

@media (min-width: 721px) {
  .wa-home-action-feature-content {
    box-sizing: border-box;
    width: 50%;
    min-width: 0;
    margin-left: auto;

    /* Move content to the right and keep it inside the card */
    padding: 56px 28px 28px 24px;
  }

  .wa-home-action-feature-title,
  .wa-home-action-feature-excerpt {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .wa-home-action-feature-title {
    font-size: clamp(22px, 1.65vw, 29px);
  }

  .wa-home-action-feature-excerpt {
    font-size: 14px;
    line-height: 1.45;
  }

  .wa-home-action-discover {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Mobile: preserve the stacked image/content layout */
@media (max-width: 720px) {
  .wa-home-action-feature-content {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 34px 22px 24px;
  }
}
