/**
 * Qias Teachers Showcase - Teacher Profile Redesign Styles (v6.2.1)
 * Matches desktop & mobile mockups, scoped strictly under .qias-t-profile-wrapper.
 */

.qias-t-profile-wrapper {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.9;
    --qias-t-mint: #E8F6F1;
    --qias-t-accent: #FF6B4A;
    --qias-t-sun: #FFC94D;
    --qias-t-radius: 20px;
    --qias-t-radius-sm: 12px;
    --qias-t-shadow: 0 10px 30px rgba(11, 31, 28, 0.07);
    direction: rtl;
    font-family: var(--qias-t-font, Vazirmatn, IRANSansX, system-ui, sans-serif);
    background: #F4FAF8;
    color: var(--qias-t-dark);
    overflow-x: clip;
    padding-block-start: 108px;
    padding-block-end: 64px;
}

.qias-t-profile-wrapper *,
.qias-t-profile-wrapper *::before,
.qias-t-profile-wrapper *::after {
    box-sizing: border-box;
}

.qias-t-profile-wrapper :focus-visible {
    outline: 2px solid var(--qias-t-sun);
    outline-offset: 2px;
}

.qias-t-profile-wrapper .qias-p-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* === 1. HERO BANNER (Contained, 4 Rounded Corners, Compact) === */
.qias-t-profile-wrapper .qias-p-hero {
    position: relative;
    padding: 26px 32px 28px;
    background: linear-gradient(135deg, var(--qias-t-hero-start, #0C3B34) 0%, #146356 52%, var(--qias-t-hero-end, #1E7E6E) 100%);
    border-radius: 26px;
    box-shadow: 0 16px 38px rgba(11, 31, 28, 0.14);
    overflow: hidden;
    color: #FFFFFF;
}

.qias-t-profile-wrapper .qias-p-hero.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.qias-t-profile-wrapper .qias-p-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 31, 28, 0.80), rgba(14, 124, 102, 0.72));
    pointer-events: none;
    z-index: 1;
}

.qias-t-profile-wrapper .qias-p-hero-glow-amber {
    position: absolute;
    inset-block-end: -55px;
    inset-inline-end: 90px;
    width: 240px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 201, 77, 0.52) 0%, rgba(255, 201, 77, 0) 72%);
    pointer-events: none;
    z-index: 1;
}

.qias-t-profile-wrapper .qias-p-hero-glow-mint {
    position: absolute;
    inset-block-start: -45px;
    inset-inline-start: -45px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 204, 193, 0.25) 0%, rgba(90, 204, 193, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.qias-t-profile-wrapper .qias-p-hero-decor {
    position: absolute;
    inset-block-end: 8px;
    inset-inline-end: 26px;
    width: 195px;
    height: auto;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22));
}

.qias-t-profile-wrapper .qias-p-hero-inner {
    position: relative;
    z-index: 3;
}

.qias-t-profile-wrapper .qias-p-breadcrumbs-row {
    display: flex;
    justify-content: flex-start;
    margin-block-end: 14px;
}

.qias-t-profile-wrapper .qias-p-breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.qias-t-profile-wrapper .qias-p-breadcrumbs a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
}

.qias-t-profile-wrapper .qias-p-breadcrumbs a:hover {
    text-decoration: underline;
}

.qias-t-profile-wrapper .qias-p-hero-grid {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding-inline-end: 190px;
}

.qias-t-profile-wrapper .qias-p-avatar-ring {
    position: relative;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    padding: 4px;
    background: var(--qias-t-mint);
    box-shadow: 0 12px 28px rgba(11, 31, 28, 0.26);
}

.qias-t-profile-wrapper .qias-p-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    background: #FFFFFF;
}

.qias-t-profile-wrapper .qias-p-avatar-ph {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    background: rgba(255, 255, 255, 0.16);
}

.qias-t-profile-wrapper .qias-p-hero-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qias-t-profile-wrapper .qias-p-verified-dot {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-start: 4px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}

.qias-t-profile-wrapper .qias-p-verified-dot svg {
    display: block;
    width: 32px;
    height: 32px;
}

.qias-t-profile-wrapper .qias-p-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    margin-block-end: 0;
}

.qias-t-profile-wrapper .qias-p-hero-name {
    margin: 0 0 4px;
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 900;
    line-height: 1.25;
    color: #FFFFFF;
}

