:root {
    --main-color: #293f5e;
    --white-color: #FFFFFF;
    --dark-color: #000000;
    --wpdm-link-color: #FFFFFF !important;
}

html {
    height: 100%;
}

body .site {
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body .site section:last-of-type {
    margin-bottom: 40px;
}

.single-area {
    padding-top: 40px;
}

footer {
    margin-top: auto !important;
}

body::-webkit-scrollbar {
    width: 0;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    backdrop-filter: blur(42px);
    box-shadow: 24px 24px 39px 0 rgba(96, 126, 248, 0.03);
    background: #C2D0DC;
}

h2 {
    font-size: 25px;
}

.header-area {
    padding: 0;
    background-color: var(--main-color);
}

.header-area .site-title a {
    color: var(--white-color);
}

.container-xl {
    max-width: 1132px;
}

.page-area .type-page .entry-content > * {
    color: var(--dark-color);
}

.page-area .type-page .entry-content > p {
    margin-bottom: 20px;
    font-size: 16px;
}

.page-area .type-page .entry-content > p:last-child {
    margin-bottom: 0 !important;
}

.rank-math-breadcrumb p a {
    text-decoration: none;
    color: rgba(41, 63, 94, 0.56);
}

.rank-math-breadcrumb p {
    font-size: 13px;
}

.rank-math-breadcrumb p .separator {
    color: rgba(41, 63, 94, 0.56);
}

.rank-math-breadcrumb p .last {
    color: rgba(41, 63, 94, 0.56);
}

.header-area ul li a {
    color: var(--white-color);
    padding-bottom: 16px;
    text-transform: inherit;
}

.news-area .news-text {
    padding: 4px 0px;
}

.news-area .news-text h2 {
    margin-bottom: 3px;
}

.news-area .news-content {
    padding: 4px 0px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
    margin-top: 50px;
}

.pagination a {
    text-decoration: none;
}

.pagination > * {
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    gap: 4px;
    margin-top: 0;
}

.pagination > a {
    padding: 5px 15px;
    border-radius: 5px;
}

.pagination > a:hover {
    background-color: #6D89A7;
    color: var(--dark-color);
}

.pagination .current {
    background-color: #C2D0DC;
    padding: 5px 15px;
    border-radius: 5px;
}

.list-post {
    border: 1px solid rgba(41, 63, 94, 0.4);
    padding: 16px;
}

.nav-links a:hover {
    background-color: #6D89A7;
    border: none;
}

.page-area h1 {
    text-align: center;
    margin-bottom: 30px;
}

.footer-area {
    background-color: #293f5e;
    padding: 30px 0;
    margin-top: 60px;
}

.form-contact form {
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.form-contact form input, .form-contact form label, .form-contact form textarea {
    width: 100%;
    margin-bottom: 1rem;
}

.form-contact form input, .form-contact form textarea {
    background: rgb(247, 246, 244);
    border-radius: 10px;
    padding: 5px 20px;
    color: rgb(102, 102, 102);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(204, 204, 204);
}

.form-contact form textarea {
    resize: none;
    height: 180px;
}

.wpcf7-form input[type="submit"] {
    width: 223px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    color: rgb(255, 255, 255);
    font-family: inherit;
    background: rgb(41, 63, 94);
    border-radius: 10px;
    padding: 0px;
    margin: 0px auto;
}

/* SEARCH FORM */
.search-form-wrapper {
    margin-bottom: 0 !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
}

.search-form {
    position: relative;
    max-width: 400px;
}

.search-form label {
    position: relative;
    display: block;
    margin: 0;
}

.search-field {
    width: 100%;
    padding: 4px 10px 4px 10px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-field:focus {
    border-color: #007cba;
    box-shadow: 0 4px 20px rgba(0,124,186,0.15);
    transform: translateY(-1px);
}

.search-field::placeholder {
    color: #999;
    font-style: italic;
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    visibility: hidden;
}

.search-submit:hover {
    color: #007cba;
    background: rgba(0,124,186,0.1);
}

.search-submit:before {
    content: "\1F50D";
    font-size: 16px;
}

.search-submit {
    text-indent: -9999px;
    width: 35px;
    height: 35px;
}
/* END SEARCH FORM */

.newsstory-btn a {
    border-radius: 40px;
    font-size: 12px;
    line-height: 120%;
    background: #C2D0DC;
    color: #000000;
    padding: 3px 10px;
    font-size: 12px;
    border: none;
    font-size: 12px;
    transition: all .2s linear;
}

.newsstory-btn a:hover {
    background-color: #6D89A7;
}

.footer-area {
    padding: 40px 0;
}

.social {
    margin-top: 20px;
}

.social li a i {
    color: var(--white-color);
}

.single-area .sidebar {
    position: relative;
    height: 100%;
}

.single-area .sidebar {
    position: relative;
    height: 100%;
    display: block;
}

.single-area .sidebar .post-navigation {
    position: sticky;
    top: 20px; /* отступ сверху */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.single-area .sidebar .post-navigation ul li a {
    text-decoration: none;
}

.breadcrumbs-area {
    padding: 16px 0;
    margin-bottom: 30px;
}

.site-title a {
    text-transform: none;
}

.site-title a:hover {
    color: #EA552B !important;
}

.archive .archive-area .post .list-post {
    margin-bottom: 0;
}

.header-right-wrapper {
    display: flex;
    gap: 12px;
    height: 100%;
}

.wp-dark-mode-switch-3 ._track {
    background: #C2D0DC !important;
}

.mainmenu .menu {
    display: flex;
    align-content: center;
    justify-content: center;
}

.site-branding {
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
}

.site-branding .custom-logo-link img {
    max-width: 140px;
    max-height: 40px;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.site-title {
    display: none;
}

.wp-dark-mode-switch-3 ._track {
    height: calc(20px * var(--wpdm-switch-scale, 1));
    width: calc(44px * var(--wpdm-switch-scale, 1));
}

.wp-dark-mode-switch-3 ._track ._thumb {
    height: calc(20px * var(--wpdm-switch-scale, 1) - 2px * var(--wpdm-switch-scale, 1) * 2);
    width: calc(20px * var(--wpdm-switch-scale, 1) - 2px * var(--wpdm-switch-scale, 1) * 2);
    background: #293f5e !important;
}

.wp-dark-mode-switch-3>._track>._icon svg path {
    stroke: #293f5e !important;
}

.active.wp-dark-mode-switch-3 ._track ._thumb {
    transform: translateX(calc(44px * var(--wpdm-switch-scale, 1) - 20px * var(--wpdm-switch-scale, 1)));
}

.easy-tricker-content {
    margin-bottom: 0;
}

@media screen and (max-width: 992px) {
    .header-area .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    .header-area .header-columns-inner:nth-child(1) {
        order: 1;
    }
    .header-area .header-columns-inner:nth-child(2) {
        order: 3;
    }
    .header-area .header-columns-inner:nth-child(3) {
        order: 2;
    }
    .header-right-wrapper {
        justify-content: end;
    }
    .header-right-wrapper .search-form-wrapper {
        display: none;
    }
    .post-thumbnail img {
        width: 100%;
        max-height: 450px;
        object-fit: cover;
    }
    .slicknav_btn {
        float: right;
        left: auto;
        z-index: 2;
    }
    .slicknav_nav {
        left: auto;
        right: 0px;
        position: fixed;
        width: 100%;
        max-width: 400px;
        height: 100%;
        z-index: 1;
        top: 0px;
        padding: 100px 20px;
        box-shadow: -12px -1px 11px 6px #0000001f;
        background-color: var(--main-color);
    }
    .slicknav_icon-bar {
        background: var(--white-color) !important;
    }
    .site-branding {
        padding-top: 0 !important;
        height: 100%;
        display: flex;
        align-items: center;
    }
    .site-title {
        text-align: left;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 992px) {
    .site-title a {
        font-size: 18px;
    }
}

@media screen and (max-width: 575px) {
    .site-title a {
        height: 100%;
        display: flex;
        align-items: center;
    }
    h2 {
        font-size: 1.7rem !important;
    }
    .header-area {
        padding: 10px 0;
    }
}