/* =========================================================
   COMPACT SINGLE BLOG HEADER
========================================================= */

.single-blog-hero-compact {
    padding: 60px 0 30px;
    background: #fff; /* White background instead of a dark overlay image */
}

.compact-blog-header {
    max-width: 900px;
    margin: 0 auto 40px; /* Centers the text alignment area */
    text-align: center;  /* Keeps it clean and editorial */
}

.compact-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--navy, #0a1f5c);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.single-meta-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--gray, #666);
    font-size: 0.95rem;
}

.single-meta-compact span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-meta-compact i {
    color: var(--gold, #f5a623);
}

.meta-separator {
    color: #ccc;
    font-weight: bold;
}

/* Elegant, bounded image card */
.compact-blog-image {
    max-width: 1000px;
    margin: 0 auto;
    height: 450px; /* Drastically reduced from 80vh */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 31, 92, 0.06);
}

.compact-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 767px) {
    .single-blog-hero-compact {
        padding: 40px 0 20px;
    }
    
    .compact-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .compact-blog-image {
        height: 280px; /* Smaller image on mobile */
        border-radius: 16px;
    }
    
    .single-meta-compact {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .meta-separator {
        display: none; /* Stack naturally on tiny screens if needed */
    }
}

/* =========================================================
   BLOG DETAILS & LAYOUT
========================================================= */

.blog-details {
    padding: 100px 0;
    background-color: #f9faff; /* Subtly tinted background to make cards pop */
}

.blog-main {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(10,31,92,.03);
}

.blog-main p {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 28px;
    font-size: 1.08rem;
}

.blog-main h2 {
    color: var(--navy);
    font-size: 2.4rem;
    margin: 45px 0 20px;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
}

.blog-main blockquote {
    background: var(--light);
    padding: 40px;
    border-left: 5px solid var(--gold);
    border-radius: 20px;
    margin: 40px 0;
}

.blog-main blockquote p {
    margin: 0;
    color: var(--navy);
    font-size: 1.25rem;
    font-style: italic;
}

.blog-main img {
    width: 100%;
    border-radius: 25px;
    margin: 35px 0;
}


/* =========================================================
   STICKY SIDEBAR
========================================================= */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Key rules to make sidebar stick */
    position: -webkit-sticky;
    position: sticky;
    top: 40px; /* Offset spacing from the top of the viewport when scrolling */
    z-index: 10;
}

.sidebar-widget {
    background: #fff;
    padding: 35px 30px;
    border-radius: 28px;
    box-shadow: 0 12px 45px rgba(10,31,92,.03);
}

.sidebar-widget h4 {
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

/* Subtle line under widget title */
.sidebar-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.recent-post {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post:last-child {
    margin-bottom: 0;
}

.recent-post img {
    width: 85px;
    height: 85px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post h6 {
    margin-bottom: 5px;
    line-height: 1.4;
    font-size: 1rem;
}

.recent-post h6 a {
    color: var(--navy);
    text-decoration: none;
    transition: color .3s ease;
}

.recent-post h6 a:hover {
    color: var(--gold);
}

.recent-post span {
    color: var(--gray);
    font-size: .85rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 15px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    transition: .3s;
}

.category-list a:hover {
    color: var(--gold);
}

.category-list span {
    background: var(--light);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: .82rem;
}


/* =========================================================
   RESPONSIVE MEDIA QUERIES
========================================================= */

@media(max-width: 991px) {
    /* Turn off sticky feature on tablets/mobile so it behaves naturally in stack */
    .blog-sidebar {
        position: static; 
        margin-top: 20px;
    }

    .single-blog-content h1 {
        font-size: 3.2rem;
    }

    .blog-main {
        padding: 35px;
    }
}

@media(max-width: 767px) {
    .blog-details {
        padding: 60px 0;
    }

    .single-blog-image {
        height: 60vh;
        min-height: 400px;
    }

    .single-blog-content {
        bottom: 40px;
    }

    .single-blog-content h1 {
        font-size: 2.2rem;
    }

    .blog-main {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .blog-main h2 {
        font-size: 1.8rem;
    }
}

@media(max-width: 480px) {
    .single-blog-content h1 {
        font-size: 1.8rem;
    }

    .blog-main h2 {
        font-size: 1.5rem;
    }
}