.blog-list-section,
.blog-single-hero,
.blog-single-content,
.news-list-section,
.news-single-hero,
.news-single-content {
  padding-top: 8px;
}

.blog-list-section .container,
.news-list-section .container {
  width: min(1360px, calc(100% - 40px));
}

.blog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.blog-sidebar {
  border: 1px solid #e3e9ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f7f9fc 100%);
  padding: 16px 14px;
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  box-shadow:
    0 10px 24px rgba(17, 24, 39, 0.04),
    inset 0 -14px 16px -18px rgba(0, 0, 0, 0.16);
}

.blog-sidebar::-webkit-scrollbar {
  width: 8px;
}

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

.blog-sidebar::-webkit-scrollbar-thumb {
  border: 2px solid var(--dm-color-bg);
  border-radius: 999px;
  background: #cfcfcf;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.blog-sidebar h2 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7edf3;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.blog-category-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-category-menu li + li {
  margin-top: 2px;
}

.blog-category-menu li.category-depth-0 {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf2f6;
}

.blog-category-menu li.category-depth-0:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.blog-category-row {
  display: block;
}

.blog-category-row > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-width: 0;
}

.blog-category-menu a {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
  background: transparent;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.blog-category-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.blog-category-count {
  justify-self: end;
  width: 30px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf2f7;
  color: #8a97a5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.blog-category-count--placeholder {
  visibility: hidden;
}

.blog-category-menu a:hover {
  background: #f4f8fb;
  color: #111827;
}

.blog-category-menu a.is-ancestor {
  background: #f3f8fb;
  color: #1f3d5a;
}

.blog-category-menu li.category-depth-1 a,
.blog-category-menu li.category-depth-2 a,
.blog-category-menu li.category-depth-3 a {
  position: relative;
  color: #526172;
  font-weight: 500;
}

.blog-category-menu li.category-depth-0 a {
  font-size: 14px;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 10px;
  color: #111827;
}

.blog-category-menu li.category-depth-1 a {
  margin-left: 0;
  padding-left: 22px;
}

.blog-category-menu li.category-depth-2 a {
  margin-left: 0;
  padding-left: 34px;
}

.blog-category-menu li.category-depth-3 a {
  margin-left: 0;
  padding-left: 46px;
}

.blog-category-menu li.category-depth-1 a::before,
.blog-category-menu li.category-depth-2 a::before,
.blog-category-menu li.category-depth-3 a::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  border-radius: 999px;
  background: #e4ebf2;
}

.blog-category-menu a.is-active {
  background: #eaf5fa;
  color: #0b6f8a;
  box-shadow: inset 3px 0 0 #0b6f8a;
}

.blog-category-menu li.category-depth-0 > .blog-category-row > a.is-active span,
.blog-category-menu li.category-depth-1 > .blog-category-row > a.is-active span,
.blog-category-menu li.category-depth-2 > .blog-category-row > a.is-active span,
.blog-category-menu li.category-depth-3 > .blog-category-row > a.is-active span {
  background: #d8edf5;
  color: #0b6f8a;
}

.blog-hero.page-hero {
  padding-bottom: 36px;
}

.blog-hero.page-hero > .page-hero__inner.container {
  width: min(1360px, calc(100% - 40px));
}

.blog-hero .page-hero__title {
  max-width: 1100px;
}

.blog-hero .page-hero__lead {
  max-width: 920px;
}

.blog-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.blog-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
}

.blog-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--dm-color-text);
  background: #fff;
  font-size: 14px;
  box-shadow: none;
}

.blog-search input:focus {
  outline: none;
  border-color: #0e7f9e;
  box-shadow: 0 0 0 3px rgba(14, 127, 158, 0.08);
}

.blog-search button {
  height: 42px;
  border: 1px solid #0e7f9e;
  border-radius: 10px;
  padding: 0 18px;
  background: #0e7f9e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.blog-search button:hover {
  background: #0b6f8a;
  border-color: #0b6f8a;
}

.blog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #e3e9ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f8fafc 100%);
  box-shadow: none;
}

.blog-results-bar__meta {
  min-width: 0;
  display: flex;
  align-items: center;
}

.blog-results-bar__summary {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.blog-results-bar__filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e9f5fb;
  color: #0b6f8a;
  font-size: 13px;
  line-height: 1.4;
}

.blog-filter-chip strong {
  font-weight: 700;
}

.blog-results-bar__clear {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #d5dee7;
  border-radius: 999px;
  color: #425466;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
}

