/**
 * Tutor preview page styles.
 *
 * @package    local_lat_findtutors
 * @copyright  2026 Zunyr Haiyydr <zunyrhaiyydr@gmail.com>
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
    font-family: 'Platform';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/platform.woff2') format('woff2');
    /* todo check this unicode-range, I just put together /en/ and /lat/ PreplyInter */
    /* upd: adding â‚¬ and Â£ */
    unicode-range:
        U+0020-007F,
        /* Basic Latin */
        U+00A0-00FF,
        /* Latin-1 Supplement */
        U+0100-017F,
        /* Latin Extended-A */
        U+0180-024F,
        /* Latin Extended-B */
        U+02B0-02FF,
        /* Spacing Modifier Letters */
        U+1E00-1EFF,
        /* Latin Extended Additional */
        U+2000-206F,
        /* General Punctuation */
        U+20A0-20CF,
        /* Currency Symbols */
        U+E02E;
    /* Private Use Area ðŸ¤·â€â™‚ï¸ */
}

.lat-tutor-preview {
    margin: 0 auto;
    max-width: 1093px;
    font-family: 'Figtree', sans-serif;
    --lat-left-column-width: clamp(417px, calc(66.5625vw - 168.75px), 630px);
}

.lat-tutor-preview * {
    font-family: 'Figtree', sans-serif;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, var(--lat-left-column-width)) 396px;
    gap: 40px;
}

.main-grid > * {
    min-width: 0;
}

.lat-left-section {
    max-width: 653px;
    min-width: 0;
}

.left-content {
    min-width: 0;
}

.left-content.width {
    width: var(--lat-left-column-width);
    max-width: 100%;
}

@media (min-width: 880px) {
    .lat-tutor-preview .lat-preview-sidebar {
        width: 396px;
        min-width: 396px;
        max-width: 396px;
    }
}

/* Header Section */
.lat-preview-header {
    margin-bottom: 40px;
}

.lat-preview-avatar-section {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.lat-preview-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.lat-preview-avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid #1211170F;
    border-radius: 4px;
}

.lat-preview-info {
    flex: 1;
}

.lat-preview-name {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-family: 'Platform';
}

.lat-preview-flag {
    font-size: 1.25rem;
}

.lat-preview-headline {
    font-size: 16px;
    color: #121117;
    margin: 0 0 0.75rem;
    font-weight: 400;

}

strong {
    color: var(--text);
}

.lat-preview-languages:first-child {
    background: #d8f8f2 !important;
}

.lat-preview-languages {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    padding-inline: 5px;
    background: #cce2ff;
    border-radius: 8px;
    height: 24px;
    display: flex;
    align-items: center;
}

/* Content Layout */

/* Main Content */
.lat-preview-main {
    min-width: 0;
}

.lat-preview-section {
    margin-bottom: 2rem;
}

.lat-preview-section.short-heading h2 {
    font-size: 24px;
}

.lat-preview-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    font-family: 'Platform';
}

.lat-tutor-preview .lat-reviews-section {
    all: unset;
}

.lat-preview-video-section {
    grid-column: 1 / -1;
    margin-bottom: 3rem;
}

.lat-preview-text {
    line-height: 1.7;
    color: var(--text);
    font-size: 16px;

}


.lat-tutor-feature-item.special {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #121117;
    font-family: "Figtree", sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.25;
    background: #f4f4f8;
    border: 1px solid rgba(18, 17, 23, .1);
    border-radius: 8px;
    padding: 16px 0 16px 20px;
    height: 80px;
}

.lat-tutor-feature-item.special>img {
    flex: 0 0 24px;
    width: 87px;
    height: 70px;
    object-fit: contain;
    margin-bottom: -9px;
    margin-right: -6px;
}

.lat-tutor-feature-item--stacked {
    align-items: flex-start;
}

.lat-tutor-feature-item.special.lat-tutor-feature-item--stacked strong,
.lat-tutor-feature-item.special.lat-tutor-feature-item--stacked small {
    display: block;
    font-size: 16px !important;
    line-height: 1.25;
}

.lat-tutor-feature-item.special.lat-tutor-feature-item--stacked strong {
    font-weight: 700;
}

.lat-tutor-feature-item--stacked small {
    margin-top: 1px;
    color: var(--checkout-muted);
    font-weight: 400;
}

/* Video */
.lat-preview-video-section {
    margin-bottom: 3rem;
}

.lat-preview-video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lat-preview-video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lat-preview-video-play-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ef4444 !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.lat-preview-video-play-btn:hover {
    background: #dc2626 !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
}

/* Resume Section */
.lat-resume-section {
    margin-bottom: 2rem;
}

.lat-resume-heading {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text);
}

.teacher-avatar-box {
    border: 1px solid #000000;
    border-radius: 4px;
    height: 16px;
    width: 16px;
    z-index: 2;
    position: absolute;
    right: 6px;
    bottom: 6px;
}

.teacher-avatar-box.gray {
    background: #B8B8B8;
    border-color: #fff;
}

.teacher-avatar-box.green {
    background: #09A64D;
    border-color: #fff;
}

.teacher-avatar-box:hover::after {
    content: attr(data-status-label);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #121117;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 25;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.teacher-avatar-box:hover::before {
    content: "";
    position: absolute;
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #121117;
    z-index: 26;
}

