/* TAXONOMY TEMPLATE */

.archive-cat-heading {
    width: 100%;
}

.archive-page-background {
    opacity: 0.3;
    position: absolute;
    width: 100%;
    height: calc(100vh - 80px);
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    pointer-events: none;
}

.archive-cat-heading-top {
    width: 100%;
    padding: 39px 45px 21px;
    position: relative;
    z-index: 1;
}

.breadcrumb-nav {
    position: absolute;
    z-index: 1;
    list-style: none;
    padding: 0;
}

.breadcrumb-nav li  {
    display: inline;
}

.breadcrumb-nav li:not(:last-child):after {
    content: ' / ';
}

.breadcrumb-nav a {
    color: #252525;
    font-size: 15px;
}

.breadcrumb-nav a:hover {
    text-decoration: none;
    color: var(--red-main);
}

.breadcrumb-nav .current {
    font-weight: 600;
}

.all-categories-link {
    display: none;
}

.archive-cat-container {
    width: 100%;
    position: relative;
    display: flex;
    gap: 36px;    
    justify-content: center;
}

.archive-cat-container .cat-item {
    width: fit-content;
    max-width: 90px;
    margin-bottom: 10px;
}

.archive-cat-container .cat-item a img,
.archive-cat-container .cat-item a .cat-bg {
    width: 48px;
    height: 48px;
}

.archive-cat-container .cat-item .cat-name {
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
    line-height: 15px;
}

.archive-title-container {
    position: relative;
    z-index: 1;
    background-color: #f2f2f2;
}

.archive-title {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    padding-bottom: 24px;
}

.archive-description {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 654px;
    margin: 0 auto 80px;
}

.archive-description b {
    font-weight: 600;
}

.partners-container {
    position: relative;
    padding: 39px 45px 21px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
}

.partner-card {
    display: block;
    height: 177px;
    width: 25%;
    margin-bottom: 33px;
}

.partner-card {
    padding-left: 15px;
    padding-right: 15px;
}

.partner-card:nth-of-type(4n + 1) {
    padding-left: 0;
}

.partner-card:nth-of-type(4n + 4),
.partner-card:last-child {
    padding-right: 0;
}

.partner-card a {
    display: block;
    width: 100%;
}

.partner-card a:hover {
    text-decoration: none;
}

.partner-card .bg-white {
    padding: 8px 32px;
    height: 100%;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.14);
    transition: box-shadow 150ms;
}

.partner-card .bg-white:hover {
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.05);
}

.partner-card img {
    width: 100%;
    height: 100%;
    max-width: 250px;
    max-height: 170px;
    object-fit: contain;
}

@media (max-width: 1300px) {
    .archive-cat-heading-top {
        padding-bottom: 12px;
    }
    .archive-title {
        padding-bottom: 13px;
        padding-top: 22px;
    }
    .archive-description {
        margin-bottom: 30px;
    }
}

@media (max-width: 1080px) {
    .breadcrumb-nav {
       max-width: 100px;
    }
}

@media (max-width: 768px) {

    .archive-cat-heading {
        margin-top: 44px;
    }

    .archive-cat-heading-top {
        padding: 40px 18px 20px 30px;
        display: block;
    }

    .archive-cat-container .cat-item a img, 
    .archive-cat-container .cat-item a .cat-bg {
        width: 40px;
        height: 40px;
    }

    .breadcrumb-nav {
        display: none;
    }

    .all-categories-link {
        display: block;
        padding: 0px 7px;
        margin-top: -5px;
    }

    .all-categories-link a {
        color: #252525;
        font-size: 15px;
        text-decoration: underline;
    }

    .archive-cat-container {
        gap: 10px;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .archive-cat-container .cat-item .cat-name {
        display: none;
    }

    .archive-cat-container .cat-item.current a img, 
    .archive-cat-container .cat-item.current a .cat-bg {
        width: 62px;
        height: 62px;
    }

    .archive-page-background {
        display: none;
    }

    .archive-title-container {
        padding: 0 35px;
    }

    .archive-title {
        text-align: left;
        font-size: 32px;
        font-weight: 600;
    }

    .archive-description {
        text-align: left;
        font-size: 1.1em;
        margin-bottom: 0;
    }

    .partners-container {
        padding: 36px 35px 20px;
    }

    .partner-card {
        width: 100%;
        padding: 0;
    }
}