/*
Theme Name: Сайт Київської обласної ради
Theme URI: seok.com.ua
Version: 1.0
Description:
Author: seok.com.ua (fudzimaru)
Author URI: seok.com.ua
*/

.wp-block-table table td, .wp-block-table th{
    border: none;
    border-top: 1px solid rgba(17,17,17,.2);
    padding: var(--inner);
}

.wp-block-table table td{
    text-transform: none;
}

.wp-block-table thead {
    border-bottom: 1px solid rgba(17,17,17,.2);
}

._content{
    font-size: 18px;
}

.wp-block-media-text .wp-block-media-text__content{
    padding-left: 0;
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    grid-gap: 1.1em;
    display: flex;
    flex-direction: column;
}

.wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 43%;
}

.doc_wrapper{
    max-width: 100%;
}

.wp-block-file__button{
    --color: var(--btn_color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: min(var(--btn_w), 100%);
    height: var(--btn_height);
    padding: 1px var(--btn_inner) 0;
    leading-trim: both;
    text-edge: cap;
    font-size: var(--h6);
    font-size: var(--btn_font);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-align: center;
    background-color: var(--btn_bg);
    border: var(--btn_bd_size) solid var(--btn_bd_color);
    cursor: pointer;
    transition: background-color .43s, color .43s
}

.wp-block-file__button:hover {
    color: var(--primary);
    border-radius: 0;
    background-color: transparent
}

.wp-block-file a{
    display: none;
}

.wp-block-file a.wp-block-file__button{
    display: inline-flex;
    border-radius: 0;
    text-decoration: none;
    margin-top: 25px;
    margin-bottom: 25px;
    color: var(--btn_color);
    margin-left: 0;
}

.wp-block-file a.wp-block-file__button:hover{
    color: var(--primary);
}

.doc_caption{
    display: flex;
    justify-content: space-between;
}

.doc_wrapper .wp-block-file{
    margin-top: 40px;
    padding-top: 40px;
    border-top:solid 2px var(--primary);
}

#up{
    cursor: pointer;
}

.leader_list {
    opacity: 0;
    transition: opacity .3s;
}

.leader_list.active {
    opacity: 1;
}



@media (hover: none) {
    .pdf-view{
        display: block;
    }
    ._content .pdf-view span{
        display: inline-flex;
        border-radius: 0;
        margin-top: 0;
        text-decoration: none;
        color:  var(--btn_bg);
        align-items: center;
        justify-content: center;
        position: relative;
        font-size: var(--btn_font);
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: .01em;
        text-transform: uppercase;
        text-align: center;
        cursor: pointer;
    }

    .wp-block-file a{
        display: block;
    }

    .wp-block-file img{
        max-width: 103px;
        margin-bottom: 5px;
    }

    .doc_wrapper .wp-block-file {
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (max-width: 768px) {
    .leader_list {
        opacity: 1;
    }

    .search_form:after {
        z-index: 0;
    }
}
@media (max-width: 1025px) {
    .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns:100%!important
    }

    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
        grid-column: 1;
        margin-top: 30px;
        grid-row: 2
    }

    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
        grid-column: 1;
        grid-row: 1;
    }

    .doc_caption{
        display: block;
    }
}

/* Початок головної сторінки */

.news {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.main-news {
    display: flex;
    margin-bottom: 40px;
}

.text-news {
    flex: 1;
    padding-right: 30px;
}

.text-news .h2 {
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111111;
    font-size: 40px;
    font-weight: 700;
    line-height: 50px;
}

.img-news {
    max-width: 370px;
}
.img-news img {
    object-fit: cover;
    height: 100%;
}

.desk {
    color: #111111;
    font-size: 18px;
    font-weight: 400;
    line-height: 24.3px;
    margin-bottom: 20px;
}

.link-date {
    display: flex;
    justify-content: space-between;
}

.link-date .date {
    padding-bottom: 0px;
}

.more-news {
    display: flex;
}

.date {
    color: #7D7D7D;
    font-size: 15px;
    font-weight: 400;
    line-height: 18.75px;
    padding-bottom: 6px;
}

.two-news {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.block-news {
    display: flex;
    max-width: 400px;
    flex-direction: column;
    padding: 20px;
    background-color: #F5F5F5;
}

.title-img {
    display: flex;
}

.mini-img {
    max-width: 110px;
}

.titl {
    flex: 1;
    padding-right: 10px;
}

.titl a {
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111111;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
}

.titl a:hover {
    color: #223F80;
    text-decoration: underline;
}

.block-news .desk {
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 15px 0 0;
    margin: 0;
}

.sidebar-news {
    min-width: 300px;
    display: flex;
    align-self: flex-start;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background-color: #F5F5F5;
}

.block-sd {
    margin-bottom: 20px;
}

.sidebar-news .h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 32.5px;
    margin-bottom: 20px;
}

.block-sd a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111111;
    font-size: 18px;
    font-weight: 700;
    line-height: 22.5px;
}

