/* -- Hero (aligned with blogs/index system) -- */
.hero {
  min-height: clamp(360px, 46vw, 560px);
  padding-bottom: 28px;
  background:
    linear-gradient(120deg, rgba(18, 13, 10, 0.82), rgba(18, 13, 10, 0.44)),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.article-hero__content {
  grid-template-columns: 1fr;
  align-items: end;
  gap: 0;
  padding-top: 36px;
  padding-bottom: 0;
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.article-hero__cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(232, 120, 60, 0.9);
  color: #fff8ef;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.article-hero__title {
  margin: 0 0 18px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff8ef;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 248, 239, 0.6);
  flex-wrap: wrap;
}

.article-hero__meta span { display: flex; align-items: center; gap: 6px; }

/* -- Article Body -- */
.article-body {
  padding: 60px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

/* -- Article Content -- */
.article-content {
  color: var(--text-soft);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: rgba(255, 248, 239, 0.72);
  font-weight: 500;
}

.article-breadcrumb a {
  color: rgba(255, 248, 239, 0.86);
  transition: color 0.2s ease;
}

.article-breadcrumb a:hover { color: var(--accent-soft); }
.article-breadcrumb span { opacity: 0.72; }

.article-lead {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 28px;
  font-weight: 400;
}

.article-content h2 {
  margin: 36px 0 16px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.article-content p {
  margin: 0 0 20px;
  line-height: 1.85;
  font-size: 1rem;
  color: #6a4f3f;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px;
  padding-left: 20px;
  line-height: 1.85;
  font-size: 1rem;
  color: #6a4f3f;
}

.article-content li { margin-bottom: 8px; }

.pull-quote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: rgba(232, 120, 60, 0.06);
  border-radius: 0 16px 16px 0;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent-deep);
  line-height: 1.5;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.article-table th {
  padding: 12px 16px;
  text-align: left;
  background: rgba(232, 120, 60, 0.08);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(232, 120, 60, 0.18);
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}

.article-table tr:hover td {
  background: rgba(232, 120, 60, 0.03);
}

.article-table td:first-child { font-weight: 600; color: var(--text); }

.article-table td.highlight {
  color: var(--accent);
  font-weight: 700;
}

/* -- Share Buttons -- */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-share span {
  font-size: 0.82rem;
  color: rgba(30, 18, 8, 0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font: 600 0.82rem "Poppins", "Inter", sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  border-color: rgba(232, 120, 60, 0.40);
  color: var(--accent);
  background: rgba(232, 120, 60, 0.05);
}

.share-btn--wa {
  border-color: rgba(232, 120, 60, 0.30);
  color: var(--accent);
}

.share-btn--wa:hover {
  border-color: var(--accent);
  background: rgba(232, 120, 60, 0.07);
  color: var(--accent-deep);
}

/* -- Author Box -- */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  background: var(--accent-light);
  border: 1px solid rgba(232, 120, 60, 0.15);
  border-radius: 18px;
  margin-top: 40px;
}

.author-box__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(232, 120, 60, 0.30);
}

.author-box__info h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.author-box__info p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--accent);
}

.author-box__info span {
  display: block;
  font-size: 0.9rem;
  color: #6a4f3f;
  line-height: 1.7;
}

/* -- Article Sidebar -- */
.article-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(120, 70, 30, 0.06);
  border-radius: 20px;
  padding: 22px;
  overflow: hidden;
}

