/* Premium Magazine Layout */
.blog-post-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    margin: 5rem auto 4rem;
    align-items: start;
}

/* Typography Overhaul */
.blog-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #334155;
    word-wrap: break-word;
    word-break: break-word;
}

.blog-body p { margin-bottom: 2rem; }
.blog-body h2 { 
    font-size: 2rem; 
    margin: 3.5rem 0 1.5rem; 
    color: var(--text-dark); 
    font-weight: 800;
    letter-spacing: -0.5px;
}
.blog-body h3 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--primary); }

.blog-body blockquote {
    padding: 2.5rem;
    background: #f8fafc;
    border-left: 5px solid var(--secondary);
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #475569;
    margin: 3rem 0;
    position: relative;
    line-height: 1.6;
}

/* Article Hero & Meta Styles */
.article-hero {
    background-size: cover;
    background-position: center;
    padding: 10rem 0 8rem;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.meta-item {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
}

/* Responsive Media inside Blog Content */
.blog-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.blog-body iframe,
.blog-body video,
.blog-body embed {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
}

.blog-body table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin: 2rem 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-body table th,
.blog-body table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.blog-body table th {
    background: #f8fafc;
    font-weight: 800;
    color: var(--text-dark);
}

/* Highlighted Links inside Blog Content */
.blog-body a {
    color: #c2410c; /* Readable warm amber/orange matching yellow branding */
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--secondary); /* Brand yellow underline */
    transition: all 0.2s ease;
}

.blog-body a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: rgba(240, 180, 41, 0.1);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    margin: 0 -0.3rem;
}

/* Social Suite */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}
.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
}
.share-wa { background: #25d366; color: #fff; }
.share-fb { background: #1877f2; color: #fff; }
.share-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Sticky Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sidebar-widget {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recent-post-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.recent-post-img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.recent-post-info h3 { font-size: 0.9rem; color: var(--text-dark); line-height: 1.3; margin-bottom: 0.25rem; }
.recent-post-info span { font-size: 0.7rem; color: #94a3b8; font-weight: 700; }

/* Responsive Viewports */
@media (max-width: 1024px) {
    .blog-post-wrapper { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        margin: 3rem auto;
    }
    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 6rem 0 4rem;
    }
    .article-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    .meta-item {
        padding: 0.4rem 1rem;
    }
    .blog-body h2 {
        font-size: 1.6rem;
        margin: 2.5rem 0 1rem;
    }
    .blog-body h3 {
        font-size: 1.3rem;
        margin: 2rem 0 0.75rem;
    }
    .blog-body blockquote {
        padding: 1.5rem;
        margin: 2rem 0;
        font-size: 1.1rem;
        border-radius: 0 10px 10px 0;
    }
    .share-bar {
        margin-top: 3rem;
        padding-top: 2rem;
    }
}

@media (max-width: 600px) {
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .meta-item {
        width: auto;
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .blog-body {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    .blog-body h2 {
        font-size: 1.4rem;
        margin: 2rem 0 0.75rem;
    }
    .blog-body h3 {
        font-size: 1.2rem;
        margin: 1.75rem 0 0.5rem;
    }
    .blog-body blockquote {
        padding: 1.25rem 1rem;
        font-size: 1rem;
        margin: 1.5rem 0;
    }
    .share-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .share-bar div {
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    .share-btn {
        text-align: center;
    }
}