
/* Waldev Content Hub — Front styles (scoped) */
.wch, .wch-related{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--wch-text);
}

.wch{
  background: var(--wch-page-bg);
  padding: 24px 0;
}
.wch__wrap{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 14px;
}

.wch__head{
  display:flex;
  gap:14px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.wch__title{
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 0 0 6px;
}
.wch__subtitle{
  margin: 0;
  color: var(--wch-muted);
}

.wch__search{
  min-width: 240px;
  flex: 1 1 280px;
  max-width: 460px;
}
.wch-search{
  width: 100%;
  border: 1px solid var(--wch-border);
  border-radius: calc(var(--wch-radius) - 6px);
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  outline: none;
}
.wch-search:focus{
  border-color: rgba(31,111,235,.55);
  box-shadow: 0 0 0 4px rgba(31,111,235,.10);
}

.wch__filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 18px;
}
.wch-filter{
  border: 1px solid var(--wch-border);
  background: #fff;
  color: var(--wch-text);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.wch-filter:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,235,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.wch-filter.is-active{
  border-color: rgba(31,111,235,.60);
  background: linear-gradient(135deg, rgba(31,111,235,.10), rgba(31,111,235,.03));
}
.wch-count{
  background: rgba(31,111,235,.14);
  color: var(--wch-text);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.wch__grid,
.wch-related__grid{
  display:grid;
  grid-template-columns: repeat(var(--wch-cols, 3), minmax(0, 1fr));
  gap: 14px;
}

.wch-card{
  background: var(--wch-card-bg);
  border: 1px solid var(--wch-border);
  border-radius: var(--wch-radius);
  overflow:hidden;
  box-shadow: var(--wch-shadow);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  display:flex;
  flex-direction:column;
}
.wch-card:hover{
  transform: translateY(-2px);
  border-color: rgba(31,111,235,.35);
  box-shadow: 0 22px 60px rgba(0,0,0,.12);
}
.wch-card__thumb img{
  display:block;
  width:100%;
  height:auto;
}
.wch-card__body{
  padding: 14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex: 1;
}
.wch-card__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.wch-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.wch-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  text-decoration:none;
  color: var(--wch-text);
  border: 1px solid var(--wch-border);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,.7);
}
.wch-badge:hover{ border-color: rgba(31,111,235,.45); }

.wch-date{
  font-size: 12px;
  color: var(--wch-muted);
  white-space:nowrap;
}

.wch-card__title{
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}
.wch-card__title a{
  color: var(--wch-text);
  text-decoration:none;
}
.wch-card__title a:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(31,111,235,.55);
}

.wch-card__excerpt{
  margin: 0;
  color: var(--wch-muted);
  font-size: 14px;
  line-height: 1.45;
}
.wch-card__footer{
  margin-top: auto;
  display:flex;
  justify-content:flex-end;
}
.wch-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  font-weight: 650;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,111,235,.30);
  background: linear-gradient(135deg, rgba(31,111,235,.14), rgba(31,111,235,.06));
  color: var(--wch-text);
}
.wch-cta:hover{
  border-color: rgba(31,111,235,.55);
  box-shadow: 0 14px 30px rgba(31,111,235,.14);
}

.wch-empty{
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed var(--wch-border);
  border-radius: var(--wch-radius);
  color: var(--wch-muted);
}

.wch__pagination{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top: 18px;
}
.wch__page a, .wch__page span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--wch-border);
  text-decoration:none;
  color: var(--wch-text);
  background:#fff;
}
.wch__page span.current{
  border-color: rgba(31,111,235,.55);
  background: rgba(31,111,235,.10);
}

.wch-related{
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--wch-border);
}
.wch-related__title{
  margin: 0 0 12px;
  font-size: 20px;
}
.wch-card--compact .wch-card__body{ padding: 12px; }

/* Responsive */
@media (max-width: 980px){
  .wch__grid, .wch-related__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .wch__grid, .wch-related__grid{ grid-template-columns: 1fr; }
  .wch__head{ align-items:stretch; }
  .wch__search{ max-width: none; }
}


/* ===== Waldev Silo Hub (categories + title lists) ===== */
.wch-silo__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wch-cat{
  background: var(--wch-card-bg);
  border: 1px solid var(--wch-border);
  border-radius: var(--wch-radius);
  box-shadow: var(--wch-shadow);
  padding: 14px;
}

.wch-cat__head{
  margin-bottom: 10px;
}

.wch-cat__title{
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.wch-cat__title a{
  color: var(--wch-text);
  text-decoration:none;
  font-weight: 800;
  letter-spacing: -.01em;
}
.wch-cat__title a:hover{
  color: var(--wch-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(31,111,235,.45);
}
.wch-cat__desc{
  margin: 6px 0 0;
  color: var(--wch-muted);
  font-size: 13px;
  line-height: 1.45;
}

.wch-titles{
  list-style: none;
  margin: 0;
  padding: 0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.wch-titles__item{
  margin: 0;
  padding: 0;
}
.wch-titles__link{
  display:block;
  padding: 10px 12px;
  border-radius: calc(var(--wch-radius) - 8px);
  border: 1px solid rgba(15,23,42,0.10);
  background: linear-gradient(135deg, rgba(31,111,235,.06), rgba(31,111,235,.02));
  text-decoration:none;
  color: var(--wch-text);
  font-weight: 650;
  line-height: 1.25;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.wch-titles__link:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,235,.35);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

/* Responsive for silo grid */
@media (max-width: 980px){
  .wch-silo__grid{ grid-template-columns: 1fr; }
}


/* ===== Category Directory block ===== */
.wch-catdir{
  margin: 24px 0;
  padding: 18px;
  border-radius: calc(var(--wch-radius) + 6px);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--wch-shadow);
  position: relative;
  overflow: hidden;
}
.wch-catdir:before{
  content:"";
  position:absolute;
  inset:-40% -20% auto -20%;
  height: 160px;
  background: radial-gradient(circle at 20% 30%, rgba(31,111,235,.18), transparent 62%);
  pointer-events:none;
  filter: blur(2px);
}
.wch-catdir__head{ margin-bottom: 12px; position: relative; }
.wch-catdir__title{
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 950;
  letter-spacing: -.03em;
}
.wch-catdir__subtitle{
  margin: 0 0 12px;
  color: var(--wch-muted);
  line-height: 1.55;
}
.wch-catdir__search{
  max-width: 560px;
}
.wch-titles--dir{ margin-top: 12px; }
