/* ===== PAGE HERO ===== */
.page-hero {
  background: #1e2a4a;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.page-hero__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: #e8a020; }
.breadcrumb i { font-size: 0.65rem; color: rgba(255,255,255,0.4); }
.breadcrumb span[aria-current] { color: #fff; font-weight: 600; }

/* ===== BLOGS LIST ===== */
.blogs-section {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(232, 160, 32, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(30, 42, 74, 0.06), transparent 50%),
    #f3f4f7;
  padding: 2.5rem 0 4rem;
}

.home-blogs {
  background: #f5f5f5;
  padding: 3.5rem 0 4rem;
}

.home-blogs__cta {
  margin-top: 2rem;
  text-align: center;
}

.blogs-layout {
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  position: relative;
}

.blogs-layout.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 16px;
  background: rgba(243, 244, 247, 0.55);
  pointer-events: all;
}

.blogs-layout.is-loading .blogs-main {
  opacity: 0.55;
  transition: opacity 0.2s;
}

/* ===== SIDEBAR FILTERS ===== */
.blogs-sidebar {
  position: sticky;
  top: 5.5rem;
}

.blogs-filters-fab,
.blogs-filters-backdrop,
.blogs-sidebar__drawer-head {
  display: none;
}

.blogs-sidebar__panel {
  background: #fff;
  border: 1px solid rgba(30, 42, 74, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(30, 42, 74, 0.06);
  padding: 1.15rem 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.blogs-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.blogs-toolbar {
  background: #fff;
  border: 1px solid rgba(30, 42, 74, 0.08);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(30, 42, 74, 0.05);
  padding: 0.95rem 1.2rem;
}

.blogs-results {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.blogs-results__count {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e2a4a;
}

.blogs-results__hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8a020;
  background: rgba(232, 160, 32, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.blogs-search {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.blogs-search__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.blogs-search__field > i.fa-search {
  position: absolute;
  inset-inline-start: 0.85rem;
  color: #9aa3b5;
  font-size: 0.85rem;
  pointer-events: none;
}

.blogs-search__field input {
  width: 100%;
  height: 2.65rem;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #f8f9fb;
  padding-inline: 2.35rem 2.2rem;
  font-size: 0.9rem;
  color: #1e2a4a;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.blogs-search__field input:focus {
  border-color: #e8a020;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.18);
}

.blogs-search__clear {
  position: absolute;
  inset-inline-end: 0.55rem;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  border-radius: 50%;
}

.blogs-search__clear:hover {
  color: #1e2a4a;
  background: #eee;
}

.blogs-search__btn {
  height: 2.55rem;
  padding: 0 1.15rem;
  border: none;
  border-radius: 12px;
  background: #1e2a4a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.blogs-search__btn:hover {
  background: #e8a020;
  color: #1e2a4a;
}

.blogs-active-filters--sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eef0f4;
}

.blogs-active-filters__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
}

.blogs-active-filters__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.blogs-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e2a4a;
  background: rgba(232, 160, 32, 0.15);
  border: 1px solid rgba(232, 160, 32, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.blogs-active-chip:hover {
  background: #e8a020;
  color: #fff;
  border-color: #e8a020;
}

.blogs-active-filters__reset {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c0392b;
  text-decoration: none;
}

.blogs-active-filters__reset:hover {
  text-decoration: underline;
}

.blogs-filters__group + .blogs-filters__group {
  padding-top: 0.85rem;
  border-top: 1px solid #eef0f4;
}

.blogs-filters__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e2a4a;
  margin-bottom: 0.65rem;
}

.blogs-filters__label i {
  color: #e8a020;
  font-size: 0.8rem;
}

.blogs-filters__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.blogs-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blogs-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #445;
  background: #f5f6f8;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}

.blogs-filters__list .blogs-chip {
  width: 100%;
  border-radius: 12px;
}

.blogs-chip:hover {
  border-color: #1e2a4a;
  color: #1e2a4a;
  background: #fff;
}

.blogs-chip.is-active {
  background: #1e2a4a;
  border-color: #1e2a4a;
  color: #fff;
}

.blogs-chip.is-active .blogs-chip__count {
  background: rgba(232, 160, 32, 0.95);
  color: #1e2a4a;
}

.blogs-chip__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blogs-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(30, 42, 74, 0.1);
  color: #1e2a4a;
  border-radius: 999px;
  flex: 0 0 auto;
}

.blogs-chip--tag {
  font-weight: 500;
  justify-content: center;
}

/* ===== GRID + CARDS ===== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blogs-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(30, 42, 74, 0.08);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(30, 42, 74, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 160, 32, 0.4);
  box-shadow: 0 14px 32px rgba(30, 42, 74, 0.12);
}

.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid rgba(30, 42, 74, 0.1);
  border-radius: 14px;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.blog-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 42, 74, 0.4) 0%, transparent 55%);
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.blog-card:hover .blog-card__media::after {
  opacity: 1;
}

.blog-card__badge {
  position: absolute;
  z-index: 1;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1e2a4a;
  background: #e8a020;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  font-size: 2rem;
  background: linear-gradient(135deg, #eef0f4, #e2e5eb);
  border-radius: inherit;
}

.blog-card__body {
  padding: 1rem 0.35rem 0.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.blog-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e8a020;
  text-decoration: none;
}

.blog-card__category:hover {
  color: #1e2a4a;
}

.blog-card__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #888;
}

.blog-card__date i {
  color: #e8a020;
  font-size: 0.72rem;
}

.blog-card__tag-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #9aa3b5;
}

.blog-card__tags,
.blog-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  background: #f0f2f5;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.blog-tag:hover {
  background: #e8a020;
  color: #fff;
}

.blog-tag--more {
  color: #888;
  background: transparent;
  padding-inline: 0.25rem;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #1e2a4a;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.blog-card__title a:hover {
  color: #e8a020;
}

.blog-card__excerpt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link,
.blog-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: #1e2a4a;
  border: 1px solid #1e2a4a;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.blog-card__btn:hover,
.blog-card__link:hover {
  background: #e8a020;
  border-color: #e8a020;
  color: #1e2a4a;
}

.blog-card__btn i,
.blog-card__link i {
  transition: transform 0.2s;
}

.blog-card:hover .blog-card__btn i,
.blog-card:hover .blog-card__link i {
  transform: translateX(-3px);
}

html[dir="ltr"] .blog-card:hover .blog-card__btn i,
html[dir="ltr"] .blog-card:hover .blog-card__link i {
  transform: scaleX(-1) translateX(-3px);
}

.blogs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: #fff;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
}

.blogs-empty__icon {
  font-size: 2rem;
  color: #c5cad3;
  margin-bottom: 0.85rem;
}

.blogs-empty__title {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 1rem;
}

.blogs-empty__reset {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: #1e2a4a;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.blogs-empty__reset:hover {
  background: #e8a020;
  color: #1e2a4a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===== SINGLE ARTICLE ===== */
.blog-article {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(232, 160, 32, 0.06), transparent 60%),
    #f5f6f8;
  padding: 2.5rem 0 4rem;
}

.blog-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
  gap: 1.5rem;
  align-items: start;
}

.blog-article__main {
  background: #fff;
  border: 1px solid rgba(30, 42, 74, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(30, 42, 74, 0.05);
  padding: 1.75rem 1.75rem 2rem;
  max-width: none;
}

.blog-article__inner {
  max-width: 820px;
}

.blog-article__mobile-nav {
  display: none;
  margin-bottom: 1rem;
}

.blog-sections-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1.25rem;
  border: 2px solid #1e2a4a;
  border-radius: 8px;
  background: #1e2a4a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(30, 42, 74, 0.2);
}

.blog-sections-btn i {
  color: #f0c060;
}

.blog-sections-btn:hover {
  background: #263556;
  border-color: #263556;
}

.blog-article__actions--dock {
  display: none;
}

.blog-article__sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  padding-inline-end: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: #6b7280 transparent;
}

