/* Blog Redesign CSS - Final Professional Version */
:root {
    --primary-color: #1a3c34;
    --accent-color: #d4af37;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #fdfbf7;
    --white: #ffffff;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.8;
}

/* Reading Progress Bar */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

#progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s ease;
}

.blog-details-section {
    padding: 80px 0;
}

.blog-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-wrapper {
    display: grid;
    grid-template-columns: 8fr 3.5fr;
    gap: 50px;
    align-items: start;
}

.blog-main-content {
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Sidebar Sticky Behavior */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: -webkit-sticky;
    position: sticky;
    top: 30px;
    /* Sticky top offset */
    z-index: 10;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: rgb(225 225 225);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.author-title {
    font-size: 13px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.author-bio {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-signature {
    font-family: 'Reey', cursive;
    font-size: 24px;
    background: linear-gradient(45deg, var(--accent-color), #8b733a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: block;
}

.author-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-socials a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.author-socials a:hover {
    background: var(--accent-color);
    color: white;
}

/* Related Posts Widget */
.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sidebar-post-thumb {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content h5 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.sidebar-post-content h5 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-post-category {
    font-size: 10px;
    text-transform: uppercase;
    color: white;
    font-weight: 800;
    background: var(--accent-color);
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
}

/* Featured & Inner Images Height Reduction */
.blog-featured-image {
    width: 100%;
    height: 550px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-inner-image {
    width: 100%;
    height: 450px;
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.blog-inner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

/* Content Sections */
.blog-inner-section {
    margin-bottom: 40px;
}

.blog-inner-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.blog-inner-section p {
    font-size: 19px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Blockquote - Fixed White Text */
.blog-blockquote {
    background: linear-gradient(135deg, #1a3c34 0%, #2c5e52 100%);
    color: white;
    padding: 50px;
    margin: 50px 0;
    border-radius: 30px;
    text-align: center;
    position: relative;
}

.blog-blockquote h4 {
    font-size: 28px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ffffff !important;
    /* Forced white */
}

.blog-blockquote .quote-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.blog-blockquote .quote-icons img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    filter: brightness(0) invert(1);
}

/* Share Section */
.post-share-options {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-list {
    display: flex;
    gap: 12px;
}

.share-list a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f5f5;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.share-list a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Promo Banner - White Text */
.promo-banner {
    background: linear-gradient(135deg, #1a3c34 0%, #000 100%);
    padding: 40px;
    border-radius: 25px;
    color: white;
    text-align: center;
    border: 1px solid var(--accent-color);
}

.promo-banner h3 {
    color: #ffffff !important;
    /* Forced white */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.promo-banner p {
    color: #ffffff !important;
    /* Forced white */
    opacity: 0.9;
    font-size: 14px;
}

.promo-btn {
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.promo-btn:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design Fixes */
@media (max-width: 1200px) {
    .blog-container {
        max-width: 100%;
        padding: 0 30px;
    }

    .blog-post-wrapper {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .blog-post-wrapper {
        grid-template-columns: 1fr;
        /* Stack sidebar below content */
    }

    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }

    .blog-main-content {
        padding: 40px 30px;
    }

    .page-header h1 {
        font-size: 42px !important;
    }
}

@media (max-width: 768px) {
    .blog-details-section {
        padding: 60px 0;
    }

    .page-header {
        height: 40vh;
    }

    .page-header h1 {
        font-size: 32px !important;
    }

    .blog-main-content {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .blog-featured-image {
        height: 350px;
    }

    .blog-inner-image {
        height: 280px;
    }

    .blog-inner-section h3 {
        font-size: 26px;
    }

    .blog-inner-section p {
        font-size: 17px;
    }

    .blog-blockquote {
        padding: 35px 20px;
    }

    .blog-blockquote h4 {
        font-size: 22px;
    }

    .post-share-options {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 28px !important;
    }

    .blog-featured-image {
        height: 250px;
    }

    .blog-inner-image {
        height: 220px;
    }

    .author-image {
        width: 90px;
        height: 90px;
    }
}

/* Footer Gallery Styling */
.footer-top-gallery {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    margin-top: 50px;
}

.footer-gallery-item {
    flex: 1;
    height: 300px;
    overflow: hidden;
    position: relative;
    border: 1px solid #fff;
}

.footer-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.footer-gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-top-gallery {
        flex-wrap: wrap;
    }
    .footer-gallery-item {
        flex: 0 0 50%;
        height: 200px;
    }
}