.node-type-sopa-blog,
.sopa-all-blogs {
    .main_wrapper {
        main.container {
            aside {
                padding-top: unset;
            }
            article.node {
                max-width: 1410px;
                width: 100%;
                margin: auto;
                margin-top: 48px;
                h1.sopa-blog-title {
                    margin: 20px 0;
                    padding: 0 10px;
                    > a {
                        font-size: 50px;
                        line-height: 52px;
                        color: rgb(33 84 63);
                        @media screen and (max-width: 600px) {
                            font-size: 44px;
                            line-height: 50px;
                        }
                    }
                    .align-right div img, 
                    .align-right div img {
                        margin-top: 0;
                    }
                }
                .sopa-blog-content {
                    padding: 0 10px;
                    .intro-text {
                        line-height: 22px;
                        @media screen and (max-width: 600px) {
                            line-height: 25px;
                        }
                    }                    
                }

                .paragraph--type--sopa-blog-content-buttons {
                    margin: 40px 0;
                    .sopa-blog-content-buttons {
                        display: flex;
                        flex-direction: row;
                        justify-content: center;
                        gap: 20px;
                        @media screen and (max-width: 600px) {
                            flex-direction: column;
                        }
                        .sopa-blog-content-button {
                            a {
                                display: block;
                                text-align: center;
                                background-color: rgb(33 84 63);
                                border: 2px solid rgb(33 84 63);
                                color: #fff;
                                padding: 10px;
                                text-transform: uppercase;
                                transition: 200ms all ease-in-out;
                                &:hover {
                                    border: 2px solid rgb(33 84 63);
                                    background-color: #fff;
                                    color: rgb(33 84 63);
                                }
                            }
                        }
                    }
                }
                .paragraph--type--sopa-blog-content-rte {
                    h2 {
                        font-size: 36px !important;
                        line-height: 42px !important;
                        color: rgb(33 84 63);
                        @media screen and (max-width: 600px) {
                            font-size: 30px;
                            line-height: 38px;
                        }
                    }
                    h3 {
                        font-size: 30px;
                        line-height: 40px;
                        color: rgb(33 84 63);
                        font-family: bookmania__bold;
                        font-weight: bold;
                        @media screen and (max-width: 600px) {
                            font-size: 30px;
                            line-height: 34px;
                        }
                    }
                    h4 {
                        font-size: 26px;
                        color: rgb(33 84 63);
                        font-family: bookmania__bold;
                        font-weight: bold;
                    }
                    h5 {
                        color: rgb(33 84 63);
                        font-family: bookmania__bold;
                        font-weight: bold;
                    }
                    ul, ol {
                        margin-bottom: 20px;
                        padding-left: 24px;
                        li {
                            margin-left: 20px;
                        }
                    }
                    p {
                        a {
                            color: #00558C;
                            &:hover {
                                text-decoration: underline;
                            }
                        }
                        @media screen and (max-width: 600px) {
                            line-height: 25px;
                        }
                    }
                    article {
                        img {
                            margin-top: 0 !important;
                        }
                        &.align-right {
                            @media screen and (max-width: 600px) {
                                float: unset;
                                margin: 24px 0;
                                img {
                                    width: 100%;
                                    height: auto;
                                }
                            }
                        }
                    }
                }

                .recent-blog-posts {
                    background-color: #E6F4FB;
                    padding: 48px 24px;
                    margin: 24px 0;
                    @media screen and (max-width: 1023px) {
                        padding: 16px 8px;
                        margin: 12px 0;
                    }
                    h3 {
                        font-size: 30px;
                        line-height: 40px;
                        color: rgb(33 84 63);
                        font-family: bookmania__bold;
                        font-weight: bold;
                        text-align: center;
                        @media screen and (max-width: 600px) {
                            font-size: 30px;
                            line-height: 34px;
                        }
                    }
                    .views-element-container {
                        margin: 0;
                        .recent-blog-posts {
                            display: flex;
                            flex-direction: row;
                            justify-content: center;
                            gap: 16px;
                            @media screen and (max-width: 1023px) {
                                flex-direction: column;
                                align-items: center;
                            }
                            .views-row {
                                max-width: 350px;
                                width: 100%;
                                height: auto;
                                @media screen and (max-width: 1023px) {
                                    max-width: 350px;
                                }
                                .views-field-nothing {
                                    .field-content {
                                        .sopa-blog-teaser {
                                            position: relative;
                                            .sopa-blog-teaser-image {
                                                position: relative;
                                                img {
                                                    width: 100%;
                                                    height: auto;
                                                }
                                            }
                                            .sopa-blog-teaser-title {
                                                position: absolute;
                                                bottom: 0;
                                                width: 100%;
                                                height: 30%;
                                                background-color: rgba(0,0,0,.5);
                                                a {
                                                    display: inline-block;
                                                    width: 100%;
                                                    padding: 6px;
                                                    text-align: center;
                                                    color: #fff;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }


                .sopa_blog_slate_form {
                    max-width: 800px;
                    width: calc(100% - 10px);
                    height: auto;
                    margin: auto;
                    background-color: #2A4938;
                    padding: 60px;
                    h3 {
                        font-size: 30px;
                        line-height: 40px;
                        font-family: bookmania__bold;
                        font-weight: bold;
                        color: #fff;
                        text-align: center;
                    }
                    form {
                        .form_container {
                            .form_pages {
                                .form_page {
                                    .form_question {
                                        label {
                                            color: #fff;
                                        }
                                        .form_responses {
                                            input {
                                                width: 100%;
                                            }
                                            select {
                                                width: 100%;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        .action {
                            display: flex;
                            flex-direction: row;
                            justify-content: center;
                            padding: 20px 0;
                            button {
                                padding: 10px 15px;
                                background-color: #DD9E8A;
                                text-transform: uppercase;
                            }
                        }
                    }
                    > p {
                        text-align: center;
                        color: #fff;
                    }
                }
            }
        }
    }
}

.sopa-all-blogs-view {
    header {
        h2 {
            font-size: 36px !important;
            line-height: 42px !important;
            margin: unset !important;
            text-align: center !important;
        }

    }
    form.views-exposed-form {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 20px;
        .form-item-category {
            display: flex;
            flex-direction: row;
            > label {
                padding: 15px 0;
                display: block;
                min-width: 150px;
            }
        }
        .form-select {
            padding: unset;
            margin: unset;
            min-width: unset;
            width: unset;
            min-width: unset !important;
            width: 100%;
        }
        .form-actions {
            min-width: unset !important;
            input.form-submit {
                padding: unset;
                margin: unset;
                min-width: unset;
                width: unset;
                border: 2px solid rgb(33 84 63);
                background-color: rgb(33 84 63);
                color: #fff;
                padding: 15px;
                transition: 200ms all ease-in-out;
                &:hover {
                    color: rgb(33 84 63) !important;
                    background-color: #fff !important;
                }
            }
        }
    }
}

article.sopa-blog-view-teaser {
    .node-content {
        .flex {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 20px;
            @media (max-width: 1023px) {
                flex-direction: column;
            }
            .image {
                max-width: 275px;
                width: 100%;
                height: auto;
                img {
                    width: 100%;
                }
                @media (max-width: 1023px) {
                    max-width: unset;
                    width: 100%;
                }
            }
            .text {
                width: 100%;
                h3 {
                    a.sopa-node-title {
                        text-decoration: none;
                        &:hover {
                            text-decoration: underline;                                
                        }
                        span {
                            font-size: 30px;
                            line-height: 40px;
                            font-family: bookmania__bold;
                            font-weight: bold;
                            color: #00558C;
                        }
                    }
                }
            }
        }
    }
}

.block-type-sopa-blog-teasers {
    padding: 20px 0;
    width: 100%;
    background-color: #E6F4FB;
    h2.block-title {
        text-align: center;
        color: rgb(33 84 63);
        font-family: bookmania__bold;
        font-size: 36px !important;
        line-height: 42px !important;
        padding: 20px 0;
        margin: 0 auto;
    }
    .sopa-blog-teasers-view-wrapper {
        .views-element-container {
            margin: unset;
            .sopa-blog-component-teasers {
                width: 100%;
                display: flex;
                flex-direction: row;
                justify-content: center;
                gap: 20px;
                .views-row {
                    max-width: 220px;
                    width: 100%;
                    article.sopa-component-view-teaser {
                        max-width: 220px;
                        width: 100%;
                        height: auto;
                        .node-teaser-content {
                            position: relative;
                            .image {
                                img {
                                    width: 100%;
                                }
                            }
                            .text {
                                position: absolute;
                                bottom: 0;
                                background-color: rgba(0,0,0,.5);
                                padding: 5px;
                                text-align: center;
                                color: #fff;
                            }
                        }
                    }
                }   
            }   
        }  
    } 
}

.page-wrapper-alpine {
    .main_wrapper {
        main.taxonomy-term-view-results {
            max-width: 100%;
            width: 100%;
            margin-top: 60px;
            max-width: 1180px;
            width: calc(100% - 20px);
            margin: auto !important;
            margin-top: 100px !important;
            h2 {
                font-size: 36px !important;
                line-height: 42px !important;
                font-weight: 300 !important;
                line-height: 1.2 !important;
                margin: unset !important;
                margin-bottom: 1rem !important;
                text-align: center !important;
                color: rgb(33 84 63) !important;
            }
            .taxonomy-term-view-page {
                .views-element-container {
                    margin-top: 0;
                    .sopa-taxonomy-teaser-node {
                        width: 100%;
                        margin-bottom: 60px;
                        .flex {
                            display: flex;
                            flex-direction: row;
                            justify-content: flex-start;
                            flex-wrap: wrap;
                            gap: 20px;
                            .image {
                                max-width: 275px;
                                width: 100%
                            }
                            .content {
                                max-width: 100%;
                                width: calc(100% - 295px);
                                h3 {                                    
                                    margin: unset !important;
                                    font-size: 30px Imp !important;
                                    line-height: 40px !important;
                                    font-family: bookmania__bold !important;
                                    font-weight: bold !important;
                                    color: #00558C !important;
                                    text-align: unset;
                                    a {
                                        &:hover {
                                            text-decoration: underline;
                                        }
                                    }
                                }
                                .description {
                                    .date {
                                        margin-bottom: 20px;
                                    }
                                    margin-bottom: 20px;
                                }
                                .termslist {
                                    padding-bottom: 10px;
                                    ul {
                                        display: flex;
                                        flex-direction: row;
                                        justify-content: flex-start;
                                        flex-wrap: wrap;
                                        margin: 0;
                                        padding: 0;
                                        li {
                                            margin: 0;
                                            padding: 0;
                                            margin-right: 10px;
                                            line-height: 1.1;
                                            &:after {
                                                content: ", ";
                                            }
                                            a {
                                                font-family: freight-sans-pro;
                                                font-size: 16px;
                                                line-height: 1.1;
                                                list-style: none;
                                                text-decoration: underline;
                                            }
                                        }
                                    }
                                }
                            }
                            @media screen and (max-width: 767px) {
                                flex-direction: column;                            
                                .image {
                                    max-width: unset;
                                    width: 100%;
                                }
                                .content {
                                    max-width: unset;
                                    width: 100%;
                                }
                            }
                        }
                    }
                }
            }
        }   
    }
}