.sidebar-card__title {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Related posts in sidebar */
.sidebar-related-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-related-post:last-child { border-bottom: none; }

.sidebar-related-post__thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-related-post__title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.sidebar-related-post__title:hover { color: var(--accent); }
.sidebar-related-post time { display: block; font-size: 0.75rem; color: var(--text-soft); margin-top: 4px; opacity: 0.7; }

/* CTA card */
.sidebar-cta h3 {
  margin: 0 0 10px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.sidebar-cta p {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: #6a4f3f;
  line-height: 1.7;
}

/* Newsletter */
.sidebar-newsletter p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.7;
}

.sidebar-newsletter input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.sidebar-newsletter input:focus {
  outline: none;
  border-color: var(--accent);
}

.sidebar-newsletter input::placeholder { color: rgba(30, 18, 8, 0.35); }

.sidebar-newsletter {
  position: sticky;
  top: 96px;
  z-index: 5;
}

.sidebar-newsletter .btn--ghost {
  border-color: rgba(30, 18, 8, 0.14);
  background: #ffffff;
  color: var(--accent-deep);
}

.sidebar-newsletter .btn--ghost:hover {
  border-color: rgba(232, 120, 60, 0.4);
  background: rgba(232, 120, 60, 0.08);
  color: var(--accent-deep);
}

/* -- Related Posts Section (bottom) -- */
.related-posts-section {
  padding: 60px 0;
  background: #f8f2e8;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

/* -- Compact Footer -- */
.page-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(30, 18, 8, 0.08);
  background: rgba(253, 248, 242, 0.98);
}

.page-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(30, 18, 8, 0.45);
}

.page-footer__inner a {
  color: var(--accent);
  transition: color 0.2s ease;
}

.page-footer__inner a:hover { color: var(--accent-deep); }

/* -- Responsive -- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .article-body {
    padding: 40px 0 64px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .article-sidebar {
    position: static;
  }

  .sidebar-newsletter {
    position: static;
  }
  .article-hero__content {
    padding-top: 42px;
    padding-bottom: 4px;
  }
  .related-posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .article-body {
    padding: 28px 0 52px;
  }

  .article-content {
    font-size: 0.98rem;
  }

  .article-lead {
    font-size: 1.02rem;
    line-height: 1.82;
    margin-bottom: 20px;
  }

  .article-content h2 {
    margin: 30px 0 14px;
    font-size: 1.95rem;
    line-height: 1.15;
  }

  .article-content p,
  .article-content ul,
  .article-content ol {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
  }

  .pull-quote {
    margin: 22px 0;
    padding: 18px 18px 18px 20px;
    font-size: 1.02rem;
    line-height: 1.65;
    border-radius: 0 12px 12px 0;
  }

  .article-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .article-share {
    gap: 10px;
    margin: 28px 0;
    padding: 16px 0;
  }

  .article-share span {
    width: 100%;
    margin-bottom: 2px;
  }

  .share-btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 38px;
  }
  .article-hero__content {
    padding-top: 34px;
    padding-bottom: 2px;
  }
  .article-hero__title {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    line-height: 1.08;
  }
  .article-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }

  .author-box {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    margin-top: 28px;
  }

  .author-box__avatar {
    width: 52px;
    height: 52px;
  }

  .author-box__info h4 {
    font-size: 1.08rem;
  }

  .author-box__info p {
    font-size: 0.96rem;
    margin-bottom: 8px;
  }

  .author-box__info span {
    font-size: 0.92rem;
  }

  .article-sidebar {
    gap: 14px;
  }

  .sidebar-card {
    border-radius: 18px;
    padding: 18px;
  }

  .sidebar-card__title {
    margin-bottom: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
  }

  .sidebar-related-post {
    gap: 10px;
    padding: 10px 0;
  }

  .sidebar-related-post__thumb {
    width: 66px;
    height: 52px;
    border-radius: 9px;
  }

  .sidebar-related-post__title {
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .sidebar-related-post time {
    font-size: 0.88rem;
    margin-top: 3px;
  }

  .sidebar-cta h3 {
    font-size: 2rem;
    line-height: 1.14;
    margin-bottom: 10px;
  }

  .sidebar-cta p,
  .sidebar-newsletter p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .sidebar-newsletter input {
    height: 50px;
    font-size: 1.02rem;
    margin-bottom: 12px;
  }

  .sidebar-newsletter .btn--ghost {
    min-height: 50px;
    border-radius: 999px;
    font-size: 1.04rem;
    font-weight: 600;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
  }

  .related-posts-section {
    padding: 44px 0;
  }

  .page-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
