/**
 * B2B & Articles content hub — layout overrides.
 * Filter/search UI uses shared .shop-* classes from style.css (Services marketplace).
 */

.wdi-content-hub-page #sidebar,
.wdi-content-hub-page .et_pb_column_1_3,
.wdi-content-hub-page #main-content .container::before {
  display: none !important;
}

.wdi-content-hub-page #left-area,
.wdi-content-hub-page #content-area,
.wdi-content-hub-page .et_pb_row {
  width: 100% !important;
  max-width: 100% !important;
}

.wdi-content-hub-page #main-content {
  padding-top: 50px !important;
  background-color: #fcfbf9 !important;
}

/* Hub grid lives inside .shop-main (marketplace proportions). */
.wdi-content-hub-page section.shop-body-l .shop-main .wdi-content-hub-main__content {
  width: 100%;
}

.wdi-content-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.wdi-content-hub-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.wdi-content-hub-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(10, 35, 66, 0.1);
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.06);
}

.wdi-content-hub-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wdi-content-hub-card__link:hover .wdi-content-hub-card__title {
  color: #c9a734;
}

.wdi-content-hub-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 35, 66, 0.06);
}

.wdi-content-hub-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wdi-content-hub-card__img--placeholder {
  display: block;
  min-height: 100%;
  background: linear-gradient(135deg, #0a2342, #1a3a5c);
}

.wdi-content-hub-card__body {
  padding: 16px 18px 20px;
}

.wdi-content-hub-card__meta {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: rgba(10, 35, 66, 0.65);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.wdi-content-hub-card__badge {
  font-weight: 600;
  color: #0a2342;
}

.wdi-content-hub-card__dept::before {
  content: '·';
  margin-right: 6px;
}

.wdi-content-hub-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #0a2342;
  transition: color 0.15s ease;
}

.wdi-content-hub-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(10, 35, 66, 0.75);
}

.wdi-content-hub-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px;
  text-align: center;
  color: #0a2342;
}

.wdi-content-hub-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  justify-content: center;
}

.wdi-content-hub-pagination__btn {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(10, 35, 66, 0.25);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #0a2342;
}

.wdi-content-hub-pagination__btn.is-active,
.wdi-content-hub-pagination__btn:hover {
  background: #0a2342;
  border-color: #0a2342;
  color: #fff;
}

/* —— Hub heroes: clear fixed top bar + main nav ——
   Content hub pages get body.wdi-custom-template for shared nav CSS, but they
   do not load wdi-custom-template.js (not in wdi_get_custom_templates()), so
   #et-main-area never gets measured padding-top. Hero padding is the clearance.
   Do not fold this into wdi-header-nav / product CSS — those are owned by the
   product-page nav thread.
   !important beats style.css `section.hero-shop-sec { padding: 100px 0; }`.
   Asset version must bump when this file changes (Cloudflare caches ?ver=). */
body.wdi-content-hub--b2b section.hero-shop-sec.wdi-b2b-hero,
body.wdi-content-hub--articles section.hero-shop-sec {
  padding-top: clamp(11rem, 18vh, 14rem) !important;
  padding-bottom: clamp(3.5rem, 8vh, 5.5rem) !important;
}

/* —— Business 2 Business landing —— */

.wdi-content-hub--b2b .wdi-b2b-hero .container-shop {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.wdi-content-hub--articles .wdi-b2b-hero .container-shop {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.wdi-content-hub--b2b .wdi-b2b-hero__eyebrow {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a734;
}

.wdi-content-hub--articles .wdi-b2b-hero__eyebrow {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a734;
}

.wdi-content-hub--b2b .wdi-b2b-hero h1.shop-hero-head-main {
  margin: 0;
  line-height: 1.15;
}

.wdi-content-hub--articles .wdi-b2b-hero h1.shop-hero-head-main {
  margin: 0;
  line-height: 1.15;
  text-align: center;
}

.wdi-content-hub--b2b .wdi-b2b-hero__lede {
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #fcfbf9;
}

.wdi-content-hub--articles .wdi-b2b-hero__lede {
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #fcfbf9;
}

.wdi-b2b-hero-search {
  max-width: 420px;
  margin: 28px auto 8px;
  text-align: left;
}

.wdi-b2b-hero-search__label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a734;
  text-align: center;
}

.wdi-b2b-hero-search__field {
  position: relative;
}

.wdi-b2b-hero-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(201, 167, 52, 0.45);
  background: rgba(10, 35, 66, 0.55);
  color: #fcfbf9;
  font-size: 0.95rem;
}

