/* css/services.css */

/* Global CSS Variables for Brand Colors */
:root {
  --d3f-blue: #0D407F;
  --d3f-green: #2C9A3D;
}

/* Hero Section Using hero1.png */
.services-hero {
  position: relative;
  background: url("../images/hero1.png") no-repeat center center/cover;
  color: #fff;
  padding: 120px 0;
  text-align: center;
}
.services-hero::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
  z-index: 1;
}
.services-hero .container {
  position: relative;
  z-index: 2;
}
.services-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.services-hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

/* Services Details Section */
.services-details {
  padding: 60px 0;
  background-color: #f9f9f9;
}
.service-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 60px;
}
.service-card:hover {
  transform: translateY(-5px);
}
/* Alternate card layout for every second card */
.service-card:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1 1 40%;
  max-width: 40%;
}
.service-image img {
  width: 100%;
  height: auto;
  display: block;
}
.service-info {
  flex: 1 1 60%;
  max-width: 60%;
  padding: 20px;
}
.service-info h2 {
  font-size: 2rem;
  color: var(--d3f-blue);
  margin-bottom: 15px;
}
.service-info p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}
.service-features {
  list-style: disc inside;
  margin-bottom: 20px;
  color: #333;
}
.service-features li {
  margin-bottom: 5px;
}
.service-info .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--d3f-green);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.service-info .btn:hover {
  background-color: #249435;
}

/* Responsive Styles for Mobile Devices */
@media (max-width: 768px) {
  .service-card {
    flex-direction: column;
  }
  .service-image,
  .service-info {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .service-info {
    padding: 15px;
  }
  .services-hero h1 {
    font-size: 2.5rem;
  }
  .services-hero p {
    font-size: 1.1rem;
  }
}
