

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: var(--warm-off-white);
}

/* Override Parent Theme Margin Styles */
.separate-containers.both-right .site-main,
.separate-containers.right-sidebar .site-main {
    margin: 0 auto !important; /* Center the site-main with no side margins */
    width: 100%; /* Ensure full width within container */
    max-width: 1200px; /* Match container width */
    background-color: #fff;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.category-description {
    color: var(--slate-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Post Card */
.post-card {
    background-color: var(--warm-off-white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Thumbnail */
.post-thumbnail {
    overflow: hidden;
}

.thumbnail-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Post Content */
.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 0.75rem;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.hover-text-misty-lavender:hover {
    color: var(--misty-lavender);
}

.post-excerpt {
    color: var(--slate-gray);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.read-more-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--soft-golden-amber);
    color: var(--dark-charcoal);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.hover-bg-muted-rose:hover {
    background-color: var(--muted-rose);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: var(--soothing-teal);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: var(--misty-lavender);
    color: var(--dark-charcoal);
}

/* No Posts */
.no-posts {
    text-align: center;
    color: var(--slate-gray);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .post-content {
        padding: 1rem;
    }

    .thumbnail-img {
        height: 180px;
    }
}