/**
 * teacher-search-result-intl.css
 *
 * International (LTR) counterpart of teacher-search-result.css.
 *
 * This is a STANDALONE stylesheet — the intl deployment loads THIS file instead of
 * (not in addition to) teacher-search-result.css. See the limudnaim_is_intl_site()
 * branch in template_preprocess_teacher_search_result() (teacher_search.module).
 *
 * It is a fork of the Israeli (RTL) stylesheet with two differences:
 *   1. Every direction-dependent box-model rule is expressed with CSS logical
 *      properties (margin-inline-*, padding-inline-*, inset-inline-*, float:inline-*,
 *      text-align:start/end) so the card mirrors correctly under LTR — and stays
 *      direction-neutral if ever served under RTL.
 *   2. Properties with no logical form (transform rotations, the corner-ribbon
 *      triangle border colours) carry the LTR-mirrored value; hardcoded CSS `content`
 *      strings are in English.
 *
 * Keep this file in sync with teacher-search-result.css when non-directional rules
 * (colours, sizes, backgrounds) change there.
 */
.profile{
    position: relative;
    padding: 15px;
    background-color: #f7f7f7;
    border-radius: 5px ;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    width: 100%;
    margin: 20px 0 22px;
    min-height: 180px;
}
.profile:hover{
    background-color: #eee !important;
}
.quote {
    color: #ff9c01;
    font-size: 2rem;
    line-height: 1rem;
    height: 1rem;
    display: inline-block;
    vertical-align: bottom;
    text-align: center;
    padding: 0 1px;
}

.search-result-graduation-hat {
    inset-inline-start: -20px;
    position: absolute;
    top: -70px;
    font-size: 102px;
    width: auto!important;
    height: auto!important;
    display: block!important;
}

.search-result-graduation-hat:before{
    transform: rotate(-30deg);
}

.master .search-result-graduation-hat{
    color: #e6ac00;
}

.expert .search-result-graduation-hat{
    color: #D3D3D3;
}

.rank-title-wrapper {
    text-align: center;
    font-size: 20px;
    padding: 10px;
    color: white;
    position: relative;
}
.rank-title-wrapper .icon-badge{
    font-size: 32px;
    vertical-align: middle;
    position: absolute;
    inset-inline-start: 8px;
    top: 4px;
    display: block;
    height: auto;
    width: auto;
}
.rank-title-wrapper .rank-help {
    position: absolute;
    bottom: 2px;
    inset-inline-end: 2px;
    width: 18px;
    height: 18px;
    border: 1px solid white;
    border-radius: 50%;
    font-size: 13px;
    z-index: 1;
    text-align: center;
    display: inline-block;
}
.master .rank-title-wrapper .rank-help:after {
    content: 'The highest teacher rating on the site. Excellent student reviews, a high number of repeat lessons, fast response and more.';
}
.expert .rank-title-wrapper .rank-help:after {
    content: 'A teacher with excellent student reviews. Fast response and a high percentage of satisfied, returning students.';
}
.rank-title-wrapper .rank-help:after {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 2px;
    width: 250px;
    top: 100%;
    inset-inline-start: 50%;
    z-index: 100;
    opacity: 0;
}
.rank-title-wrapper .rank-help:hover:after, .rank-title-wrapper .rank-help:active:after {
    opacity: 1;
}
.rank-title-wrapper .icon-badge:before, .rank-title-wrapper .rank-help:before {
    padding-inline-end: 0;
}
.master .rank-title-wrapper{
    background-color: #e6ac00;
}

.expert .rank-title-wrapper{
    background-color: #D3D3D3;
}
.recommended-label {
    width: 115px;
    height: 115px;
    overflow: hidden;
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    direction: ltr;
}
.recommended-label span{
    text-align: center;
    background: #007cdc none repeat-x 0 0;
    position: absolute;
    display: block;
    padding: 7px 0;
    width: 150px;
    color: #fff;
    -webkit-transform: rotate(45deg);
    -moz-transform:    rotate(45deg);
    -ms-transform:     rotate(45deg);
    -o-transform:      rotate(45deg);
    transform: rotate(45deg);
    top: 20px;
    inset-inline-end: -39px;
}
.recommended-label:before, .recommended-label:after {
    content: "";
    border: 5px solid transparent;
    position:absolute;
    z-index: 0;
}
.recommended-label:before{
    inset-inline-end: 96px;
    top: -5px;
    border-bottom-color: #007cdc;
}
.recommended-label:after{
    inset-inline-end: -5px;
    top: 96px;
    border-left-color: #007cdc;
}
.profile .profile-badge{
    vertical-align: middle;
    border-radius: 50px;
}
.profile.online .profile-badge{
    background-color: #96d1799e;
}
.profile.normal .profile-badge, .profile.frontal .profile-badge{
    background-color: #ff900152;
}
.profile .profile-badge.content-author-profile-badge{
    background-color: #C8EDFC;
}
.profile .profile-label:after{
    content: "Online lesson";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    width: 113px;
    background-color: #2EB3F1;
    border-start-start-radius: 5px;
    border-start-end-radius: 0;
    border-end-end-radius: 5px;
    border-end-start-radius: 0;
    padding: 2px;
}
.profile .profile-top-row,.profile .profile-key-sentence, .profile .profile-details, .profile .profile-teaching-fields,
.profile .profile-cities {
    margin-inline-start: 170px;
}
.profile .profile-img{
    float: left; /* fallback for browsers without float:inline-start */
    float: inline-start;
    border: 2px solid #ffffff;
    border-radius: 5px;
}
.profile .profile-img img{
    border-radius: 0;
    vertical-align: middle;
}
.profile .profile-title {
    font-size: 24px;
    margin-bottom: 10px;
    width: 100%;
}
.profile .profile-title a{
    color: inherit;
    display: flex;
    flex-direction: column;
}
.profile .profile-title-prefix {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    margin-bottom: -8px;
}

