/* Shared cases and reviews presentation on service pages. */
.cases-service-wrapper {
    padding-top: 50px;
    padding-bottom: 20px;
}

.cases-wrapper h2 {
    margin-bottom: 40px;
}

.cases-titles-wrapper {
    display: flex;
    margin: 30px 0 20px;
    padding: 0 15px;
}

.cases-titles-wrapper .case-title {
    color: #838a95;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.cases-titles-wrapper .case-title:nth-child(1) { width: 60%; }
.cases-titles-wrapper .case-title:nth-child(2),
.cases-titles-wrapper .case-title:nth-child(3) { width: 14.8%; text-align: center; }
.cases-titles-wrapper .case-title:nth-child(4) { width: 10.4%; text-align: center; }

.case-wrapper {
    position: relative;
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    background-color: #fff;
    transition: border-color .1s;
}

.case-wrapper:hover { border-color: #838a95; }
.case-wrapper .case__left { display: flex; align-items: flex-start; width: 60%; }
.case-wrapper .case__right { display: flex; align-items: center; justify-content: space-between; width: 40%; }
.case-wrapper .case__icon {
    position: relative;
    min-width: 40px;
    height: 44px;
    margin-right: 15px;
    border-radius: 5px;
    background-color: #f3f6f8;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 18px;
}

.case-wrapper .visa-tourism { background-image: url('/account/static/website/img/icon-travelling-photos.png'); }
.case-wrapper .visa-visitor { background-image: url('/account/static/website/img/icon-friends.png'); }
.case-wrapper .visa-study { background-image: url('/account/static/website/img/icon-education.png'); }
.case-wrapper .visa-study-extension { background-image: url('/account/static/website/img/icon-calendar.png'); }
.case-wrapper .visa-pgwp { background-image: url('/account/static/website/img/icon-pen.png'); }
.case-wrapper .visa-owp { background-image: url('/account/static/website/img/icon-resume-hands.png'); }
.case-wrapper .visa-cuaet { background-image: url('/account/static/website/img/category/visa-cuaet.png?v=2'); }
.case-wrapper .icons-digital { background-image: url('/account/static/website/img/icon-laptop.png'); }
.case-wrapper .icons-work { background-image: url('/account/static/website/img/icon-work.png'); }
.case-wrapper .icons-bag { background-image: url('/account/static/website/img/icon-bag.png'); }
.case-wrapper .icons-audit { background-image: url('/account/static/website/img/icon-audit.png'); }
.case-wrapper .express-entry,
.case-wrapper .icons-profile { background-image: url('/account/static/website/img/icon-profile.png'); }
.case-wrapper .icons-resume { background-image: url('/account/static/website/img/icon-resume.png?v=3'); }
.case-wrapper .icons-computer-search { background-image: url('/account/static/website/img/icon-computer-search.png'); }
.case-wrapper .icons-letter { background-image: url('/account/static/website/img/icon-letter.png'); }
.case-wrapper .icon__wes { background-image: url('/account/static/website/img/wes-logo.svg'); background-size: 70% auto; }

.case-wrapper .case__icon-australia::after {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff url('/account/static/website/img/australia.svg') center/cover no-repeat;
    box-shadow: 0 1px 3px rgba(30, 30, 30, .25);
    content: '';
}

.case-wrapper .case__title {
    display: flex;
    align-items: center;
    height: 44px;
    padding-right: 5px;
    color: #3a3e59;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.case-wrapper .case__title::before { position: absolute; inset: 0; content: ''; }
.case-wrapper .case__date { width: 37%; color: #838a95; font-size: 13px; font-weight: 500; text-align: center; }
.case-wrapper .case__time { width: 37%; color: #3a3e59; font-size: 22px; font-weight: 500; text-align: center; }
.case-wrapper .case__time span { font-size: 12px; font-weight: 500; }
.case-wrapper .case__status {
    position: relative;
    z-index: 1;
    width: 26%;
    padding: 5px 0;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.case__status-success { background-color: #dffae6; color: #4e7666; }
.case__status-process { background-color: #faf5df; color: #bba856; }
.case__status-reject { background-color: #fadfdf; color: #764e4e; }

.button-link-more {
    display: table;
    width: 220px;
    margin: 20px auto 15px;
    padding: 16px 0 16px 45px;
    border: 1px solid #3a3e59;
    border-radius: 5px;
    color: #3a3e59;
    font-weight: 500;
    text-decoration: none;
}

.button-link-more b { margin-left: 8px; color: #3a3e59; font-size: 11px; }
.button-link-more:hover { color: #252525; }
.button-link-more:hover b { padding-left: 3px; }

.reviews-container { position: relative; padding-top: 70px; }
.reviews-container .reviews__header-wrap { display: flex; justify-content: space-between; }
.reviews-container h2 { width: 40%; }
.reviews-container .header-wrap__text { width: 50%; padding-top: 5px; }
.reviews-container .header-wrap__text p { color: #3a3e59; font-size: 20px; line-height: 32px; }
.services__reviews .container { padding: 0 45px; }
.services__reviews .reviews__header-wrap { margin-bottom: 70px; padding-bottom: 35px; border-bottom: 1px solid #e7e9ec; }

.review-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e7e9ec;
}

.review-wrapper .review__name { display: flex; align-items: center; width: 30%; }
.review-wrapper .name__photo {
    width: 54px;
    height: 54px;
    margin-right: 20px;
    border-radius: 50%;
    color: #838a95;
    font-size: 27px;
    font-weight: 700;
    line-height: 54px;
    text-align: center;
}

.review-wrapper .name__text { font-weight: 500; }
.review-wrapper .review__content { width: 60%; }
.review-wrapper .content__head { display: flex; justify-content: space-between; }
.review-wrapper .head__date { color: #838a95; font-size: 15px; }
.review-wrapper .content__tags { display: inline-flex; flex-wrap: wrap; width: 80%; margin-bottom: 10px; }
.review-wrapper .tags__el {
    display: table;
    margin: 0 8px 8px 0;
    padding: 5px 10px;
    border: 1px solid #e7e9ec;
    border-radius: 4px;
    background-color: #fff;
    color: #3a3e59;
    font-size: 14px;
    text-decoration: none;
}

.review-wrapper .tags__el:hover { border-color: #838a95; color: #252525; }
.review-wrapper .tags__service::before { margin-right: 2px; color: #838a95; content: '#'; }
.review-wrapper .tags__service-current,
.review-wrapper .tags__service-current:hover {
    border-color: #e7e9ec;
    color: #3a3e59;
    cursor: default;
}
.review-wrapper .tags__el .icon-arrow-right { margin-left: 3px; color: #838a95; font-size: 10px; }
.review-wrapper .content__text { color: #3a3e59; font-size: 16px; line-height: 25px; white-space: pre-line; }
.review-wrapper .content__more {
    display: table;
    margin-bottom: 15px;
    border-bottom: 1px dashed #cbcfd3;
    color: #56606e;
    font-size: 15px;
    cursor: pointer;
}

.review-wrapper .content__hide { display: none; margin-top: -15px; font-weight: 300; }
.review-wrapper .content__images { display: flex; justify-content: space-between; margin-top: 15px; }
.review-wrapper .content__images img { display: block; width: 100%; margin-bottom: 7px; border: 1px solid #e7e9ec; border-radius: 5px; }
.review-wrapper .content__images figcaption { color: #838a95; font-size: 14px; line-height: 20px; }

.review-image-width-33 { width: 33%; }
.review-image-width-35 { width: 35%; }
.review-image-width-40 { width: 40%; }
.review-image-width-45 { width: 45%; }
.review-image-width-48 { width: 48%; }
.review-image-width-50 { width: 50%; }
.review-image-width-55 { width: 55%; }
.review-image-width-60 { width: 60%; }
.review-image-width-62 { width: 62%; }
.review-image-width-70 { width: 70%; }
.review-image-width-80 { width: 80%; }
.review-image-width-90 { width: 90%; }
.review-image-width-100 { width: 100%; }

.gradient-1 { background: linear-gradient(to bottom right, #f9e7fe, #e2e1ff); }
.gradient-2 { background: linear-gradient(to bottom right, #ebfee7, #ffe1e1); }
.gradient-3 { background: linear-gradient(to bottom right, #fee7f9, #e1fff7); }
.gradient-4 { background: linear-gradient(to bottom right, #f3e7fe, #ffe1e1); }
.gradient-5 { background: linear-gradient(to bottom right, #f7dada, #e9e1ff); }
.gradient-6 { background: linear-gradient(to bottom right, #daf7f2, #e9e1ff); }
.gradient-7 { background: linear-gradient(to bottom right, #dae1f7, #fff2e1); }
.gradient-8 { background: linear-gradient(to bottom right, #eceff9, #eeccb3); }
.gradient-9 { background: linear-gradient(to bottom right, #eceff9, #b3cdee); }
.gradient-10 { background: linear-gradient(to bottom right, #eceff9, #ceb3ee); }
.gradient-11 { background: linear-gradient(to bottom right, #eff9ec, #c3eeb3); }
.gradient-12 { background: linear-gradient(to bottom right, #f9f0ec, #c3e8f0); }
.gradient-13 { background: linear-gradient(to bottom right, #edecf9, #f0c3de); }
.gradient-14 { background: linear-gradient(to bottom right, #f9ecec, #c3e8f0); }
.gradient-15 { background: linear-gradient(to bottom right, #c0b9f2, #f4fbfd); }

@media (max-width: 760px) {
    .cases-service-wrapper { padding-top: 40px; padding-bottom: 30px; }
    .cases-wrapper h2 { margin-bottom: 20px; }
    .cases-titles-wrapper { display: none; }
    .case-wrapper { display: block; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(30, 30, 30, .04); }
    .case-wrapper .case__left { align-items: center; width: 100%; }
    .case-wrapper .case__right { width: 100%; margin-top: 30px; }
    .case-wrapper .case__icon { min-width: 36px; height: 36px; margin-right: 13px; background-size: auto 16px; }
    .case-wrapper .case__title { height: auto; }
    .case-wrapper .case__date,
    .case-wrapper .case__time { width: auto; text-align: left; }
    .case-wrapper .case__date::after { display: block; color: #838a95; font-size: 10px; font-weight: 400; content: 'Дата подачи'; }
    .case-wrapper .case__time::after { display: block; color: #838a95; font-size: 10px; font-weight: 400; content: 'Рассмотрение'; }
    .case-wrapper .case__status { width: auto; height: 33px; margin-left: auto; padding: 0 12px; line-height: 33px; }
    .button-link-more { display: block; width: 100%; padding: 16px 0; text-align: center; }

    .reviews-container { padding: 40px 0 30px; }
    .reviews-container .reviews__header-wrap { display: block; }
    .reviews-container h2,
    .reviews-container .header-wrap__text { width: 100%; }
    .reviews-container .header-wrap__text { margin-top: 10px; padding-top: 0; }
    .reviews-container .header-wrap__text p { font-size: 16px; font-weight: 300; line-height: 22px; }
    .services__reviews .container { padding: 0 15px; }
    .services__reviews .reviews__header-wrap { margin-bottom: 0; padding-bottom: 35px; border-bottom: 0; }
    .review-wrapper { display: block; margin-bottom: 20px; padding: 15px; border: 0; border-radius: 10px; background-color: #fff; box-shadow: 0 5px 30px rgba(30, 30, 30, .1); }
    .review-wrapper .review__name { width: 100%; margin-bottom: 20px; }
    .review-wrapper .name__photo { width: 44px; height: 44px; margin-right: 15px; font-size: 20px; line-height: 44px; }
    .review-wrapper .review__content { position: relative; width: 100%; }
    .review-wrapper .content__head { display: block; }
    .review-wrapper .head__date { position: absolute; top: -55px; right: 0; font-size: 12px; font-weight: 300; }
    .review-wrapper .content__tags { display: flex; width: 100%; margin-bottom: 12px; }
    .review-wrapper .content__text { font-weight: 300; line-height: 23px; }
    .review-wrapper .content__more { margin-top: -5px; }
    .review-wrapper .content__images { display: block; }
    .review-wrapper .content__images figure { width: 100%; margin-top: 20px; }
    .review-wrapper .content__images img { width: auto; max-width: 100%; }
}