.blog-article__sidebar::-webkit-scrollbar {
  width: 4px;
}

.blog-article__sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.blog-article__sidebar::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 999px;
}

/* Dark package-style section navigator */
.blog-toc {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.9rem;
  padding: 0.85rem 0.65rem;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

.blog-toc::before {
  display: none;
}

.blog-toc__head {
  padding: 0 0.45rem 0.65rem;
  border-bottom: 1px solid #374151;
  margin-bottom: 0.55rem;
  display: block;
}

.blog-toc__title {
  display: block;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

.blog-toc__hint {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  color: #9ca3af;
}

.blog-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.blog-toc__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  background: transparent;
  box-shadow: none;
}

.blog-toc__link i {
  width: 14px;
  text-align: center;
  color: #6b7280;
  flex-shrink: 0;
  font-size: 0.78rem;
  margin: 0;
  opacity: 1;
}

.blog-toc__link:hover {
  background: rgba(232, 160, 32, 0.08);
  color: #e5e7eb;
}

.blog-toc__link:hover i {
  color: #9ca3af;
}

.blog-toc__link.is-active {
  background: rgba(232, 160, 32, 0.15);
  color: #f0c060;
  border-color: rgba(232, 160, 32, 0.35);
  box-shadow: none;
}

.blog-toc__link.is-active i {
  color: #e8a020;
}

/* Companion dark cards */
.blog-sidebar-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.9rem;
  box-shadow: none;
  padding: 0.9rem 0.85rem 1rem;
  overflow: hidden;
  position: relative;
}

