/**
 * single-blog.css — single.php (ported from single-blog.html).
 *
 * Shared cards/sidebar/widgets are styled by css/blog.css (base). This file adds
 * the article hero, .prose body + callouts/tables/blockquote/CTA, FAQ accordion,
 * author box, related posts, comments, and the TOC widget. Reuses the :root
 * palette from style.css / header.css.
 */

/* ARTICLE HERO */
.article-hero { background: #f5f8ff; border-bottom: 1px solid var(--border); padding: 40px 0 0; }
.article-hero .breadcrumb { margin-bottom: 24px; }
.article-hero-inner { max-width: 820px; }
.article-cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.article-cat-badge { display: inline-flex; align-items: center; gap: 6px; background: #E3F2FD; color: #1565C0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 14px; border-radius: 50px; }
.article-cat-badge.neet { background: #E3F2FD; color: #1565C0; }
.article-cat-badge.jee { background: #E8F5E9; color: #2E7D32; }
.article-cat-badge.nursing { background: #FCE4EC; color: #C62828; }
.article-cat-badge.guide { background: #FFF8E1; color: #F57F17; }
.article-cat-badge.counseling { background: #EDE7F6; color: #6A1B9A; }
.article-featured-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(249,214,123,.25); border: 1px solid rgba(249,214,123,.6); color: #b07c00; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 50px; }
.article-title { font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.article-meta-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gray); }
.article-meta-item i { color: var(--primary); font-size: 12px; }
.article-meta-item a { color: var(--primary); font-weight: 600; }
.article-meta-author { display: flex; align-items: center; gap: 10px; }
.article-meta-author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.article-meta-author span { font-size: 13px; font-weight: 600; color: var(--dark); }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; margin-top: 28px; border: 1px solid var(--border); border-bottom: none; }

/* LAYOUT */
.article-section { background: var(--white); padding: 0 0 72px; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; padding-top: 48px; }
.article-content { min-width: 0; }

/* SHARE BAR */
.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; background: var(--light-gray); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 32px; }
.share-bar-label { font-size: 13px; font-weight: 600; color: var(--gray); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 600; border: 1.5px solid transparent; transition: var(--transition); cursor: pointer; }
.share-btn.twitter { background: #e7f3fe; color: #1a73e8; border-color: #c5dffe; }
.share-btn.facebook { background: #e8f1fd; color: #1877f2; border-color: #c5d8f9; }
.share-btn.whatsapp { background: #e8f5e9; color: #25D366; border-color: #c8e6c9; }
.share-btn.copy { background: var(--white); color: var(--gray); border-color: var(--border); }
.share-btn:hover { transform: translateY(-1px); }

/* PROSE */
.prose { font-size: 16px; line-height: 1.8; color: #2d3748; }
.prose h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--dark); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--light-gray); scroll-margin-top: 90px; }
.prose h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--dark); margin: 32px 0 12px; scroll-margin-top: 90px; }
.prose h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose strong { font-weight: 700; color: var(--dark); }
.prose a { color: var(--primary); text-decoration: underline; }
.prose a:hover { color: var(--primary-dark); }

/* TABLE */
.prose-table-wrap, .prose .wp-block-table { overflow-x: auto; margin-bottom: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose thead th { background: var(--primary); color: var(--white); font-family: var(--font-head); font-size: 13px; font-weight: 600; padding: 12px 16px; text-align: left; white-space: nowrap; }
.prose tbody tr { border-bottom: 1px solid var(--border); }
.prose tbody tr:last-child { border-bottom: none; }
.prose tbody tr:nth-child(even) { background: #f9fbff; }
.prose tbody td { padding: 11px 16px; color: var(--dark); }

/* HIGHLIGHT BOX */
.highlight-box { display: flex; gap: 16px; padding: 18px 22px; border-radius: var(--radius); margin-bottom: 28px; }
.highlight-box.info { background: #EEF4FF; border: 1px solid #C5D8F9; }
.highlight-box.warning { background: #FFF8E1; border: 1px solid #FFE082; }
.highlight-box.success { background: #E8F5E9; border: 1px solid #A5D6A7; }
.highlight-box.danger { background: #FFEBEE; border: 1px solid #EF9A9A; }
.highlight-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.highlight-box.info .highlight-icon { color: var(--primary); }
.highlight-box.warning .highlight-icon { color: #F57F17; }
.highlight-box.success .highlight-icon { color: #2E7D32; }
.highlight-box.danger .highlight-icon { color: #C62828; }
.highlight-content strong { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.highlight-content p { font-size: 14px; line-height: 1.6; margin: 0; color: var(--dark); }

/* BLOCKQUOTE */
.prose blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--primary); background: var(--light-gray); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; font-size: 16px; color: var(--dark); position: relative; }
.prose blockquote cite { display: block; margin-top: 12px; font-size: 13px; font-style: normal; font-weight: 600; color: var(--primary); }

/* INLINE CTA */
.inline-cta { background: linear-gradient(135deg, #0D47A1, #1565C0); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inline-cta-text strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.inline-cta-text p { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }
.inline-cta .btn { flex-shrink: 0; font-size: 13px; padding: 10px 20px; }

/* KEY POINTS */
.key-points { background: var(--light-gray); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; border: 1px solid var(--border); }
.key-points-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.key-points ul { margin: 0; padding-left: 0; list-style: none; }
.key-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; margin-bottom: 10px; color: var(--dark); }
.key-points li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); font-size: 13px; flex-shrink: 0; margin-top: 2px; }

/* FAQ */
.faq-section { margin: 40px 0; }
.faq-section-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.faq-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--white); border: none; cursor: pointer; font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--dark); text-align: left; transition: var(--transition); }
.faq-question:hover { background: var(--light-gray); color: var(--primary); }
.faq-question.open { background: var(--primary); color: var(--white); }
.faq-chevron { font-size: 12px; flex-shrink: 0; transition: transform .3s; }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 16px 20px; background: var(--light-gray); border-top: 1px solid var(--border); font-size: 14px; line-height: 1.7; color: var(--gray); }
.faq-answer.open { display: block; }

/* AUTHOR BOX */
.author-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 40px 0; display: flex; gap: 22px; align-items: flex-start; }
.author-box-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--light-gray); flex-shrink: 0; }
.author-box-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 6px; }
.author-box-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.author-box-bio { font-size: 14px; line-height: 1.7; color: var(--gray); margin-bottom: 14px; }
.author-box-social { display: flex; gap: 10px; }
.author-social-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray); transition: var(--transition); }
.author-social-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* RELATED POSTS */
.related-posts { margin: 40px 0; }
.related-posts-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.related-posts-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.related-card:hover .related-thumb img { transform: scale(1.04); }
.related-cat { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 50px; }
.related-cat.neet { background: #E3F2FD; color: #1565C0; }
.related-cat.jee { background: #E8F5E9; color: #2E7D32; }
.related-cat.guide { background: #FFF8E1; color: #F57F17; }
.related-cat.nursing { background: #FCE4EC; color: #C62828; }
.related-cat.counseling { background: #EDE7F6; color: #6A1B9A; }
.related-body { padding: 16px; }
.related-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition); }
.related-card:hover .related-title { color: var(--primary); }
.related-read { font-size: 12px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px; }

/* TOC widget */
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-item { display: block; padding: 8px 12px; font-size: 13px; color: var(--gray); border-radius: var(--radius-sm); transition: var(--transition); border-left: 2px solid transparent; line-height: 1.4; }
.toc-item:hover { color: var(--primary); background: var(--light-gray); border-left-color: var(--primary); }
.toc-item.active { color: var(--primary); background: var(--light-gray); border-left-color: var(--primary); font-weight: 600; }
.toc-item.h3 { padding-left: 22px; font-size: 12px; }

/* COMMENTS */
.comments-section, .comments-area { margin: 40px 0; padding-top: 32px; border-top: 2px solid var(--light-gray); }
.comments-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 28px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-item { display: block; }
.comment-body { display: flex; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-author { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--dark); }
.comment-author .author-badge { background: var(--light-gray); color: var(--primary); font-size: 10px; padding: 2px 8px; border-radius: 50px; font-family: var(--font-head); margin-left: 6px; }
.comment-date { font-size: 12px; color: var(--gray); }
.comment-text { font-size: 14px; line-height: 1.7; color: var(--gray); margin-bottom: 10px; }
.comment-reply a { font-size: 12px; font-weight: 600; color: var(--primary); }
.comment-list .children { list-style: none; margin: 0 0 0 48px; padding: 0; }
.comment-form-wrap, .comment-respond { background: var(--light-gray); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); margin-top: 32px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px; color: var(--dark); background: var(--white); outline: none; }
.comment-form textarea { min-height: 100px; resize: vertical; }

/* RESPONSIVE */
@media (max-width: 1080px) { .article-layout { grid-template-columns: 1fr 280px; gap: 36px; } }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .related-posts-grid { grid-template-columns: 1fr; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .children { margin-left: 20px; }
}
