/* Blog index + article pages */

.blog-layout {
  background: #f6f7fb;
}

.blog-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.blog-intro .text-block {
  max-width: 840px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  padding: 0 1.25rem 1.25rem 1.25rem;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card__thumb {
  width: calc(100% + 2.5rem);
  margin: 0 -1.25rem 0.75rem -1.25rem;
  height: 170px;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.12);
}

.blog-card__tag {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
  margin: 0;
}

.blog-card h3 {
  margin: 0;
  line-height: 1.25;
}

.blog-card h3 a {
  color: #0f172a;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: #0b63ce;
}

.blog-card__excerpt {
  margin: 0;
  color: #4b5563;
}

.blog-card__meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: auto;
}

.blog-cta {
  padding-bottom: 4rem;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #0b63ce, #0f9ae8);
  color: #ffffff;
  padding: 1.75rem;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 99, 206, 0.25);
}

.cta-card__copy {
  max-width: 640px;
}

.cta-card h2 {
  color: #ffffff;
  margin: 0.35rem 0;
}

.cta-card p {
  margin: 0.15rem 0;
}

.cta-card__actions {
  display: flex;
  gap: 0.75rem;
}

.cta-card .btn {
  text-decoration: none;
  font-weight: 700;
}

/* Article pages */
.article-page {
  background: #f8fafc;
  overflow-x: hidden;
}

.article-page .page-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.article-page .page-hero .content-overlay {
  padding: 4.5rem 1.6rem 3.5rem 1.6rem;
}

.article-page .page-hero .hero-title {
  max-width: 820px;
}

.article-page .page-hero .hero-sub {
  max-width: 820px;
  margin-top: 0.35rem;
}

.article-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem 1.25rem;
  width: 100%;
  min-width: 0;
  position: relative;
  overflow: visible;
}

.article-content-layout {
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr);
  position: relative;
}

.article-header {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: -80px;
  position: relative;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

.article-header h1 {
  color: #ffffff;
  margin: 0.35rem 0;
}

.article-header-title {
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0.35rem 0;
}

.article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.article-body {
  grid-column: 2;
  background: #ffffff;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
  min-width: 0;
  max-width: 100%;
}

.article-related {
  position: sticky;
  top: 135px;
  grid-column: 1;
  justify-self: end;
  align-self: start;
  width: 280px;
  margin: 1.5rem 1.5rem 0 0;
  background: #ffffff;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
  padding: 1rem;
  z-index: 3;
}

.article-related__toc {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.article-related__toc h2 {
  margin-bottom: 0.45rem;
}

.guide-toc__note {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.article-related__toc .guide-toc__note {
  margin: -0.2rem 0 0.3rem 0;
}

.article-related__toc ol {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1.25rem;
}

.article-related__toc li {
  color: #475569;
  font-weight: 700;
  padding-left: 0.15rem;
}

.article-related__toc a {
  display: inline-block;
  border-radius: 7px;
  color: #0f172a;
  padding: 0.32rem 0.45rem;
}

.article-related__toc a:hover {
  background: #e5f2ff;
  text-decoration: none;
}

.article-related h2 {
  color: #0f172a;
  font-size: 1rem;
  margin: 0.25rem 0 0.6rem 0;
}

.article-related h2:not(:first-child) {
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
  padding-top: 1rem;
}

.article-related a {
  display: block;
  color: #0b63ce;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  padding: 0.42rem 0;
}

.article-related a:hover {
  text-decoration: underline;
}

.article-related-inline {
  display: block;
  background: #f8fafc;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.article-related-inline h2 {
  font-size: 1.35rem;
  margin: 0 0 0.7rem 0;
}

.article-related-inline h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem 0;
}

.article-related-inline > div + div {
  border-top: 1px solid #e2e8f0;
  margin-top: 0.55rem;
  padding-top: 0.65rem;
}

.related-link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  margin: 0.15rem 0 0.35rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.related-link-list a {
  color: #0b63ce;
  font-weight: 700;
  text-decoration: none;
}

.related-link-list a:hover {
  text-decoration: underline;
}

.article-body h2,
.article-body h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.article-body p {
  margin: 0.5rem 0;
  color: #334155;
}

.article-body ul,
.article-body ol {
  margin: 0.25rem 0 0.75rem 1.25rem;
  color: #334155;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.callout {
  background: #0f9ae8;
  color: #0f172a;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  font-weight: 600;
}

.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social-share a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.social-share a:hover {
  background: #e5f2ff;
  border-color: #0b63ce;
}

.article-cta {
  margin-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.article-cta .cta-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.article-cta .btn {
  text-decoration: none;
  font-weight: 700;
}

.article-cta--inline {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 1rem;
}

.article-cta--inline .cta-microcopy {
  color: #64748b;
  font-size: 0.94rem;
}

/* Training-style blog articles */
.training-article .article-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #1f2937;
}

.training-article,
.training-article * {
  min-width: 0;
}

.training-article p,
.training-article li,
.training-article h1,
.training-article h2,
.training-article h3,
.training-article a {
  overflow-wrap: anywhere;
}

.guide-toc {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
  padding: 1rem;
  margin: 1rem 0 1.25rem 0;
}

.guide-toc h2 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem 0;
}

.guide-toc .guide-toc__note {
  margin: 0 0 0.75rem 0;
}

.guide-toc ol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.45rem;
  list-style: decimal;
}