.qias-t-profile-wrapper .qias-p-hero-role {
    margin: 0 0 16px;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.65;
    color: #E8F6F1;
}

.qias-t-profile-wrapper .qias-p-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-block-end: 16px;
}

.qias-t-profile-wrapper .qias-p-stat-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--qias-t-radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qias-t-profile-wrapper .qias-p-stat-card.is-empty {
    display: none;
}

.qias-t-profile-wrapper .qias-p-stat-ico {
    font-size: 19px;
    flex-shrink: 0;
}

.qias-t-profile-wrapper .qias-p-stat-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.qias-t-profile-wrapper .qias-p-stat-val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
}

.qias-t-profile-wrapper .qias-p-stat-lbl {
    display: block;
    font-size: 11.5px;
    color: rgba(232, 246, 241, 0.92);
    line-height: 1.4;
}

.qias-t-profile-wrapper .qias-p-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.qias-t-profile-wrapper .qias-p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--qias-t-radius-sm);
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.qias-t-profile-wrapper .qias-p-btn-cta {
    background: var(--qias-t-prof-cta, var(--qias-t-accent));
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(255, 107, 74, 0.34);
}

.qias-t-profile-wrapper .qias-p-btn-cta:hover {
    transform: translateY(-2px);
    color: #FFFFFF;
}

.qias-t-profile-wrapper .qias-p-btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.34);
}

.qias-t-profile-wrapper .qias-p-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
}

/* Override frontend.css .qias-hero-like-btn cleanly inside profile wrapper */
.qias-t-profile-wrapper .qias-hero-like-btn.qias-t-like-btn {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: var(--qias-t-radius-sm) !important;
    padding: 10px 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.qias-t-profile-wrapper .qias-hero-like-btn.qias-t-like-btn:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    transform: translateY(-1px);
}

.qias-t-profile-wrapper .qias-hero-like-btn.qias-t-like-btn.is-liked {
    background: #FFF1F2 !important;
    color: #BE123C !important;
    border-color: #FDA4AF !important;
}

.qias-t-profile-wrapper .qias-like-count {
    background: rgba(11, 31, 28, 0.24);
    color: #FFFFFF;
    padding: 1px 8px;
    border-radius: 99px;
    font-size: 12px;
}

.qias-t-profile-wrapper .qias-t-like-btn.is-liked .qias-like-count {
    background: #FFE4E6;
    color: #9F1239;
}

/* === 2. MAIN 12-COLUMN WORKSPACE (Right: Videos+Courses 8 cols | Left: About 4 cols) === */
.qias-t-profile-wrapper .qias-p-main-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    margin-block-start: 28px;
    align-items: start;
}

.qias-t-profile-wrapper .qias-p-content-col {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.qias-t-profile-wrapper .qias-p-about-col {
    grid-column: span 4;
}

/* === 3. ABOUT TEACHER CARD === */
.qias-t-profile-wrapper .qias-p-about-card {
    background: #FFFFFF;
    border-radius: var(--qias-t-radius);
    padding: 22px;
    box-shadow: var(--qias-t-shadow);
    border: 1px solid #E2F1ED;
}

.qias-t-profile-wrapper .qias-p-about-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 99px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 14.5px;
    font-weight: 800;
    margin-block-end: 16px;
}

.qias-t-profile-wrapper .qias-p-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-block-end: 16px;
}

.qias-t-profile-wrapper .qias-p-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--qias-t-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qias-t-profile-wrapper .qias-p-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--qias-t-mint);
    color: var(--qias-t-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.qias-t-profile-wrapper .qias-p-bio-body {
    font-size: clamp(14.5px, 1vw, 16px);
    line-height: 1.85;
    color: #334155;
}

.qias-t-profile-wrapper .qias-p-bio-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qias-t-profile-wrapper .qias-p-bio-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block-end: 10px;
    border-block-end: 1px dashed #E2EFEF;
    font-size: 14px;
    line-height: 1.65;
    color: #1E293B;
    font-weight: 600;
}

.qias-t-profile-wrapper .qias-p-bio-list li:last-child {
    border-block-end: none;
    padding-block-end: 0;
}

.qias-t-profile-wrapper .qias-p-bio-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--qias-t-mint);
    color: var(--qias-t-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qias-t-profile-wrapper .qias-p-method-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-block-start: 18px;
}

