/****
*
* @description      Custom Styles for Archive pages
* @version          1.0.0
* @since            1.0.0
*
****/


/* POST COLORS */

.category-best-of .archive-sidebar .popular-post-item,
.archive-recent-posts .archive-recent-post.best-of .recent-post-card,
.post-grid-slider-section .recent-posts .recent-post.best-of,
.recent-posts-grid-section .recent-posts .recent-post.best-of {
    border-color: #164376 !important;
}

.category-ev .archive-sidebar .popular-post-item,
.archive-recent-posts .archive-recent-post.charging-and-battery .recent-post-card,
.archive-recent-posts .archive-recent-post.maintenance-and-cost .recent-post-card,
.archive-recent-posts .archive-recent-post.lifestyle .recent-post-card,
.archive-recent-posts .archive-recent-post.buying-guide .recent-post-card,
.post-grid-slider-section .recent-posts .recent-post.ev,
.recent-posts-grid-section .recent-posts .recent-post.ev {
    border-color: #ffc051 !important;
}

.category-guides-and-how-tos .archive-sidebar .popular-post-item,
.archive-recent-posts .archive-recent-post.guides-and-how-tos .recent-post-card,
.post-grid-slider-section .recent-posts .recent-post.guides-and-how-tos,
.recent-posts-grid-section .recent-posts .recent-post.guides-and-how-tos {
    border-color: #81c158 !important;
}

.category-car-comparisons .archive-sidebar .popular-post-item,
.archive-recent-posts .archive-recent-post.car-comparisons .recent-post-card,
.post-grid-slider-section .recent-posts .recent-post.car-comparisons,
.recent-posts-grid-section .recent-posts .recent-post.car-comparisons {
    border-color: #bababa !important;
}


/* GRID WRAPPER STYLES */

body.page-template-archive,
body.archive.category {
    overflow-x: initial !important;
}

.page-template-archive .vivid.wrapper-padding,
.archive.category .vivid.wrapper-padding {
    padding: 20px 0 0;
}

.page-template-archive .vivid.wrapper-padding.featured,
.archive.category .vivid.wrapper-padding.featured {
    padding-bottom: 0;
}


/* GENERAL PAGE STYLES */

.page-template-archive .custom-post-footer.white-bg,
.archive.category .custom-post-footer.white-bg {
    background-color: #ffffff;
}

.page-template-archive .grey-bg,
.archive.category .grey-bg {
    background-color: #ededed;
    padding: 0 0 30px;
    margin-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0% 100%);
}

.small-text {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    font-style: italic;
}


/* CATEGORY PAGE STYLES */


/* Category Pages Video Slider */

.n2_ss_video_player__cover img {
    width: 100px !important;
    height: 100px !important;
    margin-top: -50px !important;
    margin-left: -50px !important;
}


/* End Category Page Styles */


/**/


/* TOP FEATURED POST STYLES */

