/* ===== Single Post Layout ===== */
.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.breadcrumb a { color: #e60000; text-decoration: none; }

/* Title */
.post-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
    text-align: justify;
}

/* Post Meta */
.post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

/* Author Box Above Post */
.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}
.author-name {
    font-size: 16px;
    font-weight: bold;
}

/* ===============================
   Featured Image (Improved)
================================== */
.post-thumbnail {
    text-align: center;
    margin: 25px auto;
    max-width: 1200px; /* keeps image width consistent like major news layouts */
    width: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: auto; /* maintains aspect ratio */
    max-height: 500px; /* prevents overly tall images */
    object-fit: contain; /* avoids zoom/crop */
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    background-color: #f9f9f9; /* subtle backdrop for smaller images */
}

/* Post Content */
.post-content {
    line-height: 1.8;
    font-size: 18px;
    text-align: left;
    padding: 0 100px;
    text-align: justify;
}

/* Author Section Bottom */
.author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f4f4f4;
    padding: 30px 50px;
    margin-top: 50px;
    border-radius: 5px;
}
.author-details h3 {
    margin: 0;
}
.author-social a {
    color: #e60000;
    text-decoration: none;
    margin-right: 8px;
}

.post-author .avatar{
    border-radius: 999px;
    height: 30px;
    width: 30px;
}

/* ===============================
   Single Post Responsive Design
================================== */

/* General Responsive Layout */
@media (max-width: 1024px) {
    .post-content {
        padding: 0 60px;
    }

    .author-box {
        padding: 20px 60px;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 28px;
    }

    .post-content {
        padding: 0 30px;
        font-size: 17px;
    }

    .post-thumbnail img {
        max-height: 400px;
    }

    .author-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px 30px;
        gap: 10px;
    }

    .author-box img.avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .author-details h3 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .author-details p {
        font-size: 15px;
        color: #555;
        line-height: 1.6;
        margin: 0;
    }

    .post-author {
        gap: 8px;
    }

    .post-author .avatar {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 13px;
    }

    .post-title {
        font-size: 22px;
        line-height: 1.2;
        text-align: justify;
    }

    .post-content {
        padding: 0;
        font-size: 16px;
        text-align: justify;
    }

    .author-box {
        padding: 16px;
        margin-top: 40px;
    }

    .author-details h3 {
        font-size: 17px;
    }

    .author-details p {
        font-size: 14px;
    }
    
    h2{
        font-size: 24px;
        line-height: 1.4;
    }
    
    h3{
        font-size: 22px;
        line-height: 1.4;
    }
}