.qias-t-profile-wrapper .qias-p-method-item {
    background: var(--qias-t-mint);
    border-radius: var(--qias-t-radius-sm);
    padding: 12px 14px;
    border-inline-start: 3px solid var(--qias-t-primary);
}

.qias-t-profile-wrapper .qias-p-method-item h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 800;
    color: var(--qias-t-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.qias-t-profile-wrapper .qias-p-method-item p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: #334155;
}

/* === 4. VIDEOS SECTION (3 Cards Per Row on Desktop) === */
.qias-t-profile-wrapper .qias-p-videos-section,
.qias-t-profile-wrapper .qias-p-packages-section {
    background: transparent;
    padding: 0;
}

.qias-t-profile-wrapper .qias-t-tabs-level1 {
    justify-content: flex-start;
    margin-block: 10px 18px;
    gap: 8px;
}

.qias-t-profile-wrapper .qias-p-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card {
    max-width: none;
    min-width: 0;
    width: 100%;
    border-radius: 18px;
}

.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-body {
    padding: 12px 14px 14px;
}

.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-teacher-name {
    font-size: 15px;
}

.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-feature-item {
    font-size: 11.5px;
}

.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-btn-play,
.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-btn-detail {
    font-size: 11.5px !important;
    padding: 7px 8px !important;
    min-height: 34px;
}

/* === 5. PACKAGES SECTION === */
.qias-t-profile-wrapper .qias-pkg-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 10px 16px;
}

.qias-t-profile-wrapper .qias-t-package-tab {
    background: var(--qias-t-mint);
    color: var(--qias-t-dark);
    border: 1px solid #C8EAE1;
    border-radius: var(--qias-t-radius-sm);
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.qias-t-profile-wrapper .qias-t-package-tab.active {
    background: var(--qias-t-primary);
    color: #FFFFFF;
    border-color: var(--qias-t-primary);
}

.qias-t-profile-wrapper .qias-p-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* === 6. STICKY MOBILE CTA BAR (< 768px only) === */
.qias-t-profile-wrapper .qias-p-mobile-sticky {
    display: none;
}

/* === 7. RESPONSIVE BREAKPOINTS === */
@media (max-width: 1199px) {
    .qias-t-profile-wrapper .qias-p-hero-grid {
        padding-inline-end: 0;
    }
    .qias-t-profile-wrapper .qias-p-hero-decor {
        width: 130px;
        opacity: 0.35;
    }
    .qias-t-profile-wrapper .qias-p-main-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .qias-t-profile-wrapper .qias-p-content-col,
    .qias-t-profile-wrapper .qias-p-about-col {
        grid-column: span 6;
    }
    .qias-t-profile-wrapper .qias-p-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .qias-t-profile-wrapper {
        padding-block-start: 84px;
        padding-block-end: calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .qias-t-profile-wrapper .qias-p-container {
        padding-inline: 12px;
    }
    .qias-t-profile-wrapper .qias-p-hero {
        padding: 18px 16px 20px;
        border-radius: 22px;
    }
    .qias-t-profile-wrapper .qias-p-hero-decor {
        width: 100px;
        inset-block-start: 14px;
        inset-block-end: auto;
        inset-inline-end: 12px;
        opacity: 0.92;
    }
    .qias-t-profile-wrapper .qias-p-hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }
    .qias-t-profile-wrapper .qias-p-hero-avatar-col {
        display: flex;
        justify-content: center;
    }
    .qias-t-profile-wrapper .qias-p-avatar-ring {
        width: 118px;
        height: 118px;
    }
    .qias-t-profile-wrapper .qias-p-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .qias-t-profile-wrapper .qias-p-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 8px 6px;
        gap: 3px;
    }
    .qias-t-profile-wrapper .qias-p-actions-row {
        justify-content: center;
    }
    .qias-t-profile-wrapper .qias-p-btn-cta {
        width: 100%;
    }
    .qias-t-profile-wrapper .qias-p-main-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .qias-t-profile-wrapper .qias-p-about-col {
        grid-column: span 1;
        order: -1;
    }
    .qias-t-profile-wrapper .qias-p-content-col {
        grid-column: span 1;
    }
    .qias-t-profile-wrapper .qias-p-videos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    /* Mobile horizontal compact video card matching mockup */
    .qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 128px;
        align-items: stretch;
    }
    .qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-media {
        order: 2;
        aspect-ratio: auto;
        min-height: 118px;
    }
    .qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-body {
        order: 1;
        padding: 10px 12px;
    }
    .qias-t-profile-wrapper .qias-p-videos-grid .qias-t-teacher-info {
        text-align: right;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    .qias-t-profile-wrapper .qias-p-videos-grid .qias-t-play-badge {
        display: none;
    }
    .qias-t-profile-wrapper .qias-p-mobile-sticky {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        inset-block-end: 0;
        inset-inline: 0;
        z-index: 990;
        background: #FFFFFF;
        border-block-start: 1px solid #D5ECE9;
        box-shadow: 0 -8px 24px rgba(11, 31, 28, 0.12);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    }
    .qias-t-profile-wrapper .qias-p-sticky-cta {
        flex: 1;
        background: var(--qias-t-prof-cta, var(--qias-t-accent));
        color: #FFFFFF;
        padding: 12px 16px;
        border-radius: var(--qias-t-radius-sm);
        font-size: 14px;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
    }
}

