
/* ==========================================
   SINGLE BLOG LAYOUT
   Full-width image + content + sticky sidebar
   Horizontal Recent Posts Design
========================================== */


/* ==========================================
   1. ASTRA CONTAINER
========================================== */

body.single-post .site-content > .ast-container {
    width: calc(100% - 40px) !important;
    max-width: 1440px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.single-post #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.single-post #secondary {
    display: none !important;
}


/* ==========================================
   2. MAIN BLOG WRAPPER
========================================== */

.custom-single-blog {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 60px;
    box-sizing: border-box;
}


/* ==========================================
   3. FULL-WIDTH FEATURED IMAGE
========================================== */

.blog-featured-image {
    width: 100%;
    margin: 70px 0 40px;
}

.blog-featured-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 6px;
}


/* ==========================================
   4. CONTENT + SIDEBAR LAYOUT
========================================== */

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

.blog-main-column {
    width: 100%;
    min-width: 0;
}

.blog-article {
    width: 100%;
}


/* ==========================================
   5. AUTHOR INFORMATION
========================================== */

.blog-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 25px;
}

.author-image img {
    display: block;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.author-info span {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.author-info small {
    font-size: 13px;
}


/* ==========================================
   6. BLOG TITLE
========================================== */

.blog-title {
    text-align: left;
    margin: 0 0 15px;
}

.blog-title h1 {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0;
}


/* ==========================================
   7. BLOG CONTENT
========================================== */

.blog-content {
    width: 100%;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 50px;
}

.blog-content p {
    margin-bottom: 10px;
}

.blog-content h2 {
    font-size: 30px;
    line-height: 1.3;
    margin: 18px 0 18px;
}

.blog-content h3 {
    font-size: 28px;
    line-height: 32px;
    margin: 15px 0;
    color: #004369;
}

.blog-content h4 {
    font-size: 26px;
    line-height: 30px;
    color: #004369;
}

.blog-content h5,
.blog-content h6 {
    font-size: 22px;
    line-height: 28px;
    margin: 15px 0;
    color: #004369;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}


/* ==========================================
   8. RIGHT SIDEBAR - STICKY
========================================== */

.blog-sidebar {
    width: 100%;
    min-width: 0;
    align-self: stretch;
}

.sidebar-sticky {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 0 5px 15px 0;
    box-sizing: border-box;
}

/* Sidebar scrollbar */

.sidebar-sticky::-webkit-scrollbar {
    width: 5px;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}


/* ==========================================
   9. RECENT POSTS HEADING
========================================== */

.recent-blog-posts {
    width: 100%;
    margin: 0;
}

.recent-blog-posts h5 {
    font-size: 24px;
    font-weight: 700;
    color: #004369;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}


/* ==========================================
   10. RECENT POSTS - HORIZONTAL LIST
========================================== */

.recent-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}


/* Individual post card */

.recent-post-card {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 0 0 16px;
    margin: 0;
    box-sizing: border-box;
    box-shadow: none;
    transition: none;
}

/* Image left, text right */

.recent-post-card > a {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

/* Thumbnail */

.recent-post-card img {
    display: block;
    flex: 0 0 155px;
    width: 155px;
    height: 88px;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

/* Text area */

.recent-post-content {
    flex: 1;
    min-width: 0;
    padding: 0;
}

/* Post title */

.recent-post-content h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    margin: 0;
    overflow-wrap: anywhere;
}

/* Post date */

.recent-post-date {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: #777;
    margin: 5px 0 0;
}

/* Hide Read More for clean design */

.recent-read-more {
    display: none;
}

/* Hover */

.recent-post-card > a:hover h3 {
    color: #777;
}

.recent-post-card:hover {
    transform: none;
    box-shadow: none;
}


/* ==========================================
   11. TABLET RESPONSIVE
========================================== */

@media (max-width: 1024px) {

    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 25px;
    }

    .blog-featured-image img {
        height: 380px;
    }

    .blog-title h1 {
        font-size: 32px;
    }

    .blog-content {
        font-size: 16px;
    }

    .recent-post-card img {
        flex-basis: 120px;
        width: 120px;
        height: 78px;
    }

    .recent-post-card > a {
        gap: 12px;
    }

    .recent-post-content h3 {
        font-size: 15px;
    }

    .recent-post-date {
        font-size: 12px;
    }
}


/* ==========================================
   12. MOBILE RESPONSIVE
========================================== */

@media (max-width: 767px) {

    body.single-post .site-content > .ast-container {
        width: calc(100% - 30px) !important;
    }

    .custom-single-blog {
        margin: 25px auto 40px;
    }

    .blog-featured-image {
    margin-bottom: 25px;
    margin-top: 100px !important;
}

    .blog-featured-image img {
        height: 240px;
    }

    /* Article above sidebar */

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-title h1 {
        font-size: 32px;
        text-align:center;
    }
.blog-content h4 {
    font-size: 24px;
}
.blog-content h3 {
    font-size: 24px;
}
.blog-content h2 {
    font-size: 28px;
}
    .blog-content {
        font-size: 16px;
        line-height: 1.7;
        text-align:center;
    }

    /* Sidebar becomes normal content below article */

    .sidebar-sticky {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    /* Keep horizontal recent posts on mobile */

    .recent-post-card img {
        flex-basis: 140px;
        width: 140px;
        height: 85px;
    }

    .recent-post-content h3 {
        font-size: 15px;
    }
}


/* ==========================================
   13. SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    body.single-post .site-content > .ast-container {
        width: calc(100% - 24px) !important;
    }

    .blog-featured-image img {
        height: 200px;
    }

    .blog-title h1 {
        font-size: 30px;
    }

    .blog-content {
        font-size: 15px;
    }

    .recent-post-card > a {
        gap: 10px;
    }

    .recent-post-card img {
        flex-basis: 110px;
        width: 110px;
        height: 75px;
    }

    .recent-post-content h3 {
        font-size: 14px;
        line-height: 1.3;
    }

    .recent-post-date {
        font-size: 12px;
    }
}