/* NexusSpira — blog pages (home, list, detail) */

/* ===== Page shell ===== */
main.ns-main.blog-page {
  padding-top: 0;
  min-height: 0;
  background: #F2F6FF;
}

.blog-page .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.blog-page .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-page .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ===== Shared cards (aligned with facts editorial cards) ===== */
.blog-card {
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, .06);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .04);
  transition: all .3s cubic-bezier(.22, .68, 0, 1.2);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue);
  transition: width .25s ease;
  z-index: 2;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(26, 111, 191, .14);
  border-color: rgba(26, 111, 191, .15);
}

.blog-card:hover::before {
  width: 6px;
}

.blog-card:hover .blog-card__title a {
  color: var(--blue);
}

.blog-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  margin-left: 4px;
  flex-shrink: 0;
}

.blog-card__img-wrap img,
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.blog-card:hover .blog-card__img-wrap img,
.blog-card:hover .blog-card__img {
  transform: scale(1.05);
}

.blog-card__top-bar,
.blog-card__cat-bar {
  display: none;
}

.blog-card__cat-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(15, 31, 92, .85);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3);
}

.blog-card__body {
  padding: 22px 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__cat {
  display: none;
}

.blog-cat-icon,
.topic-tag .blog-cat-icon {
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  margin-right: 2px;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.blog-card__title a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}

.blog-card__excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.blog-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.blog-card__meta-item {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card__meta-item svg {
  width: 12px;
  height: 12px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

.blog-card__views {
  display: none;
}

.blog-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 111, 191, .09);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s;
  border: 1px solid rgba(26, 111, 191, .18);
  flex-shrink: 0;
}

.blog-card:hover .blog-card__arrow {
  background: var(--blue);
  color: #fff;
}

.blog-card.hidden-card {
  display: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.blog-grid__empty,
.blog-grid__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #5B6680;
  font-size: 14px;
}

/* ===== Blog home ===== */
.blog-page--home .blog-hero {
  padding: 86px 5% 44px;
  background: linear-gradient(160deg, #0B1845 0%, #0F2460 55%, #0E3A7A 100%);
  position: relative;
  overflow: hidden;
}

.blog-page--home .blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 90% 15%, rgba(0, 184, 200, .1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 8% 85%, rgba(26, 111, 191, .12) 0%, transparent 55%);
  pointer-events: none;
}

.blog-page--home .blog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.blog-page--home .blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.blog-page--home .blog-hero__eyebrow svg {
  opacity: .7;
}

.blog-page--home .blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 14px;
}

.blog-page--home .blog-hero__title em {
  font-style: italic;
  color: #6EE7F0;
}

.blog-page--home .blog-hero__subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, .6);
  max-width: 500px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.blog-page--home .blog-hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.blog-page--home .blog-hero__stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: block;
}

.blog-page--home .blog-hero__stat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 3px;
  display: block;
}

.blog-page--home .blog-hero__stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, .14);
}

.blog-page--home .featured-wrap {
  background: #fff;
  padding: 32px 5% 0;
  border-bottom: 1.5px solid #D8E2F0;
}

.blog-page--home .blog-featured {
  max-width: 1180px;
  margin: 0 auto 32px;
  background: #fff;
  border: 1.5px solid #D8E2F0;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: box-shadow .25s;
  cursor: pointer;
}

.blog-page--home .blog-featured:hover {
  box-shadow: 0 6px 32px rgba(26, 46, 107, .12);
}

.blog-page--home .blog-featured__img-wrap {
  overflow: hidden;
  min-height: 300px;
}

.blog-page--home .blog-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-page--home .blog-featured:hover .blog-featured__img {
  transform: scale(1.03);
}

.blog-page--home .blog-featured__body {
  padding: 36px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1.5px solid #D8E2F0;
}

.blog-page--home .blog-featured__category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-page--home .badge-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1.5px solid rgba(0, 184, 200, .35);
  color: var(--teal);
  background: rgba(0, 184, 200, .06);
}

