/* ============ RizeUp Global, Blog ============ */

/* ---------- Blog hero / index ---------- */
.blog-hero { background: var(--lavender); position: relative; overflow: hidden; }
.blog-hero::before {
  content: ""; position: absolute; top: -110px; right: -70px;
  width: 300px; height: 300px; border-radius: 50%; background: var(--lavender-deep);
}
.blog-hero__inner { max-width: 860px; margin: 0 auto; padding: 56px 32px 48px; position: relative; text-align: center; }
.blog-hero__eyebrow {
  display: inline-block; background: #fff; color: var(--indigo);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 16px; margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(23,16,64,.06);
}
.blog-hero h1 { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 44px; margin: 0 0 14px; line-height: 1.1; }
.blog-hero h1 em { font-style: normal; color: var(--indigo); }
.blog-hero p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 620px; margin: 0 auto; text-wrap: pretty; }

/* ---------- Post grid ---------- */
.blog-grid-section { max-width: 1200px; margin: 0 auto; padding: 56px 32px 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid #EFEDF6; border-radius: 18px; background: #fff; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23,16,64,.09); border-color: #DAD5F5; }
.post-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-card__media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--lavender, #F3F2FB); }
.post-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.post-card__media--ph { min-height: 172px; font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 40px; color: #fff; opacity: .95; }
.post-card__ph--t1 { background: linear-gradient(135deg, #6C61F0, #4A3DD1); }
.post-card__ph--t2 { background: linear-gradient(135deg, #FDD35E, #F0B81F); }
.post-card__ph--t3 { background: linear-gradient(135deg, #EF6A64, #D8433C); }
.post-card__ph--t4 { background: linear-gradient(135deg, #35B978, #1B9B57); }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--indigo); background: var(--tint-indigo); border-radius: 999px; padding: 4px 11px; margin-bottom: 12px; }
.post-card__title { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.post-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; flex: 1; }
.post-card__meta { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.post-card__more { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--indigo); }

.blog-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 16px; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 44px 32px 20px; }
.article__breadcrumb { font-size: 13px; color: var(--faint); margin-bottom: 20px; }
.article__breadcrumb a { color: var(--muted); }
.article__breadcrumb a:hover { color: var(--indigo); }
.article__tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--indigo); background: var(--tint-indigo); border-radius: 999px; padding: 5px 13px; margin-bottom: 16px; }
.article__title { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.12; margin: 0 0 16px; }
.article__meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.article__meta-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; overflow: hidden; flex: none; }
.article__meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article__meta b { color: var(--ink); }
.article__cover { margin: 28px 0 8px; border-radius: 20px; overflow: hidden; }
.article__cover img { width: 100%; height: auto; display: block; }

/* Table of contents */
.article__toc { background: var(--lavender); border-radius: 16px; padding: 22px 26px; margin: 28px 0; }
.article__toc-title { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin: 0 0 12px; }
.article__toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.article__toc a { color: var(--ink); font-size: 15px; }
.article__toc a:hover { color: var(--indigo); }

/* Article body (rendered from portable text) */
.article__body { font-size: 17px; line-height: 1.75; color: #2C2748; }
.article__body h2 { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 27px; margin: 40px 0 14px; line-height: 1.25; scroll-margin-top: 84px; }
.article__body h3 { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 700; font-size: 20px; margin: 28px 0 10px; }
.article__body p { margin: 0 0 18px; text-wrap: pretty; }
.article__body a { color: var(--indigo); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(91,79,233,.35); text-underline-offset: 2px; }
.article__body a:hover { text-decoration-color: var(--indigo); }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.article__body li { line-height: 1.65; }
.article__body strong { color: var(--ink); font-weight: 700; }
.article__body img { max-width: 100%; border-radius: 14px; margin: 24px 0; }
.article__body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--indigo); color: var(--muted); font-style: italic; }

/* Key-takeaway / callout box */
.article__callout { background: var(--tint-indigo); border-radius: 16px; padding: 22px 26px; margin: 28px 0; }
.article__callout strong { color: var(--indigo); }

/* Inline CTA */
.article__cta { background: var(--indigo); border-radius: 20px; padding: 32px; margin: 40px 0; text-align: center; color: #fff; }
.article__cta h3 { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 24px; margin: 0 0 10px; color: #fff; }
.article__cta p { color: #CBC6F6; font-size: 15px; margin: 0 0 20px; line-height: 1.6; }
.article__cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.article__cta a { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-size: 15px; font-weight: 700; }
.article__cta a.y { background: var(--yellow); color: var(--ink); }
.article__cta a.y:hover { background: var(--yellow-dark); }
.article__cta a.w { background: var(--wa); color: #fff; }
.article__cta a.w:hover { background: var(--wa-dark); }

/* FAQ inside article */
.article__faq { margin: 40px 0 10px; }
.article__faq h2 { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 27px; margin: 0 0 18px; }
.article__faq-item { border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.article__faq-item h3 { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 700; font-size: 16.5px; margin: 0 0 8px; }
.article__faq-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* Related posts */
.article__related { max-width: 1200px; margin: 0 auto; padding: 40px 32px 80px; border-top: 1px solid var(--border-soft); }
.article__related h2 { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; font-size: 26px; text-align: center; margin: 30px 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .blog-hero h1 { font-size: 34px; }
  .article__title { font-size: 30px; }
  .article__body { font-size: 16.5px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero__inner, .blog-grid-section, .article, .article__related { padding-left: 20px; padding-right: 20px; }
  .article__body h2 { font-size: 23px; }
}
