/* ==========================================================
   BLOG STYLES – loaded on blog.php and blog-post.php
   ========================================================== */

/* ---------- Hero (shared by list + article) ---------- */
.bl-hero,
.bp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #c9d4ee;
  background: var(--navy-900);
}
.bl-hero {
  padding: 125px 0 100px;
  text-align: center;
}
.bl-hero .crumbs {
  margin-bottom: 16px;
}
.bl-hero--small {
  padding: 160px 0 110px;
}
.bl-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 380px at 15% 15%, rgba(30, 107, 255, 0.35), transparent 65%),
    radial-gradient(560px 360px at 90% 80%, rgba(46, 230, 242, 0.15), transparent 65%);
}
.bl-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}
.bl-hero__inner {
  max-width: 820px;
}
.bl-hero h1,
.bp-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.bl-hero h1 {
  font-size: clamp(30px, 3.8vw, 46px); /* fits on one line on desktop */
}
.bl-hero__inner > p {
  max-width: 600px;
  margin: 12px auto 22px;
  font-size: 16px;
  line-height: 1.6;
}

/* search */
.bl-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}
.bl-search > i {
  position: absolute;
  left: 22px;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
}
.bl-search input {
  width: 100%;
  padding: 15px 60px 15px 54px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.bl-search input:focus {
  border-color: var(--cyan);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.3),
    0 0 0 5px rgba(46, 230, 242, 0.2);
}
.bl-search kbd {
  position: absolute;
  right: 20px;
  padding: 2px 9px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  pointer-events: none;
}
.bl-search input:focus ~ kbd,
.bl-search input:not(:placeholder-shown) ~ kbd {
  display: none;
}
.bl-hero__topics {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
}
.bl-topic {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.bl-topic:hover {
  color: var(--navy-900);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- Shared bits: meta, category pill, author ---------- */
.bl-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}
.bl-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bl-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-600) !important;
  background: var(--blue-50);
}
.bl-cat--float {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--navy-800) !important;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(6, 21, 56, 0.15);
}
.bl-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.bl-author__logo {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 7px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
}
.bl-author__logo img {
  width: 100%;
  height: auto;
}
.bl-author strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--ink);
}
.bl-author small {
  font-size: 12px;
  color: var(--muted);
}
.bl-author--light strong {
  color: #fff;
}
.bl-author--light small {
  color: #a9b6d6;
}

/* ---------- Featured article ---------- */
.bl-featured-wrap {
  position: relative;
  z-index: 2;
  margin-top: -50px;
}
.bl-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease;
}
.bl-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 70px rgba(13, 38, 96, 0.2);
}
.bl-featured[hidden] {
  display: none;
}
.bl-featured__img {
  position: relative;
  margin: 0;
  min-height: 360px;
  overflow: hidden;
}
.bl-featured__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bl-featured:hover .bl-featured__img img {
  transform: scale(1.06);
}
.bl-featured__badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--cyan);
}
.bl-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}
.bl-featured h2 {
  margin: 16px 0 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.bl-featured:hover h2 {
  color: var(--blue-600);
}
.bl-featured__body > p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}
.bl-featured__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.bl-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--navy-800);
  transition: background 0.3s;
}
.bl-read i {
  transition: transform 0.3s;
}
.bl-featured:hover .bl-read {
  background: var(--blue-600);
}
.bl-featured:hover .bl-read i {
  transform: translateX(4px);
}

