/* ==========================================================================
   Stockwiz Blog — blog.html, blog-post.html, blog-tag.html
   Layout ported from the StrykeX blog, re-skinned to the Stockwiz theme.
   ========================================================================== */

.blog-page {
  --blog-gradient: linear-gradient(92.36deg, #CDFF64 -9.78%, #66D6AD 47.15%, #13B5E8 105.24%);
  --blog-green: rgba(88, 255, 41, 1);
  --blog-green-soft: rgba(88, 255, 41, 0.06);
  --blog-surface: linear-gradient(208.8deg, #171823 -0.92%, #0F1018 97.83%);
  --blog-border: rgba(255, 255, 255, 0.12);
  --blog-border-strong: rgba(255, 255, 255, 0.2);
  --blog-muted: rgba(255, 255, 255, 0.7);
  --blog-media-bg: #16171E;
  padding-bottom: 100px;
}

/* Shared bits ------------------------------------------------------------ */

.blog-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--blog-green);
  background: var(--blog-green-soft);
  border: 1px solid rgba(88, 255, 41, 0.35);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blog-muted);
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.blog-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.blog-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.blog-media-img.is-contain {
  object-fit: contain;
}

.blog-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(179, 245, 118, 0.12) 0%, rgba(179, 245, 118, 0) 100%),
    var(--blog-media-bg);
}

.blog-media-placeholder img {
  width: 45%;
  max-width: 180px;
  opacity: 0.5;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.blog-author-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author-avatar.is-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blog-gradient);
  color: #0F1018;
  font-size: 15px;
  font-weight: 800;
}

.blog-author-text {
  min-width: 0;
}

.blog-author-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-author-role {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-status {
  padding: 60px 20px;
  text-align: center;
}

.blog-status-title {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.blog-status-text {
  font-size: 16px;
  color: var(--blog-muted);
}

.blog-skeleton {
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: blog-shimmer 1.4s ease-in-out infinite;
}

@keyframes blog-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Listing: hero + featured sidebar --------------------------------------- */

.blog-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.blog-hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--blog-border-strong);
  background: var(--blog-media-bg);
}

.blog-hero-card:hover .blog-media-img {
  transform: scale(1.03);
}

.blog-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blog-media-bg);
}

.blog-hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px dashed var(--blog-border-strong);
}

.blog-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: rgba(15, 16, 24, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.blog-hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-hero-overlay .blog-meta {
  color: rgba(255, 255, 255, 0.8);
}

.blog-featured-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-left: 40px;
  border-left: 1px solid var(--blog-border);
}

.blog-featured-side-title {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.blog-featured-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-featured-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--blog-border);
  background: var(--blog-surface);
}

.blog-featured-item:hover {
  border-color: rgba(88, 255, 41, 0.5);
  background: var(--blog-green-soft);
}

.blog-featured-item:hover p {
  color: var(--blog-green);
}

.blog-featured-thumb {
  position: relative;
  width: 88px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blog-media-bg);
}

.blog-featured-thumb .blog-media-placeholder img {
  width: 70%;
}

.blog-featured-text {
  min-width: 0;
}

.blog-featured-cat {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #66D6AD;
}

.blog-featured-text p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  transition: color 0.3s linear;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Listing: tabs + grid --------------------------------------------------- */

.blog-list-section {
  margin-top: 80px;
}

.blog-list-head {
  margin-bottom: 30px;
}

.blog-list-head h2 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
}

.blog-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 40px;
  scrollbar-width: none;
}

.blog-tabs::-webkit-scrollbar {
  display: none;
}

.blog-tab {
  flex-shrink: 0;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--blog-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 300ms linear;
}

.blog-tab:hover,
.blog-tab.is-active {
  border-color: #29FF3A;
  color: var(--blog-green);
  background:
    radial-gradient(52.58% 71.95% at 50% 117.07%, rgba(88, 255, 41, 0.31) 0%, rgba(88, 255, 41, 0.1705) 18.5%, rgba(88, 255, 41, 0) 100%),
    var(--blog-green-soft);
}

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

.blog-grid > .blog-status {
  grid-column: 1 / -1;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--blog-border-strong);
  background: var(--blog-surface);
  transition: all 0.5s ease;
}

