/* BLOG HEADER */
#blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#blog-header h1 {
    align-items: center;
    width: 45%;
    color: #222;
}

#click-word {
    position: relative;
}
#click-word p {
    font-size: 25px !important;
    font-weight: 700 !important;
}
#click-word img {
    position: absolute;
    top: -20px;
    left: 50px;
}

#categories-search {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
#category-buttons {
    display: flex;
    flex-wrap: wrap;
}
.category-button {
    margin-right: 14px;
    margin-bottom: 14px;
    padding: 10px 30px;
    font-size: 16px;
    line-height: 30px;
    border-radius: 16px;
    color: #212529 !important;
    background-color: #f2f2f2;
    display: inline-block;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}
.category-button:hover,
#active-category {
    background-color: #1d1727;
    color: white !important;
}

.avia_search_element {
    width: 413px;
}
.avia_search_element .av_searchform_wrapper {
    border: transparent;
}
.avia_search_element input[type="text"] {
    border-radius: 0 !important;
    border-bottom: 3px solid #f2f2f2 !important;
}
.avia_search_element .av_searchform_wrapper input,
.av_searchsubmit_wrapper,
#searchsubmit {
    color: black;
    background: transparent !important;
}

#tag-buttons-title {
    margin-top: 16px;
    margin-bottom: 10px;
    color: #aeaeae;
    font-size: 12px;
    font-weight: 600;
}
.tag-button {
    margin-right: 12px;
    margin-bottom: 10px;
    padding: 10px 30px;
    font-size: 12px;
    line-height: 17px;
    border-radius: 16px;
    color: #343a40 !important;
    display: inline-block;
    font-weight: 600;
    border: 2px solid #f2f2f2 !important;
}
.tag-button:hover,
#active-tag {
    background-color: #f2f2f2;
}

/* MAIN BLOG TEMPLATE */
#main-blog {
    margin-top: 79px;
}
#main-blog h2 {
    text-align: center;
    margin-bottom: 79px !important;
    color: #222;
}

.read-more-button {
    text-align: right;
}
.read-more-button .avia-button {
    color: white;
    background-color: #2db0e4;
}

.three-posts {
    display: flex;
    margin-bottom: 50px;
}
.three-posts-single:nth-child(2) {
    margin: 0 50px;
}

/* CATEGORY AND TAG GRIDS TEMPLATE */
#main-blog h2 {
    margin-top: 60px;
}
#main-blog h3,
.newest-post h3 {
    color: black;
}
.newest-post {
    display: flex;
    margin-bottom: 59px;
}
.newest-post-content {
    width: 35%;
}
.newest-post-image {
    width: 55%;
    margin-left: 10%;
}
.newest-post-content h3 {
    font-size: 39px;
    font-weight: 700;
    margin-top: 70px;
    margin-bottom: 15px;
}
.newest-post-time-author {
    margin-bottom: 39px;
}
#post-grids .pagination-list .active span,
#post-grids .pagination-list a:hover {
    border-color: #2db1e4;
}

/* SINGLE POST TEMPLATE */
.template-single-blog {
    padding: 0 !important;
}
#content {
    padding: 0 !important;
    margin-top: 118px;
    width: 70%;
}
.content {
    padding: 0;
}

#entry-header {
    margin-bottom: 30px !important;
}
#post-title {
    text-align: center;
    padding: 0;
    max-width: unset;
    margin-bottom: 98px;
}
.post-tags {
    margin-bottom: 30px;
    height: 30px;
}
.post-tags a {
    text-transform: uppercase;
    font-size: 14px;
    margin-right: 30px;
    color: #aeaeae !important;
}
.newest-post-time-author {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #aeaeae;
}
#post-content ul {
    list-style: inside;
}

/* POSTS IN SHORTCODES */
.newest-post-content-shortcode h3 {
    margin-top: 30px;
}
.three-posts-single h3 {
    margin-top: 21px;
}

/* MOBILE */
@media only screen and (max-width: 1159px) {
    /* BLOG HEADER */
    #blog-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 50px;
    }
    #blog-header h1 {
        width: 100%;
    }

    .avia_search_element {
        margin-top: 20px;
    }

    /* CATEGORY AND TAG GRIDS TEMPLATE */
    .newest-post {
        flex-direction: column-reverse;
    }
    .newest-post > * {
        width: 100%;
        margin-left: 0;
    }
}

@media only screen and (max-width: 865px) {
    /* MAIN BLOG TEMPLATE */
    .newest-post-content h3 {
        font-size: 18px;
        margin-top: 0;
    }
    .three-posts {
        flex-direction: column;
    }
    .three-posts-single:nth-child(2) {
        margin: 50px 0;
    }
}

@media only screen and (max-width: 766px) {
    /* BLOG HEADER */
    #tag-buttons-section {
        display: none;
    }
    #categories-search-tags,
    #blog-header {
        padding: 0 8%;
    }
    #categories-search {
        justify-content: center;
    }

    /* MAIN BLOG TEMPLATE */
    .newest-post {
        margin-left: 8%;
        margin-right: 8%;
        margin-top: 59px;
    }
    .newest-post-content p {
        font-size: 15px;
    }
    .three-posts {
        margin: 0 8%;
    }
    .read-more-button {
        margin-right: 8%;
        margin-top: 30px;
    }
}
@media only screen and (max-width: 649px) {
    /* BLOG HEADER */
    .category-button {
        font-size: 14px;
    }
    #blog-header iframe,
    #click-word,
    .avia_search_element {
        display: none;
    }
}