.lat-preview-section .lat-resume-tabs {
    border-bottom: 1px solid var(--border);
    margin-top: 20px !important;
    margin-bottom: 0;
    align-items: flex-end;
}

.lat-resume-tabs .nav-item {
    margin-bottom: 0;
}

.lat-resume-tabs .nav-link {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    border: 0 !important;
    padding: 8px 12px;
    margin: 0 2px 6px 0;
    background: transparent;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lat-resume-tabs .nav-link:hover,
.lat-resume-tabs .nav-link:focus {
    color: var(--text);
    background: #f4f4f8;
    outline: none;
    box-shadow: none;
}

.lat-resume-tabs .nav-link.active {
    color: #121117;
    background: transparent;
}

.lat-resume-tabs .nav-link.active:hover,
.lat-resume-tabs .nav-link.active:focus {
    color: var(--text);
    background: #f4f4f8;
}

.lat-resume-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 3px;
    background: var(--accent);
}

.lat-resume-tab-content {
    padding-top: 0;
}

.lat-resume-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 16px 0;
}

.lat-resume-item:last-child {
    border-bottom: none;
}

.lat-resume-year {
    font-size: 16px;
    color: #4D4C5C;
    white-space: nowrap;
    min-width: 110px;
    padding-top: 2px;
}

.lat-resume-details {
    flex: 1;
}

.lat-resume-title {
    font-size: 16px;
    color: var(--text);
    margin: 0 0 2px;
}

.lat-resume-subtitle {
    font-size: 16px;
    color: #4D4C5C;
    margin: 0;
    font-weight: 300;
}

/* My Specialties Accordion */
#lat-myspec-section {
    margin-top: 40px;
}

.lat-specialties-heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0px;
    color: var(--text);
    font-family: "Platform";
}

.lat-myspec-item {
    border-radius: 8px;
    overflow: hidden;
}

.lat-myspec-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    padding-inline: 0px 8px;
}

.lat-myspec-header:focus {
    outline: none;
    box-shadow: none;
}


.spec-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--text);
}

.lat-myspec-header[aria-expanded="true"] .spec-chevron {
    transform: rotate(180deg);
}

/* Animate only the panel height; keep spacing inside so it closes to zero. */
.lat-myspec-content {
    padding: 0;
}

#mySpecialtiesAccordion .lat-myspec-content.collapsing {
    transition: height 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

#mySpecialtiesAccordion .spec-chevron {
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    #mySpecialtiesAccordion .lat-myspec-content.collapsing,
    #mySpecialtiesAccordion .spec-chevron {
        transition: none;
    }
}

.lat-myspec-content p {
    padding-block: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    font-weight: 400;
}

