/* Blog / جزوه listing — mockup match */
.bn-page.hn-home {
  --gutter: 26px;
  --edge: 16px;
  --max: 1180px;
  --paper: #fffdf7;
  --rule: #c5d9ee;
  --ink: #1e1830;
  --muted: #6b6578;
  --purple: #6f63c7;
  --orange: #e07a32;
  --yellow: #fff59a;
  --red: #e45b6a;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(100% - var(--gutter)), var(--red) calc(100% - var(--gutter)), var(--red) calc(100% - var(--gutter) + 2px), transparent calc(100% - var(--gutter) + 2px)),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px);
  min-height: 100vh;
  color: var(--ink);
  overflow-x: hidden;
}
.bn-page .hn-holes {
  position: fixed; right: 8px; top: 88px; bottom: 40px; width: 20px;
  display: flex; flex-direction: column; justify-content: space-around;
  z-index: 2; pointer-events: none;
}
.bn-page .hn-holes i {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #efe6d4 0 35%, #c4b286 70%);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.25), 0 0 0 2px #d7c39a;
}
.bn-wrap {
  width: min(var(--max), calc(100% - 20px));
  margin: 0 auto;
  padding: 18px var(--edge) 36px;
  position: relative; z-index: 1;
}

/* top title */
.bn-top {
  position: relative;
  text-align: center;
  margin: 0 0 1.5rem;
  padding: .4rem 0 1rem;
}
.bn-top h1 {
  margin: 0 0 .4rem;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.bn-hl {
  background: linear-gradient(transparent 48%, #ffe56a 48%, #ffe56a 92%, transparent 92%);
  padding: 0 .1em;
}
.bn-top-star { width: 28px; height: 28px; animation: bn-float 3.5s ease-in-out infinite; }
.bn-lead {
  margin: 0 auto .9rem;
  max-width: 34rem;
  font-family: Gandom, Tahoma, sans-serif;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}
.bn-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
}
.bn-chips a {
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .84rem; font-weight: 700;
  color: var(--ink) !important; text-decoration: none !important;
  padding: .32rem .85rem;
  border: 1.5px solid #ddd4f0;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
}
.bn-chips a.is-on, .bn-chips a:hover {
  background: var(--purple); color: #fff !important; border-color: var(--purple);
}
.bn-hero-note {
  position: absolute; top: 0; left: 4%;
  width: 120px; padding: .7rem .55rem .55rem;
  background: var(--yellow);
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .78rem; font-weight: 700; line-height: 1.45;
  color: #5a4a20; text-align: center;
  transform: rotate(-6deg);
  box-shadow: 2px 5px 12px rgba(80,50,10,.12);
}
.bn-hero-note img { display: block; margin: 0 auto .25rem; }
.bn-hero-mascot {
  position: absolute; top: -6px; right: 2%;
  width: 104px; transform: rotate(8deg);
  filter: drop-shadow(0 8px 16px rgba(60, 48, 120, .16));
}
@keyframes bn-float {
  0%,100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-5px) rotate(6deg); }
}

/* layout */
.bn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 1.15rem 1.35rem;
  align-items: start;
  margin-bottom: 1.6rem;
}
.bn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem;
}