/* DOBRY BLOG  */
.blog-post .rt-row {
    display: flex;
    flex-direction: row;
    width: 100%;
}
.blog-post .rt-row div {
    width: 100%;
}
.blog-post .rt-row div:first-child {
    order: 2;
}
.blog-post .rt-row div:last-child .rt-detail {
    padding-top: 30px;
}
.blog-post .rt-row div:last-child .rt-detail .entry-title a {
    font-size: 2rem;
}
.blog-post .rt-row div:last-child .rt-detail .post-meta-user {
    display: flex;
    justify-content: space-between;
}
.post-meta-user .post-tags-links i {
    display: none;
}
.post-meta-user .post-tags-links a {
    color: #aeaeae;
}
.blog-post .rt-row div:last-child .rt-detail .post-meta-user a,
p {
    color: #aeaeae;
}
.blog-posts .rt-row .rt-grid-item {
    position: relative;
    padding: 0;
    z-index: 1;
}
.blog-posts .rt-row .rt-grid-item .rt-holder {
    will-change: transform;
    position: relative !important;
    transition-duration: 0.6s;
    transition-property: transform;
    z-index: 2 !important;
    border-radius: 22px;
    background: #fff;
}
.blog-posts .rt-row .rt-grid-item:hover .rt-holder {
    text-decoration: none;
    transform: translateX(-5rem);
    z-index: 2;
}
.blog-posts .rt-row .rt-grid-item:before {
    content: ">";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #f2f2f2;
    z-index: 1;
    border-radius: 22px;
    display: flex;
    justify-content: right;
    font-size: 45px;
    color: #2db1e4;
    padding: 30px;
    align-items: end;
}
.rt-img-holder,
.rt-detail {
    z-index: 2;
}

.rt-img-holder a:hover .image-overlay,
.image-overlay-inside {
    display: none !important;
}




.custom-blog-template .rt-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.custom-blog-template .rt-row div {
    width: 100%;
}

.custom-blog-template .flex_cell_inner .flex_column:last-child .rt-row {
    justify-content: space-between;
}

.custom-blog-template
.flex_cell_inner
.flex_column:last-child
.rt-row
.rt-grid-item {
    width: 30% !important;
    margin-top: 30px;
}

.custom-blog-template .rt-row div:last-child .rt-detail {
    padding-top: 30px;
}

.custom-blog-template .rt-row div:last-child .rt-detail .entry-title a {
    font-size: 2rem;
}

.custom-blog-template .rt-row div:last-child .rt-detail .post-meta-user {
    display: flex;
    justify-content: space-between;
}

.custom-blog-template .rt-row div:last-child .rt-detail .post-meta-user a,
p {
    color: #aeaeae;
}

.custom-blog-template .rt-row .rt-grid-item {
    position: relative;
    padding: 0;
    z-index: 1;
}

@media only screen and (min-width: 768px) {
    .custom-blog-template .rt-row .rt-grid-item .rt-holder {
        will-change: transform;
        position: relative !important;
        transition-duration: 0.6s;
        transition-property: transform;
        z-index: 2 !important;
        border-radius: 22px;
        background: #fff;
        min-height: 442px;
    }

    .custom-blog-template .rt-row .rt-grid-item .rt-holder img {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .custom-blog-template .rt-row .rt-grid-item:hover .rt-holder {
        text-decoration: none;
        transform: translateX(-5rem);
        z-index: 2;
    }

    .custom-blog-template .rt-row .rt-grid-item:before {
        content: ">";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: #f2f2f2;
        z-index: 1;
        border-radius: 22px;
        display: flex;
        justify-content: right;
        font-size: 45px;
        color: #2db1e4;
        padding: 30px;
        align-items: end;
    }
}

.custom-blog-template
.flex_column
.av_textblock_section
.rt-container-fluid
.rt-row
.rt-grid-item {
    width: 100%;
}

.custom-blog-template .av_textblock_section .rt-container-fluid .rt-row {
    justify-content: space-between;
}

.custom-blog-template
.av_textblock_section
.rt-container-fluid
.rt-row
.rt-grid-item {
    width: 30%;
}

@media only screen and (max-width: 768px) {
    .custom-blog-template
    .av_textblock_section
    .rt-container-fluid
    .rt-row
    .rt-grid-item {
        width: 100% !important;
    }

    .custom-blog-template .rt-row {
        flex-direction: column !important;
    }

    .custom-blog-template
    .flex_cell_inner
    .flex_column:last-child
    .rt-row
    .rt-grid-item {
        width: 100% !important;
    }

    .custom-blog-template .blog-post .rt-row div:first-child {
        order: 1 !important;
    }

    .custom-blog-template .blog-post .rt-row div:last-child {
        order: 2 !important;
    }
}

/* COMMON */

.rt-detail .entry-title {
    font-weight: 700 !important;
    font-size: 20px !important;
}

.tpg-excerpt {
    color: black;
    font-size: 14px;
    font-weight: 400;
}

.flex_cell {
    padding-left: 0;
    padding-right: 0;
}

/*END OF COMMON*/



/* CONTACT FORM */
#questions {
    text-align: center;
}
