.service-content {
  padding: 50px 0;
  background: white;
}

.service-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.service-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
  text-align: justify;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #005491;
  margin: 40px 0 20px;
}

.section-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #005491;
  margin: 30px 0 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 20px 0;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  padding-left: 35px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  transition: all 0.3s ease;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li:hover {
  padding-left: 45px;
  color: #005491;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ac0000, #ff4444);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-list li:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(172, 0, 0, 0.5);
}

.feature-list li strong {
  color: #005491;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

/* Highlight Box */
.service-highlight {
  background: linear-gradient(135deg, #005491, #0066b3);
  color: white;
  padding: 40px;
  border-radius: 15px;
  margin: 50px 0;
  box-shadow: 0 15px 35px rgba(0, 84, 145, 0.2);
  position: relative;
  overflow: hidden;
}

.service-highlight::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

.service-highlight h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
}

.service-highlight p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 15px;
}

.service-highlight p:last-child {
  margin-bottom: 0px;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Swiper Container */
.related-products-swiper {
  padding: 20px 0 60px;
  overflow: visible;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  top: 40%;
  /* background: white; */
  /* border-radius: 50%; */
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  color: #005491;
  /* margin-top: -25px; */
}
.swiper-button-prev {
  left: 0px;
  right: auto;
}
.swiper-button-next {
  right: 0px;
  left: auto;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 26px;
  font-weight: 600;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  /* background: #005491; */
  /* color: white; */
  color: #ac0000;
}

/* Swiper Pagination */
.swiper-pagination {
  bottom: 20px;
  position: static;
  margin-top: 25px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 5px;
}

.swiper-pagination-bullet-active {
  background: #005491;
  transform: scale(1.2);
}

.related-products-section {
  overflow: hidden;
}
.related-products-section .container {
  padding: 0px !important;
}
.related-products-section .section-header {
  padding: 0px 50px !important;
}
.related-products-section .rp-slider {
  padding: 0px !important;
}
.related-products-section .related-products-swiper::after {
  position: absolute;
  content: "";
  width: 40px;
  height: 100%;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  background: #fff;
  z-index: 3;
}
.related-products-section .related-products-swiper::before {
  position: absolute;
  content: "";
  width: 40px;
  height: 100%;
  top: 50%;
  right: 0%;
  transform: translateY(-50%);
  background: #fff;
  z-index: 3;
}
.related-products-section .related-products-swiper {
  padding: 0px 50px !important;
  position: relative;
}

@media (max-width: 768px) {
  .service-content {
    padding: 40px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 20px;
  }

  .related-products-section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .related-product-actions {
    flex-direction: row;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 12px;
  }
}

/* Services Page Specific Styles */
.serv-pg-page {
  background: #fff;
  color: #333;
}

.serv-pg-header {
  background-color: #005491;
  color: white;
  padding: 50px;
  text-align: center;
  margin-bottom: 60px;
}

.serv-pg-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.serv-pg-header p {
  font-size: 1.2rem;
  /* max-width: 800px; */
  margin: 0 auto;
  opacity: 0.9;
}

.serv-pg-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 75px 50px;
}

.serv-pg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  /* margin-top: 40px; */
}

.serv-pg-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  position: relative;
}

.serv-pg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 84, 145, 0.15);
}

.serv-pg-image {
  height: auto;
  overflow: hidden;
}

.serv-pg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.serv-pg-card:hover .serv-pg-image img {
  transform: scale(1.05);
}

.serv-pg-content {
  padding: 25px;
  position: relative;
}

.serv-pg-content h3 {
  color: #005491;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.serv-pg-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.6rem;
}

.serv-pg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.serv-pg-link {
  display: inline-block;
  color: #005491;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-right: 20px;
  z-index: 2;
  font-size: 1.6rem;
}

.serv-pg-link:after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.2s ease;
}

.serv-pg-link:hover:after {
  right: -5px;
}

/* Make text elements non-blocking for pointer events */
.serv-pg-content h3,
.serv-pg-content p,
.serv-pg-link {
  /* pointer-events: none; */
}

/* Allow clicks on the actual link */
.serv-pg-link-wrapper {
  pointer-events: auto;
  display: inline-block;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .serv-pg-grid {
    grid-template-columns: 1fr;
  }

  .serv-pg-header {
    padding: 60px 20px 40px;
  }

  .serv-pg-header h1 {
    font-size: 2rem;
  }
  .related-products-section .section-header,
  .related-products-section .related-products-swiper {
    padding: 0px 15px !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .related-products-section .section-header,
  .related-products-section .related-products-swiper {
    padding: 0px 25px !important;
  }
}

:root {
  --serv-gap: 30px;
}

/* ✅ Flex-based grid so last row centers */
.serv-pg-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers last row */
  gap: var(--serv-gap);
  margin-top: 40px;
}

/* Each card takes equal width per breakpoint */
.serv-pg-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  position: relative;

  /* Desktop → 4 columns */
  flex: 0 0 calc((100% - (var(--serv-gap) * 3)) / 4);
  max-width: calc((100% - (var(--serv-gap) * 3)) / 4);
}

/* Hover effect */
.serv-pg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 84, 145, 0.15);
}

/* ✅ Responsive breakpoints */
@media (max-width: 1200px) {
  /* 3 columns */
  .serv-pg-card {
    flex: 0 0 calc((100% - (var(--serv-gap) * 2)) / 3);
    max-width: calc((100% - (var(--serv-gap) * 2)) / 3);
  }
}

@media (max-width: 992px) {
  /* 2 columns */
  .serv-pg-card {
    flex: 0 0 calc((100% - var(--serv-gap)) / 2);
    max-width: calc((100% - var(--serv-gap)) / 2);
  }
}

@media (max-width: 768px) {
  /* 1 column */
  .serv-pg-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .serv-pg-header {
    padding: 60px 20px 40px;
  }

  .serv-pg-header h1 {
    font-size: 2rem;
  }

  .related-products-section .section-header,
  .related-products-section .related-products-swiper {
    padding: 0px 15px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .related-products-section .section-header,
  .related-products-section .related-products-swiper {
    padding: 0px 25px !important;
  }
  /* 2 columns */
  .serv-pg-card {
    flex: 0 0 calc((100% - var(--serv-gap)) / 2);
    max-width: calc((100% - var(--serv-gap)) / 2);
  }
}
