/* ====================================================
   blog.css — Shared styles for blogs.php + blog.php
   Scoped under .blog-page (listing) and .blog-post-page (single post)
   where class names conflict between the two pages.
   ==================================================== */

/* ---- Shared: Page backgrounds ---- */
.blog-page, .blog-post-page { background: #FAF8F5; min-height: 100vh; }

/* ---- Shared: Breadcrumbs ---- */
.blog-breadcrumbs { background: white; padding: 15px 0; border-bottom: 1px solid #eee; }
.blog-page .blog-breadcrumbs .container      { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.blog-post-page .blog-breadcrumbs .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.breadcrumb-list {
    display: flex; align-items: center; gap: 10px;
    list-style: none; margin: 0; padding: 0;
    font-size: 0.9rem; flex-wrap: wrap;
}
.breadcrumb-list li    { display: flex; align-items: center; gap: 10px; }
.breadcrumb-list a     { color: #666; text-decoration: none; transition: color 0.2s; }
.breadcrumb-list a:hover { color: #1a3c34; }
.breadcrumb-list .separator { color: #ccc; }
.breadcrumb-list .current   { color: #1a3c34; font-weight: 600; }


/* ====================================================
   BLOG LISTING PAGE (.blog-page — blogs.php)
   ==================================================== */

/* Hero */
.blog-hero {
    background: linear-gradient(135deg, #1a3c34 0%, #2d5a4e 100%);
    padding: 60px 20px; text-align: center; color: white;
}
.blog-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }
.blog-hero p  { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; }

/* Search Bar */
.blog-search-bar { max-width: 500px; margin: 0 auto; position: relative; }
.blog-search-bar input {
    width: 100%; padding: 15px 20px 15px 50px;
    border: none; border-radius: 50px; font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.blog-search-bar i {
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%); color: #888;
}
.blog-search-bar button {
    position: absolute; right: 5px; top: 5px; bottom: 5px;
    padding: 0 25px; background: #c5a059; color: white;
    border: none; border-radius: 50px; font-weight: 600; cursor: pointer;
}

/* Categories Bar */
.blog-categories-bar {
    background: white; padding: 20px 0;
    border-bottom: 1px solid #eee; overflow-x: auto;
}
.blog-categories-bar .container {
    max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; gap: 12px; flex-wrap: nowrap;
}
.category-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: #f8f9fa; color: #333;
    border-radius: 25px; font-size: 0.9rem; font-weight: 500;
    text-decoration: none; white-space: nowrap;
    transition: all 0.2s; border: 1px solid transparent;
}
.category-pill:hover { background: #eee; }
.category-pill.active { background: #1a3c34; color: white; }
.category-pill .count {
    background: rgba(0,0,0,0.1); padding: 2px 8px;
    border-radius: 12px; font-size: 0.8rem;
}
.category-pill.active .count { background: rgba(255,255,255,0.2); }

/* Blog Container */
.blog-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px 80px; }

/* Results Info */
.blog-results-info {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 30px;
    flex-wrap: wrap; gap: 15px;
}
.blog-results-info h2 { font-size: 1.5rem; font-weight: 700; color: #1a3c34; margin: 0; }
.blog-results-info span { color: #888; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }

.blog-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s;
    text-decoration: none; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }

.blog-image {
    width: 100%; aspect-ratio: 1200 / 630;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.blog-image img { width: 100%; height: 100%; object-fit: contain; }
.blog-image .placeholder-icon { font-size: 3rem; color: #ddd; }

/* Card content box (listing page) */
.blog-page .blog-content {
    padding: 25px; flex: 1; display: flex; flex-direction: column;
}

/* Card category tag */
.blog-page .blog-category-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; background: rgba(197,160,89,0.1);
    color: #c5a059; border-radius: 20px; font-size: 0.8rem;
    font-weight: 600; text-transform: uppercase;
    margin-bottom: 15px; width: fit-content;
}

/* Card title */
.blog-page .blog-title {
    font-size: 1.3rem; font-weight: 700; color: #1a3c34;
    margin-bottom: 12px; line-height: 1.3; transition: color 0.2s;
}
.blog-card:hover .blog-title { color: #c5a059; }

.blog-excerpt {
    font-size: 0.95rem; line-height: 1.6; color: #666;
    margin-bottom: 20px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Card meta (listing) */
.blog-page .blog-meta {
    display: flex; align-items: center; gap: 20px;
    font-size: 0.85rem; color: #888;
    padding-top: 15px; border-top: 1px solid #f0f0f0;
}
.blog-page .blog-meta-item { display: flex; align-items: center; gap: 6px; }
.blog-page .blog-meta-item i { color: #c5a059; }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.blog-pagination a, .blog-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 15px;
    background: white; color: #333; border-radius: 10px;
    text-decoration: none; font-weight: 500; transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.blog-pagination a:hover { background: #1a3c34; color: white; }
.blog-pagination .active  { background: #1a3c34; color: white; }
.blog-pagination .disabled { opacity: 0.5; pointer-events: none; }

/* Empty State */
.empty-state {
    text-align: center; padding: 80px 20px;
    background: white; border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.empty-state i    { font-size: 5rem; color: #ddd; margin-bottom: 25px; }
.empty-state h2   { font-size: 1.8rem; color: #333; margin-bottom: 10px; }
.empty-state p    { color: #888; margin-bottom: 25px; }
.empty-state a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 25px; background: #1a3c34; color: white;
    border-radius: 10px; text-decoration: none; font-weight: 600;
}

/* Listing responsive */
@media (max-width: 768px) {
    .blog-hero h1  { font-size: 2.2rem; }
    .blog-grid     { grid-template-columns: 1fr; }
    .blog-image    { aspect-ratio: 1200 / 630; }
}


/* ====================================================
   BLOG POST PAGE (.blog-post-page — blog.php)
   ==================================================== */

/* Layout */
.blog-layout {
    max-width: 1200px; margin: 0 auto;
    padding: 40px 20px; display: grid;
    grid-template-columns: 1fr 320px; gap: 40px;
}
@media (max-width: 992px) {
    .blog-layout { grid-template-columns: 1fr; padding: 25px 15px; gap: 25px; }
}
@media (max-width: 480px) {
    .blog-layout { padding: 15px 10px; gap: 20px; }
}

/* Main Content */
.blog-main {
    background: white; border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08); overflow: hidden;
}

/* Featured Image */
.blog-featured-image { width: 100%; height: auto; object-fit: contain; max-height: 500px; }
@media (max-width: 768px) { .blog-featured-image { max-height: 300px; } }

/* Blog Header */
.blog-header { padding: 40px 40px 30px; }
@media (max-width: 768px) { .blog-header { padding: 25px 20px 20px; } }

/* Post category tag */
.blog-post-page .blog-category-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: rgba(197,160,89,0.1);
    color: #c5a059; border-radius: 25px; font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 20px; text-decoration: none; transition: all 0.2s;
}
.blog-post-page .blog-category-tag:hover {
    background: rgba(197,160,89,0.2); color: #b8933d;
}

/* Post title (H1) */
.blog-post-page .blog-title {
    font-size: 2.5rem; font-weight: 800;
    color: #1a3c34; line-height: 1.2; margin-bottom: 20px;
}
@media (max-width: 768px) { .blog-post-page .blog-title { font-size: 1.8rem; } }

/* Post meta */
.blog-post-page .blog-meta {
    display: flex; align-items: center; gap: 25px;
    flex-wrap: wrap; color: #666; font-size: 0.95rem;
}
.blog-post-page .blog-meta-item { display: flex; align-items: center; gap: 8px; }
.blog-post-page .blog-meta-item i { color: #c5a059; }

.author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #1a3c34, #2d5a4e);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1rem;
}

/* ---- Article Content Typography ---- */
.blog-post-page .blog-content {
    padding: 0 40px 40px; font-size: 1.1rem;
    line-height: 1.85; color: #2d2d2d;
    font-family: 'Georgia', 'Times New Roman', serif;
    word-wrap: break-word; overflow-wrap: break-word;
}
@media (max-width: 992px) {
    .blog-post-page .blog-content { padding: 0 30px 30px; font-size: 1.05rem; line-height: 1.8; }
}
@media (max-width: 768px) {
    .blog-post-page .blog-content { padding: 0 18px 25px; font-size: 1rem; line-height: 1.75; }
}
@media (max-width: 480px) {
    .blog-post-page .blog-content { padding: 0 15px 20px; font-size: 0.95rem; }
}

.blog-post-page .blog-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem; font-weight: 700; color: #1a3c34;
    margin: 45px 0 18px; padding-bottom: 10px;
    border-bottom: 2px solid #f0ebe3; line-height: 1.3;
}
@media (max-width: 768px) {
    .blog-post-page .blog-content h2 { font-size: 1.4rem; margin: 35px 0 14px; }
}
@media (max-width: 480px) {
    .blog-post-page .blog-content h2 { font-size: 1.25rem; margin: 28px 0 12px; }
}

.blog-post-page .blog-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.35rem; font-weight: 700; color: #1a3c34;
    margin: 35px 0 14px; line-height: 1.3;
}
@media (max-width: 768px) {
    .blog-post-page .blog-content h3 { font-size: 1.15rem; margin: 28px 0 12px; }
}

.blog-post-page .blog-content p          { margin-bottom: 18px; text-align: left; }
.blog-post-page .blog-content p:last-child { margin-bottom: 0; }
.blog-post-page .blog-content strong     { color: #1a3c34; font-weight: 700; }
.blog-post-page .blog-content a          { color: #c5a059; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.blog-post-page .blog-content a:hover    { color: #1a3c34; }

.blog-post-page .blog-content ul,
.blog-post-page .blog-content ol         { margin: 20px 0; padding-left: 25px; }
@media (max-width: 480px) {
    .blog-post-page .blog-content ul,
    .blog-post-page .blog-content ol { padding-left: 20px; }
}
.blog-post-page .blog-content li         { margin-bottom: 10px; padding-left: 5px; }
.blog-post-page .blog-content li::marker { color: #c5a059; }

.blog-post-page .blog-content img {
    max-width: 100%; height: auto; border-radius: 12px;
    margin: 25px 0; display: block;
}
.blog-post-page .blog-content blockquote {
    border-left: 4px solid #c5a059; padding: 20px 25px;
    margin: 30px 0; background: #faf8f5;
    border-radius: 0 12px 12px 0; font-style: italic; color: #555;
}
@media (max-width: 480px) {
    .blog-post-page .blog-content blockquote { padding: 15px 18px; margin: 20px 0; }
}

.blog-post-page .blog-content table {
    width: 100%; border-collapse: collapse;
    margin: 25px 0; font-size: 0.95rem;
    overflow-x: auto; display: block;
}
.blog-post-page .blog-content table th,
.blog-post-page .blog-content table td   { padding: 12px 15px; border: 1px solid #e0e0e0; text-align: left; }
.blog-post-page .blog-content table th   { background: #1a3c34; color: white; font-weight: 600; }
.blog-post-page .blog-content table tr:nth-child(even) { background: #faf8f5; }

/* ---- Table of Contents (auto-injected by JS) ---- */
.blog-toc {
    background: #faf8f5; border-left: 4px solid #c5a059;
    border-radius: 0 12px 12px 0; padding: 20px 25px;
    margin: 0 0 30px; font-size: 0.92rem;
}
.blog-toc-title {
    font-weight: 700; color: #1a3c34;
    margin-bottom: 12px; font-size: 0.97rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.blog-toc ol   { margin: 0; padding-left: 20px; }
.blog-toc li   { margin-bottom: 7px; }
.blog-toc a    { color: #555; text-decoration: none; transition: color 0.2s; }
.blog-toc a:hover { color: #c5a059; }
@media (max-width: 480px) {
    .blog-toc { padding: 15px 18px; }
}

/* ---- Share Buttons ---- */
.blog-share {
    padding: 30px 40px; border-top: 1px solid #eee;
    display: flex; align-items: center; gap: 15px; flex-wrap: wrap;
}
@media (max-width: 768px) { .blog-share { padding: 20px; } }
.blog-share-label { font-weight: 600; color: #333; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    text-decoration: none; color: white; font-size: 1.1rem; transition: all 0.3s;
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.share-btn.whatsapp  { background: #25D366; }
.share-btn.facebook  { background: #1877F2; }
.share-btn.twitter   { background: #1DA1F2; }
.share-btn.pinterest { background: #E60023; }
.share-btn.copy      { background: #666; }

/* ---- Product Blocks ---- */
.product-block {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
    border-radius: 16px; padding: 30px; margin: 35px 0;
    border: 1px solid rgba(197,160,89,0.2);
}
.product-block-title {
    font-size: 1.1rem; font-weight: 700; color: #1a3c34;
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.product-block-title i { color: #c5a059; }
.product-block-grid    { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
@media (max-width: 480px) {
    .product-block-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.product-block-item {
    background: white; border-radius: 12px; padding: 15px;
    text-decoration: none; transition: all 0.3s;
    display: flex; flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;
}
.product-block-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: #c5a059; }
.product-block-item img  { width: 100%; height: auto; max-height: 180px; object-fit: contain; border-radius: 8px; margin-bottom: 12px; background: #faf8f5; padding: 8px; }
@media (max-width: 480px) {
    .product-block-item { padding: 10px; }
    .product-block-item img { max-height: 120px; padding: 5px; }
}
.product-block-item h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem; font-weight: 600; color: #1a3c34;
    margin: 0 0 8px; line-height: 1.3;
}
@media (max-width: 480px) { .product-block-item h4 { font-size: 0.85rem; } }
.product-block-item .price { font-size: 1rem; font-weight: 700; color: #c5a059; margin-bottom: 12px; }
@media (max-width: 480px) { .product-block-item .price { font-size: 0.9rem; margin-bottom: 8px; } }
.product-block-item .buy-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 16px;
    background: linear-gradient(135deg, #1a3c34, #2d5a4e);
    color: white; border: none; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s; text-decoration: none; margin-top: auto;
}
@media (max-width: 480px) { .product-block-item .buy-btn { padding: 8px 12px; font-size: 0.8rem; } }
.product-block-item .buy-btn:hover { background: linear-gradient(135deg, #2d5a4e, #1a3c34); }

/* ---- FAQ Section ---- */
.blog-faqs { padding: 40px; border-top: 1px solid #eee; }
@media (max-width: 768px) { .blog-faqs { padding: 25px 20px; } }
.blog-faqs-title {
    font-size: 1.5rem; font-weight: 700; color: #1a3c34;
    margin-bottom: 25px; display: flex; align-items: center; gap: 12px;
}
.blog-faqs-title i { color: #c5a059; }
.faq-accordion   { display: flex; flex-direction: column; gap: 12px; }
.faq-item        { background: #faf8f5; border-radius: 12px; overflow: hidden; border: 1px solid #eee; }
.faq-question    {
    padding: 18px 20px; font-weight: 600; color: #1a3c34;
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; transition: background 0.2s;
}
.faq-question:hover      { background: #f5f0e8; }
.faq-question i          { transition: transform 0.3s; color: #c5a059; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 20px; max-height: 0; overflow: hidden;
    transition: all 0.3s; color: #555; line-height: 1.7;
}
.faq-item.open .faq-answer { padding: 0 20px 20px; max-height: 500px; }

/* ---- Author Box ---- */
.author-box {
    padding: 40px; border-top: 1px solid #eee;
    display: flex; gap: 20px; align-items: flex-start;
}
@media (max-width: 768px) {
    .author-box { padding: 25px 20px; flex-direction: column; align-items: center; text-align: center; }
}
.author-box-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #1a3c34, #2d5a4e);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; font-weight: 700; flex-shrink: 0;
}
.author-box-info h4  { font-size: 1.2rem; font-weight: 700; color: #1a3c34; margin: 0 0 5px; }
.author-box-info p   { color: #666; margin: 0; line-height: 1.6; }

/* ---- Sidebar ---- */
.blog-sidebar { display: flex; flex-direction: column; gap: 25px; }
.sidebar-card {
    background: white; border-radius: 16px; padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.sidebar-title {
    font-size: 1.1rem; font-weight: 700; color: #1a3c34;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex; align-items: center; gap: 10px;
}
.sidebar-title i { color: #c5a059; }

/* Sidebar Products */
.sidebar-product {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none; transition: all 0.2s;
}
.sidebar-product:last-child { border-bottom: none; }
.sidebar-product:hover { background: #faf8f5; margin: 0 -15px; padding: 12px 15px; border-radius: 8px; }
.sidebar-product img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.sidebar-product-info h5 { font-size: 0.9rem; font-weight: 600; color: #1a3c34; margin: 0 0 5px; line-height: 1.3; }
.sidebar-product-info .price { font-size: 0.95rem; font-weight: 700; color: #c5a059; }

/* Related Blogs */
.related-blog {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid #f0f0f0; text-decoration: none;
}
.related-blog:last-child   { border-bottom: none; }
.related-blog:hover h5     { color: #c5a059; }
.related-blog img          { width: 70px; height: 50px; border-radius: 6px; object-fit: cover; }
.related-blog-info h5      { font-size: 0.85rem; font-weight: 600; color: #1a3c34; margin: 0 0 5px; line-height: 1.3; transition: color 0.2s; }
.related-blog-info span    { font-size: 0.8rem; color: #888; }

/* Newsletter */
.newsletter-form input {
    width: 100%; padding: 12px 15px; border: 1px solid #ddd;
    border-radius: 8px; margin-bottom: 12px; font-size: 0.95rem;
}
.newsletter-form button {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #1a3c34, #2d5a4e);
    color: white; border: none; border-radius: 8px;
    font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.newsletter-form button:hover { background: linear-gradient(135deg, #2d5a4e, #1a3c34); }

/* Sticky Sidebar */
@media (min-width: 993px) {
    .blog-sidebar {
        position: sticky; top: 100px;
        max-height: calc(100vh - 120px); overflow-y: auto;
    }
}

/* ---- Inline Related Reading Block (internal linking) ---- */
.related-reading-block {
    background: linear-gradient(135deg, #f5f0e8, #faf8f5);
    border: 1px solid rgba(197,160,89,0.25);
    border-left: 4px solid #c5a059;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 28px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.related-reading-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #c5a059;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.related-reading-links { display: flex; flex-direction: column; gap: 6px; }
.related-reading-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #1a3c34 !important;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: color 0.2s;
    line-height: 1.4;
}
.related-reading-link:last-child { border-bottom: none; }
.related-reading-link:hover { color: #c5a059 !important; }
.related-reading-link img {
    width: 52px; height: 36px;
    border-radius: 6px; object-fit: cover;
    flex-shrink: 0;
    /* override .blog-content img styles */
    margin: 0 !important; display: inline-block !important;
    max-width: 52px !important; border: none !important;
}
.related-reading-link span { flex: 1; }
.related-reading-link small {
    color: #888; font-size: 0.78rem;
    font-weight: 400; display: block;
    margin-top: 2px;
}
@media (max-width: 480px) {
    .related-reading-block { padding: 14px 15px; }
    .related-reading-link img { width: 44px; height: 30px; }
}

/* ---- Author E-E-A-T — expertise badge & links ---- */
.author-expertise-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(197,160,89,0.12);
    color: #c5a059;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    margin: 4px 0 10px;
}
.author-links {
    margin-top: 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.author-link {
    font-size: 0.85rem;
    color: #c5a059;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    transition: color 0.2s;
}
.author-link:hover { color: #1a3c34; }

/* Table of Contents */
.blog-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #1a3c34;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 40px 30px;
}
.blog-toc .toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.blog-toc .toc-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3c34;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-toc .toc-header h4 i { color: #c5a059; }
.blog-toc .toc-toggle { color: #888; transition: transform 0.3s; font-size: 0.8rem; }
.blog-toc.collapsed .toc-toggle { transform: rotate(180deg); }
.blog-toc.collapsed .toc-list { display: none; }
.blog-toc .toc-list {
    margin: 14px 0 0;
    padding: 0 0 0 20px;
    list-style: decimal;
}
.blog-toc .toc-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}
.blog-toc .toc-list li a {
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.blog-toc .toc-list li a:hover { color: #1a3c34; text-decoration: underline; }
.blog-toc .toc-level-3 { margin-left: 20px; list-style-type: lower-alpha; }
@media (max-width: 768px) {
    .blog-toc { margin: 0 20px 20px; padding: 16px 18px; }
}

/* Bottom Products Section */
.bottom-products-section { padding: 40px; border-top: 1px solid #eee; }
@media (max-width: 768px) { .bottom-products-section { padding: 25px 20px; } }
.bottom-products-title {
    font-size: 1.5rem; font-weight: 700; color: #1a3c34;
    margin-bottom: 25px; display: flex; align-items: center; gap: 12px;
}
.bottom-products-title i { color: #c5a059; }
