/* ===== BLOG POST PAGE STYLES ===== */
/* Adapted from Sam.css / SampleH.html — Green/Gold Theme */

:root {
    --bp-primary: #2e7d4f;
    --bp-primary-light: #3a9d63;
    --bp-dark: #1a3c2a;
    --bp-gold: #d4af37;
    --bp-text: #555;
    --bp-bg: #f8faf9;
    --bp-border: #e8e8e8;
    --bp-radius: 16px;
    --bp-radius-lg: 20px;
    --bp-transition: 0.3s ease;
}

/* ===== POST HERO ===== */
.post-hero {
    position: relative;
    padding: 160px 0 70px;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 30, 18, 0.7), rgba(26, 60, 42, 0.92));
}
.post-hero .container { position: relative; z-index: 1; max-width: 900px; }

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--bp-gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); margin: 0 4px; }
.breadcrumb .current { color: rgba(255,255,255,0.85); }

/* Hero Meta */
.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.post-category-tag {
    background: var(--bp-gold);
    color: #1a3c2a;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.post-date-tag {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.post-hero h1 {
    font-family: 'Righteous', sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #fff;
}
.post-hero-excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    max-width: 700px;
    margin-bottom: 28px;
}

/* Author in Hero */
.post-hero-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bp-gold);
    flex-shrink: 0;
    background: var(--bp-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-gold);
    font-size: 20px;
    font-weight: 700;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-author-info .author-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}
.hero-author-info .author-detail {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ===== POST SECTION / LAYOUT ===== */
.post-section {
    background: var(--bp-bg);
    padding: 60px 0 80px;
}
.post-section .container { max-width: 1100px; }
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ===== ARTICLE BODY ===== */
.article-body {
    background: #fff;
    border-radius: var(--bp-radius-lg);
    padding: 50px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--bp-dark);
    margin-top: 40px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    font-family: 'Figtree', 'Poppins', sans-serif;
    scroll-margin-top: 120px;
}
.article-body h2:first-of-type { margin-top: 24px; }
.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--bp-primary);
}
.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bp-dark);
    margin: 36px 0 16px;
    scroll-margin-top: 120px;
}
.article-body p {
    font-size: 16px;
    color: var(--bp-text);
    line-height: 1.85;
    margin-bottom: 20px;
}
.article-body ul {
    padding-left: 24px;
    margin-bottom: 24px;
    list-style: none;
}
.article-body ul li {
    font-size: 16px;
    color: var(--bp-text);
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}
.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bp-primary);
}
.article-body a {
    color: var(--bp-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-body a:hover { color: var(--bp-gold); }

/* Blockquote */
.article-body blockquote {
    margin: 32px 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border-left: 4px solid var(--bp-primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #444;
    font-size: 17px;
    line-height: 1.7;
}

/* Key Takeaway */
.key-takeaway {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 28px 0;
}
.key-takeaway-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #2e7d4f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.key-takeaway p {
    font-size: 15px;
    color: #444;
    margin-bottom: 0;
}

/* Pro Tip */
.pro-tip {
    background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
    border: 1px solid #ffe082;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 28px 0;
}
.pro-tip-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #c49000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.pro-tip p {
    font-size: 15px;
    color: #555;
    margin-bottom: 0;
}

/* ===== ARTICLE FAQ ===== */
.article-faq { margin-top: 36px; }
.article-faq-item {
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}
.article-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--bp-dark);
    gap: 14px;
    border: none;
    background: transparent;
    width: 100%;
    font-family: 'Figtree', 'Poppins', sans-serif;
    text-align: left;
    transition: 0.3s;
}
.article-faq-q:hover { color: var(--bp-primary); }
.article-faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(46,125,79,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-primary);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    transition: 0.3s;
}
.article-faq-item.open .article-faq-toggle {
    background: var(--bp-primary);
    color: #fff;
    transform: rotate(45deg);
}
.article-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.article-faq-item.open .article-faq-a {
    max-height: 500px;
}
.article-faq-a-inner {
    padding: 0 22px 20px;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* ===== SHARE BAR ===== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid #f0f0f0;
}
.share-bar span {
    font-size: 14px;
    font-weight: 600;
    color: var(--bp-dark);
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 16px;
    transition: 0.3s;
}
.share-btn:hover { transform: translateY(-3px); }
.share-btn svg { fill: currentColor; }
.article-body .share-btn { text-decoration: none !important; color: #fff !important; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-li { background: #0a66c2; }
.share-pin { background: #e60023; }
.share-copy { background: #f0f0f0; color: #666 !important; }
.article-body .share-copy { color: #666 !important; }
.share-copy:hover, .article-body .share-copy:hover { background: var(--bp-primary); color: #fff !important; }

/* ===== SIDEBAR ===== */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

/* TOC */
.toc-widget {
    background: #fff;
    border-radius: var(--bp-radius);
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}
.toc-widget h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-dark);
    margin-bottom: 16px;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li {
    margin-bottom: 6px;
}
.toc-list li a {
    font-size: 13px;
    color: #777;
    text-decoration: none;
    padding: 6px 12px;
    display: block;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.toc-list li a:hover { color: var(--bp-primary); background: #f5f5f5; }
.toc-list li a.active {
    color: var(--bp-primary);
    background: rgba(46,125,79,0.06);
    border-left-color: var(--bp-primary);
    font-weight: 600;
}
.toc-list li.toc-h3 a { padding-left: 28px; font-size: 12px; }

/* Author Widget */
.author-widget {
    background: #fff;
    border-radius: var(--bp-radius);
    padding: 28px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}
.author-widget-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 3px solid var(--bp-gold);
    background: var(--bp-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-gold);
    font-size: 24px;
    font-weight: 700;
}
.author-widget h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-dark);
    margin-bottom: 4px;
}
.author-widget .author-role {
    font-size: 12px;
    color: var(--bp-primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.author-widget p {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--bp-dark), var(--bp-primary));
    border-radius: var(--bp-radius);
    padding: 28px;
    text-align: center;
    color: #fff;
}
.cta-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.cta-widget p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 18px;
    line-height: 1.5;
}
.cta-widget .btn {
    display: inline-block;
    background: var(--bp-gold);
    color: var(--bp-dark);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}
.cta-widget .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ===== AUTHOR BOX (below article) ===== */
.author-box {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: var(--bp-radius-lg);
    padding: 32px;
    margin-top: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}
.author-box-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bp-gold);
    background: var(--bp-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-gold);
    font-size: 28px;
    font-weight: 700;
}
.author-box-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--bp-dark);
    margin-bottom: 4px;
}
.author-box-content .role {
    font-size: 13px;
    color: var(--bp-primary);
    font-weight: 600;
    margin-bottom: 10px;
}
.author-box-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ===== RELATED ARTICLES ===== */
.related-section {
    padding: 70px 0;
    background: #fff;
}
.related-section .container { max-width: 1100px; }
.related-section .section-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--bp-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    text-align: center;
    margin-bottom: 8px;
}
.related-section h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--bp-dark);
    margin-bottom: 8px;
}
.related-subtitle {
    text-align: center;
    font-size: 15px;
    color: #888;
    margin-bottom: 40px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-card {
    background: #fff;
    border-radius: var(--bp-radius);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.related-card-image {
    height: 180px;
    overflow: hidden;
}
.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.related-card:hover .related-card-image img {
    transform: scale(1.05);
}
.related-card-body {
    padding: 20px;
}
.related-card-body .r-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--bp-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.related-card-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--bp-dark);
    margin: 8px 0;
    line-height: 1.4;
}
.related-card-body h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.related-card-body h4 a:hover { color: var(--bp-primary); }
.related-card-body .r-date {
    font-size: 12px;
    color: #aaa;
}

