
/* =========================================================
   TutorTurbo Homepage - Reference Build
   Designed from the supplied TutorTurbo reference image.
   Keep this in an external .css file so Razor does not need
   @@media escaping.
   ========================================================= */

:root {
    --tt-orange: #ff9f00;
    --tt-red: #ff2f1f;
    --tt-dark: #111827;
    --tt-muted: #667085;
    --tt-border: #e7e8ec;
    --tt-soft: #fff7ee;
    --tt-gradient: linear-gradient(90deg, #ffb000 0%, #ff3b1f 100%);
}

.tutorturbo-home {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--tt-dark);
}

.tutorturbo-home::before {
    content: "";
    position: absolute;
    width: 900px;
    height: 620px;
    right: -230px;
    top: 145px;
    background: linear-gradient(135deg, #ffc400 0%, #ff8a00 42%, #ff1f2d 100%);
    clip-path: polygon(22% 0, 100% 0, 100% 87%, 0 100%);
    border-radius: 90px 0 0 90px;
    z-index: 0;
}

.tutorturbo-home::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -205px;
    top: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 181, 0, .28) 0 2px, transparent 3px);
    background-size: 24px 24px;
    z-index: 0;
}

.tutorturbo-home-inner {
    position: relative;
    z-index: 2;
}

.tt-category-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 0 18px;
    scrollbar-width: none;
}

.tt-category-bar::-webkit-scrollbar { display: none; }

.tt-category {
    flex: 0 0 86px;
    height: 82px;
    border: 1px solid var(--tt-border);
    border-radius: 13px;
    background: rgba(255,255,255,.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    color: var(--tt-dark);
    box-shadow: 0 3px 12px rgba(16,24,40,.035);
    transition: .2s ease;
}

.tt-category i {
    font-size: 23px;
    color: #151922;
}

.tt-category span {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.tt-category.active {
    border-color: #f4b000;
    box-shadow: 0 3px 12px rgba(255,159,0,.10);
}

.tt-category.active i { color: #f4a400; }

.tt-hero {
    min-height: 455px;
    padding: 22px 0 0;
}

.tt-hero-copy {
    position: relative;
    z-index: 4;
    padding: 45px 0 35px;
}

.tt-hero-title {
    margin: 0 0 18px;
    font-size: clamp(3.6rem, 5.2vw, 5.6rem);
    line-height: .90;
    letter-spacing: -3px;
    font-weight: 900;
}

.tt-hero-title .turbo {
    display: block;
    font-style: italic;
    background: var(--tt-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tt-hero-title .learning {
    display: block;
}

.tt-hero-description {
    max-width: 560px;
    color: #344054;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.tt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tt-btn {
    min-height: 50px;
    padding: 0 25px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
}

.tt-btn-primary {
    color: #fff;
    background: var(--tt-gradient);
    border: 0;
    box-shadow: 0 8px 22px rgba(255,77,25,.18);
}

.tt-btn-primary:hover { color:#fff; transform: translateY(-1px); }

.tt-btn-secondary {
    color: #e95722;
    background: #fff;
    border: 1px solid #e2e4e8;
}

.tt-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 24px;
}

.tt-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: .82rem;
    font-weight: 600;
}

.tt-trust-item i { color: #f39a00; }

.tt-match-wrap {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    padding-top: 25px;
}

.tt-match-card {
    position: relative;
    width: min(630px, 100%);
    min-height: 382px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(16,24,40,.12);
    overflow: hidden;
}

.tt-match-card::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: -115px;
    top: -110px;
    border-radius: 50%;
    background: #fff8ee;
}

.tt-match-content {
    position: relative;
    z-index: 3;
    width: 52%;
    padding: 31px 24px 26px 38px;
}

.tt-match-title {
    font-size: 1.85rem;
    line-height: 1.03;
    font-weight: 900;
    margin-bottom: 13px;
}

.tt-match-title span {
    color: #ed4d20;
    display: block;
}

.tt-match-description {
    color: #475467;
    line-height: 1.5;
    font-size: .88rem;
    margin-bottom: 16px;
}

.tt-match-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.tt-match-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .78rem;
    color: #344054;
    margin-bottom: 10px;
}

.tt-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: var(--tt-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.tt-match-image {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    width: 64%;
    max-width: 430px;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    mix-blend-mode: multiply;
}

.tt-stats {
    position: relative;
    z-index: 7;
    margin-top: -90px;
    background: rgba(255,255,255,.98);
    border: 1px solid #ececef;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16,24,40,.07);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 22px;
}

.tt-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 3px 18px;
    border-right: 1px solid #e5e7eb;
}

.tt-stat:last-child { border-right: 0; }

.tt-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #f0e2d3;
    background: #fffaf5;
    color: #f28a00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex: 0 0 48px;
}

.tt-stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 900;
}

.tt-stat small {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: .73rem;
}

.tt-content-area {
    position: relative;
    z-index: 4;
    padding: 24px 0 50px;
}

.tt-section-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
}

