/* =========================================================
   PAGE-INDEX-SECTION.CSS
   Enhancements for Services & Benefits Section
   ========================================================= */

/* =========================================================
   SECTION BACKGROUND & CONTAINER IMPROVEMENTS
   ========================================================= */
   section.bg-light {
    background: linear-gradient(180deg, #f9faff 0%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
  }
  
  /* Heading Improvements */
  section.bg-light h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
    text-align: center;
    line-height: 1.2;
  }
  
  /* Subtitle / Intro Paragraph */
  section.bg-light p.text-muted {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto 4rem auto;
    text-align: center;
    color: var(--text-muted);
    letter-spacing: 0.25px;
  }
  
  /* Highlight key phrases in subtitle */
  section.bg-light p.text-muted strong {
    color: var(--color-primary-teal);
    font-weight: 600;
  }
  
  /* =========================================================
     BENEFITS GRID – LAYERED, CARD CONTRAST
     ========================================================= */
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 2.5rem;
    justify-items: center;
    align-items: stretch;
    margin-top: 3rem;
    padding: 0 1rem;
  }
  
  /* Individual benefit cards */
  .benefit-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem 2rem 1.5rem;
    max-width: 320px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
  }
  
  /* Pseudo-background layer for subtle depth */
  .benefit-card::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.05), rgba(28, 163, 199, 0.03));
    z-index: 0;
    pointer-events: none;
    border-radius: var(--radius-lg);
  }
  
  /* Icon Styling */
  .benefit-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.35s ease;
    z-index: 1;
  }
  
  /* Icon hover effect */
  .benefit-card:hover .benefit-icon {
    transform: scale(1.2);
  }
  
  /* Card text */
  .benefit-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    z-index: 1;
    transition: color 0.3s ease;
  }
  
  .benefit-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 1;
  }
  
  /* Card hover effect */
  .benefit-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 36px rgba(0,0,0,0.15);
    background: linear-gradient(180deg, #ffffff 0%, #e6f7ff 100%);
  }
  
  .benefit-card:hover p {
    color: var(--color-primary-dark);
  }
  
  /* =========================================================
     RESPONSIVE ADJUSTMENTS
     ========================================================= */
  @media (max-width: 992px) {
    .benefits-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
  
    section.bg-light p.text-muted {
      font-size: 1rem;
      line-height: 1.75;
      margin-bottom: 3rem;
    }
  }
  
  @media (max-width: 600px) {
    .benefits-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .benefit-card {
      max-width: 100%;
      padding: 2.5rem 1.25rem 1.5rem 1.25rem;
    }
  
    .benefit-icon {
      width: 60px;
      height: 60px;
      margin-bottom: 1rem;
    }
  
    section.bg-light p.text-muted {
      font-size: 0.95rem;
      line-height: 1.8;
      padding: 0 1rem;
    }
  }
  
  /* =========================================================
     OPTIONAL SUBTLE ANIMATIONS (fade-up on scroll)
     ========================================================= */
  .benefit-card {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* =========================================================
     CONTRAST ENHANCEMENTS
     ========================================================= */
  /* Add subtle shadow to overall section for depth */
  section.bg-light::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #f0f5ff 100%);
    pointer-events: none;
  }
  
  /* Smooth typography improvements */
  section.bg-light h2,
  section.bg-light p {
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  /* =========================================================
     MEDIA QUERIES FOR TYPOGRAPHY
     ========================================================= */
  @media (max-width: 480px) {
    section.bg-light h2 {
      font-size: 1.7rem;
    }
  
    .benefit-card h3 {
      font-size: 1.25rem;
    }
  
    .benefit-card p {
      font-size: 0.95rem;
    }
  }
  