.main-container {
    padding: 0 var(--space-36);

    .tree-archive {
        max-width: 1296px;
        margin: var(--space-80) auto var(--space-64);
        display: flex;
        flex-direction: column;
        gap: var(--space-48);
        width: fit-content;

        .archive-head {
            display: flex;
            gap: var(--space-48);
            flex-direction: column;
            align-items: center;

            .archive-title {
                color: var(--text-primary);
                text-align: center;
                font-family: BOG, sans-serif;
                font-size: 32px;
                font-style: normal;
                font-weight: 700;
                line-height: 48px;
            }

            .categories {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                padding: 0;
                gap: var(--space-16);

                li {
                    &.active {
                        a {
                            background-color: var(--primary-solid-10);
                            color: var(--white-tr-20);

                            &:hover {
                                background-color: var(--primary-solid-10);
                            }
                        }
                    }

                    a {
                        display: flex;
                        height: 50px;
                        padding: 0 24px;
                        align-items: center;
                        gap: var(--space-8);
                        border-radius: 100px;
                        background-color: var(--invert-component-tr-80);
                        transition: background-color 0.3s ease;
                        color: var(--invert-component-tr-20);
                        text-align: center;
                        font-family: BOG Headline, sans-serif;
                        font-size: 13px;
                        font-style: normal;
                        font-weight: 500;
                        line-height: 18px;
                        text-transform: uppercase;
                        text-decoration: none;

                        &:hover {
                            background-color: var(--invert-component-tr-70);
                        }
                    }
                }
            }
        }

        .archive-content {
            .cards-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: var(--space-32);
                padding: 0;
                margin-bottom: var(--space-64);
                justify-content: center;

                .card {
                    overflow: hidden;
                    border-radius: var(--border-radius-20);
                    background-color: var(--layer-03);
                    transition: background-color 0.3s ease;

                    &:hover {
                        background-color: var(--layer-alpha-hover-01);
                    }

                    &:active {
                        background-color: var(--layer-alpha-pressed-01);
                    }

                    .card-link {
                        display: block;
                        height: 100%;
                        text-decoration: none;

                        .card-inner {
                            display: flex;
                            justify-content: space-between;
                            flex-direction: column;
                            gap: var(--space-24);
                            height: 100%;

                            .card-content {
                                display: flex;
                                padding: var(--space-32) var(--space-32) 0;
                                flex-direction: column;
                                align-items: flex-start;
                                gap: var(--space-16);
                                align-self: stretch;

                                .card-title {
                                    color: var(--text-primary);
                                    font-family: BOG, sans-serif;
                                    font-size: 18px;
                                    font-style: normal;
                                    font-weight: 700;
                                    line-height: 30px;
                                    display: -webkit-box;
                                    -webkit-line-clamp: 1;
                                    -webkit-box-orient: vertical;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                }

                                .card-excerpt {
                                    color: var(--text-primary);
                                    font-family: BOG, sans-serif;
                                    font-size: 16px;
                                    font-style: normal;
                                    font-weight: 400;
                                    line-height: 24px;
                                    display: -webkit-box;
                                    -webkit-line-clamp: 4;
                                    -webkit-box-orient: vertical;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                }
                            }

                            .card-media {
                                img {
                                    width: 100%;
                                    height: 230px;
                                    object-fit: cover;
                                    object-position: center;
                                }
                            }
                        }
                    }
                }

                .news-card {
                    height: 100%;
                    overflow: hidden;
                    border-radius: var(--border-radius-20);
                    border: 1px solid var(--border-01);
                    background-color: var(--layer-01);

                    .card-link {
                        display: block;
                        height: 100%;
                        text-decoration: none;

                        .card-inner {
                            display: flex;
                            flex-direction: column;
                            gap: var(--space-24);
                            height: 100%;

                            .card-media {
                                img {
                                    width: 100%;
                                    height: 230px;
                                    object-fit: cover;
                                    object-position: center;
                                }
                            }

                            .card-content {
                                height: 100%;
                                display: flex;
                                flex-direction: column;
                                justify-content: space-between;
                                gap: var(--space-16);
                                padding: 0 var(--space-32) var(--space-32);

                                .card-inner-content {
                                    .card-tax-date {
                                        display: flex;
                                        gap: var(--space-12);
                                        align-items: center;
                                        margin-bottom: var(--space-16);

                                        .card-category {
                                            padding: var(--space-4) var(--space-8);
                                            text-align: center;
                                            max-width: 320px;
                                            width: fit-content;
                                            border-radius: var(--border-radius-100);
                                            background: var(--status-info-01);
                                            color: var(--text-primary);
                                            font-family: BOG, sans-serif;
                                            font-size: 10px;
                                            font-style: normal;
                                            font-weight: 500;
                                            line-height: 16px;
                                            overflow: hidden;
                                            text-overflow: ellipsis;
                                            white-space: nowrap;
                                        }

                                        .card-date {
                                            color: var(--text-helper);
                                            font-family: BOG, sans-serif;
                                            font-size: 12px;
                                            font-style: normal;
                                            font-weight: 500;
                                            line-height: 20px;
                                            text-wrap: nowrap;
                                        }
                                    }

                                    .card-title {
                                        color: var(--text-primary);
                                        font-family: BOG, sans-serif;
                                        font-size: 16px;
                                        font-style: normal;
                                        font-weight: 600;
                                        line-height: 24px;
                                        display: -webkit-box;
                                        -webkit-line-clamp: 3;
                                        -webkit-box-orient: vertical;
                                        overflow: hidden;
                                        text-overflow: ellipsis;
                                    }
                                }

                                .card-link-button {
                                    height: fit-content;
                                    width: fit-content;
                                    color: var(--button-text-low);
                                    font-family: BOG, sans-serif;
                                    font-size: 13px;
                                    font-style: normal;
                                    font-weight: 500;
                                    line-height: 19px;
                                    padding: var(--space-4) var(--space-8) var(--space-4) 0;
                                }
                            }
                        }
                    }
                }
            }

            .archive-pagination {
                width: 100%;
                margin: 0 auto;

                .nav-links {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 8px;

                    .page-numbers {
                        width: 32px;
                        height: 32px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        border-radius: var(--border-radius-circle);
                        background-color: var(--invert-component-tr-80);
                        color: var(--invert-component-tr-40);
                        text-align: center;
                        text-decoration: none;
                        transition: all 0.3s ease;
                        font-family: BOG, sans-serif;
                        font-size: 12px;
                        font-style: normal;
                        font-weight: 500;
                        line-height: 20px;

                        &:hover {
                            background-color: var(--invert-component-tr-70);

                            &.prev, &.next {
                                background-color: var(--invert-component-tr-70);
                            }
                        }

                        &.current {
                            background-color: var(--primary-solid-10);
                            color: var(--white-tr-20);
                        }

                        &.prev, &.next {
                            background-color: transparent;
                            border-radius: var(--border-radius-circle);

                            svg {
                                color: var(--invert-component-tr-50);
                                width: 16px !important;
                                height: 16px !important;
                            }
                        }

                        &.disabled {
                            cursor: not-allowed;
                            pointer-events: none;

                            svg {
                                color: var(--invert-component-tr-60);
                            }
                        }
                    }

                    .dots {
                        background-color: transparent;
                        color: var(--invert-component-tr-50);
                        font-family: BOG, sans-serif;
                        font-size: 12px;
                        font-style: normal;
                        font-weight: 500;
                        line-height: 20px;
                        width: 10px;
                    }
                }
            }
        }

        .empty {
            max-width: 1160px;
            margin: 24px auto 0;
            color: #cfcfcf;
            text-align: center;
        }
    }
}

