/* ==========================================================================
   ecoPortal - 35+ Modules & Compliance Showcase
   ========================================================================== */

/* --- MAIN SECTION BACKGROUND & PADDING --- */
.ep_modules_showcase_section {
  width: 100% !important;
  background-color: #f7f9f6 !important;
  background-repeat: repeat;
  background-position: center top;
  background-size: auto;
  padding: 90px 0 100px 0;
  box-sizing: border-box;
}

.ep_modules_showcase_section .page-center {
  box-sizing: border-box;
  max-width: 1200px !important;
}

/* Central Inner Block (Width expanded to match site scale) */
.ep_modules_inner_container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* --- TITLE & COMPACT UNDERLINE LINE --- */
.ep_modules_header {
  display: inline-block; /* Fits line width directly to title length */
  margin-bottom: 52px;
  text-align: left;
}

.ep_modules_title {
  font-family: 'Lato', 'Inter', Helvetica, Arial, sans-serif !important;
  font-size: 50px !important; /* Increased font scale */
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color: #43734e !important; /* Brand green tone */
  margin: 0 !important;
  letter-spacing: -0.01em;
}

.ep_title_underline {
  width: 100%; /* Spans only the width of title text */
  height: 5px;
  background-color: #43734e;
  border-radius: 2px;
  margin-top: 8px;
}

/* --- 2-COLUMN LIST GRID --- */
.ep_modules_grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 60px;
  margin-bottom: 60px;
}

.ep_modules_col {
  flex: 1;
}

.ep_modules_col p,
.ep_modules_col h1,
.ep_modules_col h2,
.ep_modules_col h3,
.ep_modules_col h4,
.ep_modules_col span,
.ep_modules_col div {
  font-family: 'Lato', 'Inter', Helvetica, Arial, sans-serif !important;
  font-size: 28px !important; /* Larger text to fit site layout */
  line-height: 1.45 !important;
  font-weight: 500 !important;
  color: #383d39 !important;
  margin: 0 0 22px 0 !important;
}

.ep_modules_col p:last-child {
  margin-bottom: 0 !important;
}

/* --- CENTERED SECURITY BADGES --- */
.ep_badges_wrapper {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center; /* Aligns badges image in exact center */
  align-items: center;
}

.ep_badges_img {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
 /* ==========================================================================
   RESPONSIVE MOBILE STACKING
   ========================================================================== */
@media (max-width: 768px) {
  .ep_modules_showcase_section {
    padding: 60px 0;
  }

  .ep_modules_header {
    width: 100%;
  }

  .ep_modules_title {
    font-size: 34px !important;
  }

  /* Keep 2-column flex layout on mobile */
  .ep_modules_grid {
    flex-direction: row; /* Maintained 2-column layout */
    gap: 16px; /* Decreased gap so columns fit comfortably on mobile screens */
    margin-bottom: 40px;
  }

  /* Reduced typography scale so two side-by-side columns remain readable */
  .ep_modules_col p,
  .ep_modules_col h1,
  .ep_modules_col h2,
  .ep_modules_col h3,
  .ep_modules_col h4,
  .ep_modules_col span,
  .ep_modules_col div {
    font-size: 16px !important; 
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  .ep_badges_img {
    max-width: 100%;
  }
}