/* Styles for the services cards (scoped) */
.services-card {
  transition: transform 200ms cubic-bezier(.2,.9,.2,1), box-shadow 200ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, box-shadow;
}
.services-card:hover,
.services-card:focus-within {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 30px rgba(11,78,161,0.12);
}
.services-card .card-body { transition: background 180ms ease; }
.services-card:hover .card-body { background: rgba(11,78,161,0.02); }

/* When services cards sit inside a dark testimonials-section (full-bleed background),
   ensure the card body stays transparent and text is light so it's readable. */
.testimonials-section .services-card {
  /* Semi-opaque panel similar to .testimonial-card so white text is readable */
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
}
.testimonials-section .services-card .card-body { background: transparent; }
.testimonials-section .services-card .card-title { color: #fff; }
.testimonials-section .services-card .card-text { color: rgba(255,255,255,0.85); }

/* Optional: reduce effect on very small screens to avoid layout shift on touch devices */
@media (max-width: 576px) {
  .services-card:hover,
  .services-card:focus-within { transform: none; box-shadow: 0 6px 18px rgba(11,78,161,0.08); }
}

/* Section background utilities to allow alternating backgrounds */
.section-alt { background: #ffffff; }
.section-muted { background: linear-gradient(180deg, #f7f9fb 0%, #f3f6f9 100%); }

/* About-specific styles have been moved to public/assets/css/about.css */

/* Full-bleed hero section (reused from home/about patterns) */
.about-us-section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-us-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Increase darkness to match about page visuals */
  background: rgba(0,0,0,0.70);
  pointer-events: none;
  z-index: 1;
}
.about-us-section .container { position: relative; z-index: 2; }

/* Testimonials / modality visual style */
.testimonials-section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.testimonials-section::before { content: ''; position: absolute; inset: 0; /* deeper blue overlay like about */ background: rgba(5,55,160,0.70); z-index: 1; }
.testimonials-section .container { position: relative; z-index: 2; }
.testimonial-card { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0.75rem; padding: 2rem; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: space-between; color: rgba(255,255,255,0.95); }
.testimonial-card .card-title { color: #fff; margin-bottom: 1rem; }
.testimonial-card .card-text { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; line-height: 1.7; }

/* ensure testimonial text has left padding when there's a decorative quote icon */
.testimonial-quote-icon { font-size: 3rem; color: rgba(255,255,255,0.5); position: absolute; top: 1rem; left: 1.25rem; }


/* Small animation helper to reveal content when present (template adds animate.css classes) */
.animate-enter { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-enter.animate-in { opacity: 1; transform: translateY(0); }

@media (max-width: 576px) {
  .about-us-section { margin-top: 0; }
}