.blog-page--home .blog-featured__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #F97316;
  color: #fff;
}

.blog-page--home .blog-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.28;
  margin-bottom: 12px;
}

.blog-page--home .blog-featured__title a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}

.blog-page--home .blog-featured__title a:hover {
  color: var(--blue);
}

.blog-page--home .blog-featured__excerpt {
  font-size: 14.5px;
  color: #5B6680;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-page--home .blog-featured__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #D8E2F0;
}

.blog-page--home .blog-featured__meta {
  font-size: 13px;
  color: #5B6680;
  font-weight: 600;
}

.blog-page--home .btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}

.blog-page--home .btn-read:hover {
  color: var(--blue);
}

.blog-page--home .btn-read svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: transform .2s;
}

.blog-page--home .btn-read:hover svg {
  transform: translateX(3px);
}

.blog-page--home .blog-main {
  padding: 36px 0 60px;
}

.blog-page--home .blog-layout {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.blog-page--home .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.blog-page--home .section-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-page--home .section-header h2::before {
  content: '';
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--blue);
  display: inline-block;
  flex-shrink: 0;
}

.blog-page--home .view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: gap .2s;
  white-space: nowrap;
}

.blog-page--home .view-all-link:hover {
  gap: 12px;
  color: var(--navy);
}

.blog-page--home .view-all-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: transform .2s;
}

.blog-page--home .view-all-link:hover svg {
  transform: translateX(3px);
}

.blog-page--home .blog-grid-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.blog-page--home .blog-grid-actions .nl-btn {
  width: auto;
  padding: 12px 28px;
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(26, 111, 191, .28);
}

.blog-page--home .blog-grid-actions .nl-btn:hover {
  background: #155fa3;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(26, 111, 191, .35);
}

.blog-page--home .blog-grid-actions .nl-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* Sidebar */
.blog-page--home .blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-page--home .newsletter-widget {
  background: var(--navy);
  border-radius: 14px;
  padding: 20px;
}

.blog-page--home .newsletter-widget h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.blog-page--home .newsletter-widget p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
  line-height: 1.55;
}

.blog-page--home .nl-input {
  width: 100%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 13px;
  border-radius: 9px;
  outline: none;
  margin-bottom: 8px;
}

.blog-page--home .nl-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.blog-page--home .nl-input:focus {
  border-color: rgba(0, 184, 200, .6);
}

.blog-page--home .newsletter-widget .nl-btn {
  width: 100%;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s;
}

.blog-page--home .newsletter-widget .nl-btn:hover {
  background: rgba(255, 255, 255, .2);
}

.blog-page--home .sidebar-widget {
  background: #fff;
  border: 1.5px solid #D8E2F0;
  border-radius: 16px;
  overflow: hidden;
}

.blog-page--home .sidebar-head {
  padding: 14px 18px;
  border-bottom: 1px solid #D8E2F0;
}

.blog-page--home .sidebar-head h2 {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .7px;
}

.blog-page--home .sidebar-body {
  padding: 6px 18px 14px;
}

.blog-page--home .popular-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #D8E2F0;
  text-decoration: none;
  transition: all .2s;
}

.blog-page--home .popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-page--home .popular-item:hover .pi-title {
  color: var(--blue);
}

.blog-page--home .pi-num {
  font-size: 17px;
  font-weight: 800;
  color: #D8E2F0;
  line-height: 1.2;
  min-width: 22px;
  margin-top: 1px;
}

.blog-page--home .pi-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-page--home .pi-meta {
  font-size: 11.5px;
  color: #5B6680;
}

.blog-page--home .topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 18px;
}

.blog-page--home .topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: #F2F6FF;
  border: 1.5px solid #D8E2F0;
  padding: 6px 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
}

.blog-page--home .topic-tag:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

