
.services-section {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(248, 249, 250, 0.85); /* Light overlay for readability */
  z-index: 0;
}
.services-section > .container {
  position: relative;
  z-index: 1;
}

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

.service-card {
  background-color: var(--brand-white);
  padding: 25px; 
  border-radius: 12px; 
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px); 
  box-shadow: var(--shadow-strong);
}

.service-card h3 {
  font-size: 1.4rem; 
  color: var(--brand-blue);
  margin-bottom: 12px; 
}

.service-card p:not(.service-details p) { 
  margin-bottom: 18px; 
  flex-grow: 1; 
}

.service-card .btn-secondary {
  margin-top: auto; 
}

.service-details {
  margin-top: 18px; 
  padding-top: 18px; 
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease;
}

.service-details h4 {
  font-size: 1.1rem; 
  color: var(--brand-blue);
  margin-bottom: 8px; 
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
  gap: 8px; 
  margin-bottom: 12px; 
}

.service-gallery-img {
  width: 100%;
  height: 80px; 
  object-fit: cover;
  border-radius: 4px; 
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-gallery-img:hover {
  transform: scale(1.08); 
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.services-content {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.services-key-title {
  font-size: 1.8rem;
  color: var(--brand-blue);
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--brand-yellow);
  padding-bottom: 10px;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 35px;
  padding: 20px;
  border-left: 4px solid var(--brand-blue);
  background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white cards */
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 5px rgba(0, 82, 165, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}

.service-item:hover {
  box-shadow: 0 5px 15px rgba(0, 82, 165, 0.15);
}

@media (min-width: 768px) {
  .service-item {
    flex-direction: row;
    align-items: flex-start; 
  }
}

.service-item-image-container {
  flex: 0 0 200px; 
  height: 150px; 
  margin-right: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}

.service-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.service-item-image:hover {
  transform: scale(1.1);
}

.service-item-text {
  flex: 1;
}

.service-item h4 {
  font-size: 1.4rem; 
  color: var(--brand-blue);
  margin-bottom: 10px; 
  font-weight: 600; 
}

.service-item p {
  font-size: 1rem;
  color: #333; /* Darker text for readability on light overlay */
  line-height: 1.7;
}

.services-conclusion {
  font-size: 1.15rem; 
  font-weight: 500;
  color: var(--text-dark);
  margin-top: 40px; 
  text-align: center;
  font-style: italic;
  padding: 20px; /* Increased padding */
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  color: var(--brand-white);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
