.blog-listing__header {
  max-width: 760px;
  margin-bottom: 36px;
}

.blog-listing__header h1,
.blog-detail__header h1 {
  color: var(--title-color);
  font-family: var(--title-font);
}

.blog-listing__header h1 {
  font-size: 48px;
  line-height: 1.12;
  margin-bottom: 12px;
}

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

.blog-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 8%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card:focus-within,
.blog-card:hover {
  box-shadow: 0 14px 44px rgb(0 0 0 / 12%);
  transform: translateY(-3px);
}

.blog-card__link {
  inset: 0;
  padding: 0;
  position: absolute;
  z-index: 2;
}

.blog-card__link:focus-visible {
  outline: 3px solid var(--theme-color-2);
  outline-offset: -4px;
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__image a {
  display: block;
  height: 100%;
  padding: 0;
  width: 100%;
}

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

.blog-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.blog-card .category,
.blog-detail .category {
  background: var(--theme-color-2);
  border-radius: 30px;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 5px 20px;
  width: fit-content;
}

.blog-card__title {
  color: var(--title-color);
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card__title a {
  color: var(--title-color);
  display: inline;
  padding: 0;
}

.blog-card__title a:hover {
  color: var(--theme-color-2);
}

.blog-card__content p {
  color: var(--text-color);
}

.blog-card__meta,
.blog-detail__meta {
  color: var(--text-color);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px 18px;
}

.blog-card__meta {
  margin-top: auto;
  padding-top: 14px;
}

.blog-card__read {
  color: var(--theme-color-2);
  font-weight: 600;
  margin-top: 14px;
}

.blog-pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 52px;
}

.blog-pagination a {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e0e5;
  border-radius: 8px;
  color: #005783;
  display: inline-flex;
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 600;
  height: 50px;
  justify-content: center;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  width: 50px;
}

.blog-pagination a:hover,
.blog-pagination a:focus-visible {
  background: #f47a00;
  border-color: #f47a00;
  color: #fff;
  transform: translateY(-2px);
}

.blog-pagination a.current {
  background: #005783;
  border-color: #005783;
  color: #fff;
  cursor: default;
  transform: none;
}

.blog-pagination a.current:hover,
.blog-pagination a.current:focus-visible {
  background: #005783;
  border-color: #005783;
  color: #fff;
}

.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 20px;
  padding-top: 34px;
}

.blog-detail__header {
  padding-bottom: 45px;
}

.blog-detail__header h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 1050px;
}

.blog-detail__excerpt {
  font-size: 20px;
  line-height: 1.65;
  max-width: 900px;
}

.blog-detail__meta {
  margin: 22px 0 30px;
}

.blog-detail__hero {
  border-radius: 10px;
  margin: 0;
  max-height: 720px;
  overflow: hidden;
}

.blog-detail__hero img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  max-height: 720px;
  object-fit: cover;
  width: 100%;
}

.blog-detail__layout {
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.blog-detail__body {
  font-size: 17px;
  line-height: 1.8;
  min-width: 0;
}

.blog-detail__body h2 {
  font-size: 32px;
  line-height: 1.25;
  margin: 42px 0 15px;
  scroll-margin-top: 110px;
}

.blog-detail__body h3 {
  font-size: 24px;
  margin: 30px 0 12px;
}

.blog-detail__body p,
.blog-detail__body ul,
.blog-detail__body ol,
.blog-detail__body blockquote,
.blog-detail__body figure {
  margin-bottom: 22px;
}

.blog-detail__body ul,
.blog-detail__body ol {
  padding-left: 25px;
}

.blog-detail__body ul li {
  list-style: disc;
}

.blog-detail__body ol li {
  list-style: decimal;
}

.blog-detail__body img {
  border-radius: 10px;
  height: auto;
  max-width: 100%;
}

.blog-detail__body blockquote,
.blog-callout {
  background: rgb(120 235 84 / 12%);
  border-left: 4px solid var(--theme-color-2);
  border-radius: 8px;
  padding: 22px 24px;
}

.blog-inline-cta {
  margin: 34px 0 26px;
}

.blog-inline-cta .theme-btn {
  display: inline-flex;
  max-width: 100%;
  white-space: normal;
}

.blog-table-wrap {
  margin-bottom: 24px;
  max-width: 100%;
  overflow-x: auto;
}

.blog-detail__body table {
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
}

.blog-detail__body td,
.blog-detail__body th {
  border: 1px solid rgb(0 0 0 / 14%);
  padding: 12px;
  text-align: left;
}

.blog-detail__sidebar {
  align-self: stretch;
  min-width: 0;
  position: relative;
}

.boxed_wrapper.blog-detail-wrapper {
  overflow: visible !important;
}

.blog-toc {
  background: rgb(0 0 0 / 3%);
  border-radius: 10px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 26px;
  position: relative;
  will-change: transform;
  z-index: 2;
}

.blog-toc h2,
.blog-latest > h2,
.blog-related > h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.blog-toc ol {
  counter-reset: toc;
}

.blog-toc li + li {
  margin-top: 9px;
}

.blog-toc a {
  border-left: 3px solid transparent;
  color: var(--text-color);
  display: block;
  padding: 6px 0 6px 10px;
}

.blog-toc a:hover {
  color: var(--theme-color-2);
}

.blog-toc a.active {
  border-color: var(--theme-color-2);
  color: var(--theme-color-2);
}

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

.blog-latest {
  margin-top: 38px;
}

.blog-latest--bottom {
  margin-top: 70px;
}

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

.blog-card--compact {
  align-items: start;
  border-bottom: 1px solid rgb(0 0 0 / 10%);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  margin-bottom: 18px;
  min-height: 84px;
  overflow: visible;
  padding-bottom: 18px;
}

.blog-card--compact .blog-card__image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: auto;
}

.blog-card--compact .blog-card__content {
  padding: 0 0 0 14px;
}

.blog-card--compact .blog-card__title {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}

.blog-card--compact:hover,
.blog-card--compact:focus-within {
  box-shadow: none;
  transform: none;
}

.blog-card--compact .blog-card__meta {
  font-size: 13px;
  margin-top: 7px;
  padding: 0;
}

.blog-related {
  padding-bottom: 60px;
  padding-top: 70px;
}

.blog-related .blog-card__title {
  font-size: 21px;
}

.blog-cta {
  align-items: center;
  background: var(--secondary-color);
  border-radius: 10px;
  color: #fff;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 70px;
  padding: 36px 40px;
}

.blog-cta h2,
.blog-cta p {
  color: #fff;
}

.blog-cta h2 {
  font-size: 32px;
  margin-bottom: 5px;
}

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-detail__layout {
    display: block;
  }

  .blog-toc-mobile {
    background: rgb(0 0 0 / 3%);
    border-radius: 8px;
    display: block;
    margin-bottom: 30px;
    padding: 18px 20px;
  }

  .blog-toc-mobile summary {
    color: var(--title-color);
    cursor: pointer;
    font-family: var(--title-font);
    font-size: 20px;
    font-weight: 600;
  }

  .blog-toc-mobile ol {
    padding: 16px 0 0 22px;
  }

  .blog-toc-mobile li {
    list-style: decimal;
    margin-top: 8px;
  }

  .blog-toc {
    display: none;
  }

  .blog-latest {
    margin-top: 55px;
  }
}

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

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

  .blog-listing__header h1 {
    font-size: 38px;
  }

  .blog-detail__header h1 {
    font-size: 38px;
  }

  .blog-detail__excerpt {
    font-size: 18px;
  }

  .blog-detail__body h2 {
    font-size: 28px;
  }

  .blog-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card {
    transition: none;
  }
}