/* ===== POST CTA BANNER ===== */
.post-cta {
    background: linear-gradient(135deg, var(--bp-dark), var(--bp-primary));
    padding: 70px 0;
    text-align: center;
    color: #fff;
}
.post-cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #fff;
    font-family: 'Righteous', sans-serif;
}
.post-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.post-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bp-gold);
    color: var(--bp-dark);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}
.post-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== BLOG LISTING PAGE ===== */
.blog-hero {
    background: linear-gradient(135deg, var(--bp-dark) 0%, var(--bp-primary) 50%, var(--bp-dark) 100%);
    padding: 160px 16px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(46,125,79,0.15) 0%, transparent 50%);
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 20px;
    color: var(--bp-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.blog-hero h1 {
    color: #fff;
    font-family: 'Righteous', sans-serif;
    font-size: 48px;
    margin-bottom: 16px;
}
.blog-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    max-width: 550px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-listing {
    padding: 60px 16px 80px;
    background: var(--bp-bg);
}
.blog-listing .container { max-width: 1100px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: #fff;
    border-radius: var(--bp-radius);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.blog-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.08); }
.blog-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bp-gold);
    color: var(--bp-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-card-body { padding: 24px; }
.blog-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--bp-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-body h3 a:hover { color: var(--bp-primary); }
.blog-card-body .blog-card-excerpt {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-card-footer .blog-card-date {
    font-size: 12px;
    color: #bbb;
}
.blog-card-footer .blog-card-read {
    font-size: 13px;
    font-weight: 600;
    color: var(--bp-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-footer .blog-card-read:hover { color: var(--bp-gold); }

/* ===== FEATURED IMAGE IN ARTICLE ===== */
.article-featured-img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 28px;
    overflow: hidden;
}
.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .post-hero h1 { font-size: 30px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .post-hero { padding: 130px 0 50px; }
    .post-hero h1 { font-size: 24px; }
    .article-body { padding: 28px 20px; }
    .article-body h2 { font-size: 22px; }
    .post-sidebar { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-hero { padding: 130px 16px 60px; }
    .blog-hero h1 { font-size: 32px; }
    .author-box { flex-direction: column; text-align: center; }
    .post-cta h2 { font-size: 24px; }
}

/* ===== FADE ANIMATION ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
