.ep-stats-band {
    width: min(100% - 32px, 1110px);
    max-width: 1110px;
    margin: 40px auto 0;
  }

  @media (min-width: 1601px) {
    .ep-stats-band {
      width: min(100% - 32px, 1290px);
      max-width: 1290px;
    }
  }

  .ep-stats-band__shell {
    background: linear-gradient(135deg, #002a38 0%, #01384a 52%, #01465d 100%);
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(0, 42, 56, 0.22);
    padding: 10px;
  }

  .ep-stats-band__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .ep-stats-band__item {
    position: relative;
    text-align: center;
    padding: 18px 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  }

  .ep-stats-band__item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 212, 255, 0.22);
    transform: translateY(-2px);
  }

  .ep-stats-band__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    opacity: 0.85;
  }

  .ep-stats-band__value {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 1.05rem + 0.75vw, 1.85rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #00d4ff;
  }

  .ep-stats-band__label {
    display: block;
    font-size: clamp(0.78rem, 0.72rem + 0.2vw, 0.9rem);
    line-height: 1.35;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 4px;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
  }

  /* Compact 2-col stats cards (home / CMS / about contact blocks) */
  .ep-stats-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 520px;
  }

  .ep-stats-card {
    background: #ffffff;
    border: 1px solid #dbe8ef;
    border-radius: 10px;
    padding:32px 16px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 42, 56, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
  }

  .ep-stats-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 137, 207, 0.3);
    box-shadow: 0 6px 14px rgba(0, 42, 56, 0.07);
  }

  .ep-stats-card__value {
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #002a38;
  }

  .ep-stats-card__label {
    display: block;
    margin: 0;
    color: #4a6075;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0;
  }

  /* Legacy stats bar - kept as fallback, hidden by default */
  .stats-bar.stats-bar--legacy {
    display: none !important;
  }

  @media (max-width: 1399.98px) {
    .ep-stats-band__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 991.98px) {
    .ep-stats-band {
      width: min(100% - 24px, 1110px);
    }

    .ep-stats-band__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ep-stats-cards {
      max-width: 480px;
    }
  }

  @media (max-width: 575.98px) {
    .ep-stats-band__grid {
      grid-template-columns: 1fr;
    }

    .ep-stats-cards {
      max-width: none;
      gap: 8px;
    }

    .ep-stats-band__item {
      padding: 16px 12px 14px;
    }

    .ep-stats-card {
      padding: 14px 10px;
    }

    .ep-stats-card__value {
      font-size: 1.75rem;
    }

    .ep-stats-card__label {
      font-size: 0.9rem;
    }
  }

  /* Keep stats column from stretching cards too wide beside the form */
  .contact .row.align-items-center > .col-lg-6:first-child,
  .ep-about-stats .row.align-items-center > .col-lg-6:first-child {
    max-width: 540px;
  }

  .contact .stats-heading,
  .ep-about-stats .ep-about-stats__heading {
    text-align: left;
  }

  .contact .contact-subtitle {
    text-align: left;
    margin: 0 0 16px;
    color: #4a6070;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 500;
  }

  .contact .stats-heading {
    margin-bottom: 10px;
  }

  /* Shared stats + demo section component (home / CMS / about) */
  .ep-stats-demo.contact {
    padding: 100px 0 !important;
    background: #f8fbfd !important;
  }

  .ep-stats-demo__shell {
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
  }

  .ep-stats-demo__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }

  .ep-stats-demo__stats,
  .ep-stats-demo__form {
    width: 100%;
    min-width: 0;
  }

  .ep-stats-demo__stats {
    max-width: 540px;
  }

  .ep-stats-demo__form {
    max-width: 560px;
  }

  .ep-stats-demo__heading {
    margin: 0 0 10px !important;
    text-align: left !important;
    font-size: clamp(1.45rem, 1.18rem + 0.9vw, 1.95rem) !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    color: #002a38 !important;
  }

  .ep-stats-demo__subtitle {
    margin: 0 0 16px !important;
    text-align: left !important;
    color: #4a6070 !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
  }

  .ep-stats-demo .ep-stats-cards {
    max-width: 520px;
  }

  @media (min-width: 992px) {
    .ep-stats-demo__row {
      flex-wrap: nowrap;
    }

    .ep-stats-demo__stats {
      flex: 1 1 0;
    }

    .ep-stats-demo__form {
      display: flex;
      flex-direction: column;
      flex: 0 0 min(100%, 560px);
      padding-top: 0 !important;
      height: auto;
    }

    .ep-stats-demo__form > .epcf-wrap--desktop {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
    }

    .ep-stats-demo__form .epcf-form--desktop {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
  }

  @media (max-width: 991.98px) {
    .ep-stats-demo.contact {
      padding: 70px 0 !important;
    }

    .ep-stats-demo__stats,
    .ep-stats-demo__form {
      max-width: 100%;
    }

    .ep-stats-demo .ep-stats-cards {
      max-width: 480px;
    }
  }
