*{
    padding:0;
    margin:0;
    box-sizing: border-box;
}

/* ========== Services Section ========== */
.services {

  max-width: 1200px;
  margin: 8% auto;
  padding: 0 1rem;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-item {

  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.40);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover,
.service-item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.service-item h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #0077ff;
}
.service-item p {
  margin-bottom: 1rem;
  
  
}

/* Service images */

.service-item img {

  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 1.25rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

img.portrait {
  aspect-ratio: 4/ 3;
  object-fit: contain;
  background: #ffffff;
}


/* ========== Accessibility & Motion ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.bio {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #000000;
  flex-grow: -2;
  line-height: 1.5;

}
.bio-years1 p {
  margin: 5px ;
  font-size: 12px;
  line-height: 1.5;
    color: #000000;
}
@media (max-width: 787px) {
  .services {

  max-width: 1200px;
  margin: 32% auto;
  padding: 0 1rem;
}
}