/* Tags */
.lat-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lat-preview-tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Credentials */
.lat-preview-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lat-preview-credential {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.lat-credential-type {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.lat-credential-institution {
    color: #6b7280;
}

.lat-credential-years {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Sidebar Video */
.lat-preview-sidebar-video {
    margin-bottom: 1rem;
}

.lat-preview-video-container-sidebar {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lat-preview-video-thumbnail-sidebar {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lat-preview-video-play-btn-sidebar {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    z-index: 10;
}

.lat-preview-video-play-btn-sidebar:hover {
    background: rgba(255, 88, 60, 1) !important;
}

/* Sidebar Card */
.lat-preview-sidebar {
    position: sticky;
    top: 76px; /* 60px fixed navbar + 16px gap */
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 396px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.lat-preview-card {
    position: relative;
    padding: 24px;
    background: #fff;
    border: 1px solid #d9dce3;
    border-radius: 8px;
}

.lat-sidebar-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 16px;
}

.lat-sidebar-price {
    color: #121117;
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: 0.01em;
    font-family: 'Platform';
}

.lat-sidebar-price-label {
    color: #4D4C5C;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;

}

.lat-preview-pricing {
    margin-block: 24px;
    display: flex;
    justify-content: space-between;
}

.lat-preview-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-direction: column;
}

.lat-price-amount {
    font-size: 24px;
    font-weight: 500;
    color: #121117;
}

.lat-price-label {
    color: #4D4C5C;
    font-size: 14px;
    font-weight: 300;
}

.lat-preview-sidebar .lat-stats-box {
    display: flex;
    align-items: flex-start;
    gap: 38px;
    margin: 0 0 18px;
}

.lat-preview-sidebar .lat-stat-value {
    display: flex;
    align-items: center;
    min-height: 20px;
    color: #121117;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    font-family: 'Platform';
}

.lat-preview-sidebar .lat-stat-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.lat-preview-sidebar .lat-stat-link:hover,
.lat-preview-sidebar .lat-stat-link:focus {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lat-sidebar-rating-value {
    gap: 2px;
}

.lat-sidebar-star {
    width: 25px;
    height: 25px;
    fill: #121117;
    flex: 0 0 auto;
}

.lat-preview-sidebar .lat-stat-label {
    color: #4D4C5C;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;


}

.lat-preview-actions.mobile .btn-primary {
    height: 48px;
}

.lat-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lat-preview-actions .btn-primary,
.lat-preview-actions .btn-outline {
    width: 100%;
    min-height: 42px;
    height: 56px;
    padding: 0px 14px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

}

.lat-preview-actions .btn-primary:hover {
    background: rgba(255, 88, 60, 1) !important;
}

.lat-preview-actions .btn-primary {
    gap: 8px;
    border: 1px solid #121117;
    background: #ff2500 !important;
    color: #fff !important;
}

.lat-preview-sidebar .lat-preview-actions .btn-outline {
    border: 1px solid #d6d8df;
    background: #fff;
    color: #121117;
}

.lat-preview-sidebar .lat-preview-actions .btn-outline:hover {
    background: #f6f6f8;
}

.lat-sidebar-action-icon {
    flex: 0 0 auto;
    color: #fff;
    fill: #fff;
}

.lat-sidebar-icon-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.lat-sidebar-icon-btn,
.lat-preview-favorite.lat-sidebar-icon-btn {
    position: static;
    width: 100%;
    min-height: 42px;
    height: 56px;
    padding: 0;
    border: 1px solid #d6d8df;
    border-radius: 6px;
    background: #fff;
    color: #121117;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lat-sidebar-icon-btn:hover,
.lat-preview-favorite.lat-sidebar-icon-btn:hover {
    background: #f4f4f8;
    border-color: #DCDCE5;
    transform: none;
}

.lat-preview-favorite.lat-sidebar-icon-btn.active svg {
    fill: #ff2500;
    stroke: #121117;
}

.lat-sidebar-icon-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lat-sidebar-popular {
    margin-top: 17px;
}

.lat-sidebar-popular-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #121117;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;

}

.lat-sidebar-popular-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.lat-sidebar-popular-text {
    margin-top: 4px;
    margin-left: 22px;
    color: #121117;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;

}

.lat-save-list-btn.is-saved {
    background: #f6f6f8;
}

.lat-next-availability-card {
    margin-top: 16px;
    padding: 24px;
    border: 1px solid rgba(18, 17, 23, .1);
    border-radius: 8px;
    background: #F4F4F8;
}

.lat-next-availability-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #121117;
    font-size: 16px;

    font-weight: 400;
    line-height: 18px;
}

.lat-next-availability-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    color: #121117;
}

.lat-next-availability-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 15px;
}

.lat-next-availability-time:hover {
    background: #e6e6ee;
}

.lat-next-availability-time {
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(20, 20, 82, .15);
    border-radius: 8px;
    background: transparent;
    color: #121117;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;

    cursor: pointer;
}

/* Video Section */
.lat-preview-video-section {
    grid-column: 1 / -1;
    margin-bottom: 3rem;
    width: 100%;
}

.lat-preview-video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 480px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.lat-preview-video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lat-preview-video-play-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ef4444 !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.lat-preview-video-play-btn:hover {
    background: #dc2626 !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
}

/* slider */
.lat-slider-section {
    margin: 40px auto;
}

.lat-slider-section h2 {
    margin-bottom: 20px;
}

.students_say_section,
.lat-slider-section h2,
#my_lesson_tutor_profile_my_specialities h2,
#my_lesson_tutor_profile_resume h2,
.my_lessons_tutor_profile_about h2,
.my_lessons_tutor_profile_languages h2,
#my_lessons_tutor_profile_reviews_section h2,
#my_lessons_tutor_profile_schedule h2 {
    margin-top: 0;
    font-size: 32px;
    font-weight: 700;
    font-family: "Platform";
    margin-bottom: 0px;
    color: var(--text);
}

.lat-slider-container {
    position: relative;
}

.lat-slider-prev {
    left: -18px;
}

.lat-slider-prev svg {
    transform: rotate(180deg);
}

.lat-slider-nav {
    position: absolute;
    top: 160px;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 2.38px solid #121117;
    background: #fff;
    color: #121117;
    -webkit-text-fill-color: #121117;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.lat-slider-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.lat-slider-item {
    display: block;
    flex: 0 0 160px;
    min-height: 315px;
    width: 160px;
    color: inherit;
    text-decoration: none;
}

.lat-slider-item:hover,
.lat-slider-item:focus-visible {
    color: inherit;
    text-decoration: none;
}

.lat-slider-imgwrap {
    position: relative;
    width: 160px;
    height: 160px;
    /* padding-top: 100%; */
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #1211170F;
}

.lat-slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lat-slider-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 24px 10px 9px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

.lat-slider-details .lat-slider-name {
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lat-slider-flag {
    width: 16px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    font-size: 15px;
    line-height: 1;
}

.lat-slider-next {
    right: -18px;
}

.lat-slider-rating > img{
    margin-top: -2px;
}

.lat-slider-rating svg {
    margin-bottom: 4px;
}

.lat-slider-rating-no {
    color: var(--text);
    margin-left: 2px;
    font-weight: 600;
}

.lat-slider-rating span {
    font-weight: 400;
    color: #4D4C5C;
    margin-left: 4px;
}

.lat-slider-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: 4.2em;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    font-weight: 400;
    color: var(--text);
}

.lat-slider-price div {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.lat-slider-price p {
    font-size: 14px;
    font-weight: 400;
    color: #4D4C5C
}

/* slider */


/* schedule */
.lat-schedule h2 {
    margin-top: 0;
    font-size: 32px;
    font-weight: 700;
    font-family: "Platform";
    margin-bottom: 0px;
    color: var(--text);
}

.lat-schedule-notice {
    background: #CCE2FF;
    border-radius: 2px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 400;
    align-items: center;
}

.lat-schedule-toggle-duration {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 24px;
    background: #F4F4F8;
    padding: 2px;
}

.lat-schedule-toggle-duration button.active {
    border: 2px solid #DCDCE5;
    background: #fff;
    color: #121117;
    box-shadow: 0 2px 6px rgba(18, 17, 23, 0.08);
    cursor: help;
    position: relative;
}

.lat-schedule-toggle-duration button {
    flex: 1;
    border: 2px solid transparent;
    background: transparent;
    /* padding: 8px; */
    cursor: pointer;
    color: #121117;
    font-weight: 600;
    border-radius: 8px;
    height: 36px;
    max-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lat-schedule-toggle-duration button:not(.active):hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: #DCDCE5;
    box-shadow: 0 2px 6px rgba(18, 17, 23, 0.05);
}

.lat-schedule-toggle-duration button:not(.active):active {
    transform: translateY(1px);
}

.lat-schedule-toggle-duration button.active::after {
    content: attr(data-selected-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #16161d;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.lat-schedule-toggle-duration button.active::before {
    content: "";
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #16161d;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.lat-schedule-toggle-duration button.active:hover::after,
.lat-schedule-toggle-duration button.active:hover::before,
.lat-schedule-toggle-duration button.active:focus-visible::after,
.lat-schedule-toggle-duration button.active:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.lat-schedule-week-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    height: 48px;
}

.lat-schedule-week-label {
    font-weight: 600;
    color: #121217;
}

.lat-schedule-timezone-select {
    position: relative;
    margin-left: auto;
    border-radius: 8px;
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 48px;
    min-width: 312px;
    border: 2px solid #DCDCE5;
    box-shadow: 0 1px 2px rgba(18, 18, 23, 0.05);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#lat-schedule-timezone-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lat-schedule-timezone-select .arrow img {
    transition: transform 0.15s ease;
}

.lat-schedule-timezone-select.is-open {
    border-color: #2F6FED;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16);
}

.lat-schedule-timezone-select.is-open .arrow img {
    transform: rotate(180deg);
}

.lat-schedule-timezone-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid #E4E7EE;
    border-radius: 12px;
    list-style: none;
    padding: 6px;
    margin-top: 0;
    width: auto;
    max-height: 360px;
    overflow-y: auto;
    display: none;
    z-index: 30;
    box-shadow: 0 14px 28px rgba(18, 18, 23, 0.14), 0 4px 10px rgba(18, 18, 23, 0.08);
}

.lat-schedule-timezone-dropdown li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.lat-schedule-timezone-dropdown li + li {
    margin-top: 2px;
}

.lat-schedule-timezone-dropdown li span:first-child {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    color: #121217;
}

.lat-schedule-timezone-dropdown li span:last-child {
    font-size: 13px;
    line-height: 1.3;
    color: #5E6472;
}

.lat-schedule-timeline {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.lat-schedule-timeline-progress {
    height: 100%;
    height: 4px;
    background: #ff2500;
    width: 84px;
}

.lat-schedule-timeline-progress.active {
    background: #FF2500;
}

.hide-slots {
    height: 380px;
    overflow: hidden;
}

.lat-schedule-slots {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.lat-schedule-day {
    text-align: center;
}

.lat-schedule-day-label {
    font-size: 16px;
    color: #384047;
    font-weight: 400;
    margin-bottom: 19px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lat-schedule-day-label span {
    font-weight: 500;
}

.schedule-next-available:hover,
.view-schedule:hover {
    background: #F4F4F8;
    color: #121117 !important;
}

.schedule-next-available {
    max-width: none;
    width: auto;
    white-space: nowrap;
}

.schedule-next-available,
.view-schedule {
    margin: 32px auto 40px auto;
    border: 3px solid #DCDCE5;
    border-radius: 10px;
    height: 44px;
    display: flex;
    padding-inline: 18px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #121117;
    background: transparent;
    max-width: 200px;
}

.lat-schedule-week-nav #lat-schedule-prev-week {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #fff;
}

.lat-schedule-week-nav #lat-schedule-next-week {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0px;
}

.lat-schedule-week-nav button {
    width: 42px;
    height: 32px;
    border: 2px solid #DCDCE5;
    background: #fff;
    color: #121117;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.lat-schedule-week-nav button:not(:disabled):hover {
    background-color: #F4F4F8;
    border-color: #BABAC8;
}

.lat-schedule-week-nav button:not(:disabled):active {
    background-color: #EBEBF2;
}

.lat-schedule-week-nav button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.lat-schedule-timezone-select:hover {
    background-color: #F8F9FC;
    border-color: #C9CEDA;
}

.lat-schedule-timezone-select:active {
    background-color: #F1F4FA;
}

.lat-schedule-timezone-select.is-open:hover {
    border-color: #2F6FED;
}

.lat-schedule-timezone-dropdown li:hover {
    background-color: #F5F8FF;
    border-color: #DBE6FF;
}

.lat-schedule-timezone-dropdown li:active {
    background-color: #ECF2FF;
}

.lat-schedule-timezone-name {
    font-size: 14px;
    font-weight: 400;
    color: #121117;
    margin-bottom: 0;
    margin-bottom: 0;
}

.lat-schedule-timezone-gmt {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0;
}

body.theme-dark .lat-schedule-toggle-duration {
    background: #f4f4f8;
    border: 1px solid rgba(18, 17, 23, 0.08);
}

body.theme-dark .lat-schedule-toggle-duration button {
    color: #121117;
    -webkit-text-fill-color: #121117;
    background: transparent;
    border-color: transparent;
}

body.theme-dark .lat-schedule-toggle-duration button.active {
    background: #fff;
    border-color: #dcdce5;
    color: #121117;
    -webkit-text-fill-color: #121117;
    box-shadow: 0 2px 6px rgba(18, 17, 23, 0.08);
}

body.theme-dark .lat-schedule-toggle-duration button:not(.active) {
    background: rgba(255, 255, 255, 0.22);
}

body.theme-dark .lat-schedule-toggle-duration button:not(.active):hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(18, 17, 23, 0.08);
}

body.theme-dark .lat-schedule-week-label,
body.theme-dark .lat-schedule-timezone-name,
body.theme-dark .lat-schedule-timezone-dropdown li span:first-child {
    color: #121117;
}

body.theme-dark .lat-schedule-timezone-select {
    background: #fff;
    border-color: #dcdce5;
    box-shadow: 0 1px 2px rgba(18, 18, 23, 0.05);
}

body.theme-dark .lat-schedule-timezone-dropdown {
    background: #fff;
    border-color: #e4e7ee;
    box-shadow: 0 14px 28px rgba(18, 18, 23, 0.14), 0 4px 10px rgba(18, 18, 23, 0.08);
}

body.theme-dark .lat-schedule-timezone-dropdown li:hover {
    background: #f5f8ff;
    border-color: #dbe6ff;
}

body.theme-dark .lat-schedule-timezone-gmt,
body.theme-dark .lat-schedule-timezone-dropdown li span:last-child {
    color: #5e6472;
}

body.theme-dark .lat-show-more-review-modal,
body.theme-dark .lat-show-more-review-modal .modal-content,
body.theme-dark .lat-show-more-review-modal .lat-show-more-review-modal-body {
    background: #121821;
    color: #f5f7ff;
}

body.theme-dark .lat-show-more-review-modal .lat-show-more-review-modal-close,
body.theme-dark .lat-show-more-review-modal .close,
body.theme-dark .lat-show-more-review-modal .lat-show-more-review-modal-close,
body.theme-dark .lat-show-more-review-modal button.close,
body.theme-dark .lat-show-more-review-modal [data-dismiss="modal"] {
    color: #ffffff !important;
    opacity: 1;
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .lat-show-more-review-modal .close:hover,
body.theme-dark .lat-show-more-review-modal .lat-show-more-review-modal-close:hover,
body.theme-dark .lat-show-more-review-modal button.close:hover,
body.theme-dark .lat-show-more-review-modal [data-dismiss="modal"]:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

@media (prefers-color-scheme: dark) {
    .lat-show-more-review-modal .lat-show-more-review-modal-close,
    .lat-show-more-review-modal .close,
    .lat-show-more-review-modal button.close,
    .lat-show-more-review-modal [data-dismiss="modal"] {
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.08);
    }
}

.lat-schedule-times a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    height: 42px;
    border-radius: 6px;
    border: 0;
    transition: color 0.15s ease;
    overflow: visible;
}

.lat-slot-time {
    transition: color 0.15s ease;
}

.lat-slot-hover-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16161d;
    color: #FFFFFF;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.lat-slot-hover-label::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #16161d;
}

