/* Archive Header with Black Background */
.archive .page-header,
.archive .elementor-page-title,
.archive .elementor-location-archive header {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 60px 20px !important;
    margin-bottom: 50px !important;
    text-align: center;
    border-radius: 0;
}

.archive .page-header .page-title,
.archive .elementor-page-title h1,
.archive h1.page-title {
    color: #ffffff !important;
    margin: 0;
    padding: 0;
    font-size: 2.5rem;
    text-transform: capitalize;
}

/* 3 Column Responsive Grid for Archive Posts */
.archive .site-main,
.archive .elementor-posts-container,
.blog .site-main {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    max-width: 1200px !important;
}

/* Reset margins on individual posts inside the grid */
.archive .site-main .post,
.archive .site-main article,
.blog .site-main article {
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .archive .site-main,
    .archive .elementor-posts-container,
    .blog .site-main {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .archive .site-main,
    .archive .elementor-posts-container,
    .blog .site-main {
        grid-template-columns: 1fr !important;
        padding: 0 15px !important;
    }
    
    .archive .page-header,
    .archive .elementor-page-title {
        padding: 40px 15px !important;
        margin-bottom: 30px !important;
    }
    
    .archive .page-header .page-title,
    .archive h1.page-title {
        font-size: 2rem !important;
    }
}
