/* =========================================
   BLOG DETAILS PAGE (SINGLE / STATIC POST)
   ========================================= */

.blog-single-hero {
    position: relative;
    width: 100%;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 7% 80px;
    background-image: 
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.8)
        ),
        url("../../images/Blog/Blog_Hero_Background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.blog-single-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 1;
}

.blog-single-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TOP BACK BUTTON */
.back-to-blog-top {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-to-blog-top:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

/* BADGE */
.blog-single-badge {
    display: inline-block;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

/* TITLE */
.blog-single-title {
    color: #ffffff;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 25px;
    text-align: center;
}

/* META */
.blog-single-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.blog-single-meta .meta-item {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-single-meta .meta-item i {
    color: #ffffff;
}

/* CONTENT CONTAINER */
.blog-single-content {
    background: #000000;
    padding: 20px 7% 100px;
}

.blog-single-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* FEATURED IMAGE */
.post-featured-image {
    width: 100%;
    aspect-ratio: 21 / 9; /* Sleek, cinematic landscape widescreen ratio */
    border-radius: 32px;
    overflow: hidden;
    margin-top: -60px; /* Pull it slightly into the hero section gradient */
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ENTRY CONTENT TYPOGRAPHY */
.post-entry-content {
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.85;
    font-weight: 300;
}

.post-entry-content p {
    margin-bottom: 30px;
}

/* First paragraph acts automatically as lead text for dynamic CMS content */
.post-entry-content > p:first-of-type,
.post-entry-content .lead-text {
    font-size: 23px;
    line-height: 1.7;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 40px;
}

/* Headings */
.post-entry-content h2 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 60px 0 25px;
}

.post-entry-content h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 45px 0 20px;
}

/* Lists */
.post-entry-content ul,
.post-entry-content ol {
    margin-bottom: 35px;
    padding-left: 24px;
}

.post-entry-content li {
    margin-bottom: 12px;
    position: relative;
}

.post-entry-content ul li::marker {
    color: #ffffff;
}

/* Blockquote */
.post-entry-content blockquote {
    margin: 50px 0;
    padding: 35px 40px;
    border-left: 4px solid #ffffff;
    background: rgba(255, 255, 255, 0.04);
    font-size: 22px;
    line-height: 1.7;
    font-style: italic;
    color: #ffffff;
    font-weight: 300;
    border-radius: 0 16px 16px 0;
}

/* Standardize nested paragraph inside blockquotes (Gutenberg) */
.post-entry-content blockquote p {
    font-size: inherit;
    line-height: inherit;
    font-style: inherit;
    color: inherit;
    font-weight: inherit;
    margin-bottom: 0 !important;
}

/* Dynamic CMS Images and Figures */
.post-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.post-entry-content figure {
    margin: 40px auto;
    max-width: 100%;
    text-align: center;
}

.post-entry-content figure img {
    margin: 0 auto;
}

.post-entry-content figcaption {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}


/* Conclusion Block */
.blog-single-conclusion {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 24px;
    margin-top: 60px;
    margin-bottom: 50px;
}

.blog-single-conclusion h2 {
    margin-top: 0 !important;
}

.blog-single-conclusion p {
    margin-bottom: 0;
}

/* BOTTOM NAVIGATION */
.blog-single-footer-nav {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-to-blog-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media screen and (max-width: 991px) {
    .blog-single-title {
        font-size: 48px;
        letter-spacing: -1px;
    }
    
    .blog-single-hero {
        min-height: 45vh;
        padding-top: 130px;
    }

    .post-featured-image {
        border-radius: 24px;
    }

    .post-entry-content {
        font-size: 18px;
    }

    .post-entry-content .lead-text {
        font-size: 21px;
    }

    .post-entry-content h2 {
        font-size: 30px;
        margin: 45px 0 20px;
    }
}

@media screen and (max-width: 767px) {
    .blog-single-hero {
        padding-left: 24px;
        padding-right: 24px;
    }

    .blog-single-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .blog-single-title {
        font-size: 36px;
    }

    .post-featured-image {
        aspect-ratio: 16 / 9; /* Slightly taller on mobile so it doesn't squish */
        border-radius: 16px;
        margin-top: -30px;
        margin-bottom: 40px;
    }

    .post-entry-content blockquote {
        padding: 25px 30px;
        font-size: 18px;
    }

    .post-entry-content p,
    .post-entry-content .lead-text,
    .post-entry-content li {
        font-size: 15px;
    }

    .blog-single-conclusion {
        padding: 30px;
    }
}

@media screen and (max-width: 480px) {
    .blog-single-title {
        font-size: 28px;
    }

    .blog-single-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .back-to-blog-btn {
        width: 100%;
        justify-content: center;
    }
}