/* cards */
.bn-card {
  background-color: rgba(255,253,247,.92);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(197,217,238,.45) 27px 28px);
  border: 1.5px solid #e6e0f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(70,55,100,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bn-card:hover {
  transform: translateY(-3px) rotate(-.3deg);
  box-shadow: 0 10px 22px rgba(70,55,100,.1);
}
.bn-card-link {
  display: flex; flex-direction: column;
  padding: .85rem .9rem .8rem;
  text-decoration: none !important;
  color: inherit !important;
  min-height: 100%;
  position: relative;
}
.bn-card-tag {
  align-self: flex-start;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .72rem; font-weight: 800;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #efeaff; color: #5b4db8;
  margin-bottom: .55rem;
}
.bn-card-tag.t2 { background: #eaf9f2; color: #1f7a52; }
.bn-card-tag.t3 { background: #fff0e4; color: #c45e1a; }
.bn-card-tag.t4 { background: #eaf4ff; color: #2d6da8; }
.bn-card-tag.t5 { background: #ffe8ec; color: #c23d55; }
.bn-card-art {
  height: 118px;
  display: grid; place-items: center;
  margin: 0 0 .55rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,229,106,.28), transparent 42%),
    radial-gradient(circle at 78% 60%, rgba(205,190,255,.35), transparent 40%),
    rgba(255,255,255,.55);
  border: 1.5px dashed #e4dcf5;
  overflow: hidden;
}
.bn-card-ico { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.08)); }
.bn-card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-card h2 {
  margin: 0 0 .35rem;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: 1.05rem; font-weight: 800; line-height: 1.55;
}
.bn-card-ex {
  margin: 0 0 .55rem;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .86rem; color: var(--muted); line-height: 1.75;
  flex: 1;
}
.bn-card-meta {
  display: flex; flex-wrap: wrap; gap: .55rem .85rem;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .76rem; color: #8a8498;
  margin-bottom: .55rem;
}
.bn-card-meta span { display: inline-flex; align-items: center; gap: .28rem; }
.bn-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1.5px dashed #ebe4f5;
  padding-top: .55rem;
  margin-top: auto;
}
.bn-read {
  font-family: Gandom, Tahoma, sans-serif;
  font-weight: 800; font-size: .9rem; color: var(--purple);
}
.bn-bookmark { opacity: .55; }

/* sidebar */
.bn-side { position: sticky; top: 84px; display: grid; gap: .85rem; }
.bn-widget {
  position: relative;
  background: rgba(255,254,250,.95);
  border: 2px dashed #c6b8f2;
  border-radius: 16px;
  padding: 1rem .9rem .9rem;
}
.bn-widget-pop { border-style: solid; border-color: #b9a8ef; }
.bn-clip {
  position: absolute; top: -14px; right: 14px;
  width: 28px; height: 28px;
  transform: rotate(18deg);
}
.bn-heart-ico {
  position: absolute; top: -10px; right: 12px;
  width: 26px; height: 26px;
  background: #efeaff; border-radius: 50%; padding: 4px;
  box-sizing: border-box;
}
.bn-widget h3 {
  margin: 0 0 .7rem;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .98rem; font-weight: 800;
  display: flex; align-items: center; gap: .35rem;
}
.bn-search {
  display: flex; gap: .35rem;
  background: #fff;
  border: 1.5px solid #e2dcf0;
  border-radius: 999px;
  padding: .2rem .2rem .2rem .75rem;
}
.bn-search input {
  flex: 1; min-width: 0; border: 0; outline: 0;
  font-family: Gandom, Tahoma, sans-serif; font-size: .88rem;
  background: transparent; color: var(--ink);
}
.bn-search button {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--purple); display: grid; place-items: center; cursor: pointer;
}
.bn-search button img { filter: brightness(0) invert(1); }

