/* ---- css/blog-article.css ---- */
html,
body {
  background: #ffffff;
}

.stArticlePage {
  min-height: 100vh;
  background: #ffffff;
}

.stArticlePage {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 76px 0 100px;
  color: #17234f;
}

.stArticle {
  width: min(100%, 820px);
  margin: 0 auto;
}

.stArticleHeader {
  text-align: center;
}

.stArticleBack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 42px;
  color: #394b8c;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.stArticleBack:hover {
  color: #25aeb5;
}

.stArticleCategory {
  margin: 0 0 14px;
  color: #25aeb5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stArticleHeader h1 {
  max-width: 780px;
  margin: 0 auto;
  color: #17234f;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.stArticleDescription {
  max-width: 680px;
  margin: 26px auto 22px;
  color: #60708d;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.stArticleMeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: #7a87a0;
  font-size: 0.9rem;
}

.stArticleMeta > * + *::before {
  content: "•";
  margin-right: 22px;
  color: #4fc1c4;
}

.stArticleHero {
  overflow: hidden;
  margin: 52px 0 60px;
  border-radius: 28px;
  background: #dff3f2;
  box-shadow: 0 24px 65px rgba(30, 42, 90, 0.13);
}

.stArticleHero img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.stArticleBody {
  color: #44536f;
  font-size: 1.08rem;
  line-height: 1.85;
}

.stArticleBody > :first-child {
  margin-top: 0;
}

.stArticleBody h2,
.stArticleBody h3 {
  color: #17234f;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.stArticleBody h2 {
  margin: 56px 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.stArticleBody h3 {
  margin: 38px 0 14px;
  font-size: 1.35rem;
}

.stArticleBody p,
.stArticleBody ul,
.stArticleBody ol,
.stArticleBody blockquote {
  margin: 0 0 24px;
}

.stArticleBody ul,
.stArticleBody ol {
  padding-left: 1.4em;
}

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

.stArticleBody a {
  color: #2d7f91;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.stArticleBody blockquote {
  padding: 22px 26px;
  border-left: 4px solid #4fc1c4;
  border-radius: 0 16px 16px 0;
  background: #f0f9f9;
  color: #334267;
}

.stArticleBody img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.stArticleFooter {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid #dfe6ef;
}

.stArticleFooter > p {
  margin: 0 0 14px;
  color: #17234f;
  font-weight: 800;
}

.stArticleTags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stArticleTags span {
  padding: 8px 13px;
  border-radius: 999px;
  background: #eef6f7;
  color: #376979;
  font-size: 0.85rem;
  font-weight: 700;
}

.stArticleCta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 88px auto 0;
  padding: 38px 42px;
  border-radius: 28px;
  background: linear-gradient(130deg, #1e2a5a 0%, #394b8c 58%, #2aaeb5 130%);
  box-shadow: 0 26px 70px rgba(30, 42, 90, 0.2);
  color: white;
}

.stArticleCta p {
  margin: 0 0 7px;
  color: #8be0df;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stArticleCta h2 {
  max-width: 510px;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.stArticleCtaLinks {
  display: flex;
  flex-direction: column;
  flex: 0 0 220px;
  gap: 10px;
}

.stArticleCtaLinks a {
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.86rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.stArticleCtaLinks a:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 720px) {
  .stArticlePage {
    width: min(100% - 28px, 1120px);
    padding: 48px 0 72px;
  }

  .stArticleBack {
    margin-bottom: 30px;
  }

  .stArticleMeta {
    gap: 6px 12px;
  }

  .stArticleMeta > * + *::before {
    margin-right: 12px;
  }

  .stArticleHero {
    margin: 38px 0 42px;
    border-radius: 18px;
  }

  .stArticleBody {
    font-size: 1rem;
    line-height: 1.78;
  }

  .stArticleCta {
    align-items: stretch;
    flex-direction: column;
    margin-top: 64px;
    padding: 30px 24px;
  }

  .stArticleCtaLinks {
    flex: auto;
  }
}

/* ---- Tables (added with the Laravel port) ----
 * The Next.js site compiled posts without GitHub-flavoured Markdown, so the seven
 * articles with a comparison table showed raw "| a | b |" text. They are now real
 * tables, styled to match the article body. */
.stArticleTable {
  margin: 0 0 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stArticleBody table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.6;
}

.stArticleBody th,
.stArticleBody td {
  padding: 12px 14px;
  border-bottom: 1px solid #dfe6ef;
  text-align: left;
  vertical-align: top;
}

.stArticleBody th {
  background: #f0f9f9;
  color: #17234f;
  font-weight: 800;
}
