/* FINAL POLISHED BLOG SINGLE STYLES */

:root {
    --sl-main-blue: #0047ff;
    --sl-dark-text: #111111;
    --sl-gray-text: #555555;
    --sl-border: #eeeeee;
}

/* 0. Top Fix: Force the whole section below the header */
.sl-final-blog-container {
    margin-top: 150px !important; /* Force a large gap for the fixed header */
    padding-bottom: 80px;
    background: #ffffff !important;
    position: relative;
    z-index: 100; /* Ensure it's above any other layout backgrounds */
}

.sl-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

/* 1. Article Image Area */
.sl-post-image-box {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.sl-post-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* 2. Header & Meta */
.sl-post-main-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--sl-dark-text);
    margin-bottom: 30px;
    line-height: 1.2;
}

.sl-post-meta-strip {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--sl-border);
    border-bottom: 1px solid var(--sl-border);
    padding: 20px 0;
    gap: 30px;
    margin-bottom: 40px;
}

.sl-meta-item {
    display: flex;
    flex-direction: column;
}

.sl-meta-item .lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
}

.sl-meta-item .val {
    font-size: 15px;
    font-weight: 700;
    color: var(--sl-dark-text);
}

/* 3. Content Body */
.sl-post-body-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
}

/* 4. Footer & Share */
.sl-post-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f9fbff;
    border-radius: 12px;
    margin-bottom: 50px;
}

.share-links {
    display: inline-flex;
    gap: 15px;
    margin-left: 10px;
}

/* 5. Author Box */
.sl-post-author-box {
    display: flex;
    gap: 30px;
    padding: 40px;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    margin-bottom: 60px;
    align-items: center;
}

.sl-post-author-box .author-img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.sl-post-author-box h3 {
    margin-bottom: 5px;
    font-weight: 800;
}

.sl-post-author-box .rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--sl-main-blue);
    display: block;
    margin-bottom: 15px;
}

/* 6. Navigation */
.sl-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    margin-bottom: 60px;
}

.nav-box {
    padding: 30px;
}

.nav-box.next {
    border-left: 1px solid var(--sl-border);
    text-align: right;
}

.nav-box .dir {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

.nav-box .title {
    font-size: 18px;
    font-weight: 800;
    color: var(--sl-dark-text);
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

/* 7. RELATED POSTS (VERTICAL: IMAGE TOP) */
.sl-related-section {
    margin-bottom: 60px;
}

.sl-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.sl-card-vertical {
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    overflow: hidden;
}

.sl-card-vertical .card-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.sl-card-vertical .card-txt {
    padding: 15px;
}

.sl-card-vertical h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sl-card-vertical h4 a {
    color: var(--sl-dark-text);
    text-decoration: none;
}

/* 8. SIDEBAR POSTS (HORIZONTAL: IMAGE LEFT) */
.sl-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--sl-main-blue);
    padding-bottom: 10px;
    display: inline-block;
}

.sl-latest-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sl-card-horizontal {
    display: flex; /* Image à gauche, texte à droite */
    gap: 15px;
    align-items: center;
}

.sl-card-horizontal .card-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sl-card-horizontal .card-txt h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px;
}

.sl-card-horizontal .card-txt h4 a {
    color: var(--sl-dark-text);
    text-decoration: none;
}

/* 9. CTA Sidebar */
.sl-cta-sidebar {
    background: linear-gradient(135deg, #0047ff 0%, #00d4ff 100%);
    padding: 40px 30px;
    border-radius: 16px;
    color: #fff;
    text-align: center;
}

.sl-cta-sidebar h3 {
    margin-bottom: 15px;
}

.btn-cta {
    display: inline-block;
    padding: 10px 30px;
    background: #fff;
    color: var(--sl-main-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    margin-top: 15px;
}

@media (max-width: 991px) {
    .sl-main-grid {
        grid-template-columns: 1fr;
    }
}
