

.bw-wrap,
.bw-wrap * { box-sizing: border-box; }

.bw-wrap {
  
  --bw-blue: var(--blue, var(--udi-blue, #53a7dc));
  --bw-blue-dark: color-mix(in srgb, var(--blue, var(--udi-blue, #53a7dc)) 84%, #000);
  --bw-blue-soft: #EAF3FB;
  --bw-orange: var(--orange, var(--udi-orange, #f9741c));
  --bw-ink: var(--basic, #25225e);
  --bw-border: #E7E9EE;
  min-height: 60vh;
  background: #FBFCFD;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--bw-ink);
  padding: 50px 24px 96px;
}
.bw-inner { max-width: 1180px; margin: 0 auto; }

.bw-wrap a { -webkit-tap-highlight-color: transparent; }
.bw-wrap ::selection { background: #D6E9F8; }


.bw-wrap .udi-breadcrumb { margin-bottom: 30px; }


.bw-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.bw-header__text { flex: 1; min-width: 280px; }
.bw-title {
  margin: 0; font-size: calc(46px * var(--a11y-fs, 1)); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.8px; color: var(--bw-ink); text-wrap: balance;
}
.bw-desc {
  margin: 18px 0 0; max-width: 680px; font-size: calc(18px * var(--a11y-fs, 1)); line-height: 1.62;
  font-weight: 400; color: var(--udi-soft, #5A5F73);
}


.bw-search {
  position: relative;
  flex: 0 0 auto; width: 268px; margin-top: 6px;
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--bw-border); border-radius: 9999px;
  transition: border-color .15s; color: var(--udi-muted, #9499A8);
}
.bw-search { border-color: var(--udi-muted, #8a8fa0); } /* WCAG 1.4.11: field boundary 3:1 */
.bw-search:focus-within { border-color: var(--bw-blue); outline: 2px solid var(--basic, #25225e); outline-offset: 2px; }
.bw-search__submit {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 33px; height: 33px; padding: 0;
  border: 0; border-radius: 9999px; background: transparent;
  color: inherit; cursor: pointer; transition: color .15s;
}
.bw-search__submit:hover,
.bw-search__submit:focus-visible { color: var(--bw-blue); }
.bw-search__submit svg { display: block; width: 17px; height: 17px; transition: opacity .12s; }
.bw-search input:placeholder-shown + .bw-search__submit { pointer-events: none; }
.bw-search__spinner {
  position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--bw-blue) 26%, transparent);
  border-top-color: var(--bw-blue);
  animation: bw-spin .65s linear infinite;
}
.bw-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: calc(14px * var(--a11y-fs, 1)); font-weight: 500; color: var(--bw-ink);
  padding: 11px 16px 11px 42px; border-radius: inherit;
}
.bw-search input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; margin-left: 8px;
  cursor: pointer; background-color: var(--udi-muted, #9499A8);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color .15s;
}
.bw-search input::-webkit-search-cancel-button:hover { background-color: var(--bw-blue); }
.bw-search input:-webkit-autofill,
.bw-search input:-webkit-autofill:hover,
.bw-search input:-webkit-autofill:focus {
  box-shadow: inset 0 0 0 1000px #fff;
  -webkit-text-fill-color: var(--bw-ink);
  caret-color: var(--bw-ink);
}
.bw-search input:autofill {
  box-shadow: inset 0 0 0 1000px #fff;
  -webkit-text-fill-color: var(--bw-ink);
  caret-color: var(--bw-ink);
}


.bw-pills {
  display: flex; align-items: center; gap: 8px;
  margin: 30px 0 0; padding-bottom: 38px;
  border-bottom: 1px solid #ECEEF2;
  flex-wrap: wrap;
}
.bw-pills--fit { flex-wrap: nowrap; overflow: hidden; }
@media (min-width: 641px) {
  .bw-pills--clamp { --bw-pills-one-row: 74.5px; max-height: var(--bw-pills-one-row); row-gap: var(--bw-pills-one-row); overflow: hidden; }
}
.bw-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 7px 15px; border-radius: 9999px;
  background: #fff; border: 1px solid var(--bw-border);
  color: var(--udi-soft, #56556E); font-size: calc(13px * var(--a11y-fs, 1)); font-weight: 500;
  text-decoration: none; white-space: nowrap; transition: .15s;
}
.bw-pill:hover { border-color: var(--bw-blue); color: var(--bw-blue); background: #F4FAFE; }
.bw-pill--active,
.bw-pill--active:hover {
  background: var(--bw-orange); border-color: var(--bw-orange);
  color: #fff; font-weight: 600;
}
.bw-pill-toggle {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 9999px;
  background: var(--bw-blue-soft); border: 1px solid transparent;
  color: var(--bw-blue); font-family: inherit; font-size: calc(13px * var(--a11y-fs, 1)); line-height: inherit;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.bw-pill-toggle:hover { background: #DDEDFA; }

.bw-pill-toggle[hidden] { display: none; }


.bw-featured {
  position: relative;
  display: grid; grid-template-columns: 1.08fr 1fr;
  background: #fff; border: 1px solid var(--bw-border); border-radius: 24px;
  overflow: hidden; margin: 44px 0 72px;
  box-shadow: 0 24px 60px -40px rgba(37,34,94,0.4);
  transition: box-shadow .18s, transform .18s;
}
.bw-featured:hover { box-shadow: 0 30px 66px -38px rgba(37,34,94,0.5); transform: translateY(-3px); }
.bw-featured__media { position: relative; min-height: 430px; display: block; }
.bw-featured__body {
  padding: 46px 48px; display: flex; flex-direction: column; justify-content: center;
}

.bw-featured__title { margin: 16px 0 0; font-size: calc(30px * var(--a11y-fs, 1)) !important; line-height: 1.22; font-weight: 800; letter-spacing: -0.5px; text-wrap: balance; }
.bw-featured__title a { color: var(--bw-ink); text-decoration: none; }

.bw-featured__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.bw-featured:hover .bw-featured__title a { color: var(--bw-blue); }
.bw-featured__excerpt { margin: 16px 0 0; font-size: calc(16px * var(--a11y-fs, 1)); line-height: 1.7; color: var(--udi-soft, #52516B); }
.bw-featured__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-top: 28px;
}


.bw-badge {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: 9999px; background: rgba(255,255,255,0.92);
  color: var(--bw-blue); font-size: calc(12px * var(--a11y-fs, 1)); font-weight: 600;
  letter-spacing: 0.7px; text-transform: uppercase; backdrop-filter: blur(4px);
}
.bw-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bw-img--ph { background: linear-gradient(135deg,#EAF3FB,#F4FAFE); }
.bw-date { display: block; font-size: calc(14px * var(--a11y-fs, 1)); font-weight: 500; color: var(--udi-muted, #9499A8); }


.bw-author { display: flex; align-items: center; gap: 12px; }
.bw-author__name { font-size: calc(15px * var(--a11y-fs, 1)); font-weight: 600; color: var(--bw-ink); line-height: 1.2; text-decoration: none; }
a.bw-author__name { position: relative; z-index: 2; }
a.bw-author__name:hover { color: var(--bw-blue); }
.bw-avatar {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 9999px; overflow: hidden;
  background: var(--bw-blue-soft); display: flex; align-items: center;
  justify-content: center; color: var(--bw-blue); font-size: calc(16px * var(--a11y-fs, 1)); font-weight: 700;
}
.bw-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bw-avatar--sm { width: 34px; height: 34px; flex: 0 0 34px; font-size: calc(13px * var(--a11y-fs, 1)); }


.bw-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}

.bw-section-head--author { margin-top: 44px; }

.bw-section-head--search { margin-top: 44px; }

.bw-pills ~ .bw-section-head { margin-top: 44px; }
.bw-section-title { margin: 0; font-size: calc(23px * var(--a11y-fs, 1)) !important; font-weight: 700; letter-spacing: -0.3px; color: var(--bw-ink); }


.bw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bw-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--bw-border); border-radius: 20px; overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.bw-card:hover { box-shadow: 0 24px 50px -34px rgba(37,34,94,0.42); transform: translateY(-3px); }
.bw-card__media { position: relative; aspect-ratio: 612 / 430; }
.bw-card__media .bw-img { object-fit: contain; }
.bw-card__media .bw-badge { top: 16px; left: 16px; padding: 6px 13px; font-size: calc(11px * var(--a11y-fs, 1)); }
.bw-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bw-card__title { margin: 0; font-size: calc(18px * var(--a11y-fs, 1)); line-height: 1.34; font-weight: 700; letter-spacing: -0.2px; color: var(--bw-ink); text-wrap: balance; }
.bw-card__title a { color: inherit; text-decoration: none; }

.bw-card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.bw-card:hover .bw-card__title a { color: var(--bw-blue); }
.bw-card__excerpt { margin: 11px 0 0; font-size: calc(15.5px * var(--a11y-fs, 1)); line-height: 1.62; color: var(--udi-soft, #6E6D85); flex: 1; }
.bw-card__meta {
  display: flex; align-items: center; gap: 11px; margin-top: 22px;
  padding-top: 18px; border-top: 1px solid #EEF0F4;
}
.bw-card__meta-text { min-width: 0; }
.bw-card__author { display: block; font-size: calc(13.5px * var(--a11y-fs, 1)); font-weight: 600; color: var(--bw-ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

a.bw-badge { position: absolute; z-index: 2; text-decoration: none; transition: color .15s, background .15s; }
a.bw-badge:hover { background: var(--bw-blue); color: #fff; }
a.bw-card__author { position: relative; z-index: 2; text-decoration: none; }
a.bw-card__author:hover { color: var(--bw-blue); }
.bw-card__date { display: block; font-size: calc(12.5px * var(--a11y-fs, 1)); font-weight: 500; color: var(--udi-muted, #9499A8); }


.bw-empty { font-size: calc(16px * var(--a11y-fs, 1)); color: var(--udi-soft, #6E6D85); }


.bw-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 54px;
}
.bw-page, .bw-dots {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; min-width: 44px; padding: 0 10px; border-radius: 9999px;
  font-size: calc(14px * var(--a11y-fs, 1)); font-weight: 600; text-decoration: none;
}
.bw-page { background: #fff; border: 1px solid var(--bw-border); color: var(--udi-soft, #56556E); transition: .15s; }
.bw-page:hover { border-color: var(--bw-blue); color: var(--bw-blue); }
.bw-page--active, .bw-page--active:hover {
  background: var(--bw-orange); border-color: var(--bw-orange); color: #fff; font-weight: 700;
}
.bw-dots { min-width: 30px; color: var(--udi-muted, #9499A8); cursor: default; }
.bw-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9999px; background: #fff;
  border: 1px solid var(--bw-border); color: var(--bw-ink); text-decoration: none;
}
.bw-arrow svg { width: 18px; height: 18px; }
.bw-arrow:hover { border-color: var(--bw-blue); color: var(--bw-blue); }
.bw-arrow--off { color: #C9CDD6; pointer-events: none; }


.bw-loader {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  overflow: hidden; z-index: 9999; pointer-events: none;
  background: color-mix(in srgb, var(--blue, var(--udi-blue, #53a7dc)) 16%, transparent);
}
.bw-loader__bar {
  display: block; width: 28%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue, var(--udi-blue, #53a7dc)));
  animation: bw-loader-slide 1.05s linear infinite;
}
.bw-pagination { transition: opacity .2s; }
.bw-grid[hidden], .bw-featured[hidden] { display: none; }

.bw-skel { pointer-events: none; }
.bw-skel::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 50%, rgba(255,255,255,0) 100%);
  animation: bw-skel-sweep 1.35s linear infinite;
}
.bw-skel__block { position: absolute; inset: 0; display: block; background: #EDEFF3; }
.bw-skel__avatar { background: #EDEFF3; }
.bw-skel__line { display: block; height: 12px; border-radius: 6px; background: #EDEFF3; margin-top: 14px; }
.bw-skel__line:first-child { margin-top: 0; }
.bw-skel__line--title { height: 18px; margin-top: 12px; }
.bw-skel__line--hero { height: 26px; margin-top: 14px; }
.bw-skel__line--gap { margin-top: 24px; }
.bw-skel__line--w25 { width: 25%; }
.bw-skel__line--w70 { width: 70%; }
.bw-skel__line--w85 { width: 85%; }
.bw-skel__line--w120 { width: 120px; margin-top: 0; }

@keyframes bw-loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(460%); }
}
@keyframes bw-skel-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes bw-spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}


@media (max-width: 980px) {
  .bw-wrap { padding: 56px 20px 64px; }
  .bw-title { font-size: calc(38px * var(--a11y-fs, 1)); }
  .bw-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .bw-featured { grid-template-columns: 1fr; }
  .bw-featured__media { min-height: 280px; }
  .bw-featured__body { padding: 32px 28px; }
}


@media (max-width: 640px) {
  .bw-wrap { padding: 40px 18px 56px; }
  .bw-wrap .udi-breadcrumb { font-size: calc(12px * var(--a11y-fs, 1)); margin-bottom: 18px; }
  .bw-wrap .udi-breadcrumb ol { gap: 6px; }

  .bw-header { display: block; }
  .bw-title { font-size: calc(32px * var(--a11y-fs, 1)); letter-spacing: -0.6px; }
  .bw-desc { margin-top: 14px; font-size: calc(15.5px * var(--a11y-fs, 1)); }

  .bw-search { width: auto; margin-top: 22px; }
  .bw-search input { font-size: calc(15px * var(--a11y-fs, 1)); padding: 13px 16px 13px 42px; }

  
  .bw-pills,
  .bw-pills--fit {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    position: sticky; top: 0; z-index: 20;
    margin: 20px -18px 0; padding: 14px 18px;
    border-bottom: 1px solid #ECEEF2;
    background: rgba(251,252,253,0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .bw-pills::-webkit-scrollbar { display: none; }
  .bw-pill { padding: 8px 16px; }
  .bw-pill-toggle { display: none !important; }

  .bw-featured { grid-template-columns: 1fr; border-radius: 22px; margin: 28px 0 44px; }
  .bw-featured__media { min-height: 0; height: 230px; }
  .bw-featured__body { padding: 26px 24px 28px; justify-content: flex-start; }
  .bw-featured__title { margin-top: 12px; font-size: calc(23px * var(--a11y-fs, 1)) !important; }
  .bw-featured__excerpt { font-size: calc(15px * var(--a11y-fs, 1)); }
  .bw-featured__foot { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 22px; }

  .bw-section-title { font-size: calc(20px * var(--a11y-fs, 1)) !important; }
  .bw-grid { grid-template-columns: 1fr; gap: 22px; }

  
  .bw-pagination {
    margin-top: 40px; flex-wrap: nowrap; justify-content: safe center; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .bw-pagination::-webkit-scrollbar { display: none; }
  .bw-page, .bw-dots, .bw-arrow { flex: 0 0 auto; height: 40px; }
  .bw-page, .bw-arrow { min-width: 40px; }
  .bw-arrow { width: 40px; }
  .bw-page { padding: 0 8px; font-size: calc(13px * var(--a11y-fs, 1)); }
  .bw-dots { min-width: 22px; }
}
