/**
 * Home - Categories Section
 */

/* Section wrapper */
.home-categories {
  padding: 60px 0 80px;
  background-color: #ffffff;
}

.home-categories__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Title part */
.home-categories__header {
  text-align: center;
  margin-bottom: 48px;
}

/* Kicker (EXPLORE) with lines */
.home-categories__kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f5a623;
}

.home-categories__kicker-line {
  display: inline-block;
  width: 45px;
  height: 2px;
  background-color: #f5a623;
}

.home-categories__kicker-text {
  white-space: nowrap;
}

/* Main title */
.home-categories__title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 12px;
  color: #152238;
}

/* Subtitle / description */
.home-categories__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #7b8190;
}

/* Grid layout */
.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

/* Card link wrapper */
.home-categories__item {
  text-decoration: none;
  display: block;
  height: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Single card */
.home-categories__card {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 18px;
  padding: 18px 16px 16px;
  text-align: center;
  transition: all 0.25s ease;
  border: 1px solid #e9edf3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.home-categories__item:hover .home-categories__card,
.home-categories__item:focus .home-categories__card,
.home-categories__item:focus-visible .home-categories__card {
  border-color: #f5a623;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  transform: translateY(-4px);
  background: #ffffff;
}

/* Icon area */
.home-categories__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 190px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  overflow: hidden;
}

.home-categories__icon {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Placeholder jokhon kono image nai */
.home-categories__icon--placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-color: #d5d8e3;
}

/* Category name */
.home-categories__name {
  font-size: 16px;
  font-weight: 700;
  color: #152238;
  text-align: center;
  line-height: 1.4;
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  display: block;
}

/* View All button */
.home-categories__button-wrapper {
  text-align: center;
}

.home-categories__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 999px;
  background-color: #000000;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-categories__button:hover {
  background-color: #151515;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.home-categories__button-label {
  white-space: nowrap;
}

.home-categories__button-icon {
  font-size: 14px;
  transform: translateY(1px);
}

/* -------------------------
   RESPONSIVE
   ------------------------- */

/* Large tablet / small desktop */
@media (max-width: 1100px) {
  .home-categories__grid {
    gap: 18px;
  }

  .home-categories__icon-wrapper {
    min-height: 170px;
  }

  .home-categories__name {
    font-size: 15px;
    min-height: 42px;
  }
}

/* Tablet: still 4 columns */
@media (max-width: 900px) {
  .home-categories {
    padding: 56px 0 72px;
  }

  .home-categories__title {
    font-size: 34px;
  }

  .home-categories__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .home-categories__card {
    padding: 16px 14px 14px;
    border-radius: 16px;
  }

  .home-categories__icon-wrapper {
    min-height: 145px;
    padding: 12px;
    border-radius: 12px;
  }

  .home-categories__name {
    font-size: 14px;
    min-height: 40px;
  }
}

/* Mobile: exactly 2 cards per row */
@media (max-width: 767px) {
  .home-categories {
    padding: 48px 0 60px;
  }

  .home-categories__inner {
    padding: 0 16px;
  }

  .home-categories__header {
    margin-bottom: 34px;
  }

  .home-categories__kicker {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 10px;
  }

  .home-categories__kicker-line {
    width: 28px;
  }

  .home-categories__title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .home-categories__subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .home-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
    margin-bottom: 36px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .home-categories__item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-categories__card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 12px 14px;
    border-radius: 16px;
  }

  .home-categories__icon-wrapper {
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .home-categories__icon {
    width: 100%;
    height: 100%;
  }

  .home-categories__name {
    font-size: 14px;
    line-height: 1.35;
    min-height: 38px;
    padding: 0;
  }

  .home-categories__button {
    padding: 14px 28px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .home-categories__inner {
    padding: 0 14px;
  }

  .home-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .home-categories__card {
    padding: 12px 10px 12px;
    border-radius: 14px;
  }

  .home-categories__icon-wrapper {
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
  }

  .home-categories__name {
    font-size: 13px;
    min-height: 36px;
  }
}