.profile .profile-key-sentence{
    font-size: 18px;
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
}
.profile .profile-key-sentence, .profile .profile-title, .profile .profile-extra-text {
    color: #4a4a4a;
}
.profile .profile-left-pane, .profile .profile-details{
    color: #000;
}
.profile .profile-teaching-fields, .profile .profile-cities{
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile .profile-details, .profile .profile-teaching-fields, .profile .profile-cities{
    font-size: 14px;
}
.profile .profile-details span{
    margin-inline-end: 10px;
    display: inline-block;
}
.profile-left-pane-row {
    direction: ltr;
}
.profile-top-row {
    display: table;
    margin-inline-end: 10px;
    margin-bottom: 10px;
}
.profile-top-row .profile-top-row-cell{
    display: table-cell;
    vertical-align: top;
}
.profile-left-pane {
    white-space: nowrap;
    text-align: center;
}
.profile-left-pane .profile-reviews,.profile-left-pane .profile-lessons-count,.profile-left-pane .profile-price{
    padding-inline-end: 20px;
}
.sub-top{
    font-size: 22px;
}
.sub-top{
    display: block;
}
.sub-bottom{
    display: inline-block;
    vertical-align: top;
}
.profile-lessons-count .sub-bottom{
    width: 50px;
}
.profile-reviews, .sub-bottom{
    font-size: 12px;
}
.profile .profile-reviews .fivestar-widget-static .star{
    float: none;
    display: inline-block;
    vertical-align: text-top;
}
.profile-actions{
    text-align: end;
    margin-top: 1rem;
}
.profile-actions .profile-action-wrapper{
    text-align: end;
    display: inline-block;
    vertical-align: top;
}
.profile-actions .button {
    font-size: 18px!important;
    min-width: 185px;
    margin: 6px 10px;
}
.profile .profile-extra-text{
    font-size: 14px;
    text-align: center;
    padding:4px 18px;
}
@media  (max-width: 900px){
    .profile .profile-badge {
        margin-bottom: 10px;
        vertical-align: top;
    }
    .profile .profile-top-row {
        display: block;
    }
    .profile .profile-title{
        margin-bottom: 5px;
        margin-inline-end: 0;
        display: block;
    }
    .profile .profile-middle-row{
        margin-inline-start: 0;
        clear: both;
    }
    .profile .start-chat-wrapper,
    .profile .schedule-lesson {
        text-align: center;
    }
}
@media (max-width: 640px) {
    .profile .profile-img img{
        width: 100px;
        height: 100px;
    }
    .profile .profile-top-row {
        margin-inline-start: 120px;
    }
    .profile .profile-reviews.profile-top-row-cell{
        display: block;
        margin-bottom: 5px;
        text-align: start;
    }
    .profile .profile-details{
        margin-top: 10px;
        margin-inline-start: 0;
        clear: both;
    }
    .profile .profile-details .profile-badge{
        margin-inline-end: 3px;
    }
    .profile-left-pane .profile-reviews, .profile-left-pane .profile-price {
        padding-inline-end: 20px;
    }
    .profile-left-pane .profile-lessons-count{
        padding-inline-end: 0;
    }
    .profile .profile-reviews .clear-block:after {
        content: "";
    }
    .profile.profile-landing-profile .profile-details{
        clear: both;
        margin: 0;
        padding-top: 5px;
    }
    .profile-actions{
        text-align: center;
        display: flex;
    }

    .profile-actions .profile-action-wrapper {
        flex-grow: 1;
        margin-inline-end: 10px;
    }
    .profile-actions .profile-action-wrapper:last-child {
        margin-inline-end: 0;
    }

    .profile-actions .button {
        min-width: auto;
        margin: 0;
        width: 100%;
        font-size: 16px!important;
    }
    .profile .start-chat{
        padding-right: 42px;
        padding-left: 42px;
    }
    .profile .profile-extra-text{
        font-size: 12px;
    }
    .rank-title-wrapper {
        font-size: 18px;
        padding: 7px;
    }
    .rank-title-wrapper .icon-badge {
        display: none;
    }
    .rank-title-wrapper .rank-help:after {
        width: 180px;
    }
    .rank-title-wrapper:hover .rank-help:after, .rank-title-wrapper:active .rank-help:after {
        opacity: 1;
    }
}
@supports (transform: translate3d(100%, 0, 0)) {
    .search-result-graduation-hat {
        transform: scale(0.75) translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
        opacity: 0;
        transition: 1s;
    }
    .exposed .search-result-graduation-hat {
        transform: scale(1) translate3d(0, 0, 0);
        opacity: 1;
    }
}
