/* Archive and Search Styles */
.archive-wrapper {
    padding-top: 60px;
    padding-bottom: 80px;
}

.archive-header {
    margin-bottom: 50px;
    text-align: center;
}

.archive-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.archive-description {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Search Bar in Archive */
.search-container {
    max-width: 600px;
    margin: 0 auto 60px;
}

.search-form-archive {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.search-input-archive {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    border-radius: 10px;
}

.search-button-archive {
    background: #fec202;
    border: none;
    color: #1a1a1a;
    padding: 0 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-button-archive:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Posts Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Reusing Home Card Styles but adapted if needed */
.archive-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.archive-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.archive-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .archive-card-image img {
    transform: scale(1.08);
}

.archive-card-content {
    padding: 25px;
}

.archive-card-category {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fec202;
    margin-bottom: 10px;
    display: block;
}

.archive-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.archive-card-excerpt {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 20px;
}

.archive-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f7fafc;
    padding-top: 15px;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 1024px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-title {
        font-size: 2.2rem;
    }

    .search-form-archive {
        flex-direction: column;
        padding: 15px;
    }

    .search-button-archive {
        padding: 12px;
    }
}

/* --- Paginação Premium --- */
.pagination-wrapper {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pagination-wrapper .page-numbers:not(.dots):not(.current):hover {
    background: #f8fafc;
    border-color: #fec202;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 194, 2, 0.15);
}

.pagination-wrapper .page-numbers.current {
    background: #1a1a1a;
    color: #fec202;
    border-color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pagination-wrapper .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
    font-size: 0.9rem;
    padding: 0 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-color: #e2e8f0;
}

.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover {
    background: #fec202 !important;
    border-color: #fec202 !important;
    color: #1a1a1a !important;
}

@media (max-width: 640px) {
    .pagination-wrapper {
        gap: 8px;
    }

    .pagination-wrapper .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .pagination-wrapper .prev,
    .pagination-wrapper .next {
        padding: 0 15px;
        font-size: 0.75rem;
    }
}