.lat-slot-hover-icon {
    color: #FFC107;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.lat-slot-hover-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

@media (max-width: 1100px) and (min-width: 880px) {
    .lat-schedule-week-nav {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
        height: auto;
    }

    .lat-schedule-week-label {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 14px;
        line-height: 1.3;
    }

    .lat-schedule-timezone-select {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 44px;
        height: auto;
        padding: 8px 12px;
    }

    #lat-schedule-timezone-label {
        overflow: hidden;
    }

    .lat-schedule-timezone-name,
    .lat-schedule-timezone-gmt {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lat-schedule-slots {
        gap: 8px;
    }

    .lat-schedule-day-label {
        height: 56px;
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.2;
    }

    .lat-schedule-times a {
        height: 38px;
        font-size: 12px;
    }
}

.lat-schedule-times a:hover {
    color: var(--text);
    text-decoration: underline;
}

.lat-schedule-times a:hover .lat-slot-time {
    color: var(--text);
}

.lat-schedule-times a:hover .lat-slot-hover-label {
    opacity: 1;
    visibility: visible;
}

/* schedule */
/* testimonial */
.testimonial-section {}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #121117;
    font-family: "Platform";
}

.card-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.card-section > div {
    flex: 1 1 calc(25% - 8px);
    min-width: 0;
}

