
.explore_category {
  /* width: 100%; */
  padding: 0 10px;
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap:60px;
  place-items: center;
}

.explore_category .card {
  width: 100%;
  max-height: 320px;
  height: 100%;
  border-radius: 16px !important;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--primary-color-opacity);
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.explore_category .card:hover {
  box-shadow: 0 5px 16px 5px rgba(0, 0, 0, 0.2);
}

.explore_category .card:hover img {
  transform: scale(1.1);
}

.explore_category .card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.explore_category .sec_bottom {
  padding: 16px;
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  height: 80px;
  width: 100%;
  gap: 12px;
  
}

.explore_category .text {
  margin-left: 3px;
}

.explore_category .title {
  text-align: start;
  font-size: 18px;
  font-weight: 600;
    margin: 0 0 6px 0;
}

.explore_category .desc {
  text-align: start;
  font-size: 12px;
  font-weight: 400;
  margin-top: 10px;
}



.explore_category .btn a {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.explore_category .btn:hover {
  transform: scale(1.05);
}


.explore_category {
  box-sizing: border-box;
}

.explore_category .card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

/* image container */
.explore_category  .image {
  width: 100%;
  display: block;
  overflow: hidden;
  height: 100%;
  position: relative;
}
.explore_category .overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:#610C9F;
  opacity: 0.3;
}

/* real image: enforce maximum (largest allowed) */
.explore_category .card .card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* placeholder when no image: use primary color variable fallback */
.explore_category .card .image.placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 542 / 277; /* keep same aspect */
  background-color: var(--primary-color, #9d0091);
}

.explore_category .card .text {
  flex: 1 1 auto;
}
.explore_category .card .desc {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* button */
.explore_category .card .btn {
  background: transparent;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 16px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  
}
.explore_category.is-single {
  grid-template-columns: 1fr;
  justify-items: center;
}
.explore_category.is-single .card {
  width: auto;
  max-width: 542px;
}
@media (min-width: 992px) {
  .explore_category {
    grid-template-columns: repeat(2, 1fr);
  }
  .explore_category .title {
    font-size: 24px;
    font-weight: 600;
  }
  .explore_category .desc {
    font-size: 18px;
    font-weight: 400;
    margin-top: 10px;
  }
  .explore_category .btn {
    padding: 10px 20px;
    background-color: transparent;
    height: 48px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
  }
  .explore_category .btn a {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
  }
  .explore_category .sec_bottom {
    height: 35%;
    background-color: #3D077066;
  }
}

/* responsive: ensure images scale on small screens */
@media (max-width: 768px) {
  .explore_category .card .card-image,
  .explore_category .card .image.placeholder {
    max-width: 100%;
    max-height: none;
    aspect-ratio: auto;
    height: 180px;
  }
}