.blog-card:hover {
  border-color: rgba(88, 255, 41, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 0 30px 1px rgba(82, 237, 38, 0.12);
}

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

.blog-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blog-media-bg);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.blog-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link .blog-meta {
  margin-top: auto;
  font-size: 13px;
}

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

.blog-learn-more {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.blog-learn-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.blog-learn-more:hover {
  color: var(--blog-green);
}

.blog-learn-more:hover svg {
  transform: translateX(3px);
}

/* Tag page ---------------------------------------------------------------- */

.blog-tag-count {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blog-green);
  background: var(--blog-green-soft);
  border: 1px solid rgba(88, 255, 41, 0.35);
}

/* Post page --------------------------------------------------------------- */

.blog-back-link {
  display: inline-flex;
  width: fit-content;
  font-size: 15px;
  font-weight: 500;
  color: var(--blog-muted);
}

.blog-back-link:hover {
  color: var(--blog-green);
}

.blog-back-link--mobile {
  display: none;
  margin-bottom: 24px;
}

.blog-post-layout {
  display: flex;
  gap: 48px;
  align-items: stretch;
}

.blog-post-rail {
  width: 260px;
  flex-shrink: 0;
}

.blog-post-rail-inner {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 150px);
}

.blog-rail-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
}

.blog-bookmarks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  border-left: 1px solid var(--blog-border);
}

.blog-bookmark-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-left: -1px;
  padding: 8px 10px 8px 14px;
  border-left: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

.blog-bookmark-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

.blog-bookmark-link:hover,
.blog-bookmark-link.is-active {
  color: var(--blog-green);
}

.blog-bookmark-link.is-active {
  border-left-color: var(--blog-green);
  background: var(--blog-green-soft);
}

.blog-post-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 60px;
  min-width: 0;
}

.blog-post-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-post-hero-media {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--blog-border-strong);
  background: var(--blog-media-bg);
}

.blog-post-hero-media .blog-media-img {
  object-fit: contain;
}

.blog-post-hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 860px;
}

.blog-post-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  scroll-margin-top: 130px;
}

.blog-post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--blog-border);
  border-bottom: 1px solid var(--blog-border);
}

.blog-hero-intro {
  font-size: 17px;
  line-height: 1.65;
}

.blog-post-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.blog-section-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 130px;
}

.blog-section-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.blog-section-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.blog-section-description {
  font-size: 18px;
  line-height: 1.75;
}

.blog-section-item--with-image {
  gap: 24px;
}

.blog-section-item--with-image.blog-section-item--align-right,
.blog-section-item--with-image.blog-section-item--align-left {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  column-gap: 40px;
  align-items: start;
}

.blog-section-item--align-left {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr) !important;
}

.blog-section-item--align-left .blog-section-copy {
  order: 2;
}

.blog-section-item--align-left .blog-section-image-col {
  order: 1;
}

.blog-section-item--align-center .blog-section-image-col {
  align-self: center;
  width: 100%;
  max-width: 640px;
}

.blog-section-image-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.blog-section-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--blog-border);
  background: var(--blog-media-bg);
}

.blog-section-image img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.blog-section-image-description,
.blog-section-image-description .blog-rich-content {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.blog-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--blog-media-bg);
}

.blog-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-hero-video-embed {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

/* Disclaimer + tags */
.blog-post-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-post-disclaimer {
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 183, 86, 0.35);
  background: rgba(255, 136, 49, 0.06);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: var(--blog-muted);
}

.blog-post-disclaimer .blog-rich-content {
  display: inline;
  color: inherit;
}

.blog-post-disclaimer .blog-rich-content p {
  display: inline;
}

.blog-post-disclaimer-label {
  font-style: normal;
  font-weight: 700;
  color: #FFB756;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-post-tag {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.blog-post-tag:hover {
  border-color: #29FF3A;
  color: var(--blog-green);
  background: var(--blog-green-soft);
}

/* FAQ */
.blog-post-faq-head {
  margin-bottom: 30px;
}

