/* Services Banner */
.services-banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-banner h1 {
  position: relative;
  z-index: 1;
  font-size: 3rem;
}

.services-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('../public/images/services-banner-bg.jpg'); */
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

/* Services Section */
.services-section {
  padding: var(--spacing-xxl) 0;
}

.services-section h2,
.online-services h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.services-section h2::after,
.online-services h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: var(--text-color);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-full);
  padding: var(--spacing-md);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-top: var(--spacing-md);
  color: var(--primary-color);
}

/* Hover Expansion with Smooth Animation */
.service-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: rgba(11, 73, 145, 0.05); /* subtle tint using primary color */
  margin-top: var(--spacing-md);
  padding: 0 15px;
  border-radius: var(--border-radius-sm);
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
}

.service-card:hover .service-details {
  max-height: 200px;
  opacity: 1;
  padding: 15px;
}

.service-details strong {
  color: var(--primary-color);
  font-weight: 600;
}

.service-details em {
  color: var(--secondary-color);
  font-style: normal;
  font-weight: 500;
}

/* keep existing hover rule */
.service-card:hover .service-details,
.service-card:focus .service-details,
.service-card:focus-within .service-details {
  max-height: 200px;
  opacity: 1;
  padding: 15px;
}


/* Online Services */
.online-services {
  padding: var(--spacing-xxl) 0;
  background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .services-banner h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
  }

  .service-card {
    padding: var(--spacing-lg);
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }
}

/* Buttons */
button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #0b4991;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #123b7e;
}


/* Gallery Section */
.image-gallery {
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.image-gallery h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.image-gallery h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-item {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.gallery-modal img {
  margin: auto;
  display: block;
  max-width: 50%;
  max-height: auto;
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease;
}

.gallery-modal .close,
.gallery-modal .prev,
.gallery-modal .next {
  position: absolute;
  top: 50%;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.gallery-modal .close {
  top: 20px;
  right: 40px;
  font-size: 50px;
}

.gallery-modal .prev {
  left: 20px;
  transform: translateY(-50%);
}

.gallery-modal .next {
  right: 20px;
  transform: translateY(-50%);
}

.gallery-modal .prev:hover,
.gallery-modal .next:hover,
.gallery-modal .close:hover {
  color: var(--primary-color);
}