.bn-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.bn-cats a {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: .55rem; align-items: center;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .88rem; font-weight: 700;
  color: var(--ink) !important; text-decoration: none !important;
  padding: .2rem .1rem;
}
.bn-cats .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #8b74e4;
}
.bn-cats .c1 { background: #e07a32; }
.bn-cats .c2 { background: #3f9a62; }
.bn-cats .c3 { background: #4d8ed6; }
.bn-cats .c4 { background: #e45b6a; }
.bn-cats b {
  min-width: 1.45rem; height: 1.45rem;
  border-radius: 999px; background: #efeaff; color: var(--purple);
  font-size: .72rem; display: grid; place-items: center;
}

.bn-pop { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: none; }
.bn-pop a {
  display: grid;
  grid-template-columns: 22px 36px 1fr;
  gap: .5rem; align-items: center;
  text-decoration: none !important; color: inherit !important;
}
.bn-pop-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: #dceeff; color: #2d6da8;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
}
.bn-pop-thumb {
  width: 36px; height: 36px; border-radius: 8px; overflow: hidden;
  background: #f3efe8; border: 1px solid #ebe4d8;
  display: grid; place-items: center;
}
.bn-pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bn-pop-thumb img[src$=".svg"] { width: 20px; height: 20px; object-fit: contain; }
.bn-pop-title {
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .82rem; font-weight: 700; line-height: 1.45;
}

.bn-side-sticky {
  position: relative;
  background: var(--yellow);
  padding: 1rem .9rem;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .92rem; font-weight: 700; line-height: 1.65;
  color: #5a4a20;
  transform: rotate(-2.5deg);
  box-shadow: 3px 7px 14px rgba(80,50,10,.12);
  margin: .35rem .4rem 0;
}
.bn-side-arrow {
  position: absolute; top: -22px; left: -8px;
  width: 28px; transform: rotate(-40deg); opacity: .85;
}
.bn-side-sticky p { margin: 0; }

.bn-pager {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-top: 1.15rem;
}
.bn-pager a, .bn-pager span {
  font-family: Gandom, Tahoma, sans-serif; font-weight: 800; font-size: .88rem;
  min-height: 2.15rem; padding: 0 .85rem;
  display: inline-flex; align-items: center;
  border: 1.5px solid #c6b8f2; border-radius: 999px;
  color: var(--purple) !important; text-decoration: none !important;
  background: rgba(255,255,255,.85);
}
.bn-pager .is-on { background: var(--purple); color: #fff !important; border-color: var(--purple); }
.bn-cats a.is-active {
  background: rgba(255, 241, 168, .55);
  border-radius: 8px;
}
.bn-pager-gap {
  border: 0 !important;
  background: transparent !important;
  min-width: auto !important;
  color: var(--muted) !important;
  padding: 0 .2rem !important;
}
.bn-empty a {
  display: inline-block;
  margin-top: .6rem;
  font-weight: 800;
  color: var(--purple) !important;
}

/* newsletter */
.bn-news {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  margin: .4rem 0 1.4rem;
  padding: 1.2rem 1.35rem;
  background: rgba(255,255,255,.82);
  border: 2.5px dashed #b9a8ef;
  border-radius: 22px;
}
.bn-news-plane {
  width: 92px; height: auto;
  transform: rotate(-12deg);
  filter: drop-shadow(0 8px 16px rgba(60, 48, 120, .16));
}
.bn-news-mascot {
  width: 112px; height: auto;
  transform: rotate(4deg);
  filter: drop-shadow(0 8px 16px rgba(60, 48, 120, .16));
}
.bn-news-copy h2 {
  margin: 0 0 .25rem;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: 1.25rem; font-weight: 800; color: var(--purple);
}
.bn-news-copy p {
  margin: 0 0 .75rem;
  font-family: Gandom, Tahoma, sans-serif;
  color: var(--muted); font-size: .92rem; line-height: 1.7;
}
.bn-news-form {
  display: flex; flex-wrap: wrap; gap: .45rem;
  max-width: 420px;
}
.bn-news-form input[type=email] {
  flex: 1 1 180px;
  min-height: 2.6rem;
  border: 1.5px solid #ddd4f0;
  border-radius: 999px;
  padding: 0 1rem;
  font-family: Gandom, Tahoma, sans-serif;
  font-size: .92rem;
  background: #fff;
}
.bn-news-form button {
  min-height: 2.6rem;
  padding: 0 1.25rem;
  border: 0; border-radius: 999px;
  background: var(--purple); color: #fff;
  font-family: Gandom, Tahoma, sans-serif;
  font-weight: 800; font-size: .95rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(80,60,140,.16);
}

@media (max-width: 980px) {
  .bn-page.hn-home { --gutter: 14px; }
  .bn-page .hn-holes { display: none; }
  .bn-layout { grid-template-columns: 1fr; }
  .bn-side { position: static; grid-template-columns: 1fr 1fr; display: grid; }
  .bn-side-sticky { grid-column: 1 / -1; max-width: 280px; }
  .bn-hero-note, .bn-hero-mascot { display: none; }
  .bn-news { grid-template-columns: 1fr; text-align: center; }
  .bn-news-form { margin: 0 auto; }
  .bn-news-plane, .bn-news-mascot { margin: 0 auto; }
}
@media (max-width: 700px) {
  .bn-wrap { width: 100%; padding: 10px 12px 28px; }
  .bn-grid { grid-template-columns: 1fr; }
  .bn-side { grid-template-columns: 1fr; }
  .bn-news-plane { width: 64px; }
  .bn-news-mascot { width: 80px; }
}
