/* --- THEME VARS --- */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --primary-blue: #3b82f6;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
}

body { background: var(--bg-main); color: var(--text-white); }

/* --- HEADER --- */
.blog-header { padding-top: 140px; padding-bottom: 20px; }
.back-link { color: var(--primary-blue); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.back-link:hover { gap: 12px; }

/* --- LAYOUT --- */
.blog-content-area { padding-bottom: 100px; }
.content-layout { display: flex; gap: 60px; align-items: flex-start; }

/* LEFT: ARTICLE */
.main-article { flex: 2.5; width: 100%; }

.article-title { font-size: 2.5rem; line-height: 1.3; margin-bottom: 20px; color: white; }
.article-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; align-items: center; }
.lang-badge { background: rgba(59, 130, 246, 0.1); color: var(--primary-blue); padding: 2px 10px; border-radius: 4px; font-size: 0.8rem; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Media Box (Image/Video) */
.media-container {
    width: 100%; border-radius: 16px; overflow: hidden; margin-bottom: 40px;
    background: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 1px solid var(--border-color);
}
.media-container img { width: 100%; height: auto; display: block; }
.media-container iframe { width: 100%; aspect-ratio: 16/9; border: none; }

/* --- 🔥 RICH TEXT STYLING (Quill Output) --- */
.blog-body { color: #cbd5e1; font-size: 1.1rem; line-height: 1.8; }
.blog-body h2, .blog-body h3 { color: white; margin-top: 40px; margin-bottom: 20px; font-weight: 700; }
.blog-body h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.blog-body h3 { font-size: 1.5rem; }
.blog-body p { margin-bottom: 20px; }
.blog-body ul, .blog-body ol { margin-bottom: 20px; padding-left: 20px; color: #cbd5e1; }
.blog-body li { margin-bottom: 10px; }
.blog-body a { color: var(--primary-blue); text-decoration: underline; }
.blog-body blockquote { 
    border-left: 4px solid var(--primary-blue); padding-left: 20px; 
    font-style: italic; color: white; background: rgba(59, 130, 246, 0.1); 
    padding: 20px; border-radius: 0 8px 8px 0; margin: 30px 0;
}
.blog-body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }

/* Share */
.share-box { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border-color); display: flex; gap: 15px; align-items: center; }
.share-box a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s; }
.share-box a:hover { background: var(--primary-blue); transform: translateY(-3px); }

/* RIGHT: SIDEBAR */
.sidebar { flex: 1; position: sticky; top: 120px; }
.sidebar-widget { background: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); margin-bottom: 30px; }
.sidebar-widget h3 { font-size: 1.2rem; margin-bottom: 20px; color: white; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }

.recent-item { display: flex; gap: 15px; margin-bottom: 20px; cursor: pointer; transition: 0.3s; }
.recent-item:hover h4 { color: var(--primary-blue); }
.recent-item img { width: 70px; height: 60px; object-fit: cover; border-radius: 6px; }
.recent-info h4 { font-size: 0.95rem; margin: 0 0 5px; color: #e2e8f0; line-height: 1.4; transition: 0.3s; }
.recent-info span { font-size: 0.8rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 991px) {
    .content-layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .article-title { font-size: 2rem; }
}

/* Skeleton */
.skeleton-text { color: transparent; background: #1e293b; border-radius: 4px; animation: pulse 1.5s infinite; }
.skeleton-block { height: 300px; background: #1e293b; border-radius: 12px; animation: pulse 1.5s infinite; }
.skeleton-line { height: 15px; background: #1e293b; margin-bottom: 10px; width: 100%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%{opacity:0.5;} 50%{opacity:1;} 100%{opacity:0.5;} }




/* --- CTA WIDGET STYLING --- */
.cta-widget {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 40px 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Background Abstract Icon */
.cta-widget::before {
    content: '\f086'; /* FontAwesome Icon Code */
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(15deg);
}

.cta-widget h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative; z-index: 1;
    border-bottom: none; /* আগের বর্ডার রিমুভ */
}

.cta-widget p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative; z-index: 1;
}

/* Call to Action Button */
.cta-widget .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; z-index: 1;
    display: inline-block;
}

.cta-widget .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}