@media (max-width: 1024px) {
    .main-container .tree-archive {
        margin: var(--space-48) auto var(--space-64);

        .archive-head {
            gap: var(--space-32);
        }

        .archive-content .cards-grid {
            grid-template-columns: repeat(2, 1fr);

            .card, .news-card {
                .card-link .card-inner .card-media img {
                    height: 260px;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 var(--space-28);

        .tree-archive .archive-content .cards-grid {
            gap: var(--space-24);

            .card, .news-card {
                .card-link .card-inner .card-media img {
                    height: 194px;
                }
            }
        }
    }
}

@media (max-width: 600px) {
    .main-container {
        overflow: visible;
        padding: 0 var(--space-24);

        .tree-archive {
            width: 100%;
            margin: var(--space-32) auto var(--space-48);
            gap: var(--space-32);

            .archive-head {
                overflow: visible;
                gap: var(--space-32);

                .categories {
                    position: relative;
                    width: 100vw;
                    flex-wrap: nowrap;
                    overflow-x: auto;
                    justify-content: flex-start;
                    -ms-overflow-style: none;
                    scrollbar-width: none;
                    z-index: 100;
                    padding: 0 var(--space-24);
                    gap: var(--space-12);

                    &::-webkit-scrollbar {
                        display: none;
                    }

                    li {
                        text-wrap: nowrap;
                        flex-shrink: 0;
                    }
                }
            }

            .archive-content {
                .cards-grid {
                    grid-template-columns: repeat(1, 1fr);
                    justify-items: center;
                    margin-bottom: var(--space-32);

                    .card {
                        width: 100%;
                        max-width: unset;

                        .card-link .card-inner {
                            .card-content {
                                padding: var(--space-24) var(--space-24) 0;
                            }

                            .card-media img {
                                height: 188px;
                            }
                        }
                    }

                    .news-card {
                        width: 100%;
                        max-width: unset;

                        .card-link .card-inner {

                            .card-media img {
                                height: 188px;
                            }

                            .card-content {
                                padding: 0 var(--space-24) var(--space-24);
                            }
                        }
                    }
                }
            }
        }
    }
}
