/* Tutor Profile — Strommen brand pass
   Scoped to .tp-page so nothing leaks to other templates */

.tp-page {
    --tp-coral: #FF6F75;
    --tp-coral-dark: #C5424A;
    --tp-coral-tint: #FFF1F2;
    --tp-navy: #1a1a2e;
    --tp-text: #333;
    --tp-muted: #717171;
    --tp-border: #ececec;
    --tp-radius-card: 12px;
    --tp-radius-btn: 8px;
}

/* ---- Tagline: bolder, less faded ---- */
.tp-page .title-h1-med-subhead {
    font-weight: 500;
    opacity: 1;
    color: #444;
    font-size: 1rem;
    font-style: normal;
}
.tp-page .title-h1-med-subhead em {
    font-style: normal;
}

/* ---- Section titles: coral underline accent ---- */
.tp-page .sv2-section-title,
.tp-page .profile-section-title {
    position: relative;
    border-bottom: 1px solid var(--tp-border) !important;
    padding-bottom: .6rem !important;
    color: var(--tp-navy);
    font-weight: 600 !important;
}
.tp-page .sv2-section-title::after,
.tp-page .profile-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 3px;
    background: var(--tp-coral);
    border-radius: 2px;
}

/* ---- Coral links (skip buttons, modal close, fa icons) ---- */
.tp-page a:not(.btn):not(.modal-close):not([class*="schedule-scroller"]) {
    color: var(--tp-coral);
}
.tp-page a:not(.btn):not(.modal-close):hover {
    color: var(--tp-coral-dark);
}

/* ---- Brand button polish ---- */
.tp-page .btn-primary {
    background: var(--tp-coral);
    border-color: var(--tp-coral);
    border-radius: var(--tp-radius-btn);
    font-weight: 600;
}
.tp-page .btn-primary:hover,
.tp-page .btn-primary:focus {
    background: var(--tp-coral-dark);
    border-color: var(--tp-coral-dark);
}
.tp-page .btn-secondary-light {
    border-radius: var(--tp-radius-btn);
}

/* ---- Rate cards ---- */
.tp-rate-card {
    background: #fff;
    border: 1.5px solid #c9c9c9;
    border-radius: var(--tp-radius-card);
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tp-rate-card__head {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--tp-navy);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--tp-border);
    margin-bottom: .75rem;
}
.tp-rate-card__icon {
    color: var(--tp-coral);
    display: inline-flex;
}
.tp-rate-card__title {
    flex: 1;
    line-height: 1.25;
}
.tp-rate-card__tiers {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tp-rate-card__tier {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--tp-border);
}
.tp-rate-card__tier:last-child {
    border-bottom: none;
}
.tp-rate-card__tier.is-best {
    background: var(--tp-coral-tint);
    margin: .25rem -1.25rem 0;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--tp-radius-card) var(--tp-radius-card);
    border-bottom: none;
}
.tp-rate-card__tier-label {
    color: var(--tp-text);
    font-size: .9rem;
    line-height: 1.35;
    padding-right: .5rem;
}
.tp-rate-card__badge {
    display: inline-block;
    background: var(--tp-coral);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2em .55em;
    border-radius: 999px;
    margin-left: .35rem;
    vertical-align: 1px;
}
.tp-rate-card__savings {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: .7rem;
    font-weight: 700;
    padding: .15em .55em;
    border-radius: 999px;
    margin-left: .35rem;
    vertical-align: 1px;
    white-space: nowrap;
}
.tp-rate-card__tier-price {
    text-align: right;
    color: var(--tp-navy);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    white-space: nowrap;
}
.tp-rate-card__per {
    font-size: .8rem;
    font-weight: 500;
    color: var(--tp-muted);
}
.tp-rate-card__total {
    font-size: .75rem;
    font-weight: 500;
    color: var(--tp-muted);
    margin-top: .25rem;
}

