/************
** General **
*************/

.strong { font-weight: 800; }
.no-scroll {
    overflow: hidden;
}

.input {
    padding: 15px 15px 12px;
    border-radius: 10px;
    background-color: #fff;
    font-weight: 500;
    font-size: 16px;
    line-height: 90.5%;
    box-shadow: 4px 4px 30px rgba(0, 0, 0, 0.21);
    appearance: none;
    border: none;
}
.input::placeholder {
    color: #DCE3E8;
}
.input.invalid {
    outline: 2px solid #E64249;
}
.textarea {
    height: 132px;
    resize: none;
    line-height: 120%;
}

.checkbox {
    display: flex;
}
.checkbox input {
    position: absolute;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
.checkbox input:checked ~ .checkbox__field::after {
    visibility: visible;
}
.checkbox__field {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 3px;
}
.checkbox__field::after {
    visibility: hidden;
    content: '';
    display: block;
    position: absolute;
    width: 5px;
    height: 10px;
    border-bottom: 3px solid #e64249;
    border-right: 3px solid #e64249;
    transform: rotate(45deg) translate(-50%, -50%);
    transform-origin: 0 0;
    top: 45%;
    left: 50%;
}
.checkbox__caption {
    margin-left: 10px;
    user-select: none;
}

.link-line-red + span {
    color: #e64249;
}

.link-arrow > span {
    color: #e64249;
}

.bg-grey {
    background-color: #DCE3E8;
}

@media (max-width: 767.98px) {
    .page-header {
        padding-bottom: 16px;
    }
}

/*************
** Feedback **
**************/

.feedback {
    margin-top: -20px;
}
.card-feedback {
    padding: 30px 34px;
    box-shadow: 4px 4px 30px -7px rgba(0, 0, 0, 0.21);
    border-radius: 10px;
}
.card-feedback:nth-of-type(4n + 2) {
    background-color: #DCE3E8;
}
.card-feedback:nth-of-type(4n + 3) {
    background-color: #DCE3E8;
} 
.card-feedback__header {
    margin-bottom: 10px;
    font-size: 25px;
    font-weight: 800;
    line-height: 30px;
    color: #E64249;
}
.card-feedback__body {
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
}
.card-feedback__body > strong,
.card-feedback__body > b {
    font-weight: 800;
}
.card-feedback__body > p + p {
    margin-top: 15px;
}
@media (max-width: 767.98px) {
    .feedback {
        width: 100vw;
        margin-left: calc((100% - 100vw)/2);
        margin-bottom: 40px;
    }
}


/* Masonry */
@media (min-width: 768px) {
    .feedback .grid-sizer,
    .feedback .grid-item { width: 45.5%; }
    .feedback .gutter-sizer { width: 9%; }
    .feedback .grid-item { margin-bottom: 6%; }
}


/****************** 
** Feedback form **
******************/

.leave-feedback {
    padding: 35px 0 42px;
    margin-bottom: -40px;
}
.leave-feedback__title {
    max-width: 742px;
    margin-bottom: 25px;
    font-weight: 800;
    font-size: 45px;
    line-height: 95%;
}
.leave-feedback__row {
    display: flex;
}
.leave-feedback__left,
.leave-feedback__right {
    width: 50%;
}
.leave-feedback__left {
    padding-right: 50px;
}
.leave-feedback__right {
    padding-top: 84px;
    padding-left: 40px;
}
.leave-feedback__form > * {
    display: block;
    width: 100%;
}
.leave-feedback__form .input + .input {
    margin-top: 11px;
}
.leave-feedback__form-submit {
    display: flex;
    margin-top: 30px;
}
.leave-feedback__submit {
    width: 200px;
    flex: 0 0 auto;
    align-self: flex-start;
    border: none;
    margin-right: 17px;
    box-shadow: 4px 4px 55px rgba(0, 0, 0, 0.2);
}
.leave-feedback__submit:disabled {
    background-color: #F8C6C8;
    cursor: default;
}
.leave-feedback__condition {
    font-size: 12px;
    line-height: 14px;
    font-weight: 500;
    color: #8A8A8A;
}
.leave-feedback__condition a {
    color: #E64249;
    text-decoration: underline;
}
.leave-feedback__condition a:hover {
    text-decoration: none;
}
.leave-feedback__description {
    font-size: 20px;
    line-height: 25px;
    font-weight: 500;
}
.leave-feedback__description-paragraph {
    margin-bottom: 20px;
}
@media (max-width: 767.98px) {
    .leave-feedback {
        padding-top: 20px;
    }
    .leave-feedback__title {
        margin-bottom: 15px;
        font-weight: 600;
        font-size: 24px;
        line-height: 100%;
    }
    .leave-feedback__row {
        flex-wrap: wrap-reverse;
    }
    .leave-feedback__left,
    .leave-feedback__right {
        width: 100%;
        padding: 0;
    }
    .leave-feedback__description {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 19px;
    }
    .leave-feedback__description-paragraph {
        margin-bottom: 5px;
    }
    .leave-feedback__condition {
        margin-top: 2px;
        font-size: 10px;
        line-height: 12px;
    }
    .leave-feedback__submit {
        width: 132px;
        margin-right: 10px;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .leave-feedback__right {
        padding-top: 20px;
        padding-left: 0;
    }
    .leave-feedback__form-submit {
        flex-wrap: wrap-reverse;
        margin-top: 15px;
    }
    .leave-feedback__submit {
        width: 100%;
        margin-top: 10px;
    }
}


/************* 
** Carousel **
**************/

.carousel .owl-dot span {
    background: #DCE3E8;
    border: 4px solid #DCE3E8;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: inline-block;
}
.carousel .owl-dot.active span {
    background: #fff;
}
.carousel .owl-dot + .owl-dot {
    margin-left: 8px;
}
.carousel .card-feedback {
    max-height: 550px;
    overflow: auto;
}
.carousel .card-feedback::-webkit-scrollbar {
    display: none;
}
.carousel .card-feedback {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;
}
.carousel .card-feedback.overflow {
    padding-bottom: 0;
}
.carousel .card-feedback.overflow::after {
    content: '';
    display: block;
    position: sticky;
    width: 100%;
    height: 60px;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 15%, rgb(255, 255, 255) 90%);
    z-index: 1;
}
.carousel .owl-item:nth-of-type(even) > .card-feedback.overflow::after {
    background: linear-gradient(180deg, rgba(220, 227, 232, 0.5) 15%, rgb(220, 227, 232) 90%);
}
@media (max-width: 767.98px) {
    .carousel .card-feedback {
        max-height: 400px;
    }
}



.feedback-carousel {
    padding-bottom: 40px;
}
.feedback-carousel__wrapper {
    position: relative;
}
.feedback-carousel__slider .owl-dots {
    text-align: center;
}
.feedback-carousel__slider .owl-stage-outer {
    padding: 30px 0;
}
.feedback-carousel__slider .owl-item:nth-of-type(even) > article {
    background-color: #DCE3E8;
}
.feedback-carousel .link-arrow {
    margin-bottom: 20px;
    text-align: center;
}
.feedback-carousel__slider-prev,
.feedback-carousel__slider-next {
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    cursor: pointer;
}
.feedback-carousel__slider-prev svg,
.feedback-carousel__slider-next svg {
    width: 62px;
    height: 62px;
}
.feedback-carousel__slider-prev {
    left: -17px;
    transform: translateX(-100%);
}
.feedback-carousel__slider-next {
    right: -17px;
    transform: translateX(100%);
}

@media (min-width: 768px) {
    .feedback-carousel__slider .owl-item:not(.active) .card-feedback {
        box-shadow: none;
    }
}
@media (max-width: 767.98px) {
    .feedback-carousel .link-arrow {
        margin-bottom: 0;
    }
    .feedback-carousel__wrapper {
        width: 100vw;
        margin-left: calc((100% - 100vw)/2);
    }
}
@media (max-width: 991.98px) {
    .feedback-carousel__slider-prev,
    .feedback-carousel__slider-next {
        display: none;
    }
}


/***************** 
** Single story **
*****************/

.single-story__disclaimer {
    max-width: 650px;

    padding: 28px 47px;
    margin: 36px auto 18px;

    background: #FFFFFF;
    box-shadow: 3px 3px 20px -5px rgba(0, 0, 0, 0.21);
    border-radius: 6px;

    font-size: 18px;
    line-height: 130%;
    text-align: center;
}

.single-story__disclaimer strong {
    font-weight: 800;
}

.single-story__disclaimer-subject {
    font-size: 22px;
}

.single-story__meta {
    display: flex;
    margin-bottom: 2em;
    font-size: 14px;
}

.single-story__meta-category {
    color: #E64249;
}

.single-story__meta-date {
    color: #808080;
}

.single-story__meta-date::before {
    content: '●';
    margin: 0 5px;
    color: #bdbdbd;
}

.single-story__main-info .page-header-title {
    margin-bottom: 0.5em;
}

.single-story__bottom-back {
    margin: 1.5em 0 0.5em;
}

.single-story__top-back {
    margin-bottom: 3em;
}

.single-story__top-back a, 
.single-story__bottom-back a {
    font-weight: 400;
}

@media (max-width: 767.98px) {
    .single-story__main-info .page-header-title {
        margin-bottom: 1em;
    }

    .single-story__disclaimer {
        padding: 16px 20px;
        margin: 24px auto 33px;
        font-size: 18px;
    }

    .single-story__top-back {
        margin-bottom: 1.5em;
    }
}


/************************* 
** Front Page **
**************************/

.articles-two-rows__item .article-all-block-link {
    display: block;
    height: 100%;
}

.articles-two-rows__item .article-all-block-link .flex-wrapper {
    height: 100%;
}

.articles-two-rows__item_text {
    display: flex;
    flex-direction: column;
}

.articles-two-rows__item_text_tags {
    margin-bottom: 0;
}

.articles-two-rows__item_text_title:not(:last-child) {
    margin-bottom: 20px;
}

.articles-two-rows__item_text_date {
    margin-top: auto;
    font-size: 14px;
    color: #9e9e9e;
}

@media (max-width: 767.98px) {
    .home-banner {
        padding-top: 30px;
    }
    .articles-two-rows__item_text_tags {
        margin-bottom: 10px;
    }
}

/* Gutenberg accordion block */

.c-accordion__item {
    border: 2px solid #f8c6c8;
    margin-bottom: 24px;
    border-radius: 8px;
    position: relative;
}

.c-accordion__item.is-open {
    border-color: #e64249;
}

.c-accordion__title {
    cursor: pointer;
    padding: 11px 60px 11px 16px;
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    outline: none !important;
}

.c-accordion__title::after {
    color: #e64249;
    font-weight: 600;
    font-size: 32px;
    line-height: 100%;
    position: absolute;
    right: 24px;
}

.c-accordion__content {
    padding: 11px 60px 11px 16px;
}

.expert-comment__author .wp-block-media-text__media {
    position: relative;
    width: 125px !important;
    height: 125px !important;
    border-radius: 50%;
    overflow: hidden;
}

.expert-comment__author .wp-block-media-text__media img {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transform: translateY(-50%);
}

.expert-comment__author .wp-block-media-text__content {
    padding: 0;
}

.expert-comment__name {
    margin-bottom: 5px !important;
    font-size: 20px !important;
}

.expert-comment__about {
    font-size: 16px !important;
    line-height: 125% !important;
    color: #808080;
}

.expert-comment__text {
    margin-top: 1em;
}

.expert-comment__text p {
    margin-bottom: 24px;
}

@media (max-width: 767.98px) {
    .c-accordion__title {
        font-size: 24px !important; 
        line-height: 130% !important;
    }

    .c-accordion__content {
        padding-right: 16px;
    }

    .expert-comment__author {
        display: block !important;
    }

    .expert-comment__author .wp-block-media-text__media {
        width: 80px !important;
        height: 80px !important;
    }

    .expert-comment__text {
        font-size: 16px;
        line-height: 120%;
    }

    .expert-comment__text p {
        margin-bottom: 16px;
        font-size: 16px !important;
        line-height: 130% !important;
    }
}


/*******************************************************************************
*** CONTACT BLOCK **************************************************************
*******************************************************************************/
.contact-block {
    padding: 60px 0;
}
.contact-block .button-small {
    min-width: 200px;
}
.contact-block__row {
    display: flex;
}
.contact-block__caption {
    flex: 0 0 60%;
    padding-right: 40px;
}
.contact-block__caption-title {
    margin-bottom: 18px;
    font-weight: 800;
    font-size: 48px;
    line-height: 110%;
} 
.contact-block__caption p {
    margin-bottom: 14px;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
}
.contact-block__caption p:last-child {
    margin-bottom: 0;
}
.contact-block__caption strong {
    font-weight: 800;
}
.contact-block__caption .button-small {
    margin-top: 10px;
    text-align: center;
}
.contact-block__form {
    display: flex;
    align-items: flex-end;
    flex: 0 0 40%;
}
.contact-block__form .contact-block__caption-title {
    display: none;
}
.contact-block__form textarea {
    height: 200px;
}
.contact-block__form input::placeholder,
.contact-block__form textarea::placeholder {
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    color: #8A8A8A;
}
.contact-block__form-condition {
    margin: 15px 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    color: #8A8A8A;
}
.contact-block__form-submit button:disabled {
    cursor: default;
}
@media (max-width: 767.98px) {
    .grecaptcha-badge {
        display: none !important;
    }
    .contact-block {
        padding: 33px 0;
    }
    .contact-block__row {
        flex-wrap: wrap;
    }
    .contact-block__caption {
        flex-basis: 100%;
        padding-right: 0;
        order: 2;
    }
    .contact-block__caption-title {
        font-size: 24px;
        line-height: 101%;
    } 
    .contact-block__caption .contact-block__caption-title {
        display: none;
    }
    .contact-block__caption p:last-child {
        text-align: center;
    }
    .contact-block__form {
        flex-basis: 100%;
        order: 1;
        flex-wrap: wrap;
        margin-bottom: 28px;
    }
    .contact-block__form .contact-block__caption-title {
        display: block;
        flex-basis: 100%;
        max-width: 315px;
    }
    .contact-block__form-submit {
        text-align: center;
    }
}


/*******************************************************************************
*** DONATE BOX *****************************************************************
*******************************************************************************/

.donate-box {
    --accent-color: #1624B6;
    padding: 27px 40px;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    text-align: center;
}
.donate-box__title {
    margin-bottom: 14px;
    font-weight: 800;
    font-size: 24px;
    line-height: 110%;
    color: var(--accent-color);
}
.donate-box__text {
    margin-bottom: 16px;
}
.donate-box__text p {
    margin-bottom: 0;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 110% !important;  
}
.donate-box__text p:not(:last-child) {
    margin-bottom: 10px;
}
.donate-box__text strong {
    font-weight: 800;
}
.donate-box__action a {
    border-radius: 10px;
    font-size: 16px;
    padding: 10px 12px !important;
    color: #ffffff !important;
    font-weight: 700;
    display: inline-block;
    background-color: var(--accent-color);
    border-bottom: none;
    text-decoration: none !important;
    transition: all 0.45s;
}


/*******************************************************************************
* Misc
*******************************************************************************/
.legal-aid-subheader .typeform-application {
    margin-top: 20px;
}