/* ===== DETAIL PAGE STYLES ===== */

/* Page hero */
.page-hero {
  background: var(--navy);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.45); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.7); }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .lead { font-size: 17px; color: rgba(255,255,255,0.68); line-height: 1.75; max-width: 640px; }
.page-hero .hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px;
}
.page-hero .hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.page-hero .hero-meta-item i { color: var(--red); }

/* Content layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
}
.detail-content h2 { font-size: 24px; margin: 40px 0 14px; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content h3 { font-size: 18px; margin: 28px 0 10px; color: var(--navy); }
.detail-content p { font-size: 15px; line-height: 1.8; color: var(--gray-600); margin-bottom: 16px; }
.detail-content ul, .detail-content ol {
  margin: 0 0 20px 20px; color: var(--gray-600); font-size: 15px;
}
.detail-content li { margin-bottom: 8px; line-height: 1.7; }
.detail-content strong { color: var(--gray-900); }

/* Highlight box */
.highlight-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin: 24px 0;
}
.highlight-box p { color: var(--blue); margin: 0; font-size: 15px; line-height: 1.7; }

.warn-box {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin: 24px 0;
}
.warn-box p { color: var(--amber); margin: 0; font-size: 15px; line-height: 1.7; }

/* Benefit cards grid */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.benefit-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 20px;
}
.benefit-card i { font-size: 22px; margin-bottom: 10px; display: block; }
.benefit-card h4 { font-size: 14px; margin-bottom: 6px; }
.benefit-card p { font-size: 13px; margin: 0; }

/* Steps */
.steps { margin: 24px 0; }
.step {
  display: flex; gap: 16px; margin-bottom: 24px;
  align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  flex-shrink: 0; margin-top: 2px;
}
.step-body h4 { font-size: 15px; margin-bottom: 5px; }
.step-body p { font-size: 14px; margin: 0; }

/* Sidebar */
.detail-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.sidebar-card h4 { font-size: 15px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.sidebar-card ul { list-style: none; }
.sidebar-card ul li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray-600);
  padding: 7px 0; border-bottom: 1px solid var(--gray-100);
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li i { color: var(--blue); font-size: 14px; flex-shrink: 0; }
.sidebar-cta {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 24px; text-align: center;
}
.sidebar-cta h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* Related cards */
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 16px; }
.related-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px;
  transition: all .2s;
}
.related-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.related-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.related-card h4 { font-size: 14px; margin-bottom: 6px; }
.related-card p { font-size: 12px; line-height: 1.6; }
.related-link {
  font-size: 12px; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  transition: gap .2s;
}
.related-link:hover { gap: 9px; }

/* Article specific */
.article-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 24px;
}
.article-author {
  display: flex; align-items: center; gap: 10px;
}
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.author-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.author-role { font-size: 11px; color: rgba(255,255,255,0.5); }
.article-stat {
  font-size: 12px; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 5px;
}
.article-stat i { font-size: 13px; }

/* TOC */
.toc {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 32px;
}
.toc h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); margin-bottom: 12px; }
.toc ol { margin: 0 0 0 16px; }
.toc ol li { margin-bottom: 6px; }
.toc a { font-size: 14px; color: var(--blue); }
.toc a:hover { text-decoration: underline; }

/* Share */
.share-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0; border-top: 1px solid var(--gray-200); margin-top: 40px;
}
.share-bar span { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.share-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--gray-600); cursor: pointer;
  transition: all .2s;
}
.share-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Responsive detail */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 100px 0 48px; }
}