/* ---- Mobile: listing-card style header (avatar fixed-width left, content flexes right) ---- */
@media (max-width: 767.98px) {
    /* Force the inner row into a side-by-side flex layout */
    .tp-page #profile-header > .col-lg-8 > .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: .9rem !important;
    }
    .tp-page #profile-header > .col-lg-8 > .row > .col-md-3 {
        flex: 0 0 170px !important;
        width: 170px !important;
        max-width: 170px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .tp-page #profile-header > .col-lg-8 > .row > .col-md-8 {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 0 !important;
    }

    /* Tutor avatar: bigger square thumbnail like the listing card */
    .tp-page #tutor_avatar {
        width: 170px !important;
        height: 170px !important;
        object-fit: cover;
        border-radius: 6px;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Teaches/Specialties block: full-width below the inner row, left-aligned */
    .tp-page #profile-header .tp-extra-meta {
        text-align: left !important;
        line-height: 1.5;
        color: #1a1a2e;
        padding-top: .75rem;
        margin-top: .6rem;
        border-top: 1px solid #ececec;
    }
    .tp-page #profile-header .tp-extra-meta i {
        color: var(--tp-coral);
    }
    /* Teaches: bigger and bold */
    .tp-page #profile-header .tp-extra-meta__teaches {
        font-size: 1.05rem;
        font-weight: 600;
    }
    /* Specialties: normal weight, slightly smaller */
    .tp-page #profile-header .tp-extra-meta__specialties {
        font-size: .95rem;
        font-weight: 400;
        margin-top: .25rem;
        color: #444;
    }

    /* Rate card body: side-by-side price + buttons on mobile */
    .tp-page #profile-header .col-md-4 .tp-rate-body {
        display: flex;
        gap: 1rem;
        align-items: center;
        text-align: left;
    }
    .tp-page #profile-header .col-md-4 .tp-rate-price {
        flex: 0 0 auto;
        text-align: left;
    }
    .tp-page #profile-header .col-md-4 .tp-rate-buttons {
        flex: 1 1 0;
        margin-top: 0 !important;
        min-width: 0;
    }
    .tp-page #profile-header .col-md-4 .tp-rate-buttons .btn {
        white-space: normal;
        line-height: 1.25;
        padding: .5rem .75rem !important;
        font-size: .9rem;
    }

    /* Left-align everything in the header on mobile */
    .tp-page #profile-header .text-center,
    .tp-page #profile-header .text-md-start {
        text-align: left !important;
    }
    .tp-page #profile-header .justify-content-center {
        justify-content: flex-start !important;
    }

    /* Name: bigger, bolder so it can sit next to a 130px avatar */
    .tp-page #profile-header .title-h1-med {
        font-size: 1.4rem;
        line-height: 1.2;
        font-weight: 600;
    }
    .tp-page #profile-header .title-h1-med svg {
        width: 11px !important;
        height: auto !important;
    }

    /* Tagline: bumped up + bold so it reads as real content */
    .tp-page #profile-header .title-h1-med-subhead {
        font-size: 1rem;
        line-height: 1.35;
        margin-top: .35rem;
        font-weight: 600;
        color: #2a2a2a;
    }

    /* Stars + reviews row: tight inline, slightly larger */
    .tp-page #profile-header h1 > div.mt-2 {
        margin-top: .35rem !important;
        margin-bottom: .35rem !important;
    }
    .tp-page #profile-header h1 > div.mt-2 a {
        font-size: .9rem !important;
    }

    /* Location/groups bullets: row-flow, bigger text, separators visible */
    .tp-page #profile-header ul.list-unstyled {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0 .25rem;
        font-size: .95rem;
        margin-top: .35rem !important;
    }
    .tp-page #profile-header ul.list-unstyled .d-none {
        display: inline !important;
    }

    /* Metadata grid (Classes Taught / years experience): a touch larger, left-aligned, no row negative margins */
    .tp-page #profile-header .tutor-info-grid {
        padding-top: .5rem;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .tp-page #profile-header .tutor-info-grid > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .tp-page #profile-header .tutor-info-grid > [class*="col-"] {
        text-align: left !important;
    }
    .tp-page #profile-header .tutor-info-grid .small {
        font-size: .95rem !important;
        line-height: 1.5;
        text-align: left !important;
    }

    /* Compact the rate-card sidebar so the bio is closer */
    .tp-page #profile-header .col-md-4.text-center {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        margin-top: .9rem;
    }
    /* Free-trial banner: tighten on mobile */
    .tp-page #profile-header .col-md-4 .tp-free-trial-banner {
        font-size: .9rem !important;
        margin-bottom: .9rem !important;
        padding: .55rem .85rem !important;
    }
    /* Price block: tighter spacing */
    .tp-page #profile-header .col-md-4 [style*="font-size:2.25rem"] {
        font-size: 1.85rem !important;
    }
    .tp-page #profile-header .col-md-4 .mt-4 {
        margin-top: 1rem !important;
    }
    .tp-page #profile-header .col-md-4 .btn {
        padding: .55rem 1rem !important;
    }
    .tp-page #profile-header .col-md-4 .tp-trust-line {
        margin-top: .65rem !important;
        padding-top: .65rem !important;
        font-size: .72rem !important;
    }

    /* Rate card sidebar: left-align on mobile, sit below with comfy gap */
    .tp-page #profile-header .col-md-4.text-center {
        clear: left;
        text-align: left !important;
        margin-top: 1.25rem;
    }
    .tp-page #profile-header .col-md-4 .tp-trust-line {
        justify-content: flex-start !important;
    }
    /* Group class card: small thumbnail beside text instead of stacked full-width */
    .tp-page #tutor-group-classes li > .row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .tp-page #tutor-group-classes .col-md-2 {
        flex: 0 0 auto;
        width: 72px;
        margin-bottom: 0 !important;
    }
    .tp-page #tutor-group-classes .col-md-2 img {
        width: 56px !important;
        height: 56px !important;
        object-fit: cover;
        border-radius: 6px;
        padding: 0 !important;
    }
    .tp-page #tutor-group-classes .col-md-6 {
        flex: 1 1 calc(100% - 72px);
        min-width: 0;
    }
    .tp-page #tutor-group-classes .col-md-6 h3 {
        font-size: 1.05rem;
        line-height: 1.3;
    }
    .tp-page #tutor-group-classes .col-md-4 {
        flex: 1 1 100%;
        margin-top: .5rem;
    }
}

/* ---- Sticky CTA bar (appears after rate card scrolls out of view) ---- */
.tp-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform .25s ease-out;
    pointer-events: none;
}
.tp-sticky-cta.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}
.tp-sticky-cta__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: .75rem;
    align-items: stretch;
}
.tp-sticky-cta__primary {
    flex: 2 1 auto;
    border-radius: 8px !important;
    font-weight: 600;
    padding: .7rem 1rem !important;
    background: var(--tp-coral) !important;
    border-color: var(--tp-coral) !important;
}
.tp-sticky-cta__secondary {
    flex: 1 1 auto;
    border-radius: 8px !important;
    font-weight: 500;
    padding: .7rem 1rem !important;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .tp-sticky-cta__inner {
        flex-direction: column;
        gap: .5rem;
    }
    .tp-sticky-cta__primary,
    .tp-sticky-cta__secondary {
        flex: 0 0 auto;
    }
}

/* ---- Subtle card surface for testimonials, group classes, etc. ---- */
.tp-page #tutor-testimonials .review-content,
.tp-page #tutor-group-classes .group-class-card,
.tp-page #tutor-location-and-videos .panel {
    border-radius: var(--tp-radius-card);
}
