.cms-blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.cms-blog-tab {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  color: #343e73;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 16px;
  text-decoration: none;
}

.cms-blog-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}

.cms-blog-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.cms-blog-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f7fafc 0%, #fff 50%, #fff4e9 100%);
  color: #343e73;
  flex-shrink: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.cms-blog-thumb-photo {
  display: block;
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.cms-blog-thumb-placeholder {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
  min-height: 140px;
  padding: 20px 24px;
  width: 100%;
}

.cms-blog-thumb-logo {
  display: block;
  flex-shrink: 0;
  height: 40px;
  opacity: 0.92;
  width: auto;
}

.cms-blog-thumb-initial {
  color: #111827;
  font-size: clamp(26px, 5.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cms-blog-thumb-eyebrow {
  color: #ff7e40;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cms-blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.cms-blog-meta {
  align-items: center;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
  margin-bottom: 14px;
}

.cms-blog-category {
  background: #fff4e9;
  border-radius: 999px;
  color: #ff7e40;
  font-weight: 700;
  padding: 6px 10px;
}

.cms-blog-title {
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.cms-blog-summary {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.cms-blog-byline {
  color: #6b7280;
  font-size: 14px;
  margin-top: auto;
}

.cms-featured-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.cms-featured-side {
  display: grid;
  gap: 18px;
}

.cms-featured-side .cms-blog-thumb {
  min-height: 120px;
}

.cms-featured-side .cms-blog-title {
  font-size: 18px;
}

.blog-rich-text-wrapper .rich-text {
  color: #404a62;
}

.blog-rich-text-wrapper .rich-text img {
  border-radius: 12px;
  height: auto;
  max-width: 100%;
}

.blog-rich-text-wrapper a:not(.review-link) {
  color: #ff7e40;
  font-weight: 500;
  text-decoration: underline;
}

.blog-rich-text-wrapper p,
.blog-rich-text-wrapper ul,
.blog-rich-text-wrapper ol {
  font-size: 1.125rem !important;
  line-height: 1.7777778 !important;
  margin-bottom: 1.3333333em !important;
}

.blog-rich-text-wrapper li {
  margin-bottom: 10px;
}

.blog-rich-text-wrapper h2 {
  font-size: 2rem !important;
  margin-bottom: 1.0666667em !important;
  margin-top: 3.5rem !important;
}

.blog-rich-text-wrapper h3 {
  font-size: 1.4rem !important;
  margin-bottom: 1.0666667em !important;
  margin-top: 3rem !important;
}

.blog-rich-text-wrapper table {
  border-collapse: collapse;
  margin-bottom: 40px;
  max-width: 100% !important;
  width: 100%;
}

.blog-rich-text-wrapper table td {
  border: 1px solid #dddfe1;
  color: #636363;
  font-size: 0.9rem;
  overflow-wrap: break-word;
  padding: 5px;
  text-align: center;
}

.blog-rich-text-wrapper table td:first-child {
  padding-left: 14px;
  text-align: left;
}

.blog-rich-text-wrapper table thead td {
  background-color: #54585d;
  border: 1px solid #54585d;
  color: #fff;
  font-family: system-ui;
  font-size: 12px;
  font-weight: bold;
}

.cms-toc-link {
  background-color: transparent;
  color: #343e73;
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2rem;
  margin-bottom: 0.75rem !important;
  text-decoration: none;
}

.cms-toc-link:hover {
  background-color: #ffd397;
}

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

@media screen and (max-width: 767px) {
  .cms-featured-grid,
  .cms-blog-list {
    grid-template-columns: 1fr;
  }

  .blog-rich-text-wrapper h1 {
    font-size: 24px !important;
  }

  .blog-rich-text-wrapper h2 {
    font-size: 20px !important;
  }

  .blog-rich-text-wrapper h3 {
    font-size: 18px !important;
  }

  .blog-rich-text-wrapper p,
  .blog-rich-text-wrapper ul,
  .blog-rich-text-wrapper ol,
  .blog-rich-text-wrapper li {
    font-size: 16px !important;
  }
}
