/* ==========================================================================
   Select Category / License Tariff Page — Redesign
   Scoped to .select-category-section so nothing else on the site is touched.
   Brand colors reused from style.css: accent #a3385d, dark text #292929
   ========================================================================== */

.select-category-section {
  position: relative;
  padding: 160px 0 90px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(196, 62, 135, 0.22),
      transparent 45%
    ),
    radial-gradient(
      circle at 15% 70%,
      rgba(32, 98, 196, 0.18),
      transparent 40%
    ),
    linear-gradient(135deg, #09111f 0%, #111b33 45%, #18163d 100%);
}

/* faint repeating dot texture for extra depth, sits under the gradients */
.select-category-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(163, 56, 93, 0.08) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.select-category-section > .container,
.select-category-section .category-box {
  position: relative;
  z-index: 1;
}

/* ---------- Page heading ---------- */

.select-category-section .category-head {
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 40px;
  text-align: center;
}

.select-category-section .category-head h1 {
  font-family: "Merriweather", serif;
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  margin-bottom: 0;
}

.select-category-section .category-head h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: #a3385d;
  border-radius: 2px;
}

/* ---------- Section blocks (per category group) ---------- */

.select-category-section .category-box {
  position: relative;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 20px
  );
  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 45px 30px 35px;
  margin: 0 auto 45px;
  max-width: 1300px;
  width: calc(100% - 30px);
}

.category-box::before {
  content: "";

  position: absolute;

  inset: -2px;

  background: radial-gradient(
    circle,
    rgba(255, 80, 170, 0.25),
    transparent 65%
  );

  filter: blur(80px);

  z-index: -1;
}
.category-box::after {
  content: "";

  position: absolute;

  width: 500px;

  height: 500px;

  left: 50%;

  top: 35%;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(193, 65, 138, 0.18),
    transparent 70%
  );

  pointer-events: none;
}

.select-category-section .category-box-head {
  margin-bottom: 35px;
}

.select-category-section .category-box-head h2 {
  font-family: "Merriweather", serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  background-color: #a3385d;
  display: inline-block;
  padding: 10px 28px;
  border-radius: 30px;
  letter-spacing: 0.3px;
  margin: 0 auto;
  max-width: 90%;
}

.select-category-section .category-box-head {
  display: flex;
  justify-content: center;
}

.select-category-section .category-box-body {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ---------- Individual category cards ---------- */

.select-category-section .category-box-body .row {
  justify-content: center;
  row-gap: 20px;
}

.select-category-section .category-box-body .row > [class*="col-"] {
  display: flex;
  justify-content: center;
}

.select-category-section .cat-img-box {
  max-width: 310px;
  width: 100%;
  margin: 0 auto 15px;
  text-align: center;
}

.select-category-section .categoy-div {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 0;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(41, 41, 41, 0.12);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.select-category-section .cat-img-box a:hover .categoy-div {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(163, 56, 93, 0.25);
}

.select-category-section .categoy-div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.select-category-section .cat-img-box a:hover .categoy-div img {
  transform: scale(1.06);
}

/* subtle overlay on hover so the label chip stays legible */
.select-category-section .categoy-div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(41, 41, 41, 0) 55%,
    rgba(41, 41, 41, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.select-category-section .cat-img-box a:hover .categoy-div::before {
  opacity: 1;
}

.select-category-section .labelimg {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  margin: 0;
  width: 32px;
  height: 32px;
  z-index: 2;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.select-category-section .labelimg img {
  width: 18px;
  height: 18px;
}

.select-category-section .cat-img-box h4 {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.select-category-section .cat-img-box a:hover h4 {
  color: #a3385d;
}

/* ---------- Responsive scaling ---------- */

@media screen and (max-width: 991px) {
  .select-category-section {
    padding-top: 120px;
  }
  .select-category-section .category-head h1 {
    font-size: 34px;
  }
  .select-category-section .category-box {
    padding: 35px 0 25px;
    border-radius: 10px;
  }
  .select-category-section .category-box-head h2 {
    font-size: 19px;
  }
  .select-category-section .cat-img-box {
    max-width: 280px;
  }
}

@media screen and (max-width: 767px) {
  .select-category-section {
    padding-top: 110px;
  }
  .select-category-section .category-head h1 {
    font-size: 28px;
  }
  .select-category-section .category-box {
    margin-bottom: 25px;
    padding: 28px 0 18px;
  }
  .select-category-section .category-box-head {
    margin-bottom: 25px;
  }
  .select-category-section .category-box-head h2 {
    font-size: 17px;
    padding: 8px 18px;
  }
  .select-category-section .cat-img-box {
    max-width: 260px;
    margin-bottom: 10px;
  }
  .select-category-section .cat-img-box h4 {
    font-size: 14px;
    min-height: 36px;
  }
}

@media screen and (max-width: 575px) {
  .select-category-section {
    padding-top: 100px;
  }
  .select-category-section .category-head h1 {
    font-size: 24px;
  }
  .select-category-section .cat-img-box {
    max-width: 220px;
  }
  .select-category-section .category-box-head h2 {
    font-size: 15px;
    max-width: 95%;
  }
}

.categoy-div {
  transition: 0.35s;
}

.categoy-div:hover {
  transform: translateY(-8px);

  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.45);

  border: 1px solid rgba(255, 255, 255, 0.08);
}