@media (max-width: 1000px) {
  .blog-page--home .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-page--home .blog-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .blog-page--home .newsletter-widget {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .blog-page--home .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-page--home .blog-featured__img-wrap {
    min-height: 240px;
  }

  .blog-page--home .blog-featured__body {
    border-left: none;
    border-top: 1.5px solid #D8E2F0;
    padding: 24px 22px 20px;
  }

  .blog-page--home .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .blog-page--home .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-page--home .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Blog list ===== */
.blog-page--list .page-hero {
  padding: 108px 5% 32px;
  background: #F2F6FF;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blog-page--list .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(236, 72, 153, .08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(26, 111, 191, .08) 0%, transparent 60%);
}

.blog-page--list .page-hero > * {
  position: relative;
  z-index: 1;
}

.blog-page--list .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 184, 200, .1);
  border: 1px solid rgba(0, 184, 200, .28);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.blog-page--list .hero-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

.blog-page--list .page-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.blog-page--list .page-hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  background: linear-gradient(90deg, #1A6FBF, #00B8C8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-page--list .page-hero p {
  font-size: 14px;
  color: #5B6680;
  max-width: 480px;
  margin: 0 auto;
}

.blog-page--category .page-hero--category::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--cat-gradient, linear-gradient(90deg, #1A6FBF, #00B8C8));
}

.blog-page--category .page-hero--category .hero-eyebrow {
  color: var(--cat-color, #1A6FBF);
  border-color: color-mix(in srgb, var(--cat-color, #1A6FBF) 35%, transparent);
  background: color-mix(in srgb, var(--cat-color, #1A6FBF) 10%, transparent);
}

.blog-page--category .page-hero--category h1 em {
  color: var(--cat-color, #1A6FBF);
}

.blog-page--list .toolbar-wrap {
  background: #fff;
  border-bottom: 1.5px solid #D0DAEA;
  padding: 0 5%;
  position: sticky;
  top: 64px;
  z-index: 100;
}

.blog-page--list .toolbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.blog-page--list .filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1.8;
  min-width: 0;
  background: #F2F6FF;
  border: 1.5px solid #D0DAEA;
  border-radius: 11px;
  padding: 0 14px;
  height: 42px;
  transition: all .2s;
}

.blog-page--list .filter-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 184, 200, .1);
  background: #fff;
}

.blog-page--list .filter-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #5B6680;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}

.blog-page--list .filter-search input {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: #1C2340;
  width: 100%;
}

.blog-page--list .filter-search input::placeholder {
  color: #5B6680;
}

.blog-page--list .filter-select {
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1.5px solid #D0DAEA;
  background: #F2F6FF;
  color: #1C2340;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all .2s;
  flex: 1;
  min-width: 0;
}

.blog-page--list .filter-select:focus {
  border-color: var(--teal);
}

.blog-page--list .view-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  background: #F2F6FF;
  border: 1.5px solid #D0DAEA;
  border-radius: 10px;
  padding: 3px;
}

.blog-page--list .view-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5B6680;
  transition: all .2s;
}

.blog-page--list .view-btn:hover {
  color: var(--navy);
}

.blog-page--list .view-btn.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 6px rgba(26, 46, 107, .1);
}

.blog-page--list .view-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.blog-page--list .posts-section {
  padding: 0 0 60px;
}

.blog-page--list .results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-page--list .results-count {
  font-size: 13.5px;
  color: #5B6680;
  font-weight: 600;
}

.blog-page--list .results-count strong {
  color: var(--navy);
}

.blog-page--list .active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(26, 111, 191, .08);
  border: 1px solid rgba(26, 111, 191, .2);
  border-radius: 6px;
  padding: 3px 10px;
}

.blog-page--list .active-filter-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: #5B6680;
  font-size: 14px;
  line-height: 1;
  transition: color .15s;
}

.blog-page--list .active-filter-tag button:hover {
  color: #EF4444;
}

.blog-page--list .blog-grid {
  gap: 20px;
  margin-bottom: 28px;
}

.blog-page--list .blog-grid.list-view {
  display: block;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
  border: 1.5px solid rgba(0, 0, 0, .05);
  overflow: hidden;
}

