/* services.css */

/* Specific styling for the Services Hero section */
.services-hero {
  background-image:url('s.hero.bg.jpeg') center center / cover no-repeat;
  background-attachment: fixed; /* Parallax effect */
  padding-top: 80px; /* Adjust based on navbar height */
}

.section-heading{
  margin-top:40px;
  margin-left:75px;
  margin-bottom:40px;
  text-decoration: underline;
  font-size: 60px;
}


/* ===== Our Services Overview Section ===== */
.our-services-overview {
  background-color: #f1f7ff; /* Light blue background */
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.service-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 4px solid transparent; /* For hover effect */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  border-color: #007BFF; /* Blue border on hover */
}

.service-icon {
  font-size: 3.5rem;
  color: #007BFF; /* Primary blue for icons */
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.service-card:hover .service-icon {
  color: #00bcd4; /* Accent color on hover */
}

.service-card h3 {
  font-size: 1.5rem;
  color: #003366;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

/* ===== Detailed Service Sections ===== */
.service-detail-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.service-detail-section.alt-background {
  background-color: #f9fafe; /* Alternate background for distinction */
}

.service-detail-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.service-detail-grid.reverse-order {
  flex-direction: row-reverse; /* Reverse text and image order */
}

.detail-text {
  flex: 1;
  min-width: 300px;
  margin-left:15px;
}

.detail-text h3 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 20px;
}

.detail-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 15px;
  text-align: justify;
}



/* Responsive adjustments for Services Sections */
@media (max-width: 992px) {
  .services-hero {
    height: 60vh;
  }
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .service-icon {
    font-size: 3rem;
  }
  .service-card h3 {
    font-size: 1.3rem;
  }
  .service-detail-grid {
    flex-direction: column; /* Stack columns */
    text-align: center;
  }
  .service-detail-grid.reverse-order {
    flex-direction: column; /* Still stack normally */
  }
  .detail-text, .detail-image {
    min-width: unset;
    width: 100%;
  }
  .detail-text p {
    text-align: left; /* Keep text left-aligned */
  }
  .detail-image img {
    max-width: 80%;
    margin: auto;
  }
}

@media (max-width: 768px) {
  .services-hero {
    height: 50vh;
    background-attachment: scroll; /* Disable parallax on mobile */
  }
  .our-services-overview, .service-detail-section {
    padding: 60px 0;
  }
  .services-grid {
    grid-template-columns: 1fr; /* Single column */
  }
  .service-card {
    padding: 25px;
  }
  .service-icon {
    font-size: 2.8rem;
  }
  .service-card h3 {
    font-size: 1.2rem;
  }
  .detail-text h3 {
    font-size: 1.7rem;
  }
  .detail-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .services-hero {
    height: 40vh;
  }
  .our-services-overview, .service-detail-section {
    padding: 40px 0;
  }
  .service-card {
    padding: 20px;
  }
  .service-icon {
    font-size: 2.5rem;
  }
  .service-card h3 {
    font-size: 1.1rem;
  }
  .service-card p {
    font-size: 0.9rem;
  }
  .detail-text h3 {
    font-size: 1.4rem;
  }
  .detail-text p {
    font-size: 0.9rem;
  }
}



