.category-blog #primary section {
    padding: 10px 0;
    float: none;
}

.category-blog .page-header {
    padding-bottom: 10px;
}

/* Popular Reads Section */
.popular-read-section {
    margin-bottom: 2rem;
}

.category-blog .section-title {
    /* font-size: 2rem; */
    font-weight: bold;;
    margin-bottom: 30px;
    text-align: center;
}

.popular-read-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10rem;
    row-gap: 3rem;
}

/* Featured Post Styles */
.popular-read-featured {
    grid-column: 1;
}

.featured-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-post .post-thumbnail {
    margin: 0;
    overflow: hidden;
    position: relative;
    display: block;
}

.featured-post .thumbnail-overlay {
    position: relative;
    overflow: hidden;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin-top: 0;
    margin-bottom: 0;
}

.featured-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.featured-post .thumbnail-overlay .entry-header {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    background: linear-gradient(to bottom, transparent 0%, #161616 100%);
    margin: 0;
}

.featured-post .entry-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
    margin: 0 5px;
}

.featured-post .entry-title a {
    color: var(--text-black);
    text-decoration: none;
}

.featured-post .entry-title a:hover {
    color: var(--primary-gold);
}

/* Popular Reads List Styles */
.popular-read-list {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-post {
    display: flex;
    align-items: start;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    column-gap: 10px;
}

.list-post:last-child {
    border-bottom: none;
}

.list-post .post-thumbnail {
    width: 100px;
    /* height: 100px; */
    margin-right: 1rem;
    flex-shrink: 0;
    margin: 0;
}

.list-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.list-post .entry-content {
    margin: 0;
}

.list-post .entry-title {
    font-size: 1rem;
    margin: 0;
    font-weight: bold;
}

.list-post .entry-title a {
    color: var(--text-black);
    text-decoration: none;
}

.list-post .entry-title a:hover {
    color: var(--primary-gold);
}

.explore-popular-reads-container {
    grid-column: 1 / -1; /* Span across all grid columns */
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.category-blog a.explore-popular-reads-btn, .category-blog #load-more {
    display: block;
    margin: auto;
    padding: 10px 20px;
    background-color: var(--primary-gold);
    color: #161616; 
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.explore-popular-reads-btn:hover {
    background-color: var(--secondary-gold);
}

.category-blog #primary section.latest-posts-section {
    margin: 50px auto;
}

.category-blog .latest-posts-section .blog-posts-archive {
    margin-top: 30px;
}

/* Category Link Section */

.category-blog #primary section.category-link-section {
    background-color: var(--bg-light);
    padding: 50px 0;
}

.category-link-wrapper {
    display: flex;
    gap: 50px;
}

.category-link-wrapper a {
    width: 50%;
    position: relative;
    color: white;
}

.category-link-wrapper a:focus {
    color: white !important;
    background: unset !important;
}

.category-link-img {
    overflow: hidden;
    max-width: 100%;
    height: 200px;
    position: relative;
}

.category-link-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(22, 22, 22, 0) 0%, 
        rgba(22, 22, 22, 0.5) 30%, 
        rgba(22, 22, 22, 0.7) 50%, 
        rgba(22, 22, 22, 0.5) 70%, 
        rgba(22, 22, 22, 0) 100%);
    z-index: 1; 
}

.category-link-wrapper a img {
    width: 100%; 
    height: auto; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    transition: transform 0.3s ease;
}

.category-link-wrapper a:hover img {
    transform: translate(-50%, -50%) scale(1.05);
}

.category-link-wrapper a h2 {
    font-weight: bold;
    position: absolute;
    top: 50%;
    text-align: center;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
}

header.entry-header a {
    max-width: none;
}

header.entry-header a img {
    max-width: 100%;
}

.category-blog #load-more:hover{
    border-color: var(--primary-gold);
}

/* Responsive Design */
@media (max-width: 767px) {
    .popular-read-grid {
        grid-template-columns: 1fr;
    }

    .popular-read-featured,
    .popular-read-list {
        grid-column: 1;
    }

    .featured-post .post-thumbnail img {
        height: 250px;
    }

    .category-link-wrapper {
        flex-wrap: wrap;
    }

    .category-link-wrapper a {
        width: 100%;
    }

    .category-blog .featured-post .entry-header h2.entry-title {
        font-size: 2rem;
    }
}