.card-product-chooseUs {
  background-color: #333333;
  /* aspect-ratio: 1 / 1; */
  width: 100%;
  height: 100%;
  /* max-width: 500px; */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

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

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

@media (min-width: 992px) {
  .row.g-4>div:nth-child(3n + 1) .card-product-chooseUs {
    margin-left: 0;
    margin-right: auto;
  }

  .row.g-4>div:nth-child(3n + 2) .card-product-chooseUs {
    margin: 0 auto;
  }

  .row.g-4>div:nth-child(3n + 3) .card-product-chooseUs {
    margin-left: auto;
    margin-right: 0;
  }
}

.card-product-chooseUs a {
  display: flex;
  flex-direction: column;
  justify-content: start;
  height: 100%;
  width: 100%;
}

.card-product-chooseUs .section-title {
  font-size: 36px;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
}

.card-product-chooseUs .section-head-title {
  font-size: 1.8rem;
  color: #31adee;
  margin-bottom: 0.2rem;
}

/* .card-product-chooseUs:hover {
  transform: translateY(-10px);
} */

.card-product-chooseUs a {
  height: 100%;
  width: 100%;
}

.group-card-product {
  background-color: #f4f3f1;
}

/* Market & Product Groups - Square Layout */
.marketSwiper {
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  position: relative;
}

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

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

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

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

/* ตกแต่งจุด Pagination ให้เด่นบนรูป */
.marketSwiper .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);
}

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

.market-content-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f4f3f1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Responsive adjustments */
@media (min-width: 992px) and (max-width: 1499px) {
  .group-card-product {
    display: flex;
    align-items: stretch;
  }

  .group-card-product>div {
    display: flex;
  }

  .marketSwiper,
  .market-content-square {
    flex: 1;
    height: 100% !important;
    aspect-ratio: auto !important;
    display: flex;
    flex-direction: column;
  }

  .market-content-square {
    padding: 2rem;
    height: auto !important;
    /* Allow growth */
    min-height: 100%;
  }
}

@media (max-width: 991px) {
  .marketSwiper {
    aspect-ratio: 1 / 1 !important;
    height: auto;
  }

  .market-content-square {
    padding: 1.5rem;
  }
}

@media (min-width: 992px) and (max-width: 1250px) {
  .card-product-chooseUs {
    aspect-ratio: 1 / 1 !important;
    padding: 1rem !important;
  }

  .card-product-chooseUs .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .text-chooseUs {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin-top: 0.5rem !important;
  }

  .card-product-chooseUs .section-head-title {
    font-size: 1.2rem !important;
  }
}

/* 4K and Ultra-wide screen optimization */
@media (min-width: 2500px) {
  .card-product-chooseUs {
    max-width: 800px;
    padding: 4rem;
  }

  .card-product-chooseUs .section-title {
    font-size: 4.5rem !important;
  }

  .card-product-chooseUs .section-head-title {
    font-size: 3rem !important;
  }

  .text-chooseUs {
    font-size: 24px !important;
    line-height: 1.4 !important;
  }
}

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

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