.tt-tutors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

.tt-tutor-card {
    background: #fff;
    border: 1px solid #e8e8eb;
    border-radius: 12px;
    padding: 13px;
    min-height: 150px;
    box-shadow: 0 4px 15px rgba(16,24,40,.04);
}

.tt-tutor-top {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tt-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    background: #f7eee8;
}

.tt-tutor-name {
    font-size: .85rem;
    font-weight: 800;
}

.tt-tutor-subject {
    font-size: .68rem;
    color: #667085;
    margin-top: 5px;
}

.tt-rating {
    margin-top: 8px;
    font-size: .7rem;
}

.tt-rating i { color: #f39a00; }

.tt-price {
    margin-top: 8px;
    color: #ee3e20;
    font-size: .78rem;
    font-weight: 800;
}

.tt-schedule-card {
    min-height: 220px;
    border-radius: 15px;
    padding: 26px;
    color: #fff;
    background: linear-gradient(135deg, #ffae00, #ff2630);
    box-shadow: 0 12px 28px rgba(255,70,20,.18);
}

.tt-schedule-card h3 {
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 900;
    max-width: 190px;
}

.tt-schedule-card p {
    max-width: 190px;
    font-size: .75rem;
    line-height: 1.55;
}

.tt-schedule-card .tt-btn {
    min-height: 38px;
    padding: 0 17px;
    background: #fff;
    color: #ed4d20;
    font-size: .75rem;
}

.tt-feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    padding: 17px 20px;
    border-radius: 12px;
    background: #fff8f1;
    border: 1px solid #f4e5d5;
}

.tt-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 17px;
    border-right: 1px solid #eadfd3;
}

.tt-feature:last-child { border-right: 0; }

.tt-feature i {
    font-size: 25px;
    color: #f29a00;
}

.tt-feature strong {
    display: block;
    font-size: .75rem;
}

.tt-feature small {
    display: block;
    color: #667085;
    font-size: .65rem;
    margin-top: 3px;
}

@media (max-width: 1199.98px) {
    .tutorturbo-home::before {
        width: 760px;
        right: -280px;
    }

    .tt-tutor-card { padding: 10px; }
    .tt-tutor-subject { font-size: .62rem; }
}

@media (max-width: 991.98px) {
    .tutorturbo-home::before {
        width: 100%;
        height: 470px;
        right: -45%;
        top: 430px;
        opacity: .95;
    }

    .tt-category-bar {
        justify-content: flex-start;
    }

    .tt-hero {
        padding-top: 5px;
    }

    .tt-hero-copy {
        text-align: center;
        padding: 30px 15px 15px;
    }

    .tt-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .tt-hero-actions,
    .tt-trust {
        justify-content: center;
    }

    .tt-match-wrap {
        padding: 15px 15px 25px;
        justify-content: center;
    }

    .tt-match-card {
        max-width: 650px;
    }

    .tt-stats {
        margin: 0 15px;
    }

    .tt-tutors-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .tt-feature-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 0;
    }

    .tt-feature:nth-child(2) { border-right: 0; }
}

@media (max-width: 767.98px) {
    .tutorturbo-home::before {
        top: 670px;
        height: 430px;
        right: -65%;
    }

    .tt-hero-title {
        font-size: 3.35rem;
        letter-spacing: -2px;
    }

    .tt-hero-description {
        font-size: .9rem;
    }

    .tt-match-card {
        min-height: 465px;
    }

    .tt-match-content {
        width: 100%;
        padding: 25px 24px;
    }

    .tt-match-image {
        width: 74%;
        height: 52%;
        opacity: .95;
    }

    .tt-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
    }

    .tt-stat {
        justify-content: flex-start;
        padding: 12px 9px;
        border-right: 0;
        border-bottom: 1px solid #eee;
    }

    .tt-stat:nth-last-child(-n+2) { border-bottom: 0; }

    .tt-tutors-grid {
        grid-template-columns: 1fr;
    }

    .tt-feature-strip {
        grid-template-columns: 1fr;
    }

    .tt-feature {
        border-right: 0;
        border-bottom: 1px solid #eadfd3;
        padding: 10px 5px;
    }

    .tt-feature:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
    .tt-hero-title { font-size: 2.9rem; }
    .tt-hero-actions { flex-direction: column; }
    .tt-btn { width: 100%; }
    .tt-match-image { width: 82%; }
    .tt-stat strong { font-size: 1.05rem; }
}
