.archive-container {
    color: var(--main-text-color);
}

.archive-upper {
    position: relative;
}

.archive-posts {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.archive-items-case {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.archive-items-case .case-tile-small:nth-child(n) .case-tile-content {
    border-right: 1px solid var(--border-color);
}

.archive-posts-container {
    position: relative;
}

.archive-filter {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}

.archive-filter-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.archive-small-title {
    font-size: 1.125rem;
    line-height: 140%;

}

.archive-mobile-pagination {
    display: none;
}

.archive-first-post {
    border-bottom: 1px solid var(--border-color);
}


.archive-items-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.archive-left-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.archive-left-content-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.archive-icon {
    display: flex;
}

.archive-news-pagination {
    padding: 0 var(--container-space);
}



.archive-search {
    display: flex;
    align-items: center;
}

.archive-search-form-container {
    padding: 1.5rem var(--container-space);
    display: none !important;
}

.archive-search form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.archive-search form svg {
    width: 1.25rem;
    height: 1.25rem;
}

.archive-search form input {
    background-color: transparent;
    box-shadow: none;
    border: none;
    font-family: "Inter", sans-serif;
    outline: none;
    color: var(--main-text-color);
    width: 100%;
}

.archive-search form input::placeholder {
    color: var(--main-text-color);
}

.archive-search-container {
    display: flex;
    width: 100%;
}

.archive-search-clear {
    display: flex;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
}

.archive-search-input:placeholder-shown+.archive-search-clear {
    display: none;
}

.archive-search-clear div {
    height: 1px;
    background-color: #999999;
    position: absolute;
    top: 50%;
    left: calc(100% / 3);
    width: calc(100% / 3);
    transform: rotate(45deg);
}

.archive-search-clear div:nth-child(2) {
    transform: rotate(135deg);
}

.archive-news {
    position: relative;
}

.archive-news-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.archive-news-items .news-tile:not(:nth-child(3n)) {
    border-right: 1px solid var(--border-color);
}


.archive-pc-pagination {
    padding: 2.5rem var(--container-space);
}

.archive-pagination-simple {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.archive-pagination-simple a {
    color: var(--main-text-color);
    font-size: 1rem;
    line-height: 1rem;
    opacity: 0.4;
    cursor: pointer;

}

.archive-pagination-simple a.active {
    opacity: 1;
}

.archive-pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    color: var(--main-text-color);
    font-size: 1rem;
    line-height: 1rem;
    opacity: 0.4;
    cursor: pointer;
}

.archive-pagination-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.archive-templ-4 .archive-items-case .case-tile-small:nth-child(n) .case-tile-image {
    border-right: 1px solid var(--border-color);
}


.archive-templ-4 .case-tile.case-tile-small:not(:nth-child(1)):not(:nth-child(2)) {
    border-top: 1px solid var(--border-color);
}

.archive-templ-4 .archive-hero-left h1 {
    background: linear-gradient(110deg, #70E0FF 0.01%, #2377FF 49.8%, #BE6CFF 99.59%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


@media (max-width: 1200px) {
    .archive-items-news {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-items-news .news-tile:not(:nth-child(2n)) {
        border-right: 1px solid var(--border-color);
    }
}

@media (max-width: 1100px) {}

@media (max-width: 992px) {
    .archive-upper {
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .archive-left-content {
        padding: 0;
    }

    .archive-left-content-top {
        gap: 0;
    }

    .archive-news-items {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Archive search */
    .archive-search {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0;
        z-index: 2;
    }

    .archive-search form {
        position: relative;
    }

    .archive-search-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        transition: width 0.1s ease-in;
        width: 0;
        opacity: 0;
    }

    .archive-search.active form {
        justify-content: flex-start;
    }

    .archive-search.active .archive-search-container {
        width: calc(100vw - 4rem - 2px);
        opacity: 1;
    }

    .archive-search.active {
        background: var(--main-background);
        z-index: 9;
    }

    .archive-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4rem;
        padding: 1rem;
        aspect-ratio: 1;
        height: 100%;
    }

    .archive-search form {
        gap: 0;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .archive-category-title {
        font-size: 3.5rem;
    }

    .archive-search input {
        width: 0;
        padding: 0;
    }

    /* end Archive search */
}


@media (max-width: 768px) {
    .archive-items-news {
        grid-template-columns: repeat(1, 1fr);
    }
}