/* ==========================================================================
   SECTION 08: GRADUATE STORIES (COMPACT TOP GAP, LARGE CARDS & IMAGERY)
   ========================================================================== */

.ehs-stories-section {
  position: relative !important;
  /* Reduced top padding: was 110px -> now 65px */
  padding: 65px 0 110px 0 !important;
  /* Warm Pearl into Soft Sand Canvas */
  background: linear-gradient(180deg, #faf8f5 0%, #f3eee7 50%, #eae3d9 100%) !important;
  overflow: hidden !important;
  border-top: 1px solid #e7ded4 !important;
  border-bottom: 1px solid #e7ded4 !important;

  /* TRUE CSS PARALLAX ENGINE */
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* Translucent Soft Warm Canvas Overlay */
.ehs-stories-bg-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(250, 248, 245, 0.94) 0%,
    rgba(243, 238, 231, 0.90) 50%,
    rgba(234, 227, 217, 0.95) 100%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Distinct Weaving Loom & Thread Grid Mesh Overlay */
.ehs-stories-mesh-overlay {
  position: absolute !important;
  inset: 0 !important;
  background-image: 
    linear-gradient(to right, rgba(0, 86, 179, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 86, 179, 0.045) 1px, transparent 1px),
    radial-gradient(#b45309 0.75px, transparent 0.75px) !important;
  background-size: 24px 24px, 24px 24px, 24px 24px !important;
  opacity: 0.8 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* ==========================================================================
   SECTION HEADER (COMPACT MARGINS)
   ========================================================================== */

.ehs-stories-header {
  text-align: center !important;
  max-width: 820px !important;
  margin: 0 auto 45px auto !important; /* Reduced from 60px to 45px */
}

.ehs-stories-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #fef3c7 !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 5px 16px !important;
  border-radius: 30px !important;
  margin-bottom: 12px !important; /* Tight margin */
}

.ehs-stories-badge svg {
  color: #b45309 !important;
}

.ehs-stories-title {
  font-size: 38px !important;
  font-weight: 900 !important;
  color: #002244 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.6px !important;
  margin: 0 0 12px 0 !important;
}

.ehs-stories-sub {
  font-size: 16px !important;
  color: #57534e !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ==========================================================================
   LARGE STORIES 3-COLUMN SHOWCASE GRID
   ========================================================================== */

.ehs-stories-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  align-items: stretch !important;
}

/* Individual Large Story Card */
.ehs-story-card {
  height: 100% !important;
}

.ehs-story-card-inner {
  background: #ffffff !important;
  border-radius: 22px !important;
  border: 1.5px solid #e7ded4 !important;
  box-shadow: 0 14px 34px rgba(41, 37, 36, 0.08) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.ehs-story-card:hover .ehs-story-card-inner {
  transform: translateY(-8px) !important;
  border-color: #0056b3 !important;
  box-shadow: 0 24px 50px rgba(0, 34, 68, 0.16), 0 6px 18px rgba(180, 83, 9, 0.12) !important;
}

/* ==========================================================================
   LARGE PROMINENT BENEFICIARY PHOTO BANNER
   ========================================================================== */

.ehs-story-img-banner {
  position: relative !important;
  width: 100% !important;
  height: 230px !important; /* Generous banner height */
  overflow: hidden !important;
  background: #002244 !important;
}

.ehs-story-featured-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ehs-story-card:hover .ehs-story-featured-img {
  transform: scale(1.08) !important;
}

.ehs-story-img-placeholder {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #002244 0%, #0056b3 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.ehs-story-img-placeholder svg {
  color: #38bdf8 !important;
}

/* Floating Trade Tag over image */
.ehs-story-trade-badge {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: rgba(0, 34, 68, 0.85) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  z-index: 2 !important;
}

/* ==========================================================================
   CARD BODY & CONTENT
   ========================================================================== */

.ehs-story-card-body {
  padding: 26px 26px 24px 26px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/* Economic Lift Highlight Badge */
.ehs-story-lift-strip {
  margin-bottom: 16px !important;
}

.ehs-story-lift-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #15803d !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
}

/* Quote Text */
.ehs-story-quote {
  font-size: 15.5px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  font-style: italic !important;
  margin: 0 0 24px 0 !important;
  flex-grow: 1 !important;
}

/* Profile Details Footer */
.ehs-story-profile-footer {
  display: flex !important;
  align-items: center !important;
  padding-top: 18px !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: auto !important;
}

.ehs-story-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.ehs-story-name {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #002244 !important;
  margin: 0 0 3px 0 !important;
  line-height: 1.25 !important;
}

.ehs-story-role {
  font-size: 12.5px !important;
  color: #64748b !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .ehs-stories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 680px) {
  .ehs-stories-section {
    padding: 50px 0 80px 0 !important;
    background-attachment: scroll !important;
  }
  .ehs-stories-title {
    font-size: 28px !important;
  }
  .ehs-stories-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .ehs-story-img-banner {
    height: 200px !important;
  }
}