.archive_page_container {
    container-type: inline-size;
    max-width: 100%;
    margin: 0 auto;
    font-family: "Outfit", "Inter", "Roboto", sans-serif;
    color: #000;
    background: #f0f0f0;
    padding-bottom: 7cqw;
}

/* --- Archive Header --- */
.archive_header {
    background: #fff;
    padding: 4cqw 10cqw;
    margin-bottom: 4cqw;
    border-bottom: 1px solid #ddd;
}

.archive_title_wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.archive_title_prefix {
    font-size: var(--font-s);
    font-weight: bold;
    color: var(--theme_color);
    border: 1px solid var(--theme_color);
    padding: 0.2em 0.8em;
    border-radius: 4px;
    text-transform: uppercase;
}

.archive_title {
    font-size: var(--font-3xl);
    font-weight: bold;
    margin: 0;
}

.archive_description {
    margin-top: 1.5rem;
    font-size: var(--font-s);
    line-height: 1.6;
    color: #333;
    max-width: 800px;
}

/* --- Layout --- */
.archive_main_row {
    display: flex;
    gap: 4cqw;
}

.archive_content {
    width: 65%;
}

.archive_sidebar {
    width: 23%;
}

/* --- Post Grid --- */
.archive_post_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5cqw;
}

.post_card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.post_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post_card_thumb {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.post_card_thumb img {
    width: 100%;
    max-width: 100%;
    max-height: auto;
    height: auto;
    display: block;
}

.post_card_info {
    padding: 1.5cqw;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post_card_date {
    font-size: var(--font-xs);
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.post_card_title {
    font-size: var(--font-m);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post_card_tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post_tag {
    font-size: var(--font-xs);
    color: #333;
    background: #f0f0f0;
    padding: 0.2em 0.6em;
    border-radius: 4px;
}

/* --- Pagination --- */
.pagination_wrap {
    margin-top: 5cqw;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: 0.3s;
}

.pagination .page-numbers.current {
    background: var(--theme_color);
    color: #fff;
}

/* --- Sidebar --- */
.top_sidebar_widget {
    margin-bottom: 2.5cqw;
}

.top_sidebar_widget_title {
    font-size: var(--font-m);
    font-weight: bold;
    margin-bottom: 1.5cqw;
    border-bottom: 2px solid #000;
    padding-bottom: 0.8cqw;
}

.widget_topic {
    background: #fff;
    padding: 1.5cqw;
    border-radius: 20px;
    border: none;
}

.widget_topic .top_sidebar_widget_title {
    text-align: center;
    border-bottom: 2px solid #333;
    width: 80%;
    margin: 0 auto 1.5cqw;
}

.sidebar_recruitment_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    padding: 1cqw;
    border-radius: 50px;
    font-size: var(--font-s);
    margin-bottom: 1.5cqw;
}

.sidebar_topic_item {
    display: flex;
    gap: 10px;
    margin-bottom: 1.2cqw;
    text-decoration: none;
    color: inherit;
}

.topic_img {
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.topic_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar_banner img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar_banner_title {
    font-size: var(--font-s);
    font-weight: bold;
    margin: 1cqw 0 0.5cqw;
}

/* --- SP Overrides --- */
@media (max-width: 767px) {
    .archive_header {
        padding: 8cqw 5cqw;
    }

    .archive_title {
        font-size: 7vw;
    }

    .archive_main_row {
        flex-direction: column;
        padding: 0 5vw;
    }

    .archive_content,
    .archive_sidebar {
        width: 100%;
    }

    .archive_post_grid {
        grid-template-columns: 1fr;
        gap: 5vw;
    }

    .post_card_info {
        padding: 5vw;
    }

    .archive_sidebar {
        margin-top: 10vw;
    }

    .sidebar_recruitment_btn {
        padding: 4vw;
        font-size: 4.5vw;
    }
}
