/*
 * Theme Name:  Newsblock Child
 * Theme URI:   https://codesupply.co/themes/newsblock/
 * Description: Newsblock Child Theme
 * Author:      Code Supply Co.
 * Author URI:  https://codesupply.co/
 * Template:    newsblock
 * Version:     1.0.0
 */

/* Copy any classes from parent theme here. They will override the parent's version. */

.wp-block-latest-posts__post-category {
    background: var(--cs-color-styled-heading);
    padding: 2px 5px;
    color: #000;
    font-size: 12px;
    margin-right: 10px;
    display: inline-block;
}

.content .pk-block-bg-inverse, .entry-content .pk-block-bg-inverse, .mce-content-body .pk-block-bg-inverse {
    background-color: #f8f9fa;
    color: #000;
}

body[data-scheme="dark"] .content .pk-block-bg-inverse, body[data-scheme="dark"] .entry-content .pk-block-bg-inverse, body[data-scheme="dark"] .mce-content-body .pk-block-bg-inverse {
    background-color: #5a5a5a!important;
    color: #fff!important;
}

.correction {
    border-top: 1px solid #000;
    padding: 20px;
    margin: 40px 0;
    border-bottom: 1px solid #000;
}

.correction__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.correction p {
    margin: 0;
    font-family: 18px;
}
.correction p:last-child {
    font-size: 14px;
}

@media screen and (max-width: 991px) {
    .correction__row {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }
    .correction p {
        text-align: center;
    }
}

.mistape-popup {
    position: fixed;
	top: 0;
	left: 0;
	width: 100%;
    padding: 80px 0;
	display: none;
	z-index: 1050;
	height: 100vh;
}

.mistape-popup.show {
    display: block;
}

.mistape-popup__overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 1;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mistape-popup__close {
    position: absolute;
    top: 32px;
    right: 29px;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    cursor: pointer;
}

.mistape-popup__content {
    background-color: #fff;
    max-width: 784px;
    width: 100%;
    overflow: auto;
    z-index: 1500;
    margin: auto;
    position: relative;
    padding: 40px;
}

.mistape-popup .title {
    font-weight: 600;
    font-size: 26px;
    text-align: center;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: #000000;
    margin-bottom: 17px;
}

.mistape-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #000;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    background-color: transparent;
    border: none;
    outline: none;
}

.mistape-popup__action {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}


.social-site.mobile-social {
    flex-wrap: wrap;
}

.social-site.mobile-social .header__lang {
    margin-left: auto;
}

.omsc-box {
    background: #F8F9FB;
    padding: 2rem;
}

.omsc-editorial {
    border: 1px solid #eaeaea;
    background-color: #ffffff;
    text-align: left;
    color: #000;
    box-shadow: 0 0px 10px rgba(0,0,0,.1);
}

.omsc-editorial-inner {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.omsc-editorial-title {
    background-color: var(--cs-color-category);
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 0px;
}

.omsc-editorial-content {
    padding: 20px;
    width: 100%;
}

.social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.social-share a {
    width: 50px;
    height: 50px;
    display: flex;
    transition: .3s all;
    justify-content: center;
    align-items: center;
}
.social-share a:hover {
    background-color: var(--hover_color)!important;
}
.social-share a img {
    width: 25px;
    height: auto;
    max-height: 35px;
}
.cs-sidebar__inner {
    height: auto;
}

.cs-sidebar__area {
    height: 100%;
    display: block;
    -webkit-flex-basis: 300px;
    -ms-flex-preferred-size: 300px;
    flex-basis: 300px;
    -webkit-box-flex: 0;
    -webkit-flex-grow: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;

}

.cs-sidebar__conteinter {
    /* height: min(100%, 1600px); */
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    
}

.ad-container {
    width: 100%;
    position: static;
    height: 75%;
    max-height: 75%;
}

@media screen and (max-width: 991px) {
    .ad-container {
        height: auto;
        max-width: 100%;
    }
}

.ad-sticky-wrap {
    position: sticky;
    top: 90px;
    width: 300px;
    height: 600px;
    border: 1px solid red;
}

.cnvs-block-posts-layout-tile-type-1 .cs-overlay-content {
    padding: 30px 30px 20px;
}

.cnvs-block-posts-layout-tile-type-1 .cs-overlay-content .cs-entry__excerpt {
    font-weight: 700;
    line-height: 1.3;
}

.tooltips {
    text-decoration: underline;
}

.tooltips:after {
    content: 'ⓘ';
    display: inline-block;
    margin-left: 5px;
    color: #00B1EC;
}


@media screen and (min-width: 1020px) {
    .cs-entry__header-overlay .cs-entry__header-wrap.cs-ratio-wide::before,
    .cs-entry__header-large .cs-entry__header-wrap.cs-ratio-wide::before,
    .cs-entry__header-large-overlay .cs-entry__header-wrap.cs-ratio-wide::before {
        height: var(--header_height);
    }   
}

.dap {
    position: fixed;
	top: 0;
	left: 0;
	width: 100%;
    padding: 80px 0;
	display: none;
	z-index: 10050;
	height: 100vh;
}

.dap.show {
    display: block;
}

.dap__overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 1;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.dap__close {
    position: absolute;
    top: 32px;
    right: 29px;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    cursor: pointer;
}

.dap__iframe {
    max-width: 784px;
    z-index: 100;
    width: 100%;
    position: relative;
    z-index: 1501;
    margin: 0 auto;
    display: none;
    height: 100%;
}

.dap__iframe iframe {
    width: 100%;
    height: 100%;
}

.dap__content {
    background-color: #fff;
    max-width: 784px;
    width: 100%;
    overflow: auto;
    z-index: 1500;
    margin: auto;
    position: relative;
    padding: 40px;
    max-height: calc(100vh - 100px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.dap .title {
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: #000000;
    margin-bottom: 17px;
}

.dap__content img {
    max-width: 300px;
    width: 100%;
    margin-bottom: 20px;
}

.dap__close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #000;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    background-color: transparent;
    border: none;
    outline: none;
}

.dap__action {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 0px;
}

#copy_title {
    position: absolute;
    left: -999999999px;
} 

.omsc-tooltip {
    color: #000;
}

.hide-images .cnvs-block-posts-layout-horizontal-type-2 .cs-entry__thumbnail {
    display: none;
}

.cs-posts-area .cs-block-posts-layout-horizontal-type-6.cs-display-borders-between-posts.cs-posts-area__main .cs-entry:nth-child(n) {
    border-top: none;
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
}

.wp-block-latest-posts .wp-block-latest-posts__post-title {
    font-weight: 400;
}

.wp-block-latest-posts .wp-block-latest-posts__post-title.main-tag {
    font-weight: 700;
}

.wp-block-latest-posts > li:not(:last-child) {
    margin-bottom: 20px;
}