.guide-toc li {
  padding-left: 0.25rem;
}

.guide-toc a {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0b63ce;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.guide-toc a:hover {
  border-color: #0b63ce;
  background: #e5f2ff;
}

.responsive-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0 1.4rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.responsive-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

.responsive-table th,
.responsive-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  color: #334155;
}

.responsive-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.responsive-table tr:last-child td {
  border-bottom: 0;
}

.module-card {
  margin: 2.8rem 0;
  padding: 1.25rem;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fbfdff;
  max-width: 100%;
  overflow: hidden;
}

.final-info-card > section + section,
.final-info-card .social-share {
  border-top: 1px solid #e2e8f0;
  margin-top: 1.15rem;
  padding-top: 1rem;
}

.module-label {
  display: inline-block;
  margin: 0 0 0.4rem 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #0f3f7a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-card h2 {
  margin-top: 0;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.8rem 0 1rem 0;
}

.learning-grid > div,
.checklist-panel,
.resource-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 1rem;
}

.learning-grid h3,
.checklist-panel h3,
.resource-card h3 {
  margin-top: 0;
}

.resource-grid {
  display: flex;
  gap: 1rem;
  transition: transform 220ms ease;
  margin-top: 0;
  padding: 0.25rem 0 0.8rem 0;
}

.resource-carousel {
  position: relative;
  margin-top: 1.25rem;
  overflow: hidden;
}

.resource-card {
  flex: 0 0 100%;
}

.resource-carousel__button {
  position: absolute;
  top: var(--resource-arrow-top, 50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.resource-carousel__button:hover {
  border-color: #0b63ce;
  background: #e5f2ff;
}

.resource-carousel__button--prev {
  left: 1.7rem;
}

.resource-carousel__button--next {
  right: 1.7rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
}

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

.resource-link {
  margin: 0.65rem 0 0 0;
  font-size: 0.92rem;
}

.resource-link a {
  color: #0b63ce;
  font-weight: 700;
  text-decoration: none;
}

.resource-link a:hover {
  text-decoration: underline;
}

.mini-cta {
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
  padding-top: 0.8rem;
}

.mini-cta p {
  margin-bottom: 0;
  font-weight: 700;
}

.mini-cta a {
  color: #0b63ce;
}

.related-card-island {
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  padding: 1rem;
  margin-top: 1.5rem;
}

.related-card-island__header {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.related-card-island__header h2 {
  margin: 0;
}

.related-card-island__header p {
  margin: 0;
}

.related-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.related-visual-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.related-visual-card:hover {
  border-color: #0b63ce;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.related-visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.related-visual-card span {
  padding: 0.7rem;
}

.checklist-panel {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .training-article.article-body {
    padding: 1rem;
  }

  .training-article .article-lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }

  .guide-toc ol,
  .related-card-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 10px;
  }

  .learning-grid > div,
  .checklist-panel,
  .resource-card {
    padding: 0.85rem;
  }

  .resource-grid {
    gap: 0.85rem;
  }

  .resource-carousel__button {
    width: 2rem;
    height: 2rem;
  }

  .resource-carousel__button--prev {
    left: 1.35rem;
  }

  .resource-carousel__button--next {
    right: 1.35rem;
  }

  .related-card-island {
    padding: 0.85rem;
  }

  .responsive-table {
    margin: 0.65rem 0 1.1rem 0;
    border-radius: 8px;
  }

  .responsive-table table {
    min-width: 620px;
  }

  .responsive-table th,
  .responsive-table td {
    padding: 0.65rem 0.7rem;
  }

  .video-frame {
    border-radius: 7px;
  }

  .resource-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 720px) {
  .article-header {
    margin-top: -60px;
  }

  .cta-card__actions,
  .article-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-card__actions,
  .article-cta .cta-buttons {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .article-wrapper {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    overflow-x: hidden;
  }

  .article-header {
    padding: 0.9rem;
  }

  .article-header-title {
    font-size: 1.35rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.88rem;
  }

  .training-article.article-body {
    padding: 0.8rem;
  }

  .module-card {
    padding: 0.8rem;
  }

  .module-label {
    font-size: 0.76rem;
    max-width: 100%;
    white-space: normal;
  }

  .responsive-table table {
    min-width: 560px;
  }

  .article-cta .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1598px) {
  .article-related {
    display: none;
  }
}

@media (min-width: 1599px) {
  .article-related-inline {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .related-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