.blog-sidebar-card::before,
.blog-sidebar-card--related::before {
  display: none;
}

.blog-sidebar-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  display: block;
}

.blog-sidebar-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(232, 160, 32, 0.12);
  border: 1px solid rgba(232, 160, 32, 0.28);
  color: #f0c060;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: none;
}

.blog-sidebar-card__pill i {
  color: #e8a020;
  font-size: 0.78rem;
  width: 14px;
  text-align: center;
}

.blog-sidebar-card__pill:hover {
  background: rgba(232, 160, 32, 0.2);
  border-color: rgba(232, 160, 32, 0.45);
  transform: none;
  box-shadow: none;
}

.blog-sidebar-card__pill:hover i {
  transform: none;
}

.blog-sidebar-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-sidebar-card--tags .blog-tag {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
}

.blog-sidebar-card--tags .blog-tag:hover {
  background: rgba(232, 160, 32, 0.18);
  color: #f0c060;
  border-color: rgba(232, 160, 32, 0.35);
}

.blog-sidebar-card--category {
  background: #1f2937;
}

.blog-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.blog-related__link {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.4rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: #d1d5db;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.blog-related__media {
  display: block;
  width: 3.75rem;
  height: 2.75rem;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid #374151;
  background: #111827;
  flex: 0 0 auto;
}

.blog-related__link img,
.blog-related__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-related__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.9rem;
  background: #111827;
}

.blog-related__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.blog-related__date {
  font-size: 0.66rem;
  font-weight: 600;
  color: #9ca3af;
}

.blog-related__title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: #e5e7eb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-related__link:hover {
  background: rgba(232, 160, 32, 0.08);
  border-color: rgba(232, 160, 32, 0.25);
  box-shadow: none;
  transform: none;
  color: #e5e7eb;
}

.blog-related__link:hover .blog-related__title {
  color: #f0c060;
}

.blog-article__cover {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(30, 42, 74, 0.08);
}

.blog-article__cover img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.blog-article__header {
  margin-bottom: 1.5rem;
}

.blog-article__date {
  display: block;
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 0;
}

.blog-article__excerpt {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin: 0.85rem 0 0;
  border-inline-start: 3px solid #e8a020;
  padding-inline-start: 1rem;
}

.blog-article__content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
}

.blog-article__content h2,
.blog-article__content h3 {
  color: #1e2a4a;
  margin: 1.75rem 0 0.75rem;
  font-weight: 700;
  scroll-margin-top: 5.5rem;
}

.blog-article__content p {
  margin: 0 0 1.1rem;
}

.blog-article__content img {
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
}

.blog-article__content ul,
.blog-article__content ol {
  margin: 0 0 1.1rem;
  padding-inline-start: 1.5rem;
}

.blog-article__content a {
  color: #e8a020;
}

.blog-article__tags {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  scroll-margin-top: 5.5rem;
}

.blog-article__tags-label {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e2a4a;
  margin-bottom: 0.35rem;
}

#blog-sec-overview {
  scroll-margin-top: 5.5rem;
}

.blog-article__footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}

.blog-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1e2a4a;
  text-decoration: none;
}

.blog-article__back:hover {
  color: #e8a020;
}

html[dir="ltr"] .blog-card__btn i,
html[dir="ltr"] .blog-card__link i,
html[dir="ltr"] .blog-article__back i {
  transform: scaleX(-1);
}

/* ===== FLOATING SECTION NAV (package-style) ===== */
.blog-section-nav-root {
  position: fixed;
  inset-inline: 0;
  bottom: 1.15rem;
  z-index: 850;
  display: flex;
  justify-content: center;
  padding: 0 0.75rem;
  pointer-events: none;
}

.blog-section-nav {
  width: auto;
  max-width: calc(100vw - 1.5rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-section-nav-root.is-visible .blog-section-nav {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.blog-section-nav__bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0.4rem 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow:
    0 4px 6px rgba(30, 42, 74, 0.04),
    0 18px 40px rgba(30, 42, 74, 0.14);
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-section-nav__bar::-webkit-scrollbar {
  display: none;
}

.blog-section-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-section-nav__link i {
  font-size: 0.72rem;
  opacity: 0.85;
}

.blog-section-nav__link:hover {
  color: #1e2a4a;
  background: rgba(30, 42, 74, 0.05);
}

.blog-section-nav__link.is-active {
  background: #1e2a4a;
  color: #fff;
}

.blog-section-nav__link.is-active i {
  color: #f0c060;
  opacity: 1;
}

.blog-section-nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.blog-section-nav__backdrop:not([hidden]) {
  opacity: 1;
}

.blog-section-nav__drawer {
  position: fixed;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: min(20rem, 88vw);
  background: #fff;
  z-index: 910;
  transform: translateX(-108%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 8px 0 32px rgba(30, 42, 74, 0.16);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

[dir="rtl"] .blog-section-nav__drawer {
  transform: translateX(108%);
  box-shadow: -8px 0 32px rgba(30, 42, 74, 0.16);
}

.blog-section-nav__drawer.is-open {
  transform: translateX(0);
}

.blog-section-nav__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(180deg, rgba(30, 42, 74, 0.04) 0%, transparent 100%);
}

.blog-section-nav__drawer-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e2a4a;
}

.blog-section-nav__drawer-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(30, 42, 74, 0.06);
  color: #1e2a4a;
  cursor: pointer;
}

.blog-section-nav__drawer-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.75rem 1.25rem;
  overflow-y: auto;
}

.blog-section-nav__drawer-list li + li {
  margin-top: 0.2rem;
}

.blog-section-nav__drawer-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
}

