/* =========================================
   ENPHO NEWS SECTION
========================================= */

.enpho-news-section {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, #fff 0%, var(--paper, #f7fafc) 100%);
  color: var(--ink, #1f2933);
  font-family: var(--body-font, "Roboto", sans-serif);
}

/* =========================================
   TWO MAIN COLUMNS
========================================= */

.enpho-news-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(320px, 0.85fr);

  gap: clamp(2rem, 4vw, 4rem);

  align-items: start;
}

/* =========================================
   SECTION HEADINGS
========================================= */

.enpho-section-heading {
  margin-bottom: 1.8rem;
}

.enpho-section-heading h2 {
  position: relative;
  margin: 0;
  color: var(--ink, #1f2933);
  font-family: var(--heading-font, "Roboto Condensed", sans-serif);
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.enpho-section-heading h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 0.8rem auto 0;
  border-radius: 999px;
  background: var(--enpho-blue, #00adef);
}

/* =========================================
   FOUR NEWS / STORY CARDS
========================================= */

.enpho-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

/* =========================================
   STORY CARD
========================================= */

.enpho-story-card {
  position: relative;
  display: flex;
  min-height: 395px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8ed;
  box-shadow: 0 18px 42px rgba(15, 45, 65, 0.16);
  text-decoration: none;
  isolation: isolate;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Image */

.enpho-story-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

/* Hover */

.enpho-story-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(0, 173, 239, 0.22);
}

.enpho-story-card:hover > img {
  transform: scale(1.06);
}

/* =========================================
   BLACK FADED OVERLAY
========================================= */

.enpho-story-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.7) 25%,
    rgba(0, 0, 0, 0.32) 55%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

/* =========================================
   STORY CONTENT
========================================= */

.enpho-story-content {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: 100%;
  padding: 1.25rem;
  color: #fff;
}

.enpho-story-content span {
  display: block;

  margin-bottom: 0.4rem;

  color: rgba(255, 255, 255, 0.78);

  font-family: var(--body-font, "Roboto", sans-serif);

  font-size: 0.78rem;

  font-weight: 700;

  line-height: 1.1;

  text-transform: uppercase;
}

.enpho-story-content h3 {
  margin: 0;

  color: #fff;

  font-family: var(--heading-font, "Roboto Condensed", sans-serif);

  font-size: clamp(1rem, 1.45vw, 1.25rem);

  font-weight: 700;

  line-height: 1.2;
}

/* =========================================
   VIEW ALL STORIES
========================================= */

.enpho-view-all {
  display: flex;

  justify-content: center;

  margin-top: 1.6rem;
}

.enpho-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 175px;
  min-height: 46px;

  padding: 0.7rem 1.4rem;

  border-radius: 999px;

  color: #fff;

  background: linear-gradient(
    135deg,
    var(--enpho-blue, #00adef),
    var(--accent-green, #32bd78)
  );

  font-family: var(--body-font, "Roboto", sans-serif);

  font-size: 0.88rem;
  font-weight: 800;  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0, 173, 239, 0.24);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.enpho-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 173, 239, 0.34);
}

/* =========================================
   RIGHT COLUMN
========================================= */

.enpho-right-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* =========================================
   UPCOMING EVENT
========================================= */

