/* BCF-WEB-008B: Categories Page V1 staging presentation. */

.bcf-web008b-active .bcf-categories-page,
.bcf-web008b-active .bcf-categories-page * {
  box-sizing: border-box;
}

.bcf-web008b-active .bcf-categories-page {
  --bcf-008b-red: var(--bcf-r2-red, #d5232f);
  --bcf-008b-red-dark: var(--bcf-r2-red-dark, #b71824);
  --bcf-008b-ink: var(--bcf-r2-ink, #171a1f);
  --bcf-008b-muted: var(--bcf-r2-muted, #5f6670);
  --bcf-008b-line: #e6e1de;
  --bcf-008b-warm: var(--bcf-r2-warm, #fbf8f5);
  --bcf-008b-pale: var(--bcf-r2-pale, #fff3f2);
  background: #fff;
  color: var(--bcf-008b-ink);
  overflow: clip;
}

.bcf-web008b-active .bcf-categories__inner {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: 24px;
  width: 100%;
}

.bcf-web008b-active .bcf-categories__intro {
  background: #fff;
  border-bottom: 1px solid #f0ebe7;
  isolation: isolate;
  min-height: 348px;
  padding: 0;
  position: relative;
}

.bcf-web008b-active .bcf-categories__hero-layout {
  align-items: center;
  display: flex;
  min-height: 348px;
  padding-block: 36px;
  position: static;
}

.bcf-web008b-active .bcf-categories__intro::before {
  background: linear-gradient(90deg, #fff 0%, #fff 28%, rgba(255, 255, 255, 0.98) 36%, rgba(255, 255, 255, 0.82) 46%, rgba(255, 255, 255, 0) 63%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.bcf-web008b-active .bcf-categories__hero-copy {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.bcf-web008b-active .bcf-categories__eyebrow {
  color: var(--bcf-008b-red-dark);
  font-size: var(--bcf-font-size-meta);
  font-weight: var(--bcf-weight-bold);
  letter-spacing: 0.13em;
  line-height: 1.3;
  margin: 0 0 12px;
}

.bcf-web008b-active .bcf-categories__title {
  color: var(--bcf-008b-ink);
  font-size: var(--bcf-font-size-h1);
  font-weight: var(--bcf-weight-bold);
  line-height: var(--bcf-line-h1);
  margin: 0;
  max-width: 760px;
}

.bcf-web008b-active .bcf-categories__lead {
  color: var(--bcf-008b-muted);
  font-size: var(--bcf-font-size-body);
  line-height: var(--bcf-line-body);
  margin: 14px 0 0;
  max-width: 650px;
}

.bcf-web008b-active .bcf-categories__photo {
  height: 100%;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.bcf-web008b-active .bcf-categories__photo img {
  display: block;
  height: 100%;
  margin-left: 23%;
  object-fit: cover;
  object-position: center 0%;
  width: 77%;
}

.bcf-web008b-active .bcf-categories__content {
  background: #fff;
  padding-block: 48px 64px;
}

.bcf-web008b-active .bcf-categories__grid,
.bcf-web008b-active .bcf-categories__grid .geodir-categories-container,
.bcf-web008b-active .bcf-categories__grid .gd-categories-widget,
.bcf-web008b-active .bcf-categories__grid .gd-cptcat-row {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.bcf-web008b-active .bcf-categories__grid .gd-cptcat-row > .row {
  display: grid !important;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 !important;
  width: 100%;
}

.bcf-web008b-active .bcf-categories__grid .gd-cptcat-ul,
.bcf-web008b-active .bcf-categories__grid [class*="col-"] {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: auto !important;
}

.bcf-web008b-active .bcf-categories__grid .card {
  background: #fff !important;
  border: 1px solid var(--bcf-008b-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(25, 29, 34, 0.055) !important;
  height: 100%;
  min-height: 98px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bcf-web008b-active .bcf-categories__grid .card:hover,
.bcf-web008b-active .bcf-categories__grid .card:focus-within {
  border-color: rgba(213, 35, 47, 0.38) !important;
  box-shadow: 0 8px 20px rgba(25, 29, 34, 0.09) !important;
  transform: translateY(-1px);
}

.bcf-web008b-active .bcf-categories__grid .card-body {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  display: flex;
  min-height: 98px;
  padding: 18px 42px 18px 16px !important;
  position: relative;
  text-align: left !important;
  width: 100%;
}

.bcf-web008b-active .bcf-categories__grid .card-body::after {
  border-right: 2px solid var(--bcf-008b-red);
  border-top: 2px solid var(--bcf-008b-red);
  content: "";
  height: 8px;
  pointer-events: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
}

.bcf-web008b-active .bcf-categories__grid .gd-cptcat-cat-right {
  max-width: 100%;
  overflow: visible;
  text-align: left;
  text-overflow: clip;
  text-transform: none !important;
  white-space: normal;
  width: 100%;
}

.bcf-web008b-active .bcf-categories__grid .gd-cptcat-cat-right > a {
  align-items: center;
  color: var(--bcf-008b-ink) !important;
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 13px;
  grid-template-columns: 50px minmax(0, 1fr);
  line-height: 1.3;
  min-height: 50px;
  text-align: left;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: normal;
  width: 100%;
}

.bcf-web008b-active .bcf-categories__grid .gd-cptcat-cat-left {
  align-items: center;
  background: var(--bcf-008b-pale) !important;
  border: 0 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  height: 50px;
  justify-content: center;
  margin: 0 !important;
  overflow: hidden;
  width: 50px;
}

.bcf-web008b-active .bcf-categories__grid .gd-cptcat-icon i {
  color: var(--bcf-008b-red) !important;
  font-size: 24px !important;
  line-height: 1;
  margin: 0 !important;
}

.bcf-web008b-active .bcf-categories__help {
  align-items: center;
  background: var(--bcf-008b-pale);
  border: 1px solid rgba(213, 35, 47, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 44px;
  padding: 28px 30px;
}

.bcf-web008b-active .bcf-categories__help h2 {
  color: var(--bcf-008b-ink);
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.bcf-web008b-active .bcf-categories__help p {
  color: var(--bcf-008b-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 700px;
}

.bcf-web008b-active .bcf-categories__help-action,
.bcf-web008b-active .bcf-categories__help-action .wp-block-button {
  margin: 0;
}

.bcf-web008b-active .bcf-categories__help-action .wp-block-button__link {
  align-items: center;
  background: var(--bcf-008b-red);
  border: 1px solid var(--bcf-008b-red);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  text-decoration: none;
  white-space: nowrap;
}

.bcf-web008b-active .bcf-categories__help-action .wp-block-button__link:hover,
.bcf-web008b-active .bcf-categories__help-action .wp-block-button__link:focus-visible {
  background: var(--bcf-008b-red-dark);
  border-color: var(--bcf-008b-red-dark);
  color: #fff;
}

@media (max-width: 1199.98px) {
  .bcf-web008b-active .bcf-categories__grid .gd-cptcat-row > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .bcf-web008b-active .bcf-categories__inner {
    padding-inline: 20px;
  }

  .bcf-web008b-active .bcf-categories__intro {
    min-height: 0;
    padding-block: 42px 36px;
  }

  .bcf-web008b-active .bcf-categories__hero-layout {
    display: block;
    min-height: 0;
    padding-block: 0;
  }

  .bcf-web008b-active .bcf-categories__photo {
    height: 240px;
    inset: auto;
    margin-top: 28px;
    min-height: 0;
    position: relative;
    width: 100%;
    z-index: 0;
  }

  .bcf-web008b-active .bcf-categories__photo img {
    margin-left: 0;
    width: 100%;
  }

  .bcf-web008b-active .bcf-categories__intro::before {
    background: linear-gradient(180deg, #fff 0%, #fff 48%, rgba(255, 255, 255, 0.82) 66%, rgba(255, 255, 255, 0) 92%);
  }

  .bcf-web008b-active .bcf-categories__title {
    font-size: clamp(36px, 10vw, 46px);
  }

  .bcf-web008b-active .bcf-categories__lead {
    font-size: 16px;
    margin-top: 14px;
  }

  .bcf-web008b-active .bcf-categories__content {
    padding-block: 34px 48px;
  }

  .bcf-web008b-active .bcf-categories__grid .gd-cptcat-row > .row {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bcf-web008b-active .bcf-categories__grid .card,
  .bcf-web008b-active .bcf-categories__grid .card-body {
    min-height: 142px;
  }

  .bcf-web008b-active .bcf-categories__grid .card-body {
    justify-content: center;
    padding: 15px 28px 15px 12px !important;
    text-align: center !important;
  }

  .bcf-web008b-active .bcf-categories__grid .card-body::after {
    right: 16px;
  }

  .bcf-web008b-active .bcf-categories__grid .gd-cptcat-cat-right > a {
    font-size: 13px;
    gap: 9px;
    grid-template-columns: 1fr;
    hyphens: none;
    justify-items: center;
    overflow-wrap: normal;
    text-align: center;
    word-break: normal;
  }

  .bcf-web008b-active .bcf-categories__grid .gd-cptcat-cat-left {
    height: 44px;
    width: 44px;
  }

  .bcf-web008b-active .bcf-categories__grid .gd-cptcat-icon i {
    font-size: 21px !important;
  }

  .bcf-web008b-active .bcf-categories__help {
    align-items: start;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: 32px;
    padding: 24px 22px;
  }

  .bcf-web008b-active .bcf-categories__help-action .wp-block-button,
  .bcf-web008b-active .bcf-categories__help-action .wp-block-button__link {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .bcf-web008b-active .bcf-categories__inner {
    padding-inline: 16px;
  }

  .bcf-web008b-active .bcf-categories__title {
    font-size: 35px;
  }

  .bcf-web008b-active .bcf-categories__grid .gd-cptcat-row > .row {
    grid-template-columns: 1fr;
  }

  .bcf-web008b-active .bcf-categories__grid .card,
  .bcf-web008b-active .bcf-categories__grid .card-body {
    min-height: 88px;
  }

  .bcf-web008b-active .bcf-categories__grid .card-body {
    justify-content: flex-start;
    padding: 14px 34px 14px 14px !important;
    text-align: left !important;
  }

  .bcf-web008b-active .bcf-categories__grid .gd-cptcat-cat-right > a {
    font-size: 14px;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: initial;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcf-web008b-active .bcf-categories__grid .card {
    transition: none;
  }
}