.blog-page--list .blog-grid.list-view .blog-card {
  flex-direction: row;
  align-items: center;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid var(--border);
}

.blog-page--list .blog-grid.list-view .blog-card::before {
  display: none;
}

.blog-page--list .blog-grid.list-view .blog-card:hover {
  transform: none;
  box-shadow: none;
  background: #FAFBFD;
}

.blog-page--list .blog-grid.list-view .blog-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  opacity: 0;
  transition: opacity .2s;
}

.blog-page--list .blog-grid.list-view .blog-card:hover::after {
  opacity: 1;
}

.blog-page--list .blog-grid.list-view .blog-card__img-wrap {
  width: 88px;
  height: 88px;
  margin: 14px 0 14px 18px;
  border-radius: 14px;
  flex-shrink: 0;
}

.blog-page--list .blog-grid.list-view .blog-card__img-wrap img {
  border-radius: 14px;
}

.blog-page--list .blog-grid.list-view .blog-card__body {
  padding: 14px 16px 14px 16px;
}

.blog-page--list .blog-grid.list-view .blog-card__title {
  font-size: 14.5px;
  font-weight: 700;
  -webkit-line-clamp: 2;
}

.blog-page--list .blog-grid.list-view .blog-card__excerpt {
  font-size: 12.5px;
  -webkit-line-clamp: 1;
  margin-bottom: 8px;
}

.blog-page--list .blog-grid.list-view .blog-card__foot {
  border-top: none;
  padding-top: 0;
}

.blog-page--list .blog-grid.list-view .blog-card__arrow {
  margin-right: 18px;
  width: auto;
  height: auto;
  border: none;
  background: none;
  font-size: 16px;
  color: var(--muted);
}

.blog-page--list .blog-grid.list-view .blog-card:hover .blog-card__arrow {
  background: none;
  color: var(--blue);
  transform: translateX(4px);
}

.blog-page--list .blog-card {
  border-radius: 24px;
}

.blog-page--list .blog-card__body {
  padding: 22px 20px 20px 24px;
}

.blog-page--list .blog-card__title {
  font-size: 17px;
}

.blog-page--list .blog-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1.5px solid #D0DAEA;
  border-radius: 18px;
  grid-column: 1 / -1;
}

.blog-page--list .blog-empty-icon {
  font-size: 46px;
  margin-bottom: 14px;
  opacity: .4;
}

.blog-page--list .blog-empty h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.blog-page--list .blog-empty p {
  font-size: 14px;
  color: #5B6680;
}

.blog-page--list .pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #D0DAEA;
}

.blog-page--list .page-info {
  font-size: 13px;
  color: #5B6680;
  font-weight: 600;
}

.blog-page--list .page-btns {
  display: flex;
  gap: 6px;
}

.blog-page--list .page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid #D0DAEA;
  background: #fff;
  color: #1C2340;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-page--list .page-btn:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}

.blog-page--list .page-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.blog-page--list .page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.blog-page--list .page-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

@media (max-width: 900px) {
  .blog-page--list .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .blog-page--list .toolbar-inner {
    flex-wrap: wrap;
  }

  .blog-page--list .filter-search {
    flex: 1 1 100%;
  }

  .blog-page--list .filter-select {
    flex: 1 1 calc(50% - 5px);
  }

  .blog-page--list .view-toggle {
    display: none;
  }
}

@media (max-width: 560px) {
  .blog-page--list .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-page--list .blog-grid.list-view .blog-card {
    flex-direction: column;
  }

  .blog-page--list .blog-grid.list-view .blog-card__img-wrap {
    width: 100%;
    min-height: 180px;
    padding-top: 52%;
  }

  .blog-page--list .blog-grid.list-view .blog-card__img-wrap img {
    position: absolute;
  }
}

