/* ===== ARTICLE PAGE ===== */

/* Article Hero */
.article-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
}

.article-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-placeholder {
  width: 100%;
  height: 100%;
  background: var(--grey-1);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.article-hero .container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
}

/* Hero Content (below image on mobile) */
.article-hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.article-hero-content h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
  color: var(--main);
}

.article-hero-meta {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-5);
}

/* Article Layout */
.article-section {
  padding: 48px 0 60px;
}

.article-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Article Body */
.article-body {
  max-width: 100%;
}

.article-body p {
  font-size: 16px;
  line-height: 26px;
  color: var(--grey-9);
  margin-bottom: 16px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
  color: var(--main);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--main);
  margin-top: 24px;
  margin-bottom: 8px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-body ul li,
.article-body ol li {
  font-size: 16px;
  line-height: 26px;
  color: var(--grey-9);
  margin-bottom: 4px;
}

.article-body blockquote {
  border-left: 3px solid var(--main);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--grey-1);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--grey-9);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 24px 0;
}

.article-body a {
  color: var(--main);
  text-decoration: underline;
}

/* Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-2);
}

.article-share > span {
  font-size: 16px;
  font-weight: 500;
  color: var(--main);
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--grey-2);
  transition: border-color 0.2s;
}

.share-icon:hover {
  border-color: var(--main);
}

/* Sidebar */
.article-sidebar {
  display: none;
}

/* TOC */
.article-toc {
  margin-bottom: 32px;
}

.article-toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-toc ol li {
  counter-increment: toc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc ol li::before {
  content: counter(toc);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--main);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-toc ol li a {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-9);
  text-decoration: none;
}

.article-toc ol li a:hover {
  color: var(--main);
}

/* Sidebar CTA Block */
.article-cta-block {
  border: 1px solid var(--grey-2);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-cta-block h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: var(--main);
}

.article-cta-block > p {
  font-size: 15px;
  line-height: 24px;
  color: var(--grey-9);
}

.article-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  border-radius: 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.article-cta-primary {
  background: var(--main);
  color: var(--white);
  justify-content: space-between;
}

.article-cta-primary:hover {
  opacity: 0.9;
}

.article-cta-call {
  background: var(--white);
  color: var(--main);
  border: 1px solid var(--grey-2);
  gap: 10px;
}

.article-cta-call:hover {
  border-color: var(--main);
}

.article-cta-browse {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--main);
  text-decoration: none;
  padding-top: 4px;
}

.article-cta-browse:hover {
  text-decoration: underline;
}

/* Related Articles */
.related-section {
  padding: 60px 0;
}

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.related-header h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  color: var(--main);
}

.related-btn2 {
  display: none;
}

.related-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-cta-mobile {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.related-cta-mobile .related-btn {
  height: 50px;
  padding: 0 32px;
  border-radius: 32px;
  font-size: 16px;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
  .article-hero {
    height: 480px;
  }

  .article-hero .container {
    padding-bottom: 60px;
  }

  .article-hero-content h1 {
    font-size: 42px;
    line-height: 52px;
    max-width: 700px;
  }

  .article-hero-meta {
    font-size: 18px;
    line-height: 28px;
  }

  .article-section {
    padding: 60px 0 84px;
  }

  .article-layout {
    flex-direction: row;
    gap: 48px;
  }

  .article-body {
    flex: 1;
    min-width: 0;
  }

  .article-body p {
    font-size: 18px;
    line-height: 28px;
  }

  .article-body h2 {
    font-size: 32px;
    line-height: 42px;
  }

  .article-body h3 {
    font-size: 20px;
    line-height: 30px;
  }

  .article-body ul li,
  .article-body ol li {
    font-size: 18px;
    line-height: 28px;
  }

  /* Sidebar visible on desktop */
  .article-sidebar {
    display: block;
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    align-self: flex-start;
  }

  /* Related */
  .related-section {
    padding: 84px 0;
  }

  .related-header h2 {
    font-size: 36px;
    line-height: 48px;
  }

  .related-btn2 {
    display: flex;
    width: 180px;
    height: 58px;
    justify-content: space-between;
  }

  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .related-cta-mobile {
    display: none;
  }
}