

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

.bw-wrap {
  
  --bw-blue: var(--blue, #53a7dc);
  --bw-blue-dark: color-mix(in srgb, var(--blue, #53a7dc) 84%, #000);
  --bw-blue-soft: #EAF3FB;
  --bw-orange: var(--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-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 30px;
}
.bw-breadcrumb a { color: var(--bw-blue); text-decoration: none; }
.bw-breadcrumb a:hover { text-decoration: underline; }
.bw-breadcrumb > *:not(:first-child)::before { content: "\203A"; margin-right: 8px; color: #C2C7D2; }
.bw-breadcrumb__current { color: #9499A8; }


.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: 46px; 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: 18px; line-height: 1.62;
  font-weight: 400; color: #5A5F73;
}


.bw-search {
  flex: 0 0 auto; width: 268px; margin-top: 6px;
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--bw-border); border-radius: 9999px;
  padding: 0 16px; transition: border-color .15s; color: #9499A8;
}
.bw-search:focus-within { border-color: var(--bw-blue); }
.bw-search svg { width: 17px; height: 17px; flex: 0 0 17px; }
.bw-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--bw-ink);
  padding: 11px 0;
}


.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; }
.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: #56556E; font-size: 13px; 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: 13px;
  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: 30px !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: 16px; line-height: 1.7; color: #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: 12px; 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: 14px; font-weight: 500; color: #9499A8; }


.bw-author { display: flex; align-items: center; gap: 12px; }
.bw-author__name { font-size: 15px; 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: 16px; 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: 13px; }


.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: 23px !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: 11px; }
.bw-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bw-card__title { margin: 0; font-size: 18px; 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: 15.5px; line-height: 1.62; color: #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: 13.5px; 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: 12.5px; font-weight: 500; color: #9499A8; }


.bw-empty { font-size: 16px; color: #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: 14px; font-weight: 600; text-decoration: none;
}
.bw-page { background: #fff; border: 1px solid var(--bw-border); color: #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: #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; }


@media (max-width: 980px) {
  .bw-wrap { padding: 56px 20px 64px; }
  .bw-title { font-size: 38px; }
  .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-breadcrumb { gap: 6px; font-size: 12px; margin-bottom: 18px; }

  .bw-header { display: block; }
  .bw-title { font-size: 32px; letter-spacing: -0.6px; }
  .bw-desc { margin-top: 14px; font-size: 15.5px; }

  .bw-search { width: auto; margin-top: 22px; padding: 0 16px; }
  .bw-search input { font-size: 15px; padding: 13px 0; }

  
  .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: 23px !important; }
  .bw-featured__excerpt { font-size: 15px; }
  .bw-featured__foot { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 22px; }

  .bw-section-title { font-size: 20px !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: 13px; }
  .bw-dots { min-width: 22px; }
}