/* ===== Blog detail (single post) ===== */
.post-page {
  padding-bottom: 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb [aria-current="page"] { color: var(--navy); }

.post-hero-band {
  padding: 120px 0 48px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.post-hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}
.post-hero-band > .container {
  position: relative;
  z-index: 1;
}

.post-hero__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 50px;
  text-decoration: none;
  background: rgba(0, 184, 200, 0.12);
  border: 1px solid rgba(0, 184, 200, 0.3);
  color: var(--blue);
  transition: all 0.2s;
}
.badge:hover {
  background: rgba(0, 184, 200, 0.2);
  color: var(--navy);
}
.badge--neutral {
  background: var(--white);
  border-color: var(--border);
  color: var(--muted);
}
.badge--neutral:hover {
  border-color: var(--teal);
  color: var(--navy);
}

.post-hero__title {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.post-hero__subtitle {
  font-size: 17px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 24px;
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-meta-bar__left {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-strip__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 111, 191, 0.25);
}
.author-strip__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-strip__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.author-strip__date {
  font-size: 12px;
  color: var(--muted);
}

.post-meta-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.post-meta-bar__item svg { opacity: 0.7; }

.post-meta-bar__share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-meta-bar__share-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.share-btn:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

.post-article-section {
  background: var(--white);
  padding: 48px 0 0;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
}

.post-cover {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  max-height: 440px;
  margin: 0 0 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.post-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.post-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--navy);
  letter-spacing: -0.02em;
  scroll-margin-top: 90px;
}
.post-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--grad);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: -2px;
}
.post-body p { margin-bottom: 18px; }
.post-body ul {
  padding-left: 24px;
  margin-bottom: 18px;
}
.post-body li {
  margin-bottom: 8px;
  color: var(--muted);
}
.post-body li strong { color: var(--navy); }
.post-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--teal);
  background: rgba(0, 184, 200, 0.07);
  border-radius: 0 16px 16px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}

.post-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.post-tags__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-right: 4px;
}
.tag-pill {
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  padding: 5px 14px;
  background: var(--bg);
  color: var(--muted);
  transition: all 0.2s;
}
.tag-pill:hover {
  border-color: var(--teal);
  color: var(--blue);
  background: rgba(0, 184, 200, 0.08);
}

.author-box {
  margin-top: 40px;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(26, 111, 191, 0.25);
  flex-shrink: 0;
}
.author-box__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.author-box__role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
}
.author-box__bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.post-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-sidebar__widget {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
}
.post-sidebar__title {
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  display: block;
}
.post-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-sidebar__list a,
.post-sidebar__toc a {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.18s;
  line-height: 1.45;
}
.post-sidebar__list a:hover,
.post-sidebar__toc a:hover {
  background: var(--white);
  color: var(--blue);
}
.post-sidebar__toc a.is-active {
  background: rgba(0, 184, 200, 0.12);
  color: var(--blue);
  border-left: 3px solid var(--teal);
  padding-left: 7px;
}

#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 9999;
  transition: width 0.15s linear;
}

/* Blog detail — more posts row */
.post-page .reveal,
.blog-related-section .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.post-page .reveal.visible,
.blog-related-section .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-related-section {
  background: #F2F6FF;
  padding: 48px 5%;
  border-top: 1.5px solid var(--border);
}

.blog-related-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.blog-related-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
}

.blog-related-title span {
  background: linear-gradient(90deg, #1A6FBF, #00B8C8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-related-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all .3s cubic-bezier(.22, .68, 0, 1.2);
}

.blog-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -8px rgba(26, 46, 107, .14);
  border-color: transparent;
}

.blog-related-card__img {
  position: relative;
  overflow: hidden;
  padding-top: 52%;
}

.blog-related-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-related-card:hover .blog-related-card__img img {
  transform: scale(1.05);
}

.blog-related-card__body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-related-card__cat {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 7px;
}

.blog-related-card__title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-related-card__meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .post-hero-band { padding: 110px 0 36px; }
  .post-meta-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .blog-related-grid { grid-template-columns: 1fr; }
}