.testimonial-card {
    background: #f4f4f8;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 600;
}

.testimonial-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.ratings {
    flex-direction: row-reverse;
}

.ratings img {
    height: 32px;
    width: 32px;
    margin-top: 8px;
    display: inline-block;
}

.ratings .icon {
    width: 24px;
    height: 24px;
    fill: #ffb400;
}

.lat-prime-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    font-family: "Platform";
}


.ratings-score {
    font-size: 20px;
    font-weight: 700;
    color: #121117;
    font-family: "Platform";
}

.testimonial-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
    text-align: left;
}

.review-summary {
    font-size: 14px;
    color: var(--text-muted);
}

.mt-24 {
    margin-top: 24px;
}

/* testimonial */

#page:has(#lat-subjects-modal[aria-modal="true"]),
#page:has(#lat-resume-modal[aria-modal="true"]) {
    overflow: hidden;
    height: 100vh;
}

.limit-four {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lat-speak-section {
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    margin-block: 40px;
}

.lat-stats-box {
    margin-block: 24px;
    gap: 24px;
}

.lat-stat-value {
    font-size: 21px;
    font-weight: 500;
    color: var(--text);
}

.lat-stat-label {
    font-size: 14px;
    font-weight: 300;
    color: #4D4C5C;
}


.tutor-video-iframe {
    aspect-ratio: 16 / 9;
    border: 1px solid #DCDCE5;
    aspect-ratio: 16 / 9;
    width: 100%;
}

/* Tablet */
@media (max-width: 879px) {
    .main-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-bottom: 104px;
        width: 100%;
    }

    .left-content {
        order: -1;
        position: static;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .lat-left-section {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .lat-preview-name {
        font-size: clamp(34px, 6.5vw, 44px);
        line-height: 1.1;
        flex-wrap: wrap;
    }

    .lat-preview-avatar {
        width: 84px;
        height: 84px;
    }

    .lat-preview-reference-details {
        margin-top: 0;
    }

    .lat-preview-sidebar {
        margin-inline: auto;
        display: none;
    }

    .lat-trigger-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 72px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-top: 1px solid var(--border);
        background: var(--bg);
        z-index: 99;
    }

    .lat-tutor-preview .lat-trigger-actions {
        margin-left: -16px;
        width: 100vw;
        padding-inline: 16px;
    }

    .lat-trigger-actions .lat-sidebar-icon-btn {
        max-width: 52px;
        height: 48px;
        min-height: 48px;
        flex: 0 0 52px;
    }

    .lat-preview-actions.mobile {
        width: 100%;
    }

    .lat-preview-actions.mobile .btn-primary {
        min-height: 48px;
        height: 48px;
        font-size: 16px;
        line-height: 1.15;
        white-space: nowrap;
        padding-inline: 14px;
    }
}

@media (max-width: 1100px) {
    .card-section > div {
        flex-basis: calc(50% - 8px);
    }
}

@media (max-width: 560px) {
    .card-section > div {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {

    .lat-tutor-preview .lat-reviews-section {
        all: inherit !important;
        margin-top: 56px !important;
    }

    .testimonial-section .card-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .left-content {
        max-width: none !important;
    }

    .lat-mobile-nav {
        top: 0;
        display: none;
        background: var(--bg);
        z-index: 999;
        margin-left: -16px;
        padding-inline: 16px;
        width: calc(100vw);
        border-bottom: 1px solid var(--border);
    }

    .lat-back-arrow-box {
        height: 40px;
        min-width: 40px;
        border: 1px solid var(--border);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;

    }

    .editmode-switch-form {
        display: none;
    }

    .main-grid {
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin-bottom: 60px;
        padding-bottom: 92px;
    }

    .btn-outline.dark {
        border: 2px solid #121117;
    }

    .btn-outline:hover {
        background: #F4F4F8;
    }

    .btn-outline {
        border: 2px solid #1211171F;
        border-radius: 8px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        width: 100%;
        font-weight: 600;
        font-size: 16px;
        color: #121117;
    }

    .read-more-about.btn-outline:hover {
        color: #ff2500;
    }

    .read-more-about.btn-outline {
        margin-bottom: 24px;
        all: unset;
        text-decoration: underline;
        cursor: pointer;
        color: #121117;
        margin-top: 4px;
        font-weight: 700;
        font-size: 16px;
    }

    .line-marker {
        border-bottom: 1px solid var(--border);
        border-top: 0;
    }

    .lat-preview-languages {
        font-size: 14px;
    }

    .lat-preview-section.lat-slider-section {
        margin-bottom: 50px !important;
    }

    .lat-preview-section {
        margin-bottom: 0;
    }

    .lat-save-listing-btn path {
        fill: none;
        transition: 0.3s;
    }

    .lat-save-listing-btn.active path {
        fill: #121117;
    }

    .tutor-video-iframe {
        margin-left: -16px;
        width: 100vw !important;
        border-radius: 0 !important;
        margin-bottom: 24px !important;
    }

    .lat-preview-sidebar {
        position: static;
        border: none;
        box-shadow: none;
        padding: 0;
        order: -2;
        margin-left: -16px;
        width: calc(100% + 32px) !important;
        border-radius: 0;
        display: none;
    }

    .lat-review-card-header {
        gap: 12px !important;

    }

    .lat-preview-video-thumbnail-sidebar,
    .lat-preview-video-container-sidebar {
        border-radius: 0;
    }

    .lat-preview-video-play-btn-sidebar {
        bottom: 16px;
        right: 16px;
        border: 2px solid #000000;
    }

    .lat-preview-avatar-section {
        gap: 12px;

    }

    .lat-preview-sidebar-video {
        margin-bottom: 20px;
    }

    .lat-reviews-section {
        margin-top: 56px !important;
    }

    .lat-reviews-section .lat-review-summary,
    .lat-preview-headline,
    .lat-schedule,
    #page.drawers>div:nth-child(2),
    .rui-topbar-wrapper.moodle-has-zindex,
    .lat-preview-actions {
        display: none;
    }

    .main-grid:not(:has(iframe)) .lat-preview-header {
        margin-top: 24px;
    }

    .lat-preview-header {
        margin-bottom: 0px;
        padding-bottom: 16px;
    }

    .lat-sub-text {
        font-size: 14px;
        color: var(--text-muted);
        font-weight: 400;
        margin-bottom: 0;
    }

    .lat-info-slider {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .lat-additional-info {
        padding-block: 24px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 24px;
    }

    #page-wrapper #page {
        padding: 0;
    }

    .wrapper-course {
        padding: 0px 16px;
    }

    .lat-sub-info>div {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        text-align: center;
        margin-right: 24px;
    }

    .h-30 {
        height: 30px;
    }

    .lat-primary-btn:hover {
        background: rgba(255, 88, 60, 1) !important;
    }

    .lat-primary-btn {
        background: var(--accent);
        border: 2px solid var(--text);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 16px;
        color: var(--bg);
    }

    .lat-sub-info {
        align-items: center;
        gap: 0px;
        justify-content: start;
    }

    .lat-info-slider .lat-prime-heading,
    .lat-info-slider .lat-sub-text {
        white-space: nowrap;
    }

    .lat-subjects-teach:hover,
    .lat-resume-heading:hover {
        background: #F4F4F8;
    }

    .lat-resume-section {
        margin: 0;
    }

    .lat-preview-section .lat-resume-tabs {
        width: calc(100vw - 32px) !important;
        overflow: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        scrollbar-width: none;
    }

    /* resume modal */
    .modal {
        left: 0 !important;
        top: 0 !important;
        padding: 0 !important;
        max-height: none !important;
        width: 100% !important;
        transform: none !important;
    }

    .modal-body {
        border: none;
        max-height: 100vh !important;
    }

    .modal-body .lat-primary-btn {
        width: calc(100vw - 96px);
    }

    .modal-dialog {
        max-width: none !important;
        margin: 0 !important;
    }

    .modal-content {
        border: none;
    }

    .back-box {
        height: 47px;
        min-width: 47px;
        border: 1px solid #0000001F !important;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        margin: 0 !important;
        background: transparent;
        left: 17px;
        top: -12px;

    }

    .lat-subjects-modal .close:hover,
    .lat-resume-modal .close:hover {
        background-color: transparent !important;
    }

    .lat-subjects-modal .close:before,
    .lat-resume-modal .close:before {
        display: none;
    }

    .lat-subjects-modal ul li,
    .lat-resume-modal ul li {
        text-decoration: none;
        list-style: none;
    }

    .lat-subjects-modal-title,
    .lat-resume-modal-title {
        font-weight: 600;
        font-size: 18px;
        color: #000;
        display: flex;
        align-items: center;
    }

    .lat-teaching-year {
        color: #4D4C5C;
        font-weight: 500;
        font-size: 12px;
    }

    .lat-to-students {
        color: var(--text);
        font-size: 16px;
        font-weight: 500;
    }

    .lat-school-name {
        font-size: 16px;
        font-weight: 400;
        color: #4D4C5C;
    }

    .lat-section-listings {
        height: calc(100vh - 194px);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        width: 100%;
    }

    .lat-subjects-modal .modal-body ul li,
    .lat-resume-modal .modal-body ul li {
        border-bottom: 1px solid var(--border);
    }

    .modal .lat-trigger-actions {
        margin-left: -16px;
        width: calc(100vw + 32px);
        padding-inline: 16px;
    }

    .lat-message-action {
        height: 48px;
        min-width: 48px;
        border-radius: 8px;
        border: 2px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }

    /* resume modal */

}

@media (max-width: 576px) {
    .lat-preview-career-stats {
        flex-wrap: wrap;
    }
}



/* Mobile tutor contact actions (Preply-style). */
.lat-preview-mobile-contact {
    margin-top: 16px;
}

.lat-preview-mobile-contact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
}

.lat-preview-mobile-message,
.lat-preview-mobile-share {
    height: 48px;
    border: 2px solid rgba(20, 20, 82, .15);
    border-radius: 8px;
    background: #fff;
    color: #121117;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lat-preview-mobile-message {
    gap: 9px;
    padding: 0 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.lat-preview-mobile-share {
    width: 48px;
    padding: 0;
}

.lat-preview-mobile-message svg,
.lat-preview-mobile-share svg {
    fill: currentColor;
    flex: 0 0 auto;
}

.lat-preview-mobile-message:hover,
.lat-preview-mobile-share:hover {
    background: #f6f6f8;
}

.lat-preview-mobile-response {
    margin-top: 8px;
    color: #121117;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

/* -------------------------------------------------------------------------
 * Temporary Preply-style reference details on tutor preview left column.
 * TODO: Keep the classes/layout, but replace hardcoded Mustache copy with
 * dynamic tutor/wallet/statistics fields once backend data is available.
 * ---------------------------------------------------------------------- */
.lat-preview-balance-banner {
    min-height: 56px;
    margin: 0 0 24px;
    padding: 0px 16px;
    border-radius: 8px;
    background: #d8f8f2;
    color: #121117;
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
    line-height: 1.35;
}

.lat-preview-balance-banner img {
    height: 40px;
    width: 40px;
}

.lat-preview-balance-wave {
    font-size: 20px;
    line-height: 1;
}

.lat-preview-balance-link,
.lat-preview-reference-link {
    color: #121117;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    cursor: pointer;
}

.lat-preview-balance-link:hover,
.lat-preview-reference-link:hover {
    color: #ff2500;
    text-decoration-thickness: 2px;
}

.lat-preview-reference-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 8px;
    color: #121117;

    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
}

.lat-preview-reference-meta strong {
    font-weight: 600;
}

.lat-preview-reference-flag {
    font-size: 15px;
    line-height: 1;
}

.lat-preview-reference-details {
    margin: -12px 0 34px;
    color: #121117;

}

.lat-preview-reference-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 16px;
}

.lat-preview-reference-rank {
    margin-top: 0;
}

.lat-preview-reference-icon,
.lat-preview-reference-small-icon {
    color: #121117;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

.lat-preview-reference-icon-blue {
    color: #0b63ce;
}

.lat-preview-reference-title.special {
    font-size: 24px;
    font-family: 'Platform';
    font-weight: 700;

    span {
        color: #067560;
    }
}

.lat-preview-reference-title,
.lat-preview-reference-heading {
    color: #121117;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;

}

.lat-preview-reference-red-title {
    color: #d13d76;
}

.lat-preview-reference-link-title {
    color: #0b63ce;
}

.lat-preview-reference-subtext {
    margin-top: 3px;
    color: #121117;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;

}

.lat-preview-reference-block {
    margin-top: 16px;
    padding-left: 34px;
}

.lat-preview-reference-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: -34px;
}

.lat-preview-reference-small-icon {
    width: 22px;
    font-size: 20px;
}

.lat-preview-highlight-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.lat-preview-highlight-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0px 9px;
    border-radius: 4px;
    color: #121117;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.lat-preview-highlight-chip-blue {
    background: linear-gradient(93deg, #cce2ff, #ffdbe9);
}

.lat-preview-highlight-chip-pink {
    background: #ebebf1;
}

.lat-preview-reference-subjects {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    color: #121117;
    font-size: 16px;
    line-height: 1.55;
}

.lat-preview-reference-teaches {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .lat-preview-balance-banner {
        font-size: 13px;
        margin-bottom: 16px;
    }


    .lat-preview-reference-details {
        margin: 0 0 30px;
        padding-bottom: 24px;
    }

    .lat-preview-reference-row {
        margin-top: 22px;
    }

    .lat-preview-reference-rank {
        margin-top: 0;
    }
}

/* Career & business learner statistics (Preply-style reference card). */
.lat-preview-career-business {
    margin-top: 40px;
    padding: 14px 12px 12px;
    border: 1px solid #dedee6;
    border-radius: 8px;
    background: #fff;
    color: #121117;
}

.lat-preview-career-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    font-family: "Platform";
}

.lat-preview-career-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #121117;
}

