/*
Theme Name: magazine-child
Version: 1.0
Description: A child theme of Magazine by MyThemeShop
Template: magazine
*/

@import url("../magazine/style.css");

:root {
    --white: #fff;
    --dark: #444444;
    --gray: #777777;
    --red: #f64f4f;
    --red-hover: #ff6d6d;
    --green: #57d019;
}

* {
    box-sizing: border-box;
}

#logo a {
    display: block;
    /* font-size: 28px !important; */
    line-height: 1.2 !important;
    color: var(--red) !important;
}

.text-logo {
    margin-bottom: 10px !important;
}

.site-description {
    font-weight: 600;
}

.primary-navigation {
    background: var(--red);
}

.menu li, .menu li a {
    color: var(--white) !important;
}

.menu li a:hover, #navigation ul li a:hover {
    background: var(--dark) !important;
    color: var(--white) !important;
}

#navigation ul li.current-menu-item a {
    background: var(--dark) !important;
}

#navigation ul li {
    margin-top: 0;
    margin-left: 0;
}

#navigation ul li {
    float: left;
}

#menu-menu-1 {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center!important;
    align-items: center!important;
    -ms-flex-pack: center!important;
    justify-content: center!important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--red) !important;
    font-weight: 300 !important;
}

.h1 strong, .h2 strong, .h3 strong, .h4 strong, .h5 strong, .h6 strong, h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong {
    font-weight: 300;
}

.post-single-content h1, .post-single-content h2, .post-single-content h3, .post-single-content h4, .post-single-content h5, .post-single-content h6 {
    text-transform: none;
}

article ul, article ol {
    margin: 0 0 30px 30px;
}

p {
    margin-bottom: 30px;
}

ul li + li, ol li + li {
    margin-top: 5px;
}

#content_box a:hover {
    text-decoration: underline;
}

.header-lg {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    padding: 15px;
    background: var(--red);
    color: var(--white) !important;
    text-align: center;
    font-size: 40px;
    line-height: 1;
}

.text-danger {
    color: var(--red);
}

.text-muted {
    color: var(--gray);
}

.single_post {
    margin: 0;
}

.single_post header {
    padding-top: 0;
}

.single_post .header-lg {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

a#pull {
    font-family: 'Jost';
    font-weight: 600;
}

textarea, input {
    -webkit-appearance: none;
    border: 1px solid var(--gray) !important;
    border-radius: 0;;
    transition: all .25s ease-in-out;
}

textarea:focus, input:focus {
    border: 1px solid var(--red) !important;
}

.comment-form-cookies-consent {
    margin-left: 1px;
}

.search-form .sbutton, .search-form .sbutton:focus, .submit, .submit:focus {
    border: 0 !important;
}

.article #searchform {
    max-width: none;
}

.form-submit {
    margin-top: 10px;
}

.footer-widgets {
    display: none;
}

.copyrights {
    padding-top: 60px;
}

/* validation */
.comment-error-title, .comment-error {
    color: var(--red);
}

.comment-added {
    color: var(--green);
}

.tag-header {
    margin-top: 50px;
    text-transform: uppercase !important;
}

.tags {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap!important;
    flex-wrap: wrap!important;
    margin-top: 0;
    margin-left: -5px;
}

.tags a {
    -ms-flex-positive: 1;
    flex-grow: 1;
    float: none;
    display: inline-block;
    margin: 0 0 5px;
    padding: 3px 8px 3px 8px !important;
    background: var(--gray) !important;
    margin-left: 5px !important;
    text-align: center;
}

.tags a:hover {
    background: var(--dark) !important;
    text-decoration: none !important;
}

.related-posts .title, .random-post-overlay .title {
    color: var(--white) !important;
    font-weight: 600 !important;
}

.post-info {
    display: none;
}

.error404 h1 {
    text-align: center;
}

.single-featured-thumbnail {
    clear: both;
    overflow: hidden;
    margin-bottom: 30px;
}

.wp-block-pullquote {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
}

.wp-block-pullquote blockquote {
    margin-top: 40px;
    margin-bottom: 40px;
}

.wp-block-pullquote cite {
    font-size: 1.1rem;
}

/** Ranking */
.ranking {
    margin-bottom: 90px;
}

.ranking-item {
    position: relative;
    margin-left: 18px;
    padding: 50px 0 16px 20px;
    min-height: 283px;
    border-left: 5px solid var(--gray);
}

.ranking-item::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -25px;
    left: 20px;
    margin: auto;
    height: 1px;
    background: var(--gray);
}

.ranking-item + .ranking-item {
    margin-top: 50px;
}

.ranking-number, .top-3-number {
    position: absolute;
    top: 0px;
    left: -23px;
    margin: auto;
    width: 40px;
    height: 40px;
    background: var(--gray);
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}

.ranking-image {
    float: right;
    margin-left: 30px;
    min-width: 180px;
    max-width: 180px;
}