.enpho-event-card {
  position: relative;
  display: flex;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8ed;
  box-shadow: 0 20px 48px rgba(15, 45, 65, 0.16);

  text-decoration: none;

  isolation: isolate;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Event image */

.enpho-event-card > img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.enpho-event-card:hover {
  transform: translateY(-7px);

  box-shadow: 0 26px 70px rgba(0, 173, 239, 0.22);
}

.enpho-event-card:hover > img {
  transform: scale(1.05);
}

/* Event overlay */

.enpho-event-overlay {
  position: absolute;

  inset: 0;

  z-index: 1;

  display: block;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.64) 35%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

/* Event content */

.enpho-event-content {
  position: relative;

  z-index: 2;

  align-self: flex-end;

  width: 100%;

  padding: 1.5rem;

  color: #fff;
}

.enpho-event-content > span {
  display: block;

  margin-bottom: 0.4rem;

  color: rgba(255, 255, 255, 0.8);

  font-size: 0.78rem;

  font-weight: 800;

  text-transform: uppercase;
}

.enpho-event-content h3 {
  margin: 0 0 0.55rem;

  color: #fff;

  font-family: var(--heading-font, "Roboto Condensed", sans-serif);

  font-size: clamp(1.3rem, 2vw, 1.7rem);

  font-weight: 800;

  line-height: 1.1;
}

.enpho-event-content p {
  max-width: 600px;

  margin: 0;

  color: rgba(255, 255, 255, 0.88);

  font-size: 0.9rem;

  font-weight: 500;

  line-height: 1.4;
}

/* =========================================
   NATIONAL WASH REPOSITORY
========================================= */

.enpho-repository-card {
  display: flex;

  flex-direction: column;

  align-items: center;

  padding: 2rem 1.8rem 2.2rem;

  border: 1px solid rgba(0, 173, 239, 0.12);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.92);

  box-shadow: 0 18px 48px rgba(15, 45, 65, 0.1);

  text-align: center;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.enpho-repository-card:hover {
  border-color: rgba(0, 173, 239, 0.3);

  box-shadow: 0 26px 70px rgba(0, 173, 239, 0.16);

  transform: translateY(-5px);
}

/* Repository logo */

.enpho-repository-logo {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  min-height: 100px;

  margin-bottom: 1.2rem;
}

.enpho-repository-logo img {
  display: block;

  width: min(100%, 270px);

  max-height: 105px;

  object-fit: contain;
}

/* Repository content */

.enpho-repository-content p {
  margin: 0;

  color: #475467;

  font-family: var(--body-font, "Roboto", sans-serif);

  font-size: 0.94rem;

  font-weight: 500;

  line-height: 1.55;
}

/* Repository button */

.enpho-repository-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 1.35rem;

  min-height: 44px;

  padding: 0.65rem 1.35rem;

  border-radius: 999px;

  color: #fff;

  background: linear-gradient(
    135deg,
    var(--enpho-blue, #00adef),
    var(--accent-green, #32bd78)
  );

  font-size: 0.85rem;

  font-weight: 800;

  text-transform: uppercase;

  box-shadow: 0 10px 24px rgba(0, 173, 239, 0.2);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.enpho-repository-btn:hover {
  color: #fff;

  transform: translateY(-2px);

  box-shadow: 0 16px 30px rgba(0, 173, 239, 0.3);
}

/* =========================================
   OUR IMPACT SECTION
   ENPHO STYLES.CSS INTEGRATION
========================================= */

.our-impact-section {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #fff 0, var(--paper) 100%);
}

/* =========================================
   SECTION HEADING
========================================= */

.impact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  margin-bottom: 0.7rem;

  color: var(--enpho-blue-dark);
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.impact-eyebrow i {
  color: var(--accent-green);
  font-size: 0.85rem;
}

.impact-title {
  margin: 0;

  color: var(--ink);

  font-family: var(--heading-font);

  font-size: clamp(2rem, 4vw, 3.6rem);

  font-weight: 800;
  line-height: 0.98;

  text-transform: uppercase;
  text-wrap: balance;
}

.impact-title span {
  display: inline-block;
  color: var(--enpho-blue);
}

.impact-intro {
  max-width: 720px;

  margin: 1.15rem auto 0;

  color: #475467;

  font-family: var(--body-font);

  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.7;
}

/* =========================================
   IMPACT CONTENT
========================================= */

.our-impact-section .row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* =========================================
   PEOPLE REACHED CARD
========================================= */

.impact-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 100%;

  overflow: hidden;

  padding: clamp(1.7rem, 3vw, 2.5rem);

  border: 1px solid rgba(0, 173, 239, 0.12);

  border-radius: 8px;

  color: #fff;

  background: linear-gradient(
    145deg,
    #007fb1 0%,
    var(--enpho-blue) 58%,
    #32bd78 140%
  );

  box-shadow: var(--shadow-soft);

  isolation: isolate;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Decorative background */

.impact-card::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  right: -120px;
  top: -120px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.09);

  pointer-events: none;
}

.impact-card::after {
  content: "";

  position: absolute;

  width: 190px;
  height: 190px;

  left: -100px;
  bottom: -115px;

  border-radius: 50%;

  background: rgba(50, 189, 120, 0.18);

  pointer-events: none;
}

/* =========================================
   IMPACT ICON
========================================= */

.impact-icon {
  position: relative;
  z-index: 1;

  display: grid;

  width: 58px;
  height: 58px;

  place-items: center;

  margin-bottom: 2rem;

  border: 1px solid rgba(255, 255, 255, 0.35);

  border-radius: 8px;

  color: var(--enpho-blue-dark);

  background: #fff;

  font-size: 1.35rem;

  box-shadow: 0 12px 30px rgba(0, 50, 80, 0.16);

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.impact-card:hover .impact-icon {
  transform: translateY(-3px);

  background: var(--enpho-blue-soft);
}

/* =========================================
   IMPACT CONTENT
========================================= */

.impact-card-content {
  position: relative;
  z-index: 1;
}

.impact-small-title {
  display: block;

  margin-bottom: 0.55rem;

  color: rgba(255, 255, 255, 0.78);

  font-family: var(--body-font);

  font-size: 1rem;

  font-weight: 800;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.impact-number {
  margin-bottom: 1rem;

  color: #fff;

  font-family: var(--heading-font);

  font-size: clamp(3.2rem, 6vw, 5.2rem);

  font-weight: 800;

  line-height: 0.9;

  letter-spacing: -2px;
}

.impact-card-content p {
  max-width: 430px;

  margin: 0;

  color: rgba(255, 255, 255, 0.84);

  font-family: var(--body-font);

  font-size: 0.98rem;

  font-weight: 500;

  line-height: 1.65;
}

/* =========================================
   CARD FOOTER
========================================= */

.impact-card-footer {
  position: relative;

  z-index: 1;

  display: flex;

  align-items: center;

  gap: 0.7rem;

  margin-top: auto;

  padding-top: 2rem;

  color: rgba(255, 255, 255, 0.88);

  font-family: var(--body-font);

  font-size: 0.82rem;

  font-weight: 700;
}

.footer-icon {
  display: grid;

  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.35);

  border-radius: 50%;

  color: #fff;

  background: rgba(255, 255, 255, 0.08);

  font-size: 0.75rem;
}

/* =========================================
   VIDEO CARD
========================================= */

.iframe-card {
  display: flex;
  flex-direction: column;

  height: 100%;

  padding: clamp(1.2rem, 2vw, 1.7rem);

  border: 1px solid rgba(0, 173, 239, 0.12);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.92);

  box-shadow: var(--shadow-soft);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.iframe-card:hover {
  transform: translateY(-6px);

  border-color: rgba(0, 173, 239, 0.24);

  box-shadow: var(--shadow-hover);
}

/* =========================================
   VIDEO HEADER
========================================= */

.iframe-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  margin-bottom: 1.2rem;
}

.iframe-label {
  display: block;

  margin-bottom: 0.25rem;

  color: var(--enpho-blue-dark);

  font-family: var(--body-font);

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 1.3px;

  text-transform: uppercase;
}

.iframe-label i {
  margin-right: 0.35rem;

  color: var(--accent-green);
}

.iframe-header h3 {
  margin: 0;

  color: var(--ink);

  font-family: var(--heading-font);

  font-size: clamp(1.45rem, 2.5vw, 2rem);

  font-weight: 800;

  line-height: 1.05;

  text-transform: uppercase;
}

/* =========================================
   HEADER ICON
========================================= */

.iframe-header-icon {
  display: grid;

  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  place-items: center;

  border-radius: 8px;

  color: #fff;

  font-size: 2rem;

  box-shadow: 0 10px 24px rgba(0, 173, 239, 0.2);

  transition: transform 0.25s ease;
}

.iframe-card:hover .iframe-header-icon {
  transform: rotate(4deg) scale(1.04);
}

/* =========================================
   VIDEO
========================================= */

.iframe-wrapper {
  position: relative;

  width: 100%;

  overflow: hidden;

  border-radius: 6px;

  background: #edf4f7;

  aspect-ratio: 16 / 9;
}

.iframe-wrapper::after {
  content: "";

  position: absolute;

  inset: 0;

  border: 1px solid rgba(0, 173, 239, 0.08);

  border-radius: inherit;

  pointer-events: none;
}

.iframe-wrapper iframe {
  position: absolute;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}

/* =========================================
   GENERAL HOVER
========================================= */

.impact-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-hover);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {
  .enpho-news-section {
    padding: 4rem 0;
  }

  /*
     * Keep the two main columns on tablet
     * until Bootstrap's md/lg breakpoint.
     */
  .enpho-news-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .enpho-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.25rem;
  }

  .enpho-story-card {
    min-height: 350px;
  }

  .enpho-event-card {
    min-height: 380px;
  }

  .our-impact-section {
    padding: 4rem 0;
  }

  .impact-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .impact-card {
    min-height: 420px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {
  .enpho-news-section {
    padding: 3.2rem 0;
  }

  .enpho-section-heading {
    margin-bottom: 1.4rem;
  }

  .enpho-section-heading h2 {
    font-size: 1.55rem;
  }

  .enpho-stories-grid {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .enpho-story-card {
    min-height: 350px;
  }

  .enpho-event-card {
    min-height: 320px;
  }

  .enpho-repository-card {
    padding: 1.6rem 1.25rem 1.8rem;
  }

  .enpho-repository-content p {
    font-size: 0.9rem;

    line-height: 1.55;
  }
}

@media (max-width: 575.98px) {
  .our-impact-section {
    padding: 3.2rem 0;
  }

  .impact-title {
    font-size: 2rem;
    line-height: 1;
  }

  .impact-intro {
    font-size: 0.94rem;
  }

  .impact-card {
    min-height: 390px;

    padding: 1.5rem;

    border-radius: 8px;
  }

  .impact-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 1.5rem;

    font-size: 1.2rem;
  }

  .impact-number {
    font-size: 3.4rem;

    letter-spacing: -1.5px;
  }

  .impact-card-content p {
    font-size: 0.92rem;
  }

  .impact-card-footer {
    padding-top: 1.5rem;

    font-size: 0.78rem;
  }

  .iframe-card {
    padding: 1rem;

    border-radius: 8px;
  }

  .iframe-header {
    margin-bottom: 1rem;
  }

  .iframe-header h3 {
    font-size: 1.35rem;
  }

  .iframe-header-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }

  .iframe-wrapper {
    border-radius: 6px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
  .enpho-story-card {
    min-height: 315px;
  }

  .enpho-event-card {
    min-height: 290px;
  }

  .enpho-story-content,
  .enpho-event-content {
    padding: 1.15rem;
  }

  .enpho-story-content h3 {
    font-size: 1.05rem;
  }

  .enpho-event-content h3 {
    font-size: 1.3rem;
  }

  .enpho-btn,
  .enpho-repository-btn {
    width: 100%;
  }
}