.cs-site-primary {
    margin-top: 50px;
    min-height: 65vh;
}

.cs-header__language .polylang_langswitcher {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    /* width: 62px; */
    /* height: 32px; */
    padding: 3px 7px;
    /* background: var(--cs-header-background); */
    border-radius: 16px;
    box-shadow: 0 5px 10px 0 rgba(var(--cs-light-accent-color-rgb), 0.06);
    transition: 0.25s;
    background: rgba(var(--cs-light-accent-color-rgb), 0.09);


}

.cs-site-primary .cs-entry__header .cs-entry__author-info {
    justify-content: center;
}

.cs-header__language .polylang_langswitcher li a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    padding: 7px;
    transition: all .3s linear;
    background-color: transparent;
    box-shadow: 0 0 4px rgba(0,0,0,0);
    border-radius: 100%;
}

.cs-header__language .polylang_langswitcher li.current-lang a {
    background-color: #fff;   
    box-shadow: 0 0 4px rgba(0,0,0,.3);
}

.cs-header__language .polylang_langswitcher li a:hover {
    background-color: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,.3);
}

.error404 .cs-site-content {
    width: 100%;
}

.error404 .cs-container .cs-page__header {
    max-width: 900px;
}

.page-template-template-homepage .cs-main-content {
    display: block;
}

.category-block .cs-posts-grid {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cs-offcanvas .cs-header__language {
    width: fit-content;
    margin-top: 20px;
    padding: 0 30px;
}

.cs-breadcrumbs .cs-container {
    padding: 0;
    margin-bottom: 25px;
}

/* contact form */

.cf7-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn .25s ease;
}

/* POPUP CONTENT */
.cf7-popup__content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: scaleIn .25s ease;
}

/* CLOSE BUTTON */
.cf7-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    border: none;
    background: none;
    cursor: pointer;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity:0; } to { opacity:1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity:0; }
    to   { transform: scale(1); opacity:1; }
}

/* contact form */

/* home page */


.cs-main-content .category-block {
    margin: 15px 0 30px;
}

@media (max-width: 768px) {
    .cs-main-content .cs-tags__item a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cs-main-content .cs-entry__title {
        font-size: 16px;
    }
    .cs-main-content .cs-entry__excerpt {
        font-size: 14px;
    }
}

.cs-main-content .category-block  .category-title {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    padding-right: 50px;
}

.cs-main-content .category-block  .category-title span {
    background-color: #F1F5F9;
    display: inline-block;
    padding: 5px 30px 5px 5px;
    position: relative;
    z-index: 2;
}

.cs-main-content .category-block  .category-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: rgba(var(--cs-light-accent-color-rgb), 0.3);
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.cs-main-content .category-block  .cs-posts-grid article {
    width: calc((100% / 3) - 16px);
}

.cs-main-content .category-block  .cs-posts-grid {
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .cs-main-content .category-block  .cs-posts-grid {
        justify-content: center;
        flex-wrap: wrap;
    }
    .cs-main-content .category-block  .cs-posts-grid article {
        width: calc((100% / 2) - 16px);
    }
}

@media (max-width: 768px) {
    .cs-main-content .category-block  .cs-posts-grid article {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cs-main-content .category-block .category-title {
        font-size: 25px;
    }

    .cs-main-content .category-block  .category-title span {
        padding-right: 10px;
    }
}

.cs-main-content .category-block .category-more {
    display: flex;
    align-items: center;
    justify-content: center;

}

.cs-main-content .category-block .category-more a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color:  rgba(var(--cs-light-accent-color-rgb), 0.8);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all .3s ease;
    box-shadow: -1px -2px 10px rgba(0, 0, 0, .2);
    min-width: 250px;
    font-size: 16px;
    text-align: center;
}

.cs-main-content .category-block .category-more a:hover {
    background-color: transparent;
    border-color: rgba(var(--cs-light-accent-color-rgb), 0.8);
    color: rgba(var(--cs-light-accent-color-rgb), 0.8);
}

.cs-main-content .cs-info__wrapper {
    margin: 50px 0;
}

.cs-main-content .cs-info__wrapper h1 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.cs-main-content .cs-info__wrapper h2, .cs-main-content .cs-info__wrapper h3 {
    margin-bottom: 20px;
}

.cs-main-content .cs-info__wrapper p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .cs-main-content .cs-info__wrapper h1 {
        font-size: 30px;
    }
}


/* home page */

/* Blog */

.blog .cs-main-content {
    display: block;
}

.blog .cs-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

.blog .cs-grid article {
    width: calc((100% / 3) - 16px);
}

.blog .cs-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .blog .cs-grid article  {
        width: calc((100% / 2) - 16px);
    }
}

@media (max-width: 768px) {
    .blog .cs-grid article {
        width: 100%;
    }
}


/* Blog */

/* Contact page */

.page-template-template-contact .cs-main-content {
    display: block;
}

.page-template-template-contact .contact__wrapper {
    max-width: 800px;
    margin: 50px auto 30px;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px 40px;
    box-shadow: -2px 0 10px rgba(0,0,0,.15);
}

.page-template-template-contact .contact__wrapper .title__wrapper {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(var(--cs-light-accent-color-rgb), 0.09);
    padding-bottom: 20px;
}

.page-template-template-contact .contact__wrapper .info {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(var(--cs-light-accent-color-rgb), 0.09);
    text-align: center;
}

.page-template-template-contact .contact__wrapper .info .title {
    font-size: 20px;
    font-weight: 700;
}

.page-template-template-contact .contact__wrapper .info .block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-template-template-contact .contact__wrapper .info .block img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background-color: #fff;
    display: flex; 
    align-items: center;
    justify-content: center;
    padding: 3.5px;
    margin-right: 10px;
    box-shadow: -2px 0 10px rgba(0,0,0,.15);
    margin: 15px 0;
}

.page-template-template-contact .contact__wrapper .info .block a {
    text-decoration: none;
}

.page-template-template-contact .contact__wrapper .info .block a:hover {
    text-decoration: underline;
}

.page-template-template-contact .contact__wrapper .info .cs-footer__social {
    display: flex; 
    justify-content: center;
    align-items: center;
}

.page-template-template-contact .contact__wrapper .cs-contact-form input, .page-template-template-contact .contact__wrapper textarea {
    border: 1px solid rgba(var(--cs-light-accent-color-rgb), 0.09);
    box-shadow: -2px 0 10px rgba(0,0,0,.1);
}

.page-template-template-contact .contact__wrapper textarea {
    resize: none;
}

.page-template-template-contact .contact__wrapper .cs-contact-form .input__wrapper {
    margin-bottom: 20px;
}

.page-template-template-contact .contact__wrapper .cs-contact-form .form__button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-template-template-contact .contact__wrapper .cs-contact-form .form__button .wpcf7-submit {
    display: inline-block; 
    min-width: 250px;
    padding: 10px 20px;
    font-size: 16px;
}

@media (max-width: 480px) {
    .page-template-template-contact .contact__wrapper {
        padding: 15px 10px;
    }

    .page-template-template-contact .contact__wrapper .cs-contact-form .form__button .wpcf7-submit { 
        min-width: inherit;
    }

    .page-template-template-contact .contact__wrapper .title__wrapper h1 {
        font-size: 28px;
    }

    .page-template-template-contact .contact__wrapper .info .title {
        font-size: 16px;
    }

    .page-template-template-contact .contact__wrapper .info .block img {
        margin-right: 5px;
        display: none;
    }

    .page-template-template-contact .contact__wrapper .info .block {
        margin-bottom: 10px;
        margin-top: 10px;
    }
}
/* Contact page */