@import "variables.css";


html,*{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.wp-site-blocks {
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Roboto,  sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    height: inherit;
}

.page__head_wrapper {
    padding: 10px!important;
}


main {
    margin-top: 112px;
    flex: 1 0 auto;
}

footer {
    flex: 0 0 auto;
}

section {
    padding-bottom: 50px;
}

.post__content figure.wp-block-post-featured-image img {
    max-height: 500px;
}

.post__content img {
    max-height: 1024px;

}

.post__content figure:not(.wp-block-post-featured-image) {
    width: fit-content;
    margin: 0 auto;
}


.pagination_wrapper {
    display: flex;
    margin-top: 20px;
    justify-content: center;

    .page-numbers {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .page-numbers li {
        font-size: 14px;
        line-height: 100%;
        width: 32px;
        border: 1px solid var(--wp--preset--color--bg-card-text-color);
        border-radius: 8px;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background:  var(--wp--preset--color--bg-card-color);
        color: var(--wp--preset--color--bg-card-text-color);
    }
}

.content_wrapper  {
    padding: 20px;
    border-radius: 16px;
    transition: var(--base-transition);
    background: var(--wp--preset--color--bg-card-color);
    color: var(--wp--preset--color--bg-card-text-color);

}

.section__title_wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section__title_wrapper h2 {
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.post__card {
    transition: var(--base-transition);
    min-height: 300px;
    border-radius: 16px;
    background: var(--wp--preset--color--bg-card-color);
    color: var(--wp--preset--color--bg-card-text-color);
}

.post__card:hover {
    background: var(--wp--preset--color--bg-card-hover-color);
    color: var(--wp--preset--color--bg-card-text-hover-color);;
}

.post__card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    object-position: top;
}

.post__card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    flex: 1;

}

.wp-block-post-content {
    margin-top: 20px;
}

.post__card-title {
    margin: 0;
    font-weight: bold;
}

.post__card-date {
    font-weight: bold;
    font-size: 14px;
}

.btn {
    background-color: var(--wp--preset--color--button-color);
    border-radius: 0.5rem;
    border-width: 0;
    color: var(--wp--preset--color--button-text-color);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-decoration: none;
}



.accordion__wrapper {
    width: 100%;
}

.accordion__wrapper.active>.accordion__body {
    height: fit-content;
    padding: 10px;
}

.accordion__head {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion__wrapper.active>.accordion__head>svg {
    transform: rotate(180deg);
}

.accordion__head>svg {
    width: 30px;
    height: 30px;
    transition: var(--base-transition);

    path {
        fill: var(--wp--preset--color--bg-card-text-color);
    }
    polygon {
        fill: var(--wp--preset--color--bg-card-text-color);
    }
}


.accordion__body {
    transition: var(--base-transition);
    height: 0;
    overflow: hidden;

}

.wp-block-post-featured-image {
    width: 100%;
    height: 500px;

    img {
        object-fit: contain!important;
    }
}

@media (max-width: 900px) {
    .wp-block-post-featured-image {
        width: 100%;
        height: 350px!important;
    }
}


@media (max-width: 500px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .wp-block-post-featured-image {
        width: 100%;
        height: 200px!important;
    }


    .content_wrapper {
        padding: 10px;
    }
}