.ranking-image a {
    display: block;
    padding-bottom: 10px;
}

.ranking-image img {
    float: none;
    display: block;
    margin: auto;
    transition: all .25s ease-in-out;
}

.ranking-image:hover img {
    opacity: .95;
    transform: scale(1.03);
}

.ranking-btn, .top-3-link-more {
    display: block;
    padding: 7px 10px;
    background: var(--gray);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    text-transform: lowercase;
    transition: all .25s ease-in-out;
}

.ranking-btn:hover, .top-3-link-more:hover {
    background: var(--dark) !important;
    color: var(--white) !important;
    text-decoration: none !important;
}

.ranking-content {
    overflow: hidden;
    text-align: justify;
}

.ranking-excerpt p:last-child {
    margin-bottom: 0;
}

.ranking-title {
    text-align: left;
    line-height: 1.1;
}

.ranking-title a {
    color: var(--gray);
}

.additional-options {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
}

.additional-options .option + .option {
    margin-top: 8px;
}

.ranking-item.first {
    border-color: var(--red);
}

.ranking-item.first .ranking-title a {
    color: var(--red);
}

.ranking-item.first .ranking-number, .top-3-item-first .top-3-number {
    background: var(--red);
}

.ranking-item.first .ranking-btn, .top-3-item-first .top-3-link-more {
    background: var(--red);
}

.ranking-item.first .ranking-btn:hover, .top-3-item-first .top-3-link-more:hover {
    background: var(--red-hover) !important;
}

.single-ranking-image {
    clear: both;
    display: block;
}

.single-ranking-image img {
    float: none;
    display: block;
    margin: auto;
}

.single-ranking-title {
    padding-left: 18px;
}

.single-ranking-title .ranking-number {
    top: 22px;
    left: 0;
    background: var(--red);
}

.single-ranking-post header {
    float: none;
    display: table;
    margin-right: auto;
    margin-left: auto;
    width: auto;
}

.col-left h4 {
    color: var(--green) !important;
}

ul.plus, ul.minus {
    margin-left: 0;
    padding: 20px;
    border: 1px solid;
}

ul.plus {
    border-color: var(--green);
}

ul.minus {
    border-color: var(--red);
}

ul.plus li, ul.minus li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

ul.plus li::before, ul.minus li::before {
    position: absolute;
    top: 2px;
    left: 0;
    margin-right: 10px;
    font-weight: 600;
}

ul.plus li::before {
    content: "✓";
    color: var(--green);
}

ul.minus li::before {
    content: "✕";
    color: var(--red);
}

/** Promo products */
.promo-products-wrap {
    display: -ms-flexbox;
    display: flex;
}

.promo-product {
    -ms-flex-positive: 1;
    flex-grow: 1;
    position: relative;
    border: 1px solid var(--red);
    padding: 18px 16px 63px;
    overflow: hidden;
    clear: both;
    position: relative;
    background-color: var(--white);
    text-align: center;
    width: 33.33333333%;
}

.promo-product + .promo-product {
    margin-left: 10px;
}

.promo-product-image {
    margin: auto;
    max-width: 90px;
}

.promo-product-title {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 20px;
    font-weight: bold;
}

.promo-product-description {
    margin-top: 10px;
    font-size: 90%;
    line-height: 20px;
    color: var(--gray);
}

.promo-product-btn {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    line-height: 14px;
    text-transform: none;
    display: inline-block;
    padding: 8px 10px;
    background: var(--red);
    color: var(--white) !important;
    border: none;
    text-decoration: none !important;
    outline: 0;
    white-space: nowrap;
}

.promo-product-btn:hover {
    background: var(--dark);
}


/** Sidebar */
.sidebar {
    overflow: hidden;
    margin-top: 12px;
}

.top-3-item {
    overflow: hidden;
}

.top-3 li + li {
    margin-top: 33px;
}

.top-3 li {
    list-style: none;
    margin: 0;
}

.top-3-widget-title {
    text-align: center;
}

.top-3-widget-title-1 {
    font-size: 26px;
}

.top-3-widget-title-2 {
    display: block;
    color: var(--gray);
    font-size: 20px;
    text-transform: none;
}

.top-3-header {
    text-align: center;
}

.top-3-header header {
    float: none;
}

.top-3-header h4 {
    margin-bottom: 0;
    line-height: 1.1;
}

.top-3-header a {
    display: block;
    padding: 10px;
    background: var(--gray);
    color: var(--white) !important;
}

.top-3-number {
    top: -50px;
    bottom: 0;
    left: 20px;
    margin: auto;
}

.top-3-number::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 100%;
    left: 18px;
    width: 5px;
    height: 300%;
    background: var(--gray);
}

.top-3-img {
    clear: both;
    position: relative;
    padding: 20px 0 18px;
    border-left: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
}

.top-3-img img {
    float: none;
    display: block;
    margin: auto !important;
}

.top-3-link-more {
    clear: both;
    margin-top: 0;
}