.wdi-b2b-hero-search__input::placeholder {
  color: rgba(252, 251, 249, 0.65);
}

.wdi-b2b-hero-search__input:focus {
  outline: 2px solid #c9a734;
  outline-offset: 2px;
  border-color: #c9a734;
}

.wdi-b2b-hero-search__overlay {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(10, 35, 66, 0.18);
}

.wdi-b2b-hero-search__overlay[hidden] {
  display: none !important;
}

.wdi-b2b-hero-search__status {
  margin: 0;
  padding: 14px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(10, 35, 66, 0.72);
  text-align: center;
}

.wdi-b2b-hero-search__option {
  display: block;
  width: 100%;
  padding: 12px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.wdi-b2b-hero-search__option:hover,
.wdi-b2b-hero-search__option:focus-visible,
.wdi-b2b-hero-search__option.is-active {
  background: rgba(10, 35, 66, 0.06);
  outline: none;
}

.wdi-b2b-hero-search__option-title {
  display: block;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0a2342;
}

.wdi-b2b-hero-search__option-meta {
  display: block;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(10, 35, 66, 0.65);
}

.wdi-b2b-landing__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 42px;
}

.wdi-b2b-pillars {
  padding: 56px 0 48px;
  background: #fcfbf9;
}

.wdi-b2b-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.wdi-b2b-section-head__title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.25;
  color: #0a2342;
}

.wdi-b2b-section-head__lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(10, 35, 66, 0.78);
}

.wdi-b2b-pillars__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wdi-b2b-pillar {
  position: relative;
  margin: 0;
  padding: 28px 24px 26px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(10, 35, 66, 0.1);
  box-shadow: 0 4px 18px rgba(10, 35, 66, 0.06);
}

.wdi-b2b-pillar__accent {
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c9a734, rgba(201, 167, 52, 0.35));
}

.wdi-b2b-pillar__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #0a2342;
}

.wdi-b2b-pillar__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(10, 35, 66, 0.75);
}

.wdi-b2b-subjects {
  padding: 52px 0 56px;
  background: #0a2342;
  position: relative;
  overflow: hidden;
}

.wdi-b2b-subjects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(201, 167, 52, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.wdi-b2b-subjects .wdi-b2b-landing__inner {
  position: relative;
  z-index: 1;
}

.wdi-b2b-section-head--light .wdi-b2b-section-head__title {
  color: #fcfbf9;
}

.wdi-b2b-section-head--light .wdi-b2b-section-head__lede {
  color: rgba(252, 251, 249, 0.82);
}

.wdi-b2b-subjects__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.wdi-b2b-subject {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a2342;
  background: #fcfbf9;
  border-radius: 8px;
  border: 1px solid rgba(201, 167, 52, 0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wdi-b2b-subject:hover {
  border-color: #c9a734;
  box-shadow: 0 2px 12px rgba(201, 167, 52, 0.25);
}

.wdi-b2b-explore {
  padding: 40px 0 48px;
  background: linear-gradient(180deg, #fcfbf9 0%, #f3f0ea 100%);
  border-bottom: 1px solid rgba(10, 35, 66, 0.08);
}

.wdi-b2b-explore__inner {
  text-align: center;
}

.wdi-b2b-explore__label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a734;
}

.wdi-b2b-explore__text {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(10, 35, 66, 0.78);
}

.wdi-b2b-explore__cta {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #0a2342;
  background: #fff;
  border: 2px solid #c9a734;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.wdi-b2b-explore__cta:hover {
  background: #0a2342;
  color: #fcfbf9;
  border-color: #0a2342;
}

@media (max-width: 980px) {
  .wdi-b2b-pillars__grid {
    grid-template-columns: 1fr;
  }

  .wdi-b2b-subjects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wdi-b2b-landing__inner {
    padding: 0 20px;
  }

  .wdi-content-hub--b2b .wdi-b2b-hero__lede {
    font-size: 1rem;
  }

  .wdi-b2b-subjects__grid {
    grid-template-columns: 1fr;
  }
}