.featured-posts .featured-post-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.featured-posts .featured-post-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.featured-posts .featured-post-content h4.featured-post-cat {
    font-size: 16px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.featured-posts .featured-post-content h4.featured-post-cat a {
    color: white;
}

.featured-posts .featured-post-content h3.featured-post-title {
    margin: 0;
    padding: 0;
    margin-top: 10px;
    color: white;
}

.featured-posts .featured-post-content p {
    margin: 0;
    padding: 0;
    margin-top: 10px;
    color: white;
}

.featured-posts .featured-post-content .featured-post-text a {
    display: block;
    width: fit-content;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 60px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    color: white;
    transition: 0.2s ease-in-out all;
}

.featured-posts .featured-post-content .featured-post-text a:hover,
.featured-posts .featured-post-content .featured-post-text a:focus,
.featured-posts .featured-post-content .featured-post-text a:target {
    background-color: white;
    color: black;
}


/* CATEGORY SPECIFIC COLORS */

.featured-posts .featured-post-content {
    background-color: #1273b3;
}

.featured-posts .best-of .featured-post-content {
    background-color: #164376;
}

.featured-posts .guides-and-how-tos .featured-post-content {
    background-color: #81c158;
}

.featured-posts .car-comparisons .featured-post-content {
    background-color: #bababa;
}

.featured-posts .believe-in-nice .featured-post-content {
    background-color: #ffc051;
}

.featured-posts .believe-in-nice .featured-post-content h4.featured-post-cat a,
.featured-posts .believe-in-nice .featured-post-content h3.featured-post-title,
.featured-posts .believe-in-nice .featured-post-content p,
.featured-posts .believe-in-nice .featured-post-content a {
    color: black;
    border-color: black;
}

.featured-posts .believe-in-nice .featured-post-content .featured-post-text a:hover,
.featured-posts .believe-in-nice .featured-post-content .featured-post-text a:focus,
.featured-posts .believe-in-nice .featured-post-content .featured-post-text a:target {
    background-color: black;
    color: white;
}


/* LARGE POST STYLES */

.featured-post-large {
    display: grid;
    grid-template-areas: 'image-large' 'content-large';
}

.featured-post-large .featured-post-image {
    grid-area: 'image-large';
}

.featured-post-large .featured-post-content {
    grid-area: 'content-large';
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}


/* SMALL POST STYLES */

.featured-post-small {
    display: grid;
    grid-template-areas: 'image-small' 'content-small';
}

.featured-post-small .featured-post-image {
    grid-area: 'image-small';
}

.featured-post-small .featured-post-image img {
    max-height: 175px;
}

.featured-post-small .featured-post-content {
    grid-area: 'content-small';
    padding: 30px;
}


/*.featured-post-small .featured-post-content .featured-post-text a {
    display: none;
}*/


/* OTHER FEATURED POSTS WITH ICONS */

.icon-post .icon-post-image img {
    max-width: 150px;
    margin: 0;
}

.icon-post .icon-post-content .icon-post-title {
    color: black;
    margin: 0;
    padding: 20px 0;
}

.icon-post .icon-post-content h2 {
    margin-top: -30px !important;
    font-size: 24px !important;
    margin: 0;
}

.icon-post .icon-post-content p.icon-post-text a,
.icon-post .icon-post-content a.read-more-link {
    display: block;
    width: fit-content;
    margin-top: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 18px 35px;
    border-radius: 30px;
    background-color: #81c158;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.2s ease-in-out all;
}

.category-car-comparisons .icon-post .icon-post-content p.icon-post-text a,
.category-car-comparisons .icon-post .icon-post-content a.read-more-link {
    background-color: #bababa;
}

.category-best-of .icon-post .icon-post-content p.icon-post-text a,
.category-best-of .icon-post .icon-post-content a.read-more-link {
    background-color: #164376;
}

.category-believe-in-nice .icon-post .icon-post-content p.icon-post-text a,
.category-believe-in-nice .icon-post .icon-post-content a.read-more-link {
    background-color: #ffc051;
}

.category-guides-and-how-tos .icon-post .icon-post-content p.icon-post-text a,
.category-guides-and-how-tos .icon-post .icon-post-content a.read-more-link {
    background-color: #81c158;
}

.icon-post .icon-post-content p.icon-post-text a:hover,
.icon-post .icon-post-content a.read-more-link:hover,
.icon-post .icon-post-content p.icon-post-text a:target,
.icon-post .icon-post-content a.read-more-link:target,
.icon-post .icon-post-content p.icon-post-text a:focus,
.icon-post .icon-post-content a.read-more-link:focus {
    background-color: #1273b3;
}


/* LOGOS LOOKING FOR MORE SECTION STYLES */

.archive.category .custom-post-footer .logos-section,
.page-template-archive .custom-post-footer.white-bg .logos-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
}

.archive.category .custom-post-footer .logos-section a,
.page-template-archive .custom-post-footer.white-bg .logos-section a {
    transition: 0.2s ease-in-out all;
    transform: scale(1);
    display: inline-block;
    width: 40%;
    margin: 20px 0;
}

.archive.category .custom-post-footer .logos-section a:hover,
.archive.category .custom-post-footer .logos-section a:focus,
.archive.category .custom-post-footer .logos-section a:target,
.page-template-archive .custom-post-footer.white-bg .logos-section a:hover,
.page-template-archive .custom-post-footer.white-bg .logos-section a:target,
.page-template-archive .custom-post-footer.white-bg .logos-section a:focus {
    transform: scale(1.15);
}

