/* Archive/Filter Page Styles */

.archive-page-template {
    max-width: var(--wp--custom--contentSize, 700px);
    margin: 0 auto;
    padding: 60px 20px 40px 20px;
}

.archive-page-template .archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.archive-page-template .archive-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--black, #000);
    margin: 0;
}

/* Filter Section */
.archive-page-template .filter-section {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.archive-page-template .filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.archive-page-template .filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.archive-page-template .filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--wp--preset--color--black, #000);
    font-size: 0.95rem;
}

.archive-page-template .filter-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.archive-page-template .filter-group select:hover,
.archive-page-template .filter-group select:focus {
    border-color: var(--wp--custom--linkColor, #0f6d37);
    outline: none;
}

.archive-page-template .apply-filters-btn,
.archive-page-template .reset-filters-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-page-template .apply-filters-btn {
    background-color: var(--wp--custom--linkColor, #0f6d37);
    color: white;
}

.archive-page-template .apply-filters-btn:hover {
    background-color: #0a4a25;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 109, 55, 0.3);
}

.archive-page-template .reset-filters-btn {
    background-color: #ddd;
    color: var(--wp--preset--color--black, #000);
}

.archive-page-template .reset-filters-btn:hover {
    background-color: #bbb;
    transform: translateY(-2px);
}

/* Posts Container */
.archive-page-template .posts-container {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* center 800px cards like front page */
    gap: 32px;
}

/* Use exact same styles as front page post-preview.css */
.archive-page-template .post-card {
    display: flex;
    background: #0f6d37;
    border-radius: 25px;
    overflow: hidden;
    color: white;
    font-family: Arial, sans-serif;
    margin-bottom: 32px;
    height: 330px;
    width: 800px;
    max-width: 800px;
    max-height: 330px;
    animation: fadeInUp 0.7s ease;
}

/* Left Image */
.archive-page-template .post-image {
    flex: 1.1;
    position: relative;
}

.archive-page-template .post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-page-template .post-image figure a {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-page-template .post-image figure {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Panel */
.archive-page-template .post-content {
    flex: 1;
    padding: 20px 35px;
    background: #1b7e42;
    position: relative;
}

.archive-page-template .post-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0.6rem 0 0;
    border-bottom: none;
}

.archive-page-template .divider {
    width: 100%;
    height: 3px;
    background: #a5d68a;
    margin: 0.8rem 0;
}

/* Footer */
.archive-page-template .post-footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    opacity: 0.9;
    font-size: 15px;
}

.archive-page-template .post-title a,
.archive-page-template .post-content a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    
}

.archive-page-template .post-description {
    color: white;
}

/* Load More Button */
.archive-page-template .load-more-button {
    display: flex;
    color: #1b5e20;
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: auto;
    font-weight: 700;
    background: none;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    gap: 10px;
    padding: 0;
}

.archive-page-template .load-more-button:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

.archive-page-template .load-more-button img {
    width: 20px;
    height: 20px;
}

/* No Posts Message */
.archive-page-template .no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.archive-page-template .no-posts-message p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 880px) {
    .archive-page-template {
        padding: 40px 15px 30px 15px;
    }

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

    .archive-page-template .filter-section {
        padding: 20px;
    }

    .archive-page-template .filter-container {
        flex-direction: column;
        gap: 15px;
    }

    .archive-page-template .filter-group {
        min-width: 100%;
    }

    .archive-page-template .apply-filters-btn,
    .archive-page-template .reset-filters-btn {
        width: 100%;
    }

    .archive-page-template .post-card {
        flex-direction: column-reverse;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    .archive-page-template .post-image {
        min-width: 100%;
        max-width: 100%;
        height: 250px;
    }

    .archive-page-template .post-content {
        padding: 0;
    }

    .archive-page-template .divider {
        margin: 0;
    }

    .archive-page-template .post-content h2 {
        margin: 0.6rem;
        font-size: 18px;
    }

    .archive-page-template .post-description,
    .archive-page-template .post-footer {
        display: none;
    }
}

@media (max-width: 768px) {
    .archive-page-template {
        padding: 30px 12px 25px 12px;
    }

    .archive-page-template .filter-section {
        padding: 18px;
    }

    .archive-page-template .load-more-button,
    .archive-page-template .apply-filters-btn,
    .archive-page-template .reset-filters-btn {
        width: 100%;
    }
}

/* Front Page Button Group Styles */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--wp--custom--linkColor, #0f6d37);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background-color: #0a4a25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 109, 55, 0.3);
}

.filter-button img {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .load-more-button {
        width: 100%;
    }

    .filter-button {
        width: auto;
        max-width: 260px;
        margin: 0 auto;
    }
}
