.service-section {
  /* padding: 5rem 0; */
  background-color: #f4f3f1;
}

.card-service-chooseUs {
  background-color: #333333;
  /* aspect-ratio: 1 / 1; */
  width: 100%;

  /* max-width: 500px; */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.group-card-product {
  align-items: stretch;
}

.group-card-product>[class*="col"] {
  display: flex;
  flex-direction: column;
}

/* ให้ swiper และ content-square ยืดเต็ม col */
.group-card-product>[class*="col"]>.swiper,
.group-card-product>[class*="col"]>.service-content-square {
  flex: 1;
}

/* ฝั่งขวา - content box */
.service-content-square {
  width: 100%;
  height: 100%;
  background-color: #f4f3f1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===== serviceSwiper (Section 1-2 ที่ใช้ serviceSwiper) ===== */
.serviceSwiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.serviceSwiper .swiper-wrapper {
  width: 100%;
  height: 100% !important;
}

.serviceSwiper .swiper-slide,
.serviceSwiper .swiper-slide a {
  width: 100%;
  height: 100% !important;
  display: block;
}

.serviceSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ย้าย Pagination มาอยู่บนรูป */
.serviceSwiper .swiper-pagination {
  bottom: 25px !important;
  z-index: 10;
}

/* ตกแต่งจุด Pagination ให้เด่นบนรูป */
.serviceSwiper .swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.6;
  width: 12px;
  height: 12px;
  margin: 0 5px !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.serviceSwiper .swiper-pagination-bullet-active {
  background: var(--bg-color-secondary) !important;
  opacity: 1;
  width: 12px;
  border-radius: 50%;
}

/* ===== marketSwiper ภายในหน้า service (Section 3-6) ===== */
/* Override ค่า aspect-ratio จาก product.css ให้ยืดตาม row แทน */
.group-card-product .marketSwiper {
  width: 100%;
  height: 100%;
  aspect-ratio: unset !important;
}

.group-card-product .marketSwiper .swiper-wrapper {
  height: 100% !important;
}

.group-card-product .marketSwiper .swiper-slide,
.group-card-product .marketSwiper .swiper-slide a {
  width: 100%;
  height: 100% !important;
  display: block;
}

.group-card-product .marketSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title-category {
  font-size: 18px;
  color: #31adee;
  font-weight: 700;
}

.contact-form .form-control {
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-bottom-color: #30adef;
}

/* Responsive adjustments */
@media (max-width: 1500px) {
  .service-content-square {
    height: auto;
    padding: 2rem;
  }
}

@media (max-width: 991px) {
  .service-content-square {
    padding: 1.5rem;
  }

  .group-card-product .marketSwiper,
  .serviceSwiper {
    height: auto;
    aspect-ratio: 1 / 1 !important;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

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

.hero-section-text {
  padding: 3rem 0;
}

.detail-in-sectionPortfolio {
  font-size: 20px;
}

.card-service-chooseUs .section-title {
  font-size: 40px;
}


@media (max-width: 1024px) {
  .card-service-chooseUs .section-title {
    font-size: 30px;
    line-height: 1.2;
  }
}

.offer-list ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.offer-list ul li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.offer-list ul li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  background-image: url('/public/images/Product/Product-final/i-li.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}