/* ==========================================================================
   SECTION 11: URGENT APPEALS & EMERGENCY GRANTS
   Optical Peep-Hole Window Parallax + Fresh Sky Blue Canvas + Fibonacci Mesh
   ========================================================================== */

.ehs-appeals-section {
  position: relative !important;
  padding: 65px 0 115px 0 !important;
  /* Fresh Sky Blue Base Canvas */
  background-color: #0284c7 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
  overflow: hidden !important;

  /* TRUE OPTICAL PEEP-HOLE LOCKED PARALLAX */
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* Translucent Rich Sky Blue Gradient Overlay */
.ehs-appeals-bg-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    145deg,
    rgba(2, 132, 199, 0.88) 0%,
    rgba(14, 165, 233, 0.82) 50%,
    rgba(3, 105, 161, 0.92) 100%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Fibonacci Golden Spiral Mesh Overlay (Light Crisp Contrast) */
.ehs-appeals-mesh-overlay {
  position: absolute !important;
  inset: 0 !important;
  background-image: 
    /* 1. Curved Logarithmic Spiral Lattice */
    repeating-radial-gradient(
      circle at 0% 50%,
      transparent 0,
      transparent 36px,
      rgba(255, 255, 255, 0.18) 37px,
      rgba(255, 255, 255, 0.18) 38px,
      transparent 39px 72px
    ),
    repeating-radial-gradient(
      circle at 100% 50%,
      transparent 0,
      transparent 36px,
      rgba(255, 255, 255, 0.15) 37px,
      rgba(255, 255, 255, 0.15) 38px,
      transparent 39px 72px
    ),
    /* 2. Deep Core Vortex Rings */
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.22) 19px,
      rgba(255, 255, 255, 0.22) 20px,
      transparent 21px 40px
    ),
    /* 3. Sweeping Archimedean Twist Grid */
    repeating-conic-gradient(
      from 45deg at 50% 50%,
      rgba(255, 255, 255, 0.08) 0deg 8deg,
      transparent 8deg 45deg
    ) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100% !important;
  background-position: center center !important;
  opacity: 0.95 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* ==========================================================================
   SECTION HEADER (CENTER-ALIGNED & COMPACT GAP)
   ========================================================================== */

.ehs-appeals-header {
  text-align: center !important;
  max-width: 840px !important;
  margin: 0 auto 45px auto !important;
  position: relative !important;
  z-index: 4 !important;
}

.ehs-appeals-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(0, 34, 68, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  padding: 6px 18px !important;
  border-radius: 30px !important;
  margin-bottom: 14px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.ehs-badge-beacon-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 0 10px #ffffff, 0 0 16px #38bdf8 !important;
  display: inline-block !important;
}

.ehs-appeals-title {
  font-size: 38px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  letter-spacing: -0.6px !important;
  margin: 0 0 12px 0 !important;
  text-shadow: 0 3px 12px rgba(0, 34, 68, 0.35) !important;
}

.ehs-appeals-sub {
  font-size: 16px !important;
  color: #f0f9ff !important;
  opacity: 0.95 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  text-shadow: 0 2px 6px rgba(0, 34, 68, 0.3) !important;
}

/* ==========================================================================
   3-COLUMN APPEALS GRID
   ========================================================================== */

.ehs-appeals-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  position: relative !important;
  z-index: 4 !important;
}

.ehs-appeal-card {
  height: 100% !important;
}

.ehs-appeal-card-inner {
  background: #ffffff !important;
  border-radius: 22px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 18px 40px rgba(0, 34, 68, 0.22) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !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-appeal-card:hover .ehs-appeal-card-inner {
  transform: translateY(-8px) !important;
  border-color: #0284c7 !important;
  box-shadow: 0 24px 50px rgba(0, 34, 68, 0.3), 0 0 24px rgba(255, 255, 255, 0.4) !important;
}

/* Card Image Frame */
.ehs-appeal-img-wrap {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  background: #002244 !important;
}

.ehs-appeal-photo {
  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-appeal-card:hover .ehs-appeal-photo {
  transform: scale(1.06) !important;
}

.ehs-appeal-photo-placeholder {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #002244 0%, #0284c7 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #38bdf8 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.ehs-appeal-cat-pill {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: rgba(0, 34, 68, 0.92) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
}

.ehs-appeal-days-pill {
  position: absolute !important;
  bottom: 14px !important;
  right: 14px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0056b3 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45) !important;
}

/* Card Body */
.ehs-appeal-body {
  padding: 24px 24px 22px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  background: #ffffff !important;
}

.ehs-appeal-card-title {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #002244 !important;
  line-height: 1.35 !important;
  margin: 0 0 10px 0 !important;
}

.ehs-appeal-card-desc {
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  margin: 0 0 20px 0 !important;
  flex-grow: 1 !important;
}

/* Progress Section */
.ehs-appeal-progress-wrap {
  margin-bottom: 22px !important;
}

.ehs-progress-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  margin-bottom: 6px !important;
}

.ehs-progress-pct {
  color: #0284c7 !important;
}

.ehs-progress-targ {
  color: #64748b !important;
}

.ehs-progress-bar-track {
  width: 100% !important;
  height: 8px !important;
  background: #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
}

.ehs-progress-bar-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #0056b3 0%, #38bdf8 100%) !important;
  border-radius: 10px !important;
  transition: width 0.6s ease !important;
}

.ehs-progress-raised-line {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  color: #475569 !important;
}

.ehs-progress-raised-line strong {
  color: #002244 !important;
  font-weight: 900 !important;
}

/* Card Footer CTA */
.ehs-appeal-card-footer {
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: auto !important;
}

.ehs-appeal-cta-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0056b3 100%) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35) !important;
  transition: all 0.25s ease !important;
}

.ehs-appeal-cta-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #004085 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.5) !important;
}

.ehs-appeal-cta-btn .ehs-btn-arrow {
  transition: transform 0.2s ease !important;
}

.ehs-appeal-cta-btn:hover .ehs-btn-arrow {
  transform: translateX(4px) !important;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .ehs-appeals-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 680px) {
  .ehs-appeals-section {
    padding: 50px 0 75px 0 !important;
    background-attachment: scroll !important;
  }
  .ehs-appeals-title {
    font-size: 28px !important;
  }
  .ehs-appeals-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}