.blog-results-bar__clear:hover {
  border-color: #0e7f9e;
  color: #0b6f8a;
}

.blog-single-hero .container,
.news-single-hero .container {
  max-width: 860px;
}

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

.blog-card,
.news-card {
  border: 1px solid #dde6ef;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 24px rgba(16, 42, 73, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.blog-card:hover,
.news-card:hover {
  border-color: #c8d8e6;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.blog-card__thumb,
.news-card__thumb {
  display: block;
  width: 100%;
  overflow: hidden;
}

.blog-card__thumb img,
.news-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-thumb-placeholder,
.news-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 190px;
  color: var(--dm-color-text-muted);
  background: linear-gradient(140deg, #dce8f5, #eef4fb);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.blog-card__meta,
.blog-single-meta,
.news-card__meta,
.news-single-meta {
  margin-bottom: 8px;
  font-size: 13px;
  color: #6b7b8d;
}

.blog-card__body h2,
.news-card__body h2 {
  margin-bottom: 10px;
  line-height: 1.32;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  min-height: calc(1.32em * 2);
}

.blog-card__body h2 a,
.news-card__body h2 a {
  color: #0f172a;
}

.blog-card__body h2 a:hover,
.news-card__body h2 a:hover {
  color: #0e7f9e;
}

.blog-card__excerpt,
.news-card__excerpt {
  color: #5b6978;
  margin-bottom: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  min-height: calc(1.65em * 3);
}

.blog-card__link {
  margin-top: auto;
  align-self: flex-start;
  color: #0e7f9e;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.blog-card__link--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #cbd7e3;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.blog-card__link:hover {
  color: #075d73;
  border-color: #0e7f9e;
  background: #eef6f8;
}

.blog-search-results {
  display: grid;
  gap: 16px;
  max-width: none;
}

.blog-search-result {
  display: block;
  border: 1px solid #dde6ef;
  border-radius: 14px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(16, 42, 73, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.blog-search-result:hover {
  border-color: #c8d8e6;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.blog-search-result__body {
  min-width: 0;
}

.blog-search-result__actions {
  display: flex;
  align-items: flex-start;
  margin-top: 12px;
}

.blog-search-result h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.blog-search-result h2 a {
  color: var(--dm-color-text);
  text-decoration: none;
}

.blog-search-result h2 a:hover {
  color: #0e7f9e;
}

.blog-search-result__excerpt {
  margin: 0;
  color: #5b6978;
  font-size: 15px;
  line-height: 1.74;
}

.blog-search-result__excerpt mark {
  border-radius: 4px;
  padding: 0 3px;
  background: #fff1a8;
  color: var(--dm-color-text);
}

.news-card__body .btn {
  margin-top: auto;
  align-self: flex-start;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border-color: #0e7f9e;
  background: #0e7f9e;
  color: #fff;
  box-shadow: 0 8px 16px rgba(14, 127, 158, 0.2);
}

.blog-card__body .btn:hover,
.news-card__body .btn:hover {
  background: #0b6f8a;
  border-color: #0b6f8a;
  color: #fff;
}

.blog-pagination,
.news-pagination {
  display: grid;
  justify-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--dm-color-border);
  text-align: center;
}

.blog-pagination .nav-links,
.news-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-pagination .page-numbers,
.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #d5e0ea;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--dm-color-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 6px 14px rgba(16, 42, 73, 0.04);
  transition: 0.2s ease;
}

.blog-pagination .prev,
.blog-pagination .next,
.news-pagination .prev,
.news-pagination .next {
  min-width: 56px;
}

.blog-pagination a.page-numbers:hover,
.news-pagination a.page-numbers:hover {
  border-color: #9ac9db;
  background: #f5fbfe;
  color: #0b6f8a;
}

.blog-pagination .current,
.news-pagination .current {
  background: #0e7f9e;
  border-color: #0e7f9e;
  color: #fff;
  box-shadow: 0 10px 20px rgba(14, 127, 158, 0.2);
}

.blog-pagination .dots,
.news-pagination .dots {
  border-color: transparent;
  color: var(--dm-color-text-muted);
  box-shadow: none;
  background: transparent;
}

.blog-empty-state {
  margin: 0;
  padding: 28px 24px;
  border: 1px solid #e1e9f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfdfe 0%, #f6f9fc 100%);
  color: #516172;
  box-shadow: 0 12px 26px rgba(16, 42, 73, 0.045);
}

.blog-single-layout,
.news-single-layout {
  max-width: 860px;
}

.blog-single-article,
.news-single-article {
  border: 1px solid var(--dm-color-border);
  border-radius: var(--dm-radius-card);
  background: var(--dm-color-bg);
  overflow: hidden;
  box-shadow: var(--dm-shadow-soft);
}

.blog-single-thumb,
.news-single-thumb {
  background: #f6f8fa;
}

.blog-single-thumb img,
.news-single-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.blog-single-body,
.news-single-body {
  padding: 28px 32px 30px;
  color: #2f3a45;
  font-size: 16px;
  line-height: 1.78;
  overflow-wrap: break-word;
}

.blog-single-body h1,
.blog-single-body h2,
.blog-single-body h3,
.blog-single-body h4,
.news-single-body h1,
.news-single-body h2,
.news-single-body h3,
.news-single-body h4 {
  color: var(--dm-color-text);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.blog-single-body h2,
.news-single-body h2 {
  margin: 2em 0 0.75em;
  padding-top: 0.2em;
  font-size: 26px;
}

.blog-single-body h3,
.news-single-body h3 {
  margin: 1.65em 0 0.65em;
  font-size: 21px;
}

.blog-single-body h4,
.news-single-body h4 {
  margin: 1.45em 0 0.55em;
  font-size: 18px;
}

.blog-single-body p,
.news-single-body p {
  margin: 0 0 1.15em;
}

.blog-single-body > :first-child,
.news-single-body > :first-child {
  margin-top: 0;
}

.blog-single-body > :last-child,
.news-single-body > :last-child {
  margin-bottom: 0;
}

.blog-single-body a,
.news-single-body a {
  color: #0b6f8a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.blog-single-body a:hover,
.news-single-body a:hover {
  color: #084f63;
}

.blog-single-body ul,
.blog-single-body ol,
.news-single-body ul,
.news-single-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.blog-single-body li,
.news-single-body li {
  margin: 0.38em 0;
  padding-left: 0.1em;
}

.blog-single-body blockquote,
.news-single-body blockquote {
  margin: 1.35em 0;
  padding: 14px 18px;
  border-left: 4px solid #0e7f9e;
  background: #f6f8fa;
  color: #34495e;
}

.blog-single-body figure,
.news-single-body figure {
  margin: 1.35em 0;
}

.blog-single-body img,
.news-single-body img {
  margin: 18px 0;
  border-radius: var(--dm-radius-control);
}

.blog-single-body table,
.news-single-body table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: 15px;
}

.blog-single-body .wp-block-table,
.news-single-body .wp-block-table {
  overflow-x: auto;
}

.blog-single-body th,
.blog-single-body td,
.news-single-body th,
.news-single-body td {
  border: 1px solid var(--dm-color-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.blog-single-body th,
.news-single-body th {
  background: #f6f8fa;
  color: var(--dm-color-text);
  font-weight: 700;
}

.blog-single-body iframe,
.blog-single-body video,
.news-single-body iframe,
.news-single-body video {
  max-width: 100%;
}

.blog-single-actions,
.news-single-actions {
  padding: 0 32px 30px;
}

@media (max-width: 1200px) {
  .blog-layout {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .blog-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .blog-sidebar {
    position: static;
    top: auto;
    max-height: none;
    margin-bottom: 6px;
  }

  .blog-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card__body .btn {
    width: auto;
  }
}

@media (max-width: 600px) {
  .blog-list-section .container,
  .news-list-section .container {
    width: calc(100% - 20px);
  }

  .blog-toolbar {
    justify-content: stretch;
  }

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

  .blog-search button {
    width: 100%;
  }

  .blog-results-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-results-bar__filters {
    justify-content: flex-start;
  }

  .blog-card__body,
  .news-card__body {
    padding: 16px;
  }

  .blog-card__body h2,
  .news-card__body h2 {
    font-size: 18px;
  }

  .blog-search-result {
    padding: 18px;
  }

  .blog-search-result h2 {
    font-size: 22px;
  }

  .blog-single-body,
  .news-single-body {
    padding: 20px 16px 22px;
    font-size: 15px;
  }

  .blog-single-body h2,
  .news-single-body h2 {
    font-size: 22px;
  }

  .blog-single-body h3,
  .news-single-body h3 {
    font-size: 19px;
  }

  .blog-single-actions,
  .news-single-actions {
    padding: 0 16px 22px;
  }

  .blog-card__body h2,
  .news-card__body h2 {
    font-size: 17px;
  }

  .blog-card__excerpt,
  .news-card__excerpt {
    font-size: 14px;
  }
}