/* ---------- Filter bar ---------- */
.bl-list {
  padding-top: 70px;
}
.bl-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 28px;
}
.bl-tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.bl-tabs::-webkit-scrollbar {
  display: none;
}
.bl-tabs__pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--navy-800);
  box-shadow: 0 8px 18px rgba(10, 31, 79, 0.25);
  transition:
    transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1),
    width 0.45s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.bl-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  transition: color 0.3s;
}
.bl-tab:hover {
  color: var(--blue-600);
}
.bl-tab.is-active {
  color: #fff;
}
.bl-tab__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  color: var(--blue-600);
  background: rgba(21, 84, 232, 0.1);
  transition:
    background 0.3s,
    color 0.3s;
}
.bl-tab.is-active .bl-tab__count {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.bl-result {
  font-size: 14px;
  color: var(--muted);
}
.bl-result strong {
  color: var(--ink);
}

/* ---------- Article cards ---------- */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}
.bl-card:hover {
  transform: translateY(-8px);
  border-color: #c9d9ff;
  box-shadow: 0 26px 50px rgba(13, 38, 96, 0.14);
}
.bl-card.is-hidden {
  display: none;
}
.bl-card.is-entering {
  animation: blIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--i, 0ms);
}
@keyframes blIn {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.bl-card__img {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.bl-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bl-card:hover .bl-card__img img {
  transform: scale(1.07);
}
.bl-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.bl-card h3 {
  margin: 12px 0 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  transition: color 0.3s;
}
.bl-card:hover h3 {
  color: var(--blue-600);
}
.bl-card__body > p {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.bl-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.bl-card__more span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--blue-600);
  border: 1px solid var(--line);
  transition:
    background 0.35s,
    color 0.35s,
    border-color 0.35s,
    transform 0.35s;
}
.bl-card:hover .bl-card__more span {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
  transform: translateX(4px) rotate(-45deg);
}

/* empty state + buttons */
.bl-empty {
  max-width: 520px;
  margin: 10px auto 0;
  padding: 40px 24px;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: var(--bg-soft);
}
.bl-empty[hidden] {
  display: none;
}
.bl-empty__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--blue-600);
  background: var(--blue-50);
}
.bl-empty h3 {
  font-size: 21px;
  font-weight: 800;
}
.bl-empty p {
  margin: 8px 0 20px;
  color: var(--muted);
}
.bl-empty__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.bl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--navy-800);
  border: 1.5px solid var(--navy-800);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.bl-btn:hover {
  transform: translateY(-2px);
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.bl-btn--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
.bl-btn--ghost:hover {
  color: #fff;
}

/* ==========================================================
   ARTICLE PAGE (blog-post.php)
   ========================================================== */
.bp-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 300;
  height: 4px;
  background: transparent;
  pointer-events: none;
}
.bp-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 10px rgba(46, 230, 242, 0.6);
}
.bp-hero {
  padding: 150px 0 180px;
}
.bp-hero__inner {
  max-width: 900px;
}
.bp-hero__inner > p {
  max-width: 720px;
  margin: 18px 0 26px;
  font-size: 18px;
  line-height: 1.65;
}
.bp-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 14px;
}
.bp-hero__meta > span:not(.bl-author) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bp-hero__meta i {
  color: var(--cyan);
}

.bp-cover {
  position: relative;
  z-index: 2;
  margin: -130px 0 50px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}
.bp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-layout {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* share column */
.bp-share {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bp-share > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  rotate: 180deg;
  margin-bottom: 6px;
}
.bp-share__btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.bp-share__btn:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}
/* WhatsApp / LinkedIn / Facebook: brand colour fill + tooltip from .social-fx in common.css */
.bp-copy:hover,
.bp-copy.is-copied {
  color: #fff;
  background: var(--navy-800);
}
.bp-copy.is-copied {
  background: var(--green);
}
.bp-copy::after {
  content: "Link copied!";
  position: absolute;
  left: calc(100% + 10px);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  opacity: 0;
  translate: -6px 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    translate 0.25s;
}
.bp-copy.is-copied::after {
  opacity: 1;
  translate: 0 0;
}

/* article typography */
.bp-content {
  font-size: 17.5px;
  line-height: 1.85;
  color: #2c3856;
}
.bp-content > p:first-child {
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
}
.bp-content p {
  margin-bottom: 22px;
}
.bp-content h2 {
  position: relative;
  margin: 46px 0 16px;
  padding-left: 18px;
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 40px);
}
.bp-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-600), var(--cyan));
}
.bp-content ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}
.bp-content li {
  position: relative;
  padding-left: 32px;
}
.bp-content li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #fff;
  background: var(--blue-600);
}
.bp-content strong {
  color: var(--ink);
}
.bp-content code {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--navy-800);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.bp-content blockquote {
  position: relative;
  margin: 34px 0;
  padding: 28px 30px 28px 76px;
  border-radius: 22px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(46, 230, 242, 0.18), transparent 70%),
    linear-gradient(140deg, #0f2766, var(--navy-900));
}
.bp-content blockquote::before {
  content: "\f10d";
  position: absolute;
  left: 26px;
  top: 28px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 28px;
  color: var(--cyan);
}