.archive.category .custom-post-footer .logos-section a img,
.page-template-archive .custom-post-footer.white-bg .logos-section a img {
    width: 90%;
    margin: 0 5%;
}


/* ARCHIVE RECENT POSTS SECTION */

.archive-recent-posts-section {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    padding-bottom: 80px;
    max-width: 1650px;
    margin: 0 auto;
}

.archive.category .archive-recent-posts-section {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.archive-recent-posts .archive-recent-post .recent-post-card {
    margin: 10px;
    height: 425px;
    background-color: white;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    border-bottom: 15px solid #1273b3;
    /* Default color */
}

.archive-recent-posts button.slick-prev:before,
.archive-recent-posts button.slick-next:before,
.post-grid-slider-section button.slick-prev:before,
.post-grid-slider-section button.slick-next:before {
    color: #fff;
    font-size: 24px;
}

.archive-recent-posts button.slick-prev:before,
.post-grid-slider-section button.slick-prev:before {
    content: '\f053';
    font-family: 'FontAwesome';
    background-color: black;
    padding: 8px 14px;
    padding-left: 10px;
    border: 2px solid white;
    border-radius: 30px;
}

.archive-recent-posts button.slick-next:before,
.post-grid-slider-section button.slick-next:before {
    content: '\f054';
    font-family: 'FontAwesome';
    background-color: black;
    padding: 8px 14px;
    padding-right: 10px;
    border-radius: 30px;
    border: 2px solid white;
}

.archive-recent-posts button.slick-prev,
.post-grid-slider-section button.slick-prev {
    left: 10px !important;
    top: 45%;
}

.archive-recent-posts button.slick-next,
.post-grid-slider-section button.slick-next {
    right: 35px !important;
    top: 45%;
}

.post-grid-slider-section .slick-dots {
    /*bottom: 12vh;*/
}

.post-grid-slider-section .slick-dots li {
    height: 30px;
    width: 30px;
}

.post-grid-slider-section .slick-dots li button:before {
    font-size: 12px;
}

.post-grid-slider-section .slick-dots li:nth-child(1) button:before {
    color: #164376;
}

.post-grid-slider-section .slick-dots li:nth-child(2) button:before {
    color: #ffc051;
}

.post-grid-slider-section .slick-dots li:nth-child(3) button:before {
    color: #81c158;
}

.post-grid-slider-section .slick-dots li:nth-child(4) button:before {
    color: #6f6f6f;
}

.archive-recent-posts .archive-recent-post .archive-recent-post-image img {
    height: 200px;
    object-fit: cover;
}

.vivid.section.featured-posts {
    padding: 30px 0 0;
}

.archive-recent-posts .archive-recent-post .archive-recent-post-title {
    margin: 0;
    padding: 20px 20px 10px 20px;
}

.archive-recent-posts .archive-recent-post .archive-recent-post-title a {
    color: black;
    transition: 0.2s ease-in-out all;
}

.archive-recent-posts .archive-recent-post .archive-recent-post-title a:hover,
.archive-recent-posts .archive-recent-post .archive-recent-post-title a:focus,
.archive-recent-posts .archive-recent-post .archive-recent-post-title a:target {
    color: #1273b3;
}

.archive-recent-posts .archive-recent-post .archive-recent-post-excerpt {
    padding: 0 20px 20px 20px;
    color: rgb(0, 0, 0);
}

.archive-recent-posts .archive-recent-post .archive-recent-post-excerpt a {
    display: block;
    width: fit-content;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid black;
    border-radius: 60px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    color: black;
    transition: 0.2s ease-in-out all;
}


/* EDITS UPON SINGLE RECENT POST GRID STYLES */

.post-grid-slider-section,
.recent-posts-grid-section {
    padding-top: 80px;
    padding-bottom: 250px;
    margin-bottom: -13vh;
}

.post-grid-slider-section .category-post-grid-slider,
.recent-posts-grid-section .recent-posts {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.post-grid-slider-section .category-post-grid-slider .recent-posts .recent-post:nth-child(1),
.recent-posts-grid-section .recent-posts .recent-post:nth-child(1) {
    grid-area: large-post;
}

.post-grid-slider-section .category-post-grid-slider .recent-posts .recent-post:nth-child(2),
.recent-posts-grid-section .recent-posts .recent-post:nth-child(2) {
    grid-area: small-post-a;
}

.post-grid-slider-section .category-post-grid-slider .recent-posts .recent-post:nth-child(3),
.recent-posts-grid-section .recent-posts .recent-post:nth-child(3) {
    grid-area: small-post-b;
}

.post-grid-slider-section .category-post-grid-slider .recent-posts .recent-post:nth-child(4),
.recent-posts-grid-section .recent-posts .recent-post:nth-child(4) {
    grid-area: small-post-c;
}

.post-grid-slider-section .category-post-grid-slider .recent-posts,
.recent-posts-grid-section .recent-posts {
    display: grid;
    column-gap: 30px;
    grid-template-areas: 'large-post' 'small-post-a' 'small-post-b' 'small-post-c';
}

.recent-posts .recent-post.best-of:nth-child(1) {
    background-color: #164376;
}

.recent-posts .recent-post.best-of:nth-child(1) a:hover,
.recent-posts .recent-post.best-of:nth-child(1) a:focus,
.recent-posts .recent-post.best-of:nth-child(1) a:target {
    color: #bababa;
}

.recent-posts .recent-post.believe-in-nice:nth-child(1) {
    background-color: #ffc051;
    color: black;
}

.recent-posts .recent-post.believe-in-nice:nth-child(1) a {
    color: black;
}

.recent-posts .recent-post.believe-in-nice:nth-child(1) a:hover,
.recent-posts .recent-post.believe-in-nice:nth-child(1) a:focus,
.recent-posts .recent-post.believe-in-nice:nth-child(1) a:target {
    color: #164376;
}

.recent-posts .recent-post.guides-and-how-tos:nth-child(1) {
    background-color: #81c158;
}

.recent-posts .recent-post.brand:nth-child(1) {
    background-color: #bababa;
}


/* WIDGET STYLES */

.archive-sidebar {
    padding: 60px 20px;
}

.archive-sidebar .widget {
    padding: 40px 20px;
    background-color: white;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.archive-sidebar .widget.widget_custom_html {
    padding: 0;
    padding-top: 30px;
}

.archive-sidebar .widget h4.h-widget {
    font-size: 1.3rem;
    text-align: center;
    margin: 0 10%;
    padding-bottom: 30px;
    line-height: 1.2;
}


/* Colors */

.category-best-of .archive-sidebar .widget.widget_custom_html h4.h-widget {
    color: #164376;
}

.category-believe-in-nice .archive-sidebar .widget.widget_custom_html h4.h-widget {
    color: #ffc051;
}

.category-guides-and-how-tos .archive-sidebar .widget.widget_custom_html h4.h-widget {
    color: #81c158;
}

.category-car-comparisons .archive-sidebar .widget.widget_custom_html h4.h-widget {
    color: #bababa;
}


/* Search Widget */

.archive-sidebar .widget.widget_search form input {
    border-radius: 30px;
    width: 80%;
    margin: 0 10%;
    padding-left: 60px;
    height: 50px;
    border: 2px solid black;
}

.archive-sidebar .widget.widget_search form input::placeholder {
    text-transform: uppercase;
}

.archive-sidebar .widget.widget_search .form-search:before {
    left: 14%;
    top: 11px;
    color: #aaa;
    font-size: 24px;
}


/* Popular Posts Widget */

.archive-sidebar .popular-posts:last-of-type {
    padding: 0 !important;
    margin: 0 !important;
}

.archive-sidebar .popular-posts:last-of-type h3.widget__title {
    padding: 40px 0;
}

.archive-sidebar .wpp-list {
    margin: 0;
}

.archive-sidebar .wpp-list .popular-post-item {
    width: 100%;
    padding: 20px 10%;
    padding-bottom: 0;
    margin: 0;
    border-left: 10px solid grey;
}

.archive-sidebar .wpp-list .popular-post-item:after {
    content: '';
    display: inline-block;
    height: 1px;
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    background-color: #ddd;
}

.archive-sidebar .wpp-list .popular-post-item:last-child {
    padding-bottom: 20px;
}

.archive-sidebar .wpp-list .popular-post-item:last-child:after {
    display: none;
}

.archive-sidebar .wpp-list .popular-post-item a {
    color: black;
    transition: 0.2s ease-in-out all;
}

.archive-sidebar .wpp-list .popular-post-item a:hover,
.archive-sidebar .wpp-list .popular-post-item a:target,
.archive-sidebar .wpp-list .popular-post-item a:focus {
    color: #053e66;
}

.archive-sidebar .wpp-list .popular-post-item h4 {
    font-size: 20px;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.archive-sidebar .wpp-list .popular-post-item p {
    text-align: left;
    margin: 0;
    text-transform: uppercase;
    font-size: 14px;
    padding-bottom: 10px;
}


/* SMALL TABLET STYLES */

@media only screen and (min-width: 768px) {
    .archive.category .custom-post-footer .logos-section a,
    .page-template-archive .custom-post-footer.white-bg .logos-section a {
        width: 20%;
        margin: 20px 5%;
    }
    /* ARCHIVE RECENT POST STYLES */
    .post-grid-slider-section .slick-dots {
        /*bottom: 20vh;*/
    }
}


/* LARGE TABLET AND SMALL DESKTOP STYLES */

@media only screen and (min-width: 1000px) {
    .archive.category .custom-post-footer .logos-section a,
    .page-template-archive .custom-post-footer.white-bg .logos-section a {
        width: 15%;
    }
    /* TOP FEATURED POST STYLES */
    .featured-post-large {
        grid-template-areas: 'image-large content-large';
    }
    .featured-post-small .featured-post-image img {
        max-height: 220px;
    }
    /* LARGE POST STYLES */
    .featured-post-large,
    .featured-post-small {
        height: 100%;
    }
    /* ICON POSTS */
    .icon-post {
        width: 90%;
        padding-right: 10%;
    }
    /* ARCHIVE RECENT POST STYLES */
    .archive-recent-posts .archive-recent-post .recent-post-card {
        height: 450px;
    }
    .post-grid-slider-section .slick-dots {
        bottom: 0;
    }
    /* Styles recent posts */
    .post-grid-slider-section .category-post-grid-slider .recent-posts,
    .recent-posts-grid-section .recent-posts {
        grid-template-areas: 'small-post-a large-post large-post large-post' 'small-post-b large-post large-post large-post' 'small-post-c large-post large-post large-post';
    }
}


/* INBETWEEN STYLES */

@media only screen and (min-width: 1200px) {
    /* ARCHIVE RECENT POST STYLES */
    .archive-recent-posts .archive-recent-post .recent-post-card {
        height: 475px;
    }
    .archive-recent-posts button.slick-prev:before,
    .post-grid-slider-section button.slick-prev:before,
    .archive-recent-posts button.slick-next:before,
    .post-grid-slider-section button.slick-next:before {
        background-color: transparent;
        padding: 0;
        border: none;
        color: black;
    }
    .archive-recent-posts button.slick-prev,
    .post-grid-slider-section button.slick-prev {
        left: 10px !important;
    }
    .archive-recent-posts button.slick-next,
    .post-grid-slider-section button.slick-next {
        right: 20px !important;
    }
}


/* LARGE DESKTOP STYLES */

@media only screen and (min-width: 1400px) {
    .archive.category .custom-post-footer .logos-section a,
    .page-template-archive .custom-post-footer.white-bg .logos-section a {
        width: 10%;
        margin: 20px 2%;
    }
    .archive-recent-posts button.slick-prev,
    .post-grid-slider-section button.slick-prev {
        left: -30px !important;
    }
    .archive-recent-posts button.slick-next,
    .post-grid-slider-section button.slick-next {
        right: -25px !important;
    }
}


/* EXTRA LARGE SCREENS */

@media only screen and (min-width: 1600px) {
    /* ARCHIVE RECENT POST STYLES */
    .archive-recent-posts .archive-recent-post .recent-post-card {
        height: 425px;
    }
}