/* =========================================================================
   blog-single.css
   Page-specific styles for single.php (Blog details page). Structure
   mirrors the legal-hero / legal-body / legal-toc / legal-article pattern
   already shared in style.css (sticky sidebar + article column), extended
   with post meta, tags, share row, author box, and a related-posts grid
   built on the same .blog-card markup used on the listing page.
   ========================================================================= */

/* Article hero */
.article-content b, .article-content strong {
    font-weight: 600;
}
.article-hero {
    background: linear-gradient(135deg, #5B21B6, #7C3AED 55%, #A855F7);
    padding: 48px 0 0;
    color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #EDE4FB;
    margin-bottom: 22px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 18px;
}

.tag-on-hero {
    background: rgba(255, 255, 255, .18);
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}

.article-hero h1 {
    font-size: 36px;
    max-width: 820px;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
}

.meta-row {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 13px;
    color: #EDE4FB;
    padding-bottom: 34px;
}

.meta-row .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.hero-image {
    max-width: 1160px;
    margin: 0 auto;
    transform: translateY(38px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(91, 33, 182, .18);
}

.hero-image img {
    height: 450px;
    background: linear-gradient(135deg, #0891B2, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .65);
    font-weight: 600;
    letter-spacing: .05em;
    font-size: 13px;
    object-fit: cover;
}

.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    padding: 96px 0 64px;
}

/* Article body */
article p {
    margin-bottom: 18px;
    color: #312C42;
    font-size: 15.5px;
}

article h2 {
    font-size: 24px;
    margin: 38px 0 16px;
}

article h3 {
    font-size: 19px;
    margin: 26px 0 12px;
}

article ul {
    margin: 0 0 20px 22px;
    color: #312C42;
    font-size: 15.5px;
}

article ul, article ol {
    list-style: unset;
}

article li {
    margin-bottom: 8px;
}

article blockquote {
    background: #F5F0FC;
    border-left: 4px solid #7C3AED;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #5B21B6;
    margin: 24px 0;
    font-size: 14.5px;
}

.callout-img {
    border-radius: 14px;
    overflow: hidden;
    margin: 22px 0;
}

.callout-img .ph {
    height: 220px;
    background: linear-gradient(135deg, #F97316, #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .05em;
}

.mid-cta {
    background: linear-gradient(120deg, #123524, #1B4F37);
    border-radius: 16px;
    padding: 32px 34px;
    color: #fff;
    margin: 36px 0;
}

.mid-cta h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.mid-cta p {
    color: #CFE3D8;
    font-size: 14px;
    margin-bottom: 16px;
}

.mid-cta a {
    background: #fff;
    color: #123524;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-block;
}

.author-box {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #E7E3F0;
    border-radius: 14px;
    padding: 20px 22px;
    margin-top: 40px;
}

.author-box .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #0891B2);
    flex-shrink: 0;
}

.author-box h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.author-box p {
    font-size: 13px;
    color: #6B6478;
}

/* Sidebar */
aside {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.side-card {
    background: #fff;
    border: 1px solid #E7E3F0;
    border-radius: 16px;
    padding: 22px;
}

.side-card h4 {
    font-size: 15px;
    margin-bottom: 16px;
}

.rp-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.rp-item:last-child {
    margin-bottom: 0;
}

.rp-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #A855F7, #0891B2);
    flex-shrink: 0;
}

.rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.rp-item h5 {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 4px;
}

.rp-item span {
    font-size: 11.5px;
    color: #6B6478;
}

.side-cta {
    background: linear-gradient(135deg, #5B21B6, #A855F7);
    border-radius: 16px;
    padding: 26px;
    color: #fff;
    text-align: center;
}

.side-cta h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.side-cta p {
    font-size: 15px;
    color: #EDE4FB;
    margin-bottom: 16px;
}

.side-cta a {
    background: #fff;
    color: #5B21B6;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
}

.cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-list a {
    background: #F1E9FB;
    color: #5B21B6;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
}

.cta-dark {
    background: #101012;
    color: #fff;
    text-align: center;
    padding: 72px 24px;
}

.cta-dark h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cta-dark p {
    color: #B4B0BE;
    margin-bottom: 26px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.btn-primary {
    background: #1B4F37;
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-ghost {
    border: 1.5px solid #3A3A40;
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

footer {
    background: #0C0C0E;
    color: #9C98A6;
    padding: 48px 0 24px;
    font-size: 13px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #232228;
}

.foot-grid h4 {
    color: #fff;
    font-size: 13px;
    margin-bottom: 14px;
}

.foot-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.foot-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
}

@media(max-width:900px) {
    .layout {
        grid-template-columns: 1fr;
        padding-top: 70px;
    }

    .hero-image {
        transform: translateY(20px);
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}