.bp-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.bp-tags .bl-cat {
  transition:
    background 0.3s,
    color 0.3s;
}
.bp-tags .bl-cat:hover {
  color: #fff !important;
  background: var(--blue-600);
}

.bp-authorbox {
  display: flex;
  gap: 20px;
  padding: 26px;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.bp-authorbox__logo {
  flex: none;
  width: 70px;
  height: 70px;
  padding: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
}
.bp-authorbox__logo img {
  width: 100%;
  height: auto;
}
.bp-authorbox strong {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--ink);
}
.bp-authorbox p {
  margin: 6px 0 10px;
  font-size: 14.5px;
  color: var(--text);
}
.bp-authorbox__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-600);
}
.bp-authorbox__link i {
  transition: transform 0.3s;
}
.bp-authorbox__link:hover i {
  transform: translateX(4px);
}

.bp-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}
.bp-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}
.bp-nav__link:hover {
  transform: translateY(-3px);
  border-color: #c9d9ff;
  box-shadow: var(--shadow);
}
.bp-nav__link--next {
  text-align: right;
}
.bp-nav__link small {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.bp-nav__link strong {
  font-family: var(--font-head);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
}

/* sidebar */
.bp-side {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: grid;
  gap: 18px;
}
.bp-toc {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.bp-toc > strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
}
.bp-toc > strong i {
  color: var(--blue-600);
}
.bp-toc ol {
  position: relative;
  display: grid;
  gap: 2px;
  counter-reset: toc;
  border-left: 2px solid var(--line);
}
.bp-toc li {
  counter-increment: toc;
}
.bp-toc a {
  position: relative;
  display: block;
  margin-left: -2px;
  padding: 8px 10px 8px 16px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.bp-toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-weight: 700;
  color: #b4bfd6;
  transition: color 0.3s;
}
.bp-toc a:hover {
  color: var(--ink);
}
.bp-toc a.is-active {
  color: var(--blue-600);
  font-weight: 600;
  border-left-color: var(--blue-600);
  background: linear-gradient(90deg, var(--blue-50), transparent);
}
.bp-toc a.is-active::before {
  color: var(--blue-600);
}

.bp-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  border-radius: 22px;
  color: #a9b6d6;
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(46, 230, 242, 0.18), transparent 70%),
    linear-gradient(150deg, #0f2766, var(--navy-900));
}
.bp-cta__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--navy-900);
  background: var(--cyan);
}
.bp-cta strong {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}
.bp-cta p {
  margin: 8px 0 18px;
  font-size: 13.5px;
}
.bp-cta__btn,
.bp-cta__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.3s,
    color 0.3s;
}
.bp-cta__btn {
  color: var(--navy-900);
  background: #fff;
}
.bp-cta__btn:hover {
  background: var(--cyan);
}
.bp-cta__wa {
  margin-top: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.bp-cta__wa:hover {
  background: #1fb855;
  border-color: #1fb855;
}

.bp-related {
  padding: 70px 0 60px;
}

/* ---------- Blog: responsive ---------- */
@media (max-width: 1100px) {
  .bp-layout {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .bp-side {
    position: static;
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1024px) {
  .bl-featured {
    grid-template-columns: 1fr;
  }
  .bl-featured__img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .bl-hero {
    padding: 105px 0 85px;
  }
  .bl-hero__inner > p {
    font-size: 15.5px;
  }
  .bl-search input {
    padding: 15px 18px 15px 48px;
    font-size: 15px;
  }
  .bl-search > i {
    left: 18px;
  }
  .bl-featured-wrap {
    margin-top: -45px;
  }
  .bl-featured {
    border-radius: 22px;
  }
  .bl-featured__body {
    padding: 24px 20px;
  }
  .bl-read {
    width: 100%;
    justify-content: center;
  }
  .bl-list {
    padding-top: 50px;
  }
  .bl-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bp-hero {
    padding: 110px 0 140px;
  }
  .bp-hero__inner > p {
    font-size: 16px;
  }
  .bp-cover {
    margin: -100px 0 30px;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
  }
  .bp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bp-share {
    position: static;
    flex-direction: row;
    justify-content: center;
    order: 2;
  }
  .bp-share > span {
    writing-mode: horizontal-tb;
    rotate: none;
    margin: 0 6px 0 0;
  }
  .bp-copy::after {
    left: 50%;
    top: auto;
    bottom: calc(100% + 8px);
    translate: -50% 4px;
  }
  .bp-copy.is-copied::after {
    translate: -50% 0;
  }
  .bp-article {
    order: 1;
  }
  .bp-side {
    order: 3;
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .bp-content {
    font-size: 16.5px;
  }
  .bp-content > p:first-child {
    font-size: 18px;
  }
  .bp-content blockquote {
    padding: 70px 22px 24px;
    font-size: 18px;
  }
  .bp-content blockquote::before {
    left: 22px;
    top: 22px;
  }
  .bp-authorbox {
    flex-direction: column;
  }
  .bp-nav {
    grid-template-columns: 1fr;
  }
  .bp-nav__link--next {
    text-align: left;
  }
}

/* ==========================================================
   ARTICLE EXTRAS – author photo, tag chips, preview bar, comments
   ========================================================== */
.bl-author__logo--photo,
.bp-authorbox__logo--photo {
  padding: 0;
  overflow: hidden;
}
.bl-author__logo--photo img,
.bp-authorbox__logo--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bl-cat--tag {
  font-weight: 600;
  color: var(--muted) !important;
  background: #fff !important;
  border: 1px solid var(--line);
}
.bp-preview {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  text-align: center;
  color: #7a4a00;
  background: #fff4d6;
  border-bottom: 1px solid #f6d58a;
}
.bp-preview i {
  color: #b45309;
}

.bp-comments {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.bp-comments h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}
.bp-comments h2 i {
  color: var(--blue-600);
}
.bp-comments h2 span {
  min-width: 28px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
  color: var(--blue-600);
  background: var(--blue-50);
}
.bp-comments__list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.bp-comments__list > li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.bp-comments__avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: var(--grad-primary);
}
.bp-comments__list > li > div {
  min-width: 0;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.bp-comments__who {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 2px;
}
.bp-comments__who b {
  font-family: var(--font-head);
  color: var(--ink);
}
.bp-comments__who time {
  font-size: 12.5px;
  color: var(--muted);
}
.bp-comments__empty {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}
.bp-comments__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
}
.bp-comments__note i {
  margin-top: 4px;
}
.bp-comments__note--ok {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf0cf;
}
.bp-comments__note--err {
  color: #9f1d22;
  background: #fef1f1;
  border: 1px solid #f9cfd0;
}
.bp-cform {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.bp-cform h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}
.bp-cform label {
  display: grid;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.bp-cform label em {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.bp-cform input,
.bp-cform textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font: inherit;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  outline: none;
  resize: vertical;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.bp-cform input:focus,
.bp-cform textarea:focus {
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.1);
}
.bp-cform label.is-invalid input,
.bp-cform label.is-invalid textarea {
  border-color: #f3a5a8;
}
.bp-cform label small {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #c4282d;
}
.bp-cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bp-cform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.bp-cform__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bp-cform__foot p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .bp-cform {
    padding: 20px 16px;
  }
  .bp-cform__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .bp-cform__foot .bl-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================
   PAGINATION – 6 articles per page (blog.php?page=2)
   ========================================================== */
.bl-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  margin: 44px auto 0;
  padding: 8px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(13, 38, 96, 0.08);
}
.bl-pager[hidden] {
  display: none;
}
.bl-pager__nums {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bl-pager__num,
.bl-pager__gap {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}
.bl-pager__num {
  color: var(--text);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.bl-pager__num:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}
.bl-pager__num.is-active {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 10px 22px rgba(21, 84, 232, 0.35);
  transform: translateY(-1px);
}
.bl-pager__gap {
  min-width: 24px;
  color: #a3aec7;
}
.bl-pager__nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.bl-pager__nav i {
  font-size: 13px;
  transition: transform 0.25s;
}
.bl-pager__nav:hover {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.bl-pager__nav[rel="prev"]:hover i {
  transform: translateX(-3px);
}
.bl-pager__nav[rel="next"]:hover i {
  transform: translateX(3px);
}
.bl-pager__nav.is-off {
  pointer-events: none;
  opacity: 0.4;
}
.bl-pager__num:focus-visible,
.bl-pager__nav:focus-visible {
  outline: 3px solid rgba(30, 107, 255, 0.4);
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .bl-pager {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    margin-top: 32px;
    padding: 6px;
  }
  .bl-pager__nav {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .bl-pager__nav span {
    display: none;
  }
  .bl-pager__num,
  .bl-pager__gap {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }
}
