/* Most Accessed Post Section */
.most-accessed-post {
    /* background-color: #f8f9fa; */
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100vh; /* Adjust height to viewport height */
    width: 100vw; /* Full viewport width */
    margin-left: calc(50% - 50vw); /* Center the full-width section */
}

/* Container for the image and overlay */
.post-thumbnail {
    position: relative;
    display: inline-block;
    width: 100vw;
    height: 100vh; /* Adjust height to viewport height */
    margin: 0; /* Remove margin */
    padding: 0; /* Remove padding */
    overflow: hidden;
}

/* Ensure the image fills the container */
.post-thumbnail img {
    width: 100%;
    height: 100vh; /* Adjust height */
    display: block;
    object-fit: cover;
    margin: 0; /* Remove default image margin */
}

/* Overlay content (post info) */
.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background: rgba(0, 0, 0, 0.7); /* Slightly darker background */
    color: white;
    padding: 2rem; /* Use rem for consistent scaling */
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    z-index: 10;
    margin: 0; /* Ensure no margin is added */
    height: auto; /* Make sure the overlay can grow with content */
}

/* Post Title */
.post-title-main-overlay a {
    color: white; /* Color for the link */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Add a transition for color change */
    font-size: 4vh;
    font-weight: bold;
}

.post-title-main-overlay a:hover {
    color: #0073aa; /* Optional: Change color on hover */
}

/* Post Author */
.post-author-main-overlay {
    font-size: 2vh;
    margin-bottom: 1vh;
    color: #ddd; /* Lighter text color for the author */
}

/* Continue Reading Button */
.continue-reading-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00bfa6, #0073aa);
    color: white;
    text-decoration: none;
    border-radius: 2.5rem;
    transition: background-color 0.3s ease;
    font-size: 2.5vh;
}

.continue-reading-btn:hover {
    opacity: 0.9;
}

@media (max-width: 1100px) {
    .most-accessed-post {
        height: auto; /* Ensure the section doesn't exceed screen height */
    }

    .post-title-main-overlay a {
        font-size: 2.5vh;
    }

    .post-title-main-overlay {
        margin-top: 0;
        margin-bottom: 0;
    }

    .post-author-main-overlay {
        font-size: 1.8vh;
        margin-bottom: 0.5rem;
        margin-top: 0;

    }

    .continue-reading-btn {
        padding: 0.4rem 1rem;
    }

    .post-thumbnail {
        height: auto;
        overflow: visible; /* Ensure overlay isn't clipped */
    }

    .post-thumbnail img {
        height: auto; /* Ensure image does not compress on small screens */
        object-fit: cover; /* Maintain aspect ratio */
    }

    /* Ensure the overlay remains visible */
    .post-overlay {
        bottom: 0;
        width: 100%;
        padding: 1rem;
        height: auto; /* Adjust height for smaller content */
    }
}

@media (max-width: 600px) {
    .post-title-main-overlay a {
        font-size: 1.7vh;
    }

    .post-author-main-overlay {
        font-size: 1.5vh;
    }

    .continue-reading-btn {
        padding: 0.4rem 0.7rem;
    }
}