.blog-post-faq-title {
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

.blog-post-faq-title span {
  background: var(--blog-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-post-faq-subtitle {
  font-size: 18px;
  color: var(--blog-muted);
}

.blog-post-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-post-faq-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--blog-surface);
  transition: border-color 0.4s ease;
}

.blog-post-faq-item.is-open {
  border-color: rgba(88, 255, 41, 0.35);
}

.blog-post-faq-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.blog-post-faq-question,
.blog-post-faq-question .blog-rich-content {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.blog-post-faq-toggle {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: all 0.4s ease;
}

.blog-post-faq-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
}

.blog-post-faq-item.is-open .blog-post-faq-toggle {
  border-color: transparent;
  background: linear-gradient(180deg, #29E337 0%, #76FF80 100%);
  color: #0F1018;
}

.blog-post-faq-item.is-open .blog-post-faq-toggle svg {
  transform: rotate(45deg);
}

.blog-post-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-faq-item.is-open .blog-post-faq-panel {
  grid-template-rows: 1fr;
}

.blog-post-faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.blog-post-faq-answer {
  padding: 0 24px 22px;
  font-size: 16px;
  line-height: 1.65;
}

/* CTA */
.blog-post-cta {
  padding: 60px 40px;
  border-radius: 25px;
  border: 1.5px solid var(--blog-border-strong);
  text-align: center;
  background:
    radial-gradient(41.01% 74.47% at 48.16% 100%, rgba(179, 245, 118, 0.1) 0%, rgba(179, 245, 118, 0.0018) 100%),
    var(--blog-surface);
}

.blog-post-cta .heading-dv h2 {
  margin-bottom: 12px;
  font-size: 46px;
  line-height: 1.2;
}

.blog-post-cta .heading-dv p {
  font-size: 20px;
  color: var(--blog-muted);
}

.blog-post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.blog-post-cta .btn-green {
  padding: 13px 48px;
}

.blog-post-cta .btn-green:hover {
  color: #000;
}

.blog-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
}

/* CMS rich text ------------------------------------------------------------ */

.blog-content-section,
.blog-content-section * {
  -webkit-user-select: text;
  user-select: text;
}

.blog-rich-content {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  overflow-wrap: break-word;
}

.blog-rich-content p {
  margin: 0 0 0.85em;
  font-size: inherit;
}

.blog-rich-content p:last-child {
  margin-bottom: 0;
}

.blog-rich-content em,
.blog-rich-content i {
  font-style: italic;
}

.blog-rich-content strong:not([style*="color:"]),
.blog-rich-content b:not([style*="color:"]) {
  font-weight: 700;
  color: #fff;
}

.blog-rich-content u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-rich-content h2,
.blog-rich-content h3,
.blog-rich-content h4,
.blog-rich-content h5,
.blog-rich-content h6 {
  margin: 1.2em 0 0.5em;
  line-height: 1.35;
}

.blog-rich-content h2:first-child,
.blog-rich-content h3:first-child,
.blog-rich-content h4:first-child {
  margin-top: 0;
}

.blog-rich-content h2 { font-size: 24px; }
.blog-rich-content h3 { font-size: 21px; font-weight: 600; }
.blog-rich-content h4 { font-size: 18px; font-weight: 600; }
.blog-rich-content h5,
.blog-rich-content h6 { font-size: 16px; font-weight: 600; }

.blog-rich-content :is(h2, h3, h4, h5, h6):not([style*="color"]) {
  color: #fff;
}

.blog-rich-content a:not([style*="color"]),
.blog-inline-link {
  color: #66D6AD;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-rich-content a:not([style*="color"]):hover,
.blog-inline-link:hover {
  color: var(--blog-green);
}

/* Reset Stockwiz global `ul, li { list-style: none; padding: 0 }` for article content */
.blog-rich-content ul,
.blog-rich-content ol {
  margin: 0.85em 0;
  padding-left: 1.6em;
}

.blog-rich-content ul { list-style: disc; }
.blog-rich-content ol { list-style: decimal; }

.blog-rich-content li {
  margin: 0.4em 0;
  padding-left: 0.35em;
  list-style: inherit;
}

.blog-rich-content li > p {
  margin: 0;
}

.blog-rich-content li::marker {
  color: #66D6AD;
}

.blog-rich-content ul ul,
.blog-rich-content ol ol,
.blog-rich-content ul ol,
.blog-rich-content ol ul {
  margin: 0.35em 0;
}

.blog-rich-content blockquote {
  margin: 1em 0;
  padding: 14px 18px;
  border-left: 3px solid #66D6AD;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}

.blog-rich-content code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  color: #e2e8f0;
}

.blog-rich-content pre {
  margin: 1em 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.blog-rich-content pre code {
  padding: 0;
  background: transparent;
}

.blog-rich-content hr {
  margin: 1.5em 0;
  border: 0;
  border-top: 1px solid var(--blog-border);
  opacity: 1;
}

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

.blog-rich-content table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.blog-rich-content th,
.blog-rich-content td {
  padding: 10px 14px;
  border: 1px solid var(--blog-border-strong);
  text-align: left;
}

.blog-rich-content th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Titles stay white even if the CMS colored them */
.blog-heading-text,
.blog-heading-text * {
  color: #fff !important;
}

.blog-heading-text p {
  margin: 0;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1399px) {
  .blog-post-hero-media {
    max-width: 100%;
  }

  .blog-post-hero-text {
    max-width: 100%;
  }
}

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

  .blog-hero-title {
    font-size: 24px;
  }

  .blog-section-item--with-image.blog-section-item--align-right,
  .blog-section-item--with-image.blog-section-item--align-left {
    display: flex;
    flex-direction: column;
  }

  .blog-section-item--align-left .blog-section-copy,
  .blog-section-item--align-left .blog-section-image-col {
    order: 0;
  }

  .blog-section-item--with-image .blog-section-image-col {
    max-width: 560px;
  }

  .blog-section-item--align-center .blog-section-image-col {
    align-self: center;
  }

  .blog-section-item--align-right .blog-section-image-col {
    align-self: flex-end;
  }
}

@media (max-width: 991px) {
  .blog-page {
    padding-bottom: 60px;
  }

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

  .blog-featured-side {
    padding-left: 0;
    border-left: 0;
  }

  .blog-list-section {
    margin-top: 50px;
  }

  .blog-list-head h2,
  .blog-post-cta .heading-dv h2 {
    font-size: 34px;
  }

  .blog-post-rail {
    display: none;
  }

  .blog-back-link--mobile {
    display: inline-flex;
  }

  .blog-post-main {
    gap: 44px;
  }

  .blog-post-title {
    font-size: 30px;
  }

  .blog-section-heading {
    font-size: 24px;
  }

  .blog-section-description {
    font-size: 17px;
  }

  .blog-post-faq-title {
    font-size: 32px;
  }
}

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

  .blog-hero-card {
    border-radius: 18px;
  }

  .blog-hero-overlay {
    position: static;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .blog-hero-title {
    font-size: 20px;
  }

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

  .blog-featured-text p {
    font-size: 15px;
  }

  .blog-tabs {
    margin-bottom: 28px;
  }

  .blog-tab {
    padding: 8px 18px;
    font-size: 15px;
  }

  .blog-card-body {
    padding: 18px;
  }

  .blog-card-title {
    font-size: 18px;
  }

  .blog-list-head h2,
  .blog-post-cta .heading-dv h2 {
    font-size: 28px;
  }

  .blog-post-title {
    font-size: 26px;
  }

  .blog-hero-intro {
    font-size: 16px;
  }

  .blog-post-content {
    gap: 36px;
  }

  .blog-section-heading {
    font-size: 22px;
  }

  .blog-section-description {
    font-size: 16px;
  }

  .blog-section-item--with-image .blog-section-image-col {
    max-width: 100%;
    align-self: stretch !important;
  }

  .blog-post-faq-title {
    font-size: 26px;
  }

  .blog-post-faq-subtitle {
    font-size: 16px;
  }

  .blog-post-faq-btn {
    padding: 18px;
  }

  .blog-post-faq-question,
  .blog-post-faq-question .blog-rich-content {
    font-size: 17px;
  }

  .blog-post-faq-answer {
    padding: 0 18px 18px;
    font-size: 15px;
  }

  .blog-post-cta {
    padding: 40px 20px;
  }

  .blog-post-cta .heading-dv p {
    font-size: 17px;
  }

  .blog-post-cta .btn-green,
  .blog-post-cta .btn-brdr-white {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-media-img,
  .blog-post-faq-panel,
  .blog-post-faq-toggle,
  .blog-post-faq-toggle svg,
  .blog-skeleton {
    transition: none;
    animation: none;
  }
}
