/****
*
* @description      Custom Styles for Single Posts
* @version          1.0.0
* @since            1.0.0
*
****/


/* Hides Auto-populated Archive Titles */

.x-header-landmark.x-container {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
span {
    font-family: 'Open Sans', 'Arial', sans-serif;
}

h2,
h3,
h4,
h5,
h6 {
    font-weight: 600 !important;
}

.vivid.grid-wrapper {
    padding: 0;
}

header.custom-post-header {
    background-size: cover;
    background-repeat: no-repeat;
}

header.custom-post-header h1.custom-post-title {
    font-size: 2.5em !important;
    line-height: 1.2em;
    color: white;
    margin: 0;
    padding: 10% 0;
    width: 100%;
    background-color: rgba(5, 62, 102, 0.25);
    text-align: center;
    font-weight: 700 !important;
}

div.vivid.grid-wrapper div.vivid.section p {
    display: block;
    width: 100%;
}

div.vivid.grid-wrapper div.vivid.section p a img {
    width: 100%;
    height: 400px;
    object-position: bottom center;
    object-fit: cover;
    margin: 10px 0;
    margin-top: 30px;
}

div.vivid.grid-wrapper div.vivid.section h2 {
    width: 100%;
    padding-bottom: 20px;
    font-weight: 600 !important;
}

div.vivid.grid-wrapper div.vivid.section p.custom-post-date {
    color: #aaa;
    letter-spacing: 1px;
    font-weight: 600 !important;
    text-transform: uppercase;
    padding-top: 40px;
    padding-bottom: 0;
    margin-bottom: 0;
}

header div.vivid div.vivid.section {
    background-color: rgba(5, 62, 102, 0.25);
}

div.vivid div.vivid.section ul.custom-post-tabs {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    width: 100%;
    list-style: none;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 5;
    position: relative;
}

div.vivid div.vivid.section ul.custom-post-tabs li {
    text-align: center;
    background: #053e66;
    width: 33%;
    padding: 10px 0;
    /* Centers text */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Only round the top corners */
    -webkit-border-top-left-radius: 15px;
    -webkit-border-top-right-radius: 15px;
    -moz-border-radius-topleft: 15px;
    -moz-border-radius-topright: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

div.vivid div.vivid.section ul.custom-post-tabs li:nth-child(1):after {
    height: 150%;
    background-color: white;
}

div.vivid div.vivid.section ul.custom-post-tabs li:nth-child(4),
div.vivid div.vivid.section ul.custom-post-tabs li:nth-child(5) {
    width: 50%;
}

div.vivid div.vivid.section ul.custom-post-tabs li a {
    text-decoration: none;
    color: white;
    line-height: 1.2;
    font-weight: 600;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    transition: 0.2s ease-in-out all;
    /* Only round the top corners */
    -webkit-border-top-left-radius: 15px;
    -webkit-border-top-right-radius: 15px;
    -moz-border-radius-topleft: 15px;
    -moz-border-radius-topright: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

div.vivid div.vivid.section ul.custom-post-tabs li a:hover,
div.vivid div.vivid.section ul.custom-post-tabs li a:target,
div.vivid div.vivid.section ul.custom-post-tabs li a:focus {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Colors for LATEST Tab */

div.vivid div.vivid.section ul.custom-post-tabs li.latest {
    background: #1273b3;
    margin-bottom: -10px;
}

div.vivid div.vivid.section ul.custom-post-tabs li.latest.is-active a {
    color: #1273b3;
}


/* Colors for BEST OF Tab */

div.vivid div.vivid.section ul.custom-post-tabs li.best-of {
    background: #164376;
    margin-bottom: -10px;
}

div.vivid div.vivid.section ul.custom-post-tabs li.best-of.is-active a {
    color: #164376;
}


/* Colors for BELIEVE IN NICE Tab */

div.vivid div.vivid.section ul.custom-post-tabs li.believe-in-nice {
    background: #ffc051;
    margin-bottom: -10px;
}

div.vivid div.vivid.section ul.custom-post-tabs li.believe-in-nice.is-active a {
    color: #ffc051;
}


/* Colors for GUIDES AND HOW TOs Tab */

div.vivid div.vivid.section ul.custom-post-tabs li.guides-and-how-tos {
    background: #81c158;
}

div.vivid div.vivid.section ul.custom-post-tabs li.guides-and-how-tos.is-active a {
    color: #81c158;
}


/* Colors for CAR COMPARISIONS Tab */

div.vivid div.vivid.section ul.custom-post-tabs li.car-comparisons {
    background: #bababa;
}

div.vivid div.vivid.section ul.custom-post-tabs li.car-comparisons.is-active a {
    color: #bababa;
}


/* Background color for ALL active tabs */

div.vivid div.vivid.section ul.custom-post-tabs li.is-active {
    background: white;
}


/* Widget Area */

.single-post .vivid.part.span-xs-12.span-md-4.span-lg-3 {
    padding: 60px 20px;
}

.single-post .vivid.part.span-xs-12.span-md-4.span-lg-3 .widget {
    padding: 40px 20px;
    background-color: white;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}


/* Social Widget */

.single-post .widget.widget_custom_html .social-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.single-post .widget.widget_custom_html .social-widget a {
    color: black;
    transition: 0.2s ease-in-out all;
    font-size: 24px;
    border: 1px solid black;
    height: 50px;
    width: 50px;
    margin: 0 2.5px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-post .widget.widget_custom_html .social-widget a:hover,
.single-post .widget.widget_custom_html .social-widget a:focus,
.single-post .widget.widget_custom_html .social-widget a:target {
    border-color: #358ce2;
    color: #358ce2;
}


/* Newsletter Widget */

.single-post .widget.widget_custom_html h3.widget__title {
    font-size: 1.3rem;
    text-align: center;
    margin: 0 10%;
}

.single-post .widget.widget_custom_html p {
    text-align: center;
}

.single-post .widget.widget_custom_html p:first-child {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-post .widget.widget_custom_html form {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    margin: 0 auto;
}

.single-post .widget.widget_custom_html form p:nth-child(2) {
    /* Targets input */
    width: 60% !important;
}

.single-post .widget.widget_custom_html form p:nth-child(3) {
    /* Targets submit */
    width: 20% !important;
}

.single-post .widget.widget_custom_html label {
    margin: 0;
    padding: 0;
    color: #aaa;
    font-size: 14px;
}

.single-post .widget.widget_custom_html form input:not(input[type='submit']) {
    border: 2px solid black;
    height: 50px;
    border-radius: 30px 0 0 30px;
    margin: 0;
    width: 100%;
}

.single-post .widget.widget_custom_html form input[type='submit'] {
    border: 2px solid black;
    background-color: #053e66;
    border-left: 0;
    margin: 0;
    height: 50px;
    width: 100%;
    border-radius: 0 30px 30px 0;
}

.single-post .widget.widget_custom_html form input[type='submit']:hover,
.single-post .widget.widget_custom_html form input[type='submit']:focus,
.single-post .widget.widget_custom_html form input[type='submit']:target {
    background-color: #358ce2;
}

.single-post .widget.widget_custom_html form .wpcf7-response-output {
    /* Hidden temporarily */
    display: none;
}


/* Search Widget */

.single-post .widget.widget_search h3.widget__title {
    font-size: 1.3rem;
    text-align: center;
    margin: 0 10%;
    padding-bottom: 20px;
}

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

.single-post .widget.widget_search form input::placeholder {
    text-transform: uppercase;
}

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


/* Popular Posts Widget */

.single-post .widget_text.widget.widget_custom_html:last-of-type {
    padding: 0 !important;
    margin: 0 !important;
}

.single-post .widget_text.widget.widget_custom_html:last-of-type h3.widget__title {
    padding: 40px 0;
}

.single-post .wpp-list {
    margin: 0;
}

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


/* Specific Border Colors per Category */

.single-post .wpp-list .popular-post-item.car-comparisons {
    border-color: #bababa;
}

.single-post .wpp-list .popular-post-item.guides-and-how-tos {
    border-color: #81c158;
}

.single-post .wpp-list .popular-post-item.believe-in-nice {
    border-color: #ffc051;
}

.single-post .wpp-list .popular-post-item.best-of {
    border-color: #164376;
}


/* End Border Colors */

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

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

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

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

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

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

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


/* Looking for More Section - Footer */

a.contact-us-btn {
    display: inline-block;
    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;
}

a.contact-us-btn:hover,
a.contact-us-btn:focus,
a.contact-us-btn:target {
    background-color: #053e66;
}

.custom-post-footer {
    background-color: #ededed;
}

.custom-post-footer h2 {
    font-size: 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 40px;
}

.custom-post-footer .grid-wrapper {
    padding: 60px 0!important;
}

svg.footer-separator {
    width: 100%;
    height: 6vw;
    margin-bottom: -8px;
}


/* Styles recent posts GRID */

.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 {
    padding: 0 30px;
    background-color: white;
    transition: 0.2s ease-in-out all;
}

.recent-posts .recent-post .recent-post-title {
    padding: 0;
    margin: 0;
    margin-top: 20px;
    font-size: 24px;
}

.recent-posts .recent-post img {
    display: none;
}

.recent-posts .recent-post:not(.recent-post:nth-child(1)) {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.recent-posts .recent-post:not(.recent-post:nth-child(1)):after {
    content: '';
    display: inline-block;
    height: 1px;
    width: 100%;
    margin: 0 auto;
    background-color: #ddd;
}

.recent-posts .recent-post:not(.recent-post:nth-child(1)):last-of-type:after {
    display: none;
}

.recent-posts .recent-post:nth-child(1) {
    padding: 0;
    padding-bottom: 20px;
    grid-area: large-post;
    background-color: #aaa;
    color: white;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    line-height: 1;
    margin-bottom: 20px;
}

.recent-posts .recent-post:nth-child(1) img {
    display: block;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

.recent-posts .recent-post:nth-child(1) h4 {
    display: block;
    margin: 0;
    padding: 0;
    margin-top: 15px;
    line-height: 1;
}

.recent-posts .recent-post:nth-child(1) h4 ul {
    margin: 0;
    padding: 0;
}

.recent-posts .recent-post:nth-child(1) h4 ul li a {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-posts .recent-post:nth-child(1) h3 {
    margin: 0;
    padding: 10px 0;
    padding-left: 30px;
    font-size: 32px;
}

.recent-posts .recent-post:nth-child(1) p {
    display: none;
}

.recent-posts .recent-post:nth-child(1) a {
    color: white;
    padding-left: 32px;
}

.recent-posts .recent-post:nth-child(2) {
    grid-area: small-post-a;
    border-left: 15px solid #aaa;
}

.recent-posts .recent-post:nth-child(3) {
    grid-area: small-post-b;
    border-left: 15px solid #aaa;
}

.recent-posts .recent-post:nth-child(4) {
    grid-area: small-post-c;
    border-left: 15px solid #aaa;
    margin-bottom: 20px;
}


/* Recent Posts - BEST OF - Category Page Colors */

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

.recent-posts.best-of .recent-post {
    border-color: #164376;
}


/* Recent Posts - CAR COMPARISONS - Category Page Colors */

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

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

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

.recent-posts.believe-in-nice .recent-post {
    border-color: #ffc051;
}


/* Recent Posts - GUIDES AND HOW TOs - Category Page Colors */

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

.recent-posts.guides-and-how-tos .recent-post {
    border-color: #81c158;
}


/* Recent Posts - CAR COMPARISONS - Category Page Colors */

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

.recent-posts.car-comparisons .recent-post {
    border-color: #bababa;
}

.recent-posts .recent-post ul {
    list-style: none;
}

.recent-posts .recent-post .recent-post-cat {
    display: none;
}

.recent-posts .recent-post p {
    font-weight: 400;
    font-size: 16px;
    color: rgb(0, 0, 0);
    margin-bottom: 0;
}

.recent-posts .recent-post a {
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    transition: 0.2s ease-in-out all;
}

.recent-posts .recent-post a:hover,
.recent-posts .recent-post a:focus,
.recent-posts .recent-post a:target {
    color: #053e66;
}

@media only screen and (min-width: 1000px) {
    /* Tab Navigation Styles */
    div.vivid div.vivid.section ul.custom-post-tabs li {
        width: 18% !important;
        margin: 0 1% !important;
        padding: 0 !important;
    }
    div.vivid div.vivid.section ul.custom-post-tabs li a {
        padding: 20px 40px;
        width: 100%;
        height: 100%;
    }
    header.custom-post-header h1.custom-post-title {
        font-size: 4em !important;
    }
    .vivid.grid-wrapper {
        padding: 0 3em;
    }
    /* Social Widget */
    .single-post .widget.widget_custom_html .social-widget a {
        height: 42px;
    }
    /* Newsletter Form Styles */
    .single-post .widget.widget_custom_html form p:nth-child(2) {
        /* Targets input */
        width: 60% !important;
    }
    .single-post .widget.widget_custom_html form p:nth-child(3) {
        /* Targets submit */
        width: 35% !important;
    }
    /* Search Widget */
    .single-post .widget.widget_search form input {
        width: 100%;
        margin-left: 0;
        padding-left: 60px;
    }
    /* Styles recent posts */
    .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';
    }
}

@media only screen and (min-width: 1200px) {
    /* Social Widget */
    .single-post .widget.widget_custom_html .social-widget a {
        height: 48px;
    }
    /* Search Widget */
    .single-post .widget.widget_search .form-search:before {
        margin: 0;
        padding: 0;
        margin-left: -30px;
    }
    .single-post .widget.widget_search form input {
        padding-left: 40px;
    }
    /* Recent Posts */
    .recent-posts .recent-post div:last-of-type {
        padding-bottom: 30px;
    }
}

@media only screen and (min-width: 1400px) {
    /* Search Widget */
    .single-post .widget.widget_search .form-search:before {
        margin-left: -30px;
    }
}