/* SECTION */
.main-section {
  padding: 20px;
}

/* TABS */
.nav-pills .nav-link {
  background: #e9ecff;
  color: var(--primary-blue);
  margin: 0 5px;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
  transition: 0.3s;
}

.nav-pills .nav-link.active {
  background: var(--primary-blue);
  color: #fff;
}

/* GRID FIX */
.row.g-3 > div {
  display: flex;
}

/* CARD */
/* GRID */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* CARD */
.service-item {
  background: var(--primary-blue);
  color: #fff;
  border-radius: 10px;
  padding: 16px 18px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 100px;
  transition: 0.3s ease;
}

/* HOVER */
.service-item:hover {
  background: #ffffff !important;
  color: var(--primary-blue) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


.service-item:hover .service-sub span {
  background: var(--primary-blue);
  color: #fff;
}

/* TITLE */
.service-title {
  font-weight: 600;
  font-size: 16px;              /* increased */
  margin-bottom: 8px;
  text-align: center;           /* centered */
}
/* SUB ITEMS INLINE */
.service-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;      /* center tags */
}

.service-sub span {
  background: rgba(255,255,255,0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;              /* increased */
}

/* SIMPLE ITEMS */
.service-item.simple {
  align-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 15px;              /* increased */
}
.section-title {
  color: var(--primary-blue);
  font-weight: 700;
  border-left: 5px solid var(--accent-red);
  padding-left: 10px;
  margin-bottom: 20px;
}
.card-custom {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  height: 100%;
}

/* Swiper */
.swiper {
  padding-bottom: 40px;
}

/* Equal image size */
.swiper-slide {
  height: 220px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps ratio but fills */
  border-radius: 10px;
}

/* Navigation Buttons Styling */
.swiper-button-next,
.swiper-button-prev {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Reduce arrow icon size */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px;
  font-weight: bold;
}

/* Hover effect */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--accent-red);
}

/* Position slightly inside */
.swiper-button-prev {
  left: 10px;
}
.swiper-button-next {
  right: 10px;
}
.swiper-pagination-bullet-active {
  background: var(--accent-red);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .service-box {
    min-height: 120px;
  }
}