.lat-preview-career-stats {
    display: flex;
    width: 100%;
    gap: 8px;
}

.lat-preview-career-stat {
    min-width: 0;
    min-height: 56px;
    padding: 0px 8px;
    border-radius: 8px;
    background: #f4f4f8;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.lat-preview-career-number {
    flex: 0 0 auto;
    color: #121117;
    font-family: 'Platform';
    font-size: 48px;
    font-weight: 700;
    line-height: .9;
    min-height: 68px;
    display: flex;
    align-items: center;
    min-width: 48px;
    justify-content: center;
}

.lat-preview-career-copy {
    min-width: 0;
    color: #121117;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .lat-preview-career-business {
        margin-top: 32px;
    }
}

@media (max-width: 420px) {
    .lat-preview-career-business {
        padding: 12px 10px 10px;
    }

    .lat-preview-career-stats {
        gap: 8px;
    }

    .lat-preview-career-stat {
        padding: 8px;
        gap: 6px;
    }

    .lat-preview-career-number {
        font-size: 32px;
    }

}
/* On the tutor preview page, scroll the navbar with the page so the sticky
   sidebar card is not obscured. The sidebar top reverts to 1rem since there
   is no fixed element to clear. */
.lat-tutor-preview-page .navbar {
    position: relative !important;
    top: auto !important;
}

.lat-tutor-preview-page .lat-preview-sidebar {
    top: 1rem;
}

/* Expanded full-schedule view */
/* Expanded full-schedule view: slot container stays a 7-column day grid */
.lat-schedule-expanded-week {
    margin-bottom: 24px;
}

.lat-schedule-week-heading {
    font-size: 13px;
    font-weight: 600;
    color: #6e6d7a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #DCDCE5;
}

.lat-schedule-expanded-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.lat-schedule-expanded-days .lat-schedule-day {
    min-width: 0;
}

.lat-schedule-expanded-days .lat-schedule-day .lat-schedule-times {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

/* Truncate specialty links while keeping the final navigation link visible. */
.lat-preview-reference-teaches > div:last-child {
    min-width: 0;
    flex: 1;
}

.lat-preview-subject-list {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lat-preview-subject-see-all {
    flex-shrink: 0;
    white-space: nowrap;
}