.blog-section-nav__drawer-link:hover {
  background: rgba(30, 42, 74, 0.05);
  color: #1e2a4a;
}

.blog-section-nav__drawer-link.is-active {
  background: rgba(232, 160, 32, 0.14);
  color: #1e2a4a;
}

.blog-section-nav__drawer-icon {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(30, 42, 74, 0.06);
  color: #e8a020;
  flex: 0 0 auto;
}

.blog-section-nav__drawer-link.is-active .blog-section-nav__drawer-icon {
  background: #1e2a4a;
  color: #f0c060;
}

body.blog-nav-drawer-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .blog-section-nav-root {
    display: none;
  }

  .blog-article__mobile-nav {
    display: none;
  }
}

@media (max-width: 992px) {
  .blogs-layout {
    display: block;
  }

  .blogs-filters-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1.25rem;
    z-index: 860;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0 1rem;
    border: none;
    border-radius: 999px;
    background: #1e2a4a;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow:
      0 8px 24px rgba(30, 42, 74, 0.28),
      0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }

  .blogs-filters-fab i {
    color: #f0c060;
    font-size: 1rem;
  }

  .blogs-filters-fab__badge {
    position: absolute;
    top: 0.35rem;
    inset-inline-end: 0.45rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #e8a020;
    box-shadow: 0 0 0 2px #1e2a4a;
  }

  .blogs-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .blogs-filters-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  .blogs-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 910;
    width: min(20rem, 88vw);
    max-height: none;
    margin: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 8px 0 32px rgba(30, 42, 74, 0.16);
    transform: translateX(-108%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  [dir="rtl"] .blogs-sidebar {
    transform: translateX(108%);
    box-shadow: -8px 0 32px rgba(30, 42, 74, 0.16);
  }

  .blogs-sidebar.is-open {
    transform: translateX(0);
  }

  .blogs-sidebar__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid #eef0f4;
    background: linear-gradient(180deg, rgba(30, 42, 74, 0.04) 0%, transparent 100%);
    flex: 0 0 auto;
  }

  .blogs-sidebar__drawer-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e2a4a;
  }

  .blogs-sidebar__drawer-hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e8a020;
  }

  .blogs-sidebar__drawer-close {
    width: 2.15rem;
    height: 2.15rem;
    border: none;
    border-radius: 10px;
    background: rgba(30, 42, 74, 0.06);
    color: #1e2a4a;
    cursor: pointer;
  }

  .blogs-sidebar__panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

  body.blogs-filters-open {
    overflow: hidden;
  }
}

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

  .blog-article__sidebar {
    display: none;
  }

  .blog-article__mobile-nav {
    display: block;
  }

  .blog-article__actions--dock {
    display: flex;
    position: fixed;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 840;
    flex-direction: column;
    pointer-events: none;
  }

  .blog-article__actions--dock > * {
    pointer-events: auto;
  }

  .blog-article__actions--dock .blog-sections-btn {
    width: 3.15rem;
    height: 3.15rem;
    padding: 0;
    border-inline-end: none;
    border-start-start-radius: 999px;
    border-end-start-radius: 999px;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    box-shadow: -4px 2px 12px rgba(30, 42, 74, 0.18);
  }

  .blog-article__actions--dock .blog-sections-btn span {
    display: none;
  }

  .blog-section-nav-root {
    /* drawer only on mobile; hide floating pill */
  }

  .blog-section-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 2.5rem 0;
  }
  .page-hero__title {
    font-size: 1.5rem;
  }
  .blogs-section {
    padding: 1.5rem 0 3rem;
  }
  .blogs-toolbar {
    padding: 0.85rem 1rem;
  }
  .blogs-grid,
  .blogs-grid--home {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .blog-article {
    padding: 1.5rem 0 3rem;
  }
  .blog-article__main {
    padding: 1.15rem 1rem 1.5rem;
  }
}