.top-3-item-first .top-3-img {
    border-left: 1px solid var(--red);
    border-right: 1px solid var(--red);
}

.top-3-item-first .top-3-header a {
    background: var(--red);
}

.top-3-item-first .top-3-number::before {
    background: var(--red);
}

/* Sidebar custom posts */
.dkit-scp-widget li {
    margin: 0;
    list-style: none;
}

.dkit-scp-widget li + li {
    margin-top: 30px;
}

.dkit-scp-widget .img-area {
    overflow: hidden;
    margin-bottom: -1px;
}

.dkit-scp-widget .img-area img {
    margin: 0 !important;
    transition: all .25s ease-in-out;
}

.widget-post-title {
    padding: 5px 10px;
    background: var(--red);
    color: var(--white);
    text-align: center;
    font-weight: 600;
    transition: all .25s ease-in-out;
}

.dkit-scp-widget li a:hover .img-area img {
    opacity: .95;
    transform: scale(1.05);
}

.dkit-scp-widget li a:hover .widget-post-title {
    background: var(--red-hover);
    color: var(--white);
}

.widget-title {
    text-transform: uppercase;
}

@media (min-width: 576px) {
    .comment-form-author, .comment-form-email {
        width: 50% !important;
        clear: none !important;
    }

    .comment-form-author input, .comment-form-email input {
        max-width: none !important;
    }

    .comment-form-author {
        padding-right: 10px;
    }

    .comment-form-email {
        padding-left: 10px;
    }
}

@media (min-width: 992px) {
    .only-mobile {
        display: none;
    }
}

@media (max-width: 1140px) {
    #logo a {
        font-size: 26px !important;
    }

    .header-lg {
        font-size: 30px;
    }

    .promo-products-wrap {
        display: block;
    }

    .promo-product-title {
        font-size: 100%;
    }

    .promo-product {
        width: 100%;
    }

    .promo-product + .promo-product {
        margin-left: 0;
        margin-top: 16px;
    }

    .promo-product-btn {
        font-size: 14px;
        line-height: 14px;
    }

    .promo-product-content {
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .sidebar.c-4-12 {
        width: 28%;
    }
}

@media (max-width: 991px) {
    .ranking {
        margin-bottom: 60px;
    }

    .ranking-title:not(.only-mobile), .ranking-btn:not(.only-mobile) {
        display: none;
    }

    .ranking-image {
        float: none;
        margin: 0 auto;
    }

    .ranking-btn {
        margin-top: 20px;
    }
}

@media (max-width: 865px) {
    .menu li a {
        background: var(--gray) !important;
    }

    #navigation ul li.current-menu-item a {
        background: var(--red) !important;
    }

    .post-single-content, .single_post header, .single_page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .single-ranking-title {
        padding-left: 48px;
    }

    .single-ranking-title .ranking-number {
        top: 14px;
        left: 10px;
    }

    .single-title {
        font-size: 22px !important;
    }
}

@media (max-width: 800px) {
    #page {
        padding-top: 20px;
    }

    .single-title {
        padding-top: 7px;
    }

    .single-ranking-title .ranking-number {
        top: 2px;
    }

    .single-featured-thumbnail {
        margin-bottom: 15px;
    }

    .single-ranking-post header {
        margin-bottom: 0 !important;
    }

    .wp-block-pullquote {
        padding: 0;
    }

    .wp-block-pullquote blockquote {
        padding-left: 15px;
    }
}

@media (max-width: 575px) {
    #logo a {
        font-size: 20px !important;
    }

    .header-lg {
        font-size: 20px;
    }

    .site-description {
        font-size: 14px;
    }

    .ranking-item {
        padding-top: 30px;
    }

    .ranking-item {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        border-top: 5px solid var(--gray);
    }

    .ranking-item.first {
        border-top: 5px solid var(--red);
    }

    .ranking-number {
        left: 0;
        top: -24px;
    }

    .ranking-item:not(:last-child)::after {
        display: none;
    }

    .ranking-item::after {
        left: 0;
    }

    .ranking-title {
        padding: 0 30px;
        font-size: 18px;
        text-align: center;
    }

    .comment-form-captcha {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
    }

    .comment-form-captcha input {
        -ms-flex-positive: 1;
        flex-grow: 1;
        margin-left: 10px;
    }

    .submit {
        width: 100%;
    }

    .comment-form-author input, .comment-form-email input {
        margin-right: 0 !important;
        max-width: none !important;
    }
}

@media (max-width: 360px) {
    .single-ranking-image img {
        max-width: 150px;
    }
}

@media (min-width: 768px) and (max-width: 1140px) {
    .promo-product {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        padding-bottom: 18px;
        -ms-flex-pack: justify;
        justify-content: space-between;
        width: 100%;
        text-align: left;
    }

    .promo-product-image {
        margin: 0;
    }

    .promo-product-btn {
        position: static;
    }
}