.block-sd a:hover {
    color: #223F80;
    text-decoration: underline;
}

.all-news {
    display: flex;
    justify-content: center;
}

.all-news a, .more-news a {
    color: #223F80;
    font-size: 16px;
    font-weight: 700;
    line-height: 20.8px;
    letter-spacing: 0.01em;
    padding-right: 6px;
}

.all-news svg, .more-news svg{
    width: auto;
}

/* Кінець головної сторінки */

/* Початок сторінки з новинами */

.nav-chapter {
    margin-top: 50px;
}

.mobi-chapter {
    display: none;
}

.ul-chapter {
    display: flex;
}

.ul-chapter li {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    padding: 0 20px 20px;
    margin-right: 10px;
    border-bottom: 4px solid transparent;
}

.ul-chapter li a {
    color: #223F80;
}

.ul-chapter li.act {
    border-bottom: 4px solid #194DA6;
}

.ul-chapter li:hover {
    border-bottom: 4px solid rgba(25, 77, 166, 0.5);
}

.blocks {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: 30px;
    border-top: 1px solid #C3C3C3;
}

.blocks .desk {
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Кінець сторінки з новинами */

/* Початок новини */

.one-news {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.author-date {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.author-date span {
    color: #7D7D7D;
    font-size: 18px;
    font-weight: 400;
    line-height: 22.5px;
    padding-right: 5px
}

.main-img {
    margin-top: 40px;
}

.author {
    color: #111111;
    font-size: 18px;
    font-weight: 400;
    line-height: 22.5px;
}

/* Кінець новини */


@media (min-width: 992px) and (max-width: 1199px) {

    .text-news .h2 {
        font-size: 35px;
        padding-bottom: 15px;
        line-height: 40px;
    }

    .img-news {
        width: 40%;
    }

    .desk {
        display: block;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 17px;
        line-height: 22.3px;
    }

    .date {
        font-size: 14px;
    }

    .titl a {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 18px;
        font-weight: 700;
        line-height: 22px;
    }

    .block-news {
        max-width: 322px;
    }

    .block-sd a {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 17px;
        line-height: 20.5px;
    }

    .main-info h1 {
        font-size: 30px;
    }

    .author {
        font-size: 16px;
    }

    .author-date span {
        font-size: 16px;
    }
    
    .blocks .mini-img {
        max-width: 100px;
    }

}

@media (min-width: 768px) and (max-width: 991px) {

    .main-news {
        flex-direction: column;
    }

    .text-news {
        padding-right: 20px;
    }

    .text-news .h2 {
        font-size: 30px;
        padding-bottom: 15px;
        line-height: 35px;
    }

    .img-news {
        max-width: 100%;
        margin-top: 20px;
    }

    .desk {
        display: block;
        display: -webkit-box;
        -webkit-line-clamp: 4; 
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px;
        line-height: 20.3px;
    }

    .date {
        font-size: 14px;
    }

    .mini-img {
        width: 20%;
    }

    .two-news {
        flex-direction: column;
    }

    .titl a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 18px;
        font-weight: 700;
        line-height: 22px;
    }

    .block-sd a {
        display: block;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 17px;
        line-height: 20.5px;
    }

    .block-news {
        max-width: 590px;
    }

    .blocks {
        grid-template-columns: 1fr 1fr;
    }

    .blocks .mini-img {
        width: 33%;
    }

    .main-info h1 {
        font-size: 30px;
    }

    .author {
        font-size: 14px;
    }

    .author-date span {
        font-size: 14px;
    }

    .main-img {
        margin-top: 30px;
    }

    .one-news .sidebar-news {
        min-width: 250px;
    }

}

@media (min-width: 576px) and (max-width: 767px) {

    .news {
        gap: 20px;
    }

    .main-news {
        flex-direction: column;
    }

    .text-news {
        padding-right: 0;
    }

    .text-news .h2 {
        font-size: 30px;
        padding-bottom: 15px;
        line-height: 35px;  
    }

    .img-news {
        max-width: 100%;
        margin-top: 30px;
    }

    .more-news a {
        font-size: 14px;
    }

    .desk {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px;
        line-height: 20.3px;
    }

    .block-news {
        max-width: 420px;
    }

    .date {
        font-size: 13px;
    }

    .mini-img {
        width: 25%;
    }

    .two-news {
        flex-direction: column;
    }

    .titl a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
        line-height: 20px;    
    }

    .block-sd a {
        display: block;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 17px;
        line-height: 20.5px;
    }

    .blocks {
        grid-template-columns: 1fr 1fr;
    }

    .blocks .mini-img {
        width: 33%;
    }

    .blocks .titl a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .one-news {
        gap: 20px;
    }

    .main-info h1 {
        font-size: 25px;
    }

    .author-date {
        margin-top: 10px;
    }

    .author-date .date {
        padding: 0;
        line-height: 23.75px;
    }

    .author {
        font-size: 14px;
    }

    .author-date span {
        font-size: 14px;
        padding-right: 5px;
    }

    .main-img {
        margin-top: 20px;
    }

    .one-news .sidebar-news {
        min-width: 200px;
    }

    .sidebar-news h2 {
        font-size: 22px;
    }

}


@media (max-width: 575px) {

    .news {
        flex-direction: column;
        gap: 30px;
    }

    .main-news {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .text-news {
        padding-right: 0;
    }

    .text-news .h2 {
        font-size: 26px;
        line-height: 32.5px;
    }

    .img-news {
        max-width: 100%;
        margin-top: 20px;
    }

    .more-news a {
        font-size: 15px;
        line-height: 19.5px;
        letter-spacing: 0.01em;
    }

    .desk {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
        line-height: 21.6px;
    }

    .date {
        font-size: 14px;
        line-height: 17.5px;
    }

    .block-news {
        max-width: 100%;
    }

    .mini-img {
        width: 35%;
    }

    .block-news .desk {
        font-size: 14px;
        line-height: 17.5px;
    }

    .two-news {
        flex-direction: column;
        gap: 10px;
    }

    .titl a {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 18px;
        line-height: 22.5px;       
    }

    .block-news .desk {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-news {
        width: 100%;
    }

    .block-sd {
        margin-bottom: 20px;
    }

    .block-sd a {
        display: block;
        display: -webkit-box;
        -webkit-line-clamp: 3; 
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 18px;
        line-height: 22.5px;   
    }

    .nav-chapter {
        display: none;
    }

    .mobi-chapter {
        display: block;
        margin-top: 20px;
    }

    .mobi-ul {
        padding: 11px 16px;
        border: 1px solid #194DA6;
    }

    .mobi-ul li {
        color: #194DA6;
        font-size: 15px;
        font-weight: 700;
        line-height: 19.5px;
        letter-spacing: 0.01em;
    }

    .mobi-ul a {
        display: flex;
        justify-content: space-between;
    }

    .mobi-ul span {
        display: block;
        height: auto;
        margin: auto 0;
    }

    .mobi-ul svg {
        width: auto;
    }

    .up-down {
        display: none;
        margin-top: 5px;
        padding: 11px 16px 1px;
    }

    .up-down a {
        padding-bottom: 10px;
    }

    .blocks {
        border: none;
        grid-template-columns: 1fr;
    }

    .blocks .mini-img {
        width: 34%;
    }

    .one-news {
        gap: 20px;
        flex-direction: column;
    }

    .main-info h1 {
        font-size: 26px;
        line-height: 32.5px;
    }

    .author-date {
        flex-direction: column;
        gap: 8px;
        margin-top: 20px;
    }

    .author-date .date {
        padding: 0;
        font-size: 16px;
        line-height: 20px;        
    }

    .author {
        font-size: 16px;
        line-height: 20px;
    }

    .author-date span {
        font-size: 16px;
        line-height: 20px;
        padding-right: 10px;
    }

    .main-img {
        margin-top: 20px;
    }

    .one-news .sidebar-news {
        width: 100%;
    }

    .sidebar-news .h2 {
        font-size: 22px;
        line-height: 27px;
    }


}

._content iframe {
    width: 100%;
    height: 500px;
    margin-top: 20px;
    position: relative;
}

.ul-chapter,.mobi-chapter{
    text-transform: uppercase;
}

.mini-img img{
    object-fit: cover;
    height: 100%;
}

.block-news .desk{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-news .desk{
    padding-top: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/**
ПОДІЇ НА ГОЛОВНІЙ
 */


.text-events {
    display: flex;
    justify-content: space-between;
}

.name-block {
    color: #111;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
}

.link-for-events {
    display: flex;
    align-self: center;
}

.under-link {
    display: none;
}

.all-events {
    color: #223F80;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    padding-right: 6px;
}

.block-arrow {
    align-self: center;
}

.blocks-events {
    margin-top: 20px;
}

.block-events {
    width: 370px;
}

.link-for-events svg {
    width: auto;
}

.blocks-events {
    display: flex;
    gap: 30px;
}

.block-events {
    background-color: #F5F5F5;
}

.date-events {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #223F80;
}

.text-date-events {
    color: #223F80;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
}

.info-events {
    padding: 14px 20px;
}

.text-info-events {
    color: #111;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-info-events:hover {
    color: #223F80;
    text-decoration: underline;
}



/**
ВСІ ПОДІЇ
*/

.all-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.name-section {
    color: #000;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
}



@media (min-width: 992px) and (max-width: 1199px) {

    .name-section {
        font-size: 36px;
    }

    .events .block-events {
        width: 31%;
    }

    .events .all-blocks {
        gap: 33px;
    }

}

@media (min-width: 768px) and (max-width: 991px) {

    .name-block {
        font-size: 28px;
    }

    .blocks-events {
        gap: 15px;
    }
    
    .date-events, .info-events {
        padding: 12px 15px;
    }

    .text-date-events {
        font-size: 17px;
    }

    .text-info-events {
        font-size: 18px;
    }

    .events .block-events {
        width: 30%;
    }

    .name-section {
        font-size: 32px;
    }

    .events .block-events {
        width: 31%;
    }

    .events .all-blocks {
        gap: 25px;
    }

}

@media (min-width: 576px) and (max-width: 767px) {

    .text-events .link-for-events {
        display: none;
    }

    .blocks-events {
        gap: 15px;
        flex-direction: column;
        margin-top: 30px;
    }

    .block-events {
        width: 100%;
    }
    
    .date-events, .info-events {
        padding: 12px 15px;
    }

    .text-date-events {
        font-size: 17px;
    }

    .text-info-events {
        font-size: 18px;
    }

    .under-link {
        display: flex;
        justify-content: center;
        margin-top: 30px;
    }

    .name-section {
        font-size: 28px;
    }

    .events .block-events {
        width: 48%;
    }

    .events .all-blocks {
        gap: 20px;
    }

    .footer_title {
        margin-bottom: 20px;
    }

    .blocks {
        padding-top: 20px;
    }

   
}

@media (max-width: 575px) {

    .name-block {
        font-size: 26px;
    }

    .text-events .link-for-events {
        display: none;
    }

    .blocks-events {
        gap: 10px;
        flex-direction: column;
        margin-top: 30px;
    }

    .block-events {
        width: 100%;
    }
    
    .date-events, .info-events {
        padding: 14px 20px;
    }

    .text-date-events {
        font-size: 16px;
    }

    .text-info-events {
        font-size: 18px;
    }

    .under-link {
        display: flex;
        justify-content: center;
        margin-top: 30px;
    }

    .under-link .all-events {
        font-size: 15px;
    }

    .name-section {
        font-size: 26px;
    }

    .events .block-events {
        width: 100%;
    }

    .events .all-blocks {
        gap: 10px;
        margin-top: 20px;
    }

    .footer_title {
        margin-bottom: 20px;
    }

    .blocks {
        gap: 10px;
        padding-top: 20px;
    }

    .blocks .mini-img {
        width: 110px;
        height: 94px;
    }

    .main-img {
        margin-top: 30px;
    }
    
    ._content :not(li,:first-child) {
        margin-top: 7px;
    }

    ._content iframe {
        height: 200px;
    }

    .sidebar-news {
        min-width: 100%;
    }
    
}

.footer_col a {
    text-decoration: underline;
}

.footer_col a:hover {
    color: #223F80;
}

.bar_burger {
    border-bottom: 2px solid #FECB00;
}

.mobi-ul a {
   color: #194DA6;
}

.up-down a {
    color: var(--color);
}

.author-date .date {
    font-size: 18px;
}

._content iframe {
    margin-top: 23px;
}

@media (max-width: 374px) {

    .footer_net {
        display: flex;
        flex-direction: column;
        grid-gap: 30px 20px;
    }

    .footer_title {
        margin-bottom: 10px;
    }

    .footer_developer {
        align-self: self-start;
    }

}