/* ==================================================
   BLOG DETAILS PAGE CSS
   ================================================== */

.blog-details-hero {
    padding: 160px 0 60px 0;
    background-color: var(--bg-light);
}

.blog-details-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.blog-details-category {
    background-color: var(--accent-yellow);
    color: var(--primary-black);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
}

.blog-details-date {
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
}

.blog-details-title {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-black);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.blog-details-excerpt {
    font-family: "DM Sans", sans-serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    max-width: 800px;
}

.blog-details-author {
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    color: var(--primary-black);
    font-weight: 600;
}

/* Featured Image with decorations */
.blog-featured-image-section {
    position: relative;
    padding-bottom: 60px;
    background-color: var(--bg-light);
}

.featured-img-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px; /* Small gap on sides */
}

.featured-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    /* Yellow background to act as a border effect */
    background: var(--accent-yellow);
    padding: 10px; /* Creates the yellow border */
    /* Removed overflow: hidden so corners can stick out */
}

.featured-img-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 2;
}

/* Corner Decorations */
.corner-bl, .corner-br {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: var(--primary-black);
    z-index: 0; /* Behind the image wrapper */
    bottom: -15px;
}

.corner-bl {
    left: 40px; /* Offset from left edge */
}

.corner-br {
    right: 40px; /* Offset from right edge */
}

/* Article Body */
.blog-article-body {
    background-color: #ffffff;
    padding: 60px 0 100px 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: "DM Sans", sans-serif;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary-black);
    text-transform: uppercase;
    margin: 40px 0 20px 0;
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-black);
    text-transform: uppercase;
    margin: 30px 0 15px 0;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style: none;
}

.article-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.article-content ul li::before {
    content: "•";
    position: absolute;
    left: -10px;
    color: var(--primary-black);
    font-weight: bold;
}

/* Video Placeholder */
.article-video-wrapper {
    position: relative;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-video-wrapper img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-btn-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eeeeee;
}

.nav-prev, .nav-next {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: 45%;
    transition: all 0.3s ease;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-family: "DM Sans", sans-serif;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-black);
    text-transform: uppercase;
    line-height: 1.3;
}

.nav-prev:hover .nav-title, 
.nav-next:hover .nav-title {
    color: var(--accent-yellow);
}

@media (max-width: 991px) {
    .featured-img-wrapper img {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .featured-img-wrapper img {
        height: 300px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-prev, .nav-next {
        max-width: 100%;
        text-align: center;
    }
    
    .nav-next .nav-label, .nav-prev .nav-label {
        justify-content: center;
    }
}