@media (min-width: 1200px) {
    .qias-t-profile-wrapper .qias-p-about-col {grid-column: 9 / 13; grid-row: 1;}
    .qias-t-profile-wrapper .qias-p-content-col {grid-column: 1 / 9; grid-row: 1;}
}
.qias-t-profile-wrapper .qias-p-method-stack summary {cursor:pointer;color:var(--qias-t-primary,#0e7c66);font-weight:700;}
.qias-t-profile-wrapper .qias-p-content-col,.qias-t-profile-wrapper .qias-p-about-col {min-inline-size:0;overflow-wrap:anywhere;}
.qias-t-profile-wrapper .qias-p-bio-body {overflow:auto;}
.qias-t-profile-wrapper .qias-p-bio-body img {max-inline-size:100%;height:auto;}
@media (max-width:767px) {
    .qias-t-profile-wrapper .qias-p-hero-grid {grid-template-columns:minmax(0,1fr) minmax(88px,30%);grid-template-areas:'badge portrait' 'name portrait' 'role portrait' 'stats stats' 'actions actions';text-align:start;gap:8px;}
    .qias-t-profile-wrapper .qias-p-hero-content-col {display:contents;}
    .qias-t-profile-wrapper .qias-p-hero-avatar-col {grid-area:portrait;}
    .qias-t-profile-wrapper .qias-p-avatar-ring {inline-size:min(100%,118px);height:auto;aspect-ratio:1;}
    .qias-t-profile-wrapper .qias-p-badge-pill {grid-area:badge;justify-self:start;}
    .qias-t-profile-wrapper .qias-p-hero-name {grid-area:name;margin:0;}
    .qias-t-profile-wrapper .qias-p-hero-role {grid-area:role;margin:0;}
    .qias-t-profile-wrapper .qias-p-stats-grid {grid-area:stats;}
    .qias-t-profile-wrapper .qias-p-actions-row {grid-area:actions;}
    .qias-t-profile-wrapper .qias-p-stat-lbl {font-size:11px;}
    .qias-t-profile-wrapper .qias-p-packages-grid .qias-teacher-pkg-card {display:grid;grid-template-columns:minmax(0,1fr) 42%;}
    .qias-t-profile-wrapper .qias-teacher-pkg-card .qias-tpkg-media {order:2;height:100%;}
    .qias-t-profile-wrapper .qias-teacher-pkg-card .qias-tpkg-body {min-width:0;}
}
@media (min-width: 960px) {
    .qias-teacher-profile-wrapper.qias-t-profile-wrapper {width:100%;max-width:none;padding:0 0 64px;background:#f5faf8 url('../art/page-left.svg') left clamp(230px,26vw,430px)/11.5% auto no-repeat;background-image:url('../art/page-left.svg'),url('../art/page-right.svg');background-position:left clamp(230px,26vw,430px),right clamp(230px,26vw,430px);background-size:11.5% auto,13.3% auto;background-repeat:no-repeat;background-attachment:fixed;}
    .qias-t-profile-wrapper > .qias-p-container:first-child {max-width:none;width:98%;padding:0;}
    .qias-t-profile-wrapper .qias-p-hero {border-radius:clamp(20px,2.1vw,36px);padding:clamp(15px,1.5vw,27px) 0;box-shadow:0 6px 18px #13544712;}
    .qias-t-profile-wrapper .qias-p-hero:not(.has-bg-image) {background:url('../art/study-left.png') left bottom/auto 100% no-repeat,url('../art/study-right.png') right bottom/auto 100% no-repeat,linear-gradient(105deg,#094637,#087966);}
    .qias-t-profile-wrapper .qias-p-hero-decor,.qias-t-profile-wrapper .qias-p-hero-glow-amber,.qias-t-profile-wrapper .qias-p-hero-glow-mint {display:none;}
    .qias-t-profile-wrapper .qias-p-hero-inner {width:64%;margin-inline:15% auto;}
    .qias-t-profile-wrapper .qias-p-hero-grid {padding:0;grid-template-columns:clamp(95px,9.5vw,158px) minmax(0,1fr);gap:2vw;}
    .qias-t-profile-wrapper .qias-p-avatar-ring {width:clamp(95px,9.5vw,158px);height:clamp(95px,9.5vw,158px);box-sizing:border-box;flex:none;background:linear-gradient(145deg,#b7f8ef 45%,#ffd76a);}
    .qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-subject{width:66%;max-width:calc(100% - 75px);box-sizing:border-box;text-align:center;text-overflow:clip;color:#664127;background:#fffaef}
    .qias-t-profile-wrapper .qias-mobile-crumb[hidden]{display:none!important}
    .qias-p-videos-grid .qias-t-card-body{min-width:0}
    .qias-t-profile-wrapper .qias-p-videos-grid .qias-mobile-video-title{display:block;margin:0;padding:7px 10px;background:#fff3e7;color:#663b28;border-radius:9px;font-size:17px;font-weight:700;font-family:inherit;line-height:28px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:clip}
    .qias-t-profile-wrapper .qias-p-videos-grid .qias-t-teacher-info{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:10px;min-width:0}
    .qias-p-videos-grid .qias-t-teacher-info :is(.qias-t-teacher-name,.qias-t-teacher-role){margin:0;min-width:0;padding:4px 7px;border-radius:8px;font-size:12px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#f2e6f9;color:#613974}
    .qias-p-videos-grid .qias-t-teacher-info .qias-t-teacher-role{background:#fff0d5;color:#704709}
    .qias-t-profile-wrapper .qias-p-hero-name {font-size:clamp(19px,1.65vw,29px);}
    .qias-t-profile-wrapper .qias-p-hero-role {margin-bottom:5px;}
    .qias-t-profile-wrapper .qias-p-breadcrumbs-row {margin:0 5% 8px;}
    .qias-t-profile-wrapper .qias-p-stats-grid {margin-bottom:8px;}
    .qias-t-profile-wrapper .qias-p-btn {padding:6px 12px;}
    .qias-t-profile-wrapper > .qias-p-container:nth-child(2) {width:74%;max-width:1410px;padding:0;}
    .qias-t-profile-wrapper .qias-p-main-grid {grid-template-columns:minmax(0,2.15fr) minmax(0,1fr);gap:1.65vw;margin-top:1.8vw;}
    .qias-t-profile-wrapper .qias-p-content-col {grid-column:1;grid-row:1;}
    .qias-t-profile-wrapper .qias-p-about-col {grid-column:2;grid-row:1;margin-top:12px;}
    .qias-t-profile-wrapper .qias-p-videos-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2vw;}
    .qias-t-profile-wrapper .qias-p-about-card {box-shadow:0 6px 22px #124c3b0c;}
}
@media (min-width: 960px) {
    .qias-teacher-profile-wrapper.qias-t-profile-wrapper {
        padding-top: var(--qias-profile-header-gap, 0px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qias-t-profile-wrapper *,
    .qias-t-profile-wrapper *::before,
    .qias-t-profile-wrapper *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

.qias-t-profile-wrapper .qias-p-method-cards { display: flex; flex-direction: column; gap: 12px; margin-block-start: 12px; }

@media (max-width:767px){
/* Loaded only on mobile teacher profiles. Logical grid starts on the right. */
.qias-teacher-profile-wrapper.qias-t-profile-wrapper{padding-inline:0;background:#f6fbf9 url('../art/page-right.svg') right bottom/28% auto no-repeat}
.qias-t-profile-wrapper .qias-mobile-crumb[hidden]{display:block!important;font-size:12px;color:#47625c;padding:6px 10px 10px}.qias-mobile-crumb a{color:inherit}
.qias-t-profile-wrapper .qias-p-breadcrumbs-row,.qias-t-profile-wrapper .qias-p-hero-decor{display:none}
.qias-t-profile-wrapper .qias-p-hero:not(.has-bg-image){background:url('../art/study-left.png') left top/29% auto no-repeat,linear-gradient(115deg,#128470,#096354)}
.qias-t-profile-wrapper .qias-p-hero{padding:clamp(18px,5vw,30px) 3.5vw 14px;border-radius:16px}
.qias-t-profile-wrapper .qias-p-hero-grid{grid-template-columns:minmax(0,1fr) 30% 12%;grid-template-areas:'badge badge .' 'name portrait .' 'role portrait .' 'stats stats stats' 'actions actions actions';gap:8px 4px;padding:0}
.qias-t-profile-wrapper .qias-p-hero-avatar-col{display:contents}.qias-t-profile-wrapper .qias-p-avatar-ring{grid-area:portrait;width:100%;max-width:148px;height:auto;aspect-ratio:1}.qias-t-profile-wrapper .qias-p-verified-dot{inset-inline:auto 0}
.qias-t-profile-wrapper .qias-p-badge-pill{margin:0}.qias-t-profile-wrapper .qias-p-hero-name{align-self:end;font-size:clamp(19px,5vw,32px)}.qias-t-profile-wrapper .qias-p-hero-role{align-self:start;font-size:clamp(12px,3vw,16px)}
.qias-t-profile-wrapper .qias-p-stats-grid{margin:12px 0 4px}.qias-t-profile-wrapper .qias-p-stat-card{flex-direction:row;justify-content:center;min-width:0}.qias-t-profile-wrapper .qias-p-stat-lbl{display:none}
.qias-t-profile-wrapper .qias-p-actions-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.qias-t-profile-wrapper .qias-p-actions-row .qias-p-btn-cta{grid-column:1/-1}.qias-t-profile-wrapper .qias-p-actions-row :is(.qias-p-btn,.qias-hero-like-btn){min-width:0;margin:0;justify-content:center;border-radius:12px;padding:9px 4px}.qias-t-profile-wrapper .qias-p-actions-row :is(.qias-p-btn-secondary,.qias-hero-like-btn){background:transparent;color:white;border:1px solid white}
.qias-t-profile-wrapper .qias-p-about-card{margin-inline:2vw;background:white;border-radius:16px}.qias-t-profile-wrapper .qias-p-bio-list li{border-bottom:1px solid #edf2ef}.qias-t-profile-wrapper .qias-p-section-title{background:#ddf4ec;padding:6px 12px;border-radius:24px;font-size:clamp(15px,4vw,21px)}
.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card{grid-template-columns:minmax(0,1fr) 48%;padding:6px;border-radius:14px;background:white}.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-body{padding:5px;min-width:0}.qias-t-profile-wrapper .qias-t-card-actions{display:flex;flex-wrap:wrap;gap:3px}.qias-t-profile-wrapper .qias-t-card-actions>*{min-width:0;padding:5px;font-size:11px}.qias-t-profile-wrapper .qias-t-card-media>a{display:block;height:100%}.qias-t-profile-wrapper .qias-t-center-play{opacity:1}
.qias-t-profile-wrapper .qias-p-packages-grid{grid-template-columns:1fr}.qias-t-profile-wrapper .qias-p-packages-grid .qias-teacher-pkg-card{grid-template-columns:minmax(0,1fr) 52%;grid-template-areas:'title photo' 'price photo' 'buy buy';gap:6px;padding:8px;background:white}.qias-t-profile-wrapper .qias-teacher-pkg-card .qias-tpkg-body{display:contents}.qias-t-profile-wrapper .qias-teacher-pkg-card .qias-tpkg-media{grid-area:photo;aspect-ratio:1.65;height:auto;border-radius:10px}.qias-t-profile-wrapper .qias-tpkg-title{grid-area:title;align-self:center}.qias-t-profile-wrapper .qias-tpkg-price-wrap{grid-area:price}.qias-t-profile-wrapper .qias-tpkg-buy-btn{grid-area:buy;text-align:center}
/* Compact mobile composition */
.qias-teacher-profile-wrapper.qias-t-profile-wrapper{padding-block-start:8px}
.qias-t-profile-wrapper .qias-p-hero:not(.has-bg-image){background:url('../art/study-mobile-cutout.webp') left 5px top 8px / clamp(64px,19vw,92px) auto no-repeat,linear-gradient(115deg,#128470,#096354)}
.qias-t-profile-wrapper .qias-pkg-filter-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:8px;direction:rtl}
.qias-t-profile-wrapper .qias-pkg-filter-tabs .qias-pkg-tab-btn{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:7px 6px;text-align:center;white-space:normal;line-height:1.5}
.qias-t-profile-wrapper :is(.qias-p-hero-glow-amber,.qias-p-hero-glow-mint){display:none}
.qias-t-profile-wrapper .qias-p-actions-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.qias-t-profile-wrapper .qias-p-actions-row .qias-hero-like-btn{width:auto;max-width:30vw;min-height:42px;padding:5px 9px;gap:4px}
.qias-t-profile-wrapper .qias-p-actions-row .qias-p-btn{justify-content:center;text-align:center;line-height:1.5;white-space:normal;text-wrap:balance}
.qias-t-profile-wrapper .qias-p-videos-section .qias-counter-pill{display:none}
.qias-t-profile-wrapper .qias-p-videos-section .qias-t-tabs-level1{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:8px 0 12px}
.qias-t-profile-wrapper .qias-t-tabs-level1 .qias-t-tab-btn{flex:none;border:0;border-radius:99px;padding:5px 10px;background:#e1f4ed;color:#15594b;font-size:12px;white-space:nowrap}.qias-t-profile-wrapper .qias-t-tabs-level1 .qias-t-tab-btn.active{background:#087f69;color:white}
.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card{grid-template-columns:minmax(0,1fr) 49%;align-items:start;gap:5px;border:0;box-shadow:0 2px 8px #1247370c}
.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-media{min-height:0;height:auto;aspect-ratio:1.6;border-radius:9px}
.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-body{padding:2px;gap:5px;align-self:stretch}
.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-teacher-info{display:none}
.qias-t-profile-wrapper .qias-mobile-video-title{display:block!important;font-size:clamp(12px,3vw,17px);line-height:1.5;margin:0 0 3px;color:#162822}
.qias-t-profile-wrapper .qias-t-card-features{margin:0;gap:2px}.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-feature-item{font-size:clamp(10px,2.6vw,13px);line-height:1.45;gap:3px}
.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-actions{display:grid;grid-template-columns:1.35fr 1fr;gap:3px}.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card-actions>*{width:100%;padding:4px 2px!important;font-size:clamp(9px,2.5vw,13px)!important;line-height:1.4;min-height:30px;border-radius:7px!important;text-align:center}.qias-t-profile-wrapper .qias-t-btn-detail svg{display:none}
.qias-t-profile-wrapper .qias-t-card-media :is(.qias-t-card-duration,.qias-t-card-subject,.qias-mobile-author){position:absolute;top:4px;z-index:3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(8px,2vw,12px);line-height:1.6;padding:1px 3px;border-radius:7px}.qias-t-profile-wrapper .qias-t-card-media .qias-t-card-duration{left:2%;max-width:23%}.qias-t-profile-wrapper .qias-t-card-media .qias-t-card-subject{right:2%;max-width:31%;background:#087f69;color:white}.qias-t-profile-wrapper .qias-mobile-author[hidden]{display:block!important;right:35%;max-width:38%;background:#cff4e9;color:#094d42}
.qias-t-profile-wrapper .qias-p-mobile-sticky{border-radius:18px 18px 0 0}.qias-mobile-price{display:grid;flex:1;text-align:center;font-weight:700;border-inline-end:1px solid #cee4dc}.qias-mobile-price small{font-size:11px;color:#45635b}

.qias-t-profile-wrapper .qias-p-actions-row .qias-hero-like-btn{justify-self:end;padding:5px 9px!important;font-size:12px!important;gap:4px!important}
.qias-t-profile-wrapper .qias-p-actions-row a[href="#qias-t-profile-videos"]{width:100%;text-align:center;min-width:0;line-height:1.55}
.qias-t-profile-wrapper .qias-p-actions-row a[href="#qias-t-profile-videos"] span{white-space:normal;word-break:normal;overflow-wrap:normal;text-wrap:balance}
.qias-t-profile-wrapper .qias-p-videos-grid .qias-t-card{grid-template-columns:minmax(0,1fr) 50%;align-items:start}
}
