/* Qias Teachers & Teaching Samples Showcase - Frontend CSS */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --qias-t-primary: #39BAAE;
    --qias-t-secondary: #5ACCC1;
    --qias-t-dark: #2D9389;
    --qias-t-text: #112A28;

    /* Home Tabs & Sizing */
    --qias-t-home-act-bg: #39baae;
    --qias-t-home-act-txt: #ffffff;
    --qias-t-home-inact-bg: #ffffff;
    --qias-t-home-inact-txt: #2d9389;
    --qias-t-home-inact-brd: #a8e4df;
    --qias-t-home-btn: #ff6b4a;
    --qias-t-home-badge: #ff6b4a;
    --qias-t-home-max-width: 1300px;
    --qias-t-home-padding: 24px;

    /* Archive Tabs & Sizing */
    --qias-t-arc-tabs-bg: #257870;
    --qias-t-arc-act-bg: #5accc1;
    --qias-t-arc-act-txt: #f6fcfc;
    --qias-t-arc-inact-txt: #f6fcfc;
    --qias-t-arc-margin-top: 35px;
    --qias-t-arc-margin-bottom: 60px;

    --qias-t-font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
}

.qias-teachers-section-wrapper,
.qias-teachers-archive-wrapper,
.qias-single-video-wrapper {
    font-family: var(--qias-t-font) !important;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    clear: both;
    display: block;
    width: 100%;
}

.qias-teachers-section-wrapper {
    max-width: var(--qias-t-home-max-width);
    margin: 30px auto;
    padding: 0 var(--qias-t-home-padding);
}

.qias-teachers-section-wrapper *,
.qias-teachers-archive-wrapper *,
.qias-single-video-wrapper * {
    box-sizing: border-box;
    font-family: inherit;
}

/* SECTION HEADER (HOME) */
.qias-t-section-header {
    text-align: center;
    margin-bottom: 24px;
}

.qias-t-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--qias-t-text);
    margin: 0;
    position: relative;
    display: inline-block;
}

.qias-t-section-sub1 {
    font-size: 15px;
    color: #475569;
    margin: 6px 0 0;
    font-weight: 500;
}

.qias-t-section-sub2 {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
}

/* TWO-TIER TABS (HOME) */
.qias-t-tabs-master {
    margin-bottom: 30px;
}

.qias-t-tabs-level1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Base Tab Button */
.qias-t-tab-btn {
    background: var(--qias-t-home-inact-bg);
    color: var(--qias-t-home-inact-txt);
    border: 1.5px solid var(--qias-t-home-inact-brd);
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.qias-t-tab-btn:hover {
    border-color: var(--qias-t-home-act-bg);
    color: var(--qias-t-home-act-bg);
    transform: translateY(-1px);
}

.qias-t-tab-btn.active {
    background: var(--qias-t-home-act-bg);
    color: var(--qias-t-home-act-txt);
    border-color: var(--qias-t-home-act-bg);
    box-shadow: 0 4px 14px rgba(45, 147, 137, 0.3);
}

/* Home Tab Styles: Rounded, Pill, Minimal */
.qias-home-tabs-master.qias-style-rounded .qias-t-tab-btn {
    border-radius: 12px;
}

.qias-home-tabs-master.qias-style-pill .qias-t-tab-btn {
    border-radius: 40px;
}

.qias-home-tabs-master.qias-style-minimal .qias-t-tab-btn {
    border-radius: 0;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    box-shadow: none;
    padding: 8px 18px;
}
.qias-home-tabs-master.qias-style-minimal .qias-t-tab-btn.active {
    border-bottom-color: var(--qias-t-home-act-bg);
    color: var(--qias-t-home-act-bg);
    background: transparent;
    box-shadow: none;
}

/* LEVEL 2: SECONDARY SUBJECT SUB-TABS */
.qias-t-tabs-level2-container {
    margin-top: 14px;
}

.qias-t-subtabs-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    animation: qiasFadeSlide 0.25s ease;
}

@keyframes qiasFadeSlide {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.qias-t-subtab-btn {
    background: #EAF7F6;
    color: var(--qias-t-dark);
    border: 1px solid #C1ECE8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.qias-t-subtab-btn:hover {
    background: #D8F2F0;
    color: var(--qias-t-text);
}

.qias-t-subtab-btn.active {
    background: var(--qias-t-primary);
    color: #FFFFFF;
    border-color: var(--qias-t-primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(57, 186, 174, 0.25);
}

/* SLIDER & CAROUSEL */
.qias-t-slider-outer {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.qias-t-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 12px 4px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: flex-start;
}

.qias-t-slider-track::-webkit-scrollbar {
    display: none;
}

.qias-t-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    border-radius: 50%;
    background: #FFFFFF;
    color: #0F766E !important;
    border: 1.5px solid #B6E7E1;
    box-shadow: 0 4px 16px rgba(15,42,56,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    outline: none;
}
.qias-t-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    stroke: currentColor;
}

.qias-t-arrow:hover {
    background: var(--qias-t-dark);
    color: #FFFFFF;
    border-color: var(--qias-t-dark);
    box-shadow: 0 6px 20px rgba(45, 147, 137, 0.35);
}

.qias-t-arrow-prev { right: -12px; }
.qias-t-arrow-next { left: -12px; }

/* VIDEO CARD */
.qias-t-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 275px;
    max-width: 310px;
    scroll-snap-align: start;
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #EBF4F3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.qias-t-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 147, 137, 0.12);
    border-color: #BBE7E3;
}

.qias-t-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    background: #112A28;
    overflow: hidden;
}

.qias-t-media-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.qias-t-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.qias-t-card:hover .qias-t-cover-img {
    transform: scale(1.04);
}

.qias-t-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b3d3a, #112A28);
    color: #A8E4DF;
    font-size: 15px;
    font-weight: 700;
}

.qias-t-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 42, 40, 0.7) 0%, rgba(17, 42, 40, 0.1) 60%, transparent 100%);
    pointer-events: none;
}

.qias-t-card-duration {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    direction: ltr;
}

.qias-t-play-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 42, 40, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.qias-t-play-icon {
    color: var(--qias-t-secondary);
    font-size: 11px;
}

.qias-t-card:hover .qias-t-play-badge {
    background: var(--qias-t-dark);
    border-color: var(--qias-t-secondary);
    box-shadow: 0 6px 16px rgba(45, 147, 137, 0.4);
}

.qias-t-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.qias-t-teacher-info {
    text-align: center;
    margin-bottom: 14px;
    border-bottom: 1px dashed #E2EFEF;
    padding-bottom: 12px;
}

.qias-t-teacher-name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
}

.qias-t-teacher-name a {
    color: var(--qias-t-text);
    text-decoration: none;
    transition: color 0.2s;
}

.qias-t-teacher-name a:hover {
    color: var(--qias-t-dark);
}

.qias-t-teacher-role {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.qias-t-card-features {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
    flex-grow: 1;
}

.qias-t-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.5;
}

.qias-t-tick {
    color: var(--qias-t-dark);
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.qias-t-card-action {
    margin-top: auto;
}

.qias-t-btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--qias-t-home-btn);
    color: #FFFFFF !important;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 107, 74, 0.28);
    transition: all 0.25s ease;
}

.qias-t-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 74, 0.4);
    filter: brightness(1.05);
}

.qias-t-empty-msg {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: #64748b;
    background: #F8FAFA;
    border-radius: 12px;
}

/* ARCHIVE PAGE STYLES */
.qias-teachers-archive-wrapper {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    margin-top: var(--qias-t-arc-margin-top);
    margin-bottom: var(--qias-t-arc-margin-bottom);
}

.qias-t-archive-header {
    text-align: center;
    margin-bottom: 30px;
}

.qias-t-archive-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--qias-t-text);
    margin: 0 0 8px;
}

.qias-t-archive-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 10px;
}

.qias-t-archive-extra {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0 0 20px;
}

/* SEARCH BOX WITH ICON ON LEFT SIDE (FIXES OVERLAPPING ISSUE) */
.qias-t-search-box {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.qias-t-search-input {
    width: 100%;
    padding: 12px 20px 12px 45px; /* 45px on LEFT for search icon */
    border-radius: 35px;
    border: 1.5px solid #CCEBE7;
    font-size: 14px;
    outline: none;
    background: #FFFFFF;
    transition: all 0.25s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    text-align: right;
}

.qias-t-search-input:focus {
    border-color: var(--qias-t-primary);
    box-shadow: 0 4px 16px rgba(57, 186, 174, 0.2);
}

.qias-t-search-icon {
    position: absolute;
    left: 16px; /* MOVED TO LEFT */
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 15px;
}

/* ARCHIVE TABS CONTAINER */
.qias-t-archive-tabs-box {
    background: var(--qias-t-arc-tabs-bg);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 35px;
}

/* Archive Tab Styles */
.qias-t-archive-tabs-box.qias-arc-style-dark_navy .qias-t-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--qias-t-arc-inact-txt);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
}
.qias-t-archive-tabs-box.qias-arc-style-dark_navy .qias-t-tab-btn.active {
    background: var(--qias-t-arc-act-bg);
    color: var(--qias-t-arc-act-txt);
    border-color: var(--qias-t-arc-act-bg);
    box-shadow: 0 4px 15px rgba(57, 186, 174, 0.4);
}

.qias-t-archive-tabs-box.qias-arc-style-light_pill {
    background: #F1F9F8;
    border: 1.5px solid #CFF0ED;
}
.qias-t-archive-tabs-box.qias-arc-style-light_pill .qias-t-tab-btn {
    background: #FFFFFF;
    color: var(--qias-t-dark);
    border: 1px solid #A8E4DF;
    border-radius: 40px;
}
.qias-t-archive-tabs-box.qias-arc-style-light_pill .qias-t-tab-btn.active {
    background: var(--qias-t-arc-act-bg);
    color: var(--qias-t-arc-act-txt);
    border-color: var(--qias-t-arc-act-bg);
}

.qias-t-archive-tabs-box.qias-arc-style-rounded .qias-t-tab-btn {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--qias-t-arc-inact-txt);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.qias-t-archive-tabs-box.qias-arc-style-rounded .qias-t-tab-btn.active {
    background: var(--qias-t-arc-act-bg);
    color: var(--qias-t-arc-act-txt);
    border-color: var(--qias-t-arc-act-bg);
}

.qias-t-archive-tabs-box .qias-t-subtab-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #A8E4DF;
    border-color: rgba(168, 228, 223, 0.25);
}

.qias-t-archive-tabs-box .qias-t-subtab-btn.active {
    background: var(--qias-t-arc-act-bg);
    color: #FFFFFF;
    border-color: var(--qias-t-arc-act-bg);
}

/* Archive Grid Columns */
.qias-t-archive-grid {
    display: grid;
    gap: 22px;
}

.qias-t-archive-grid.qias-t-cols-3 { grid-template-columns: repeat(3, 1fr); }
.qias-t-archive-grid.qias-t-cols-4 { grid-template-columns: repeat(4, 1fr); }
.qias-t-archive-grid.qias-t-cols-5 { grid-template-columns: repeat(5, 1fr); }
.qias-t-archive-grid.qias-t-cols-6 { grid-template-columns: repeat(6, 1fr); }

.qias-t-archive-grid .qias-t-card {
    min-width: 0;
    max-width: 100%;
    flex: auto;
}

/* SINGLE VIDEO PLAYER PAGE */
.qias-single-video-wrapper {
    background: #F7FCFB;
    padding: 35px 20px 70px;
}

.qias-single-video-container {
    max-width: 1240px;
    margin: 0 auto;
}

.qias-single-breadcrumbs {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 25px;
}

.qias-single-breadcrumbs a {
    color: var(--qias-t-dark);
    text-decoration: none;
}

.qias-single-breadcrumbs .qias-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

.qias-single-breadcrumbs .qias-current {
    color: #1e293b;
    font-weight: 600;
}

.qias-single-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.qias-player-box {
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 25px;
}

.qias-responsive-iframe-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.qias-responsive-iframe-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.qias-responsive-video-box video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 560px;
    outline: none;
}

.qias-single-header-info {
    margin-bottom: 20px;
}

.qias-single-cat-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.qias-cat-badge {
    background: #E4F5F3;
    color: var(--qias-t-dark);
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}

.qias-duration-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.qias-single-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--qias-t-text);
    margin: 0;
    line-height: 1.5;
}

.qias-single-highlights-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 22px 24px;
    border: 1px solid #E2EFEF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}

.qias-single-highlights-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--qias-t-text);
}

.qias-single-highlights-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qias-single-highlights-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
}

.qias-tick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E4F7F5;
    color: var(--qias-t-dark);
    font-size: 12px;
    font-weight: 800;
}

.qias-single-description-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 26px;
    border: 1px solid #E2EFEF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.qias-single-description-box h3 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 800;
    color: var(--qias-t-text);
    border-bottom: 2px solid #EAF5F4;
    padding-bottom: 10px;
}

.qias-desc-content {
    font-size: 14.5px;
    line-height: 1.8;
    color: #475569;
}

.qias-single-teacher-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 26px 20px;
    border: 1px solid #E2EFEF;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    text-align: center;
    position: sticky;
    top: 90px;
}

.qias-teacher-avatar-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid var(--qias-t-primary);
    box-shadow: 0 4px 14px rgba(57, 186, 174, 0.25);
}

.qias-teacher-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qias-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #E8F7F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.qias-teacher-card-name {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    color: var(--qias-t-text);
}

.qias-teacher-card-title {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: #64748b;
}

.qias-card-divider {
    border: none;
    border-top: 1px solid #edf2f7;
    margin: 18px 0;
}

.qias-teacher-cta-box p {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 16px;
    line-height: 1.6;
}

.qias-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--qias-t-home-btn), #ff5733);
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.3);
    transition: all 0.25s ease;
    margin-bottom: 12px;
}

.qias-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.45);
}

.qias-secondary-link {
    display: block;
    font-size: 13px;
    color: var(--qias-t-dark);
    text-decoration: none;
    font-weight: 600;
}

.qias-secondary-link:hover {
    text-decoration: underline;
}

.qias-related-videos-section {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px dashed #D5ECE9;
}

.qias-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.qias-section-head h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--qias-t-text);
    margin: 0;
}

.qias-view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--qias-t-dark);
    text-decoration: none;
}

.qias-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .qias-t-card { flex: 0 0 calc(33.333% - 14px); min-width: 260px; }
    .qias-t-archive-grid.qias-t-cols-4,
    .qias-t-archive-grid.qias-t-cols-5,
    .qias-t-archive-grid.qias-t-cols-6 { grid-template-columns: repeat(3, 1fr); }
    .qias-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .qias-single-main-grid { grid-template-columns: 1fr; }
    .qias-t-card { flex: 0 0 calc(50% - 10px); min-width: 240px; }
    .qias-t-archive-grid.qias-t-cols-3,
    .qias-t-archive-grid.qias-t-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .qias-t-card { flex: 0 0 85%; min-width: 240px; }
    .qias-t-archive-grid { grid-template-columns: 1fr !important; }
    .qias-related-grid { grid-template-columns: 1fr; }
    .qias-t-tab-btn { padding: 8px 16px; font-size: 13.5px; }
    .qias-t-arrow { display: none; }
}


/* VIDEO POPUP LIGHTBOX MODAL */
body.qias-modal-open {
    overflow: hidden !important;
}

.qias-video-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--qias-t-font);
}

.qias-video-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 24, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.qias-video-popup-content {
    position: relative;
    max-width: 920px;
    width: 100%;
    background: #0D2220;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(57, 186, 174, 0.3);
    z-index: 2;
    animation: qiasPopupZoom 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes qiasPopupZoom {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.qias-video-popup-close {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    line-height: 1;
}

.qias-video-popup-close:hover {
    background: #FF6B4A;
    transform: rotate(90deg);
}

.qias-video-popup-player-container {
    background: #000000;
    position: relative;
    width: 100%;
}

.qias-popup-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.qias-popup-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.qias-popup-video-wrap video {
    width: 100%;
    height: auto;
    max-height: 540px;
    display: block;
    outline: none;
}

.qias-video-popup-info {
    padding: 18px 24px 22px;
    background: #0D2220;
    text-align: right;
    direction: rtl;
}

.qias-video-popup-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
}

.qias-video-popup-teacher {
    margin: 0;
    font-size: 13.5px;
    color: #5ACCC1;
    font-weight: 600;
}

/* ONLY VIDEO CARD MODE (HOMEPAGE) */
.qias-t-card.qias-only-video-card {
    align-self: flex-start !important;
    height: auto !important;
    cursor: pointer;
}

.qias-t-card.qias-only-video-card .qias-t-card-body {
    padding: 14px 16px 18px !important;
    flex-grow: 0 !important;
    min-height: 0 !important;
}

.qias-t-card.qias-only-video-card .qias-t-teacher-info {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    text-align: center !important;
}

.qias-t-card.qias-only-video-card .qias-t-teacher-name {
    margin: 0 0 3px !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
}

.qias-t-card.qias-only-video-card .qias-t-teacher-role {
    margin: 0 !important;
    font-size: 12.5px !important;
    color: #64748b !important;
}

.qias-t-card.qias-only-video-card .qias-t-card-features,
.qias-t-card.qias-only-video-card .qias-t-card-action {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}


/* TEACHER PROFILE LANDING PAGE */
.qias-teacher-profile-wrapper {
    background: #F8FCFB;
    padding: 35px 20px 80px;
    direction: rtl;
    text-align: right;
    font-family: var(--qias-t-font);
}

.qias-teacher-hero-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid #DDF2F0;
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.qias-teacher-hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--qias-t-primary);
    box-shadow: 0 6px 20px rgba(57, 186, 174, 0.3);
    flex-shrink: 0;
}

.qias-teacher-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qias-avatar-big-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8F7F5;
    font-size: 55px;
}

.qias-teacher-hero-info {
    flex: 1;
}

.qias-teacher-hero-badge {
    background: #E4F7F5;
    color: var(--qias-t-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.qias-teacher-hero-name {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: var(--qias-t-text);
}

.qias-teacher-hero-title {
    margin: 0 0 14px;
    font-size: 15px;
    color: #475569;
    font-weight: 500;
}

.qias-teacher-hero-bio {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
}

.qias-teacher-hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.qias-stat-badge {
    background: #F1F5F9;
    color: #334155;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .qias-teacher-hero-card {
        flex-direction: column;
        text-align: center;
    }
    .qias-teacher-hero-actions {
        justify-content: center;
    }
}


/* ENFORCE VAZIRMATN ON TEACHER PROFILE & HEADINGS */
.qias-teacher-profile-wrapper,
.qias-teacher-profile-wrapper *,
.qias-teacher-hero-name,
h1.qias-teacher-hero-name,
.qias-teacher-hero-title,
.qias-teacher-hero-badge,
.qias-teacher-hero-bio,
.qias-teacher-hero-bio *,
.qias-teacher-videos-showcase h2,
.qias-teacher-hero-actions * {
    font-family: var(--qias-t-font) !important;
}

h1.qias-teacher-hero-name {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

/* -------------------------------------------------------------
 * V3.0.0 Enterprise: Teacher Profile WooCommerce Packages Grid
 * ------------------------------------------------------------- */
.qias-teacher-packages-showcase {
    margin-top: 50px;
    clear: both;
}

.qias-teacher-packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.qias-teacher-pkg-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #EBF4F3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.qias-teacher-pkg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 147, 137, 0.14);
    border-color: #BBE7E3;
}

.qias-tpkg-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #112A28;
    overflow: hidden;
}

.qias-tpkg-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.qias-tpkg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.qias-teacher-pkg-card:hover .qias-tpkg-media img {
    transform: scale(1.04);
}

.qias-tpkg-discount-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #EF4444, #F97316);
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    z-index: 2;
}

.qias-tpkg-cat {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(17, 42, 40, 0.85);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.qias-tpkg-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.qias-tpkg-title {
    margin: 0 0 12px;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.5;
}

.qias-tpkg-title a {
    color: var(--qias-t-text);
    text-decoration: none;
    transition: color 0.2s;
}

.qias-tpkg-title a:hover {
    color: var(--qias-t-dark);
}

.qias-tpkg-price-wrap {
    margin-top: auto;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.qias-tpkg-price-wrap del {
    color: #94a3b8;
    font-size: 12.5px;
}

.qias-tpkg-curr-price {
    color: var(--qias-t-dark);
    font-size: 16px;
    font-weight: 800;
}

.qias-tpkg-curr-price small {
    font-size: 11.5px;
    font-weight: 500;
}

.qias-tpkg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--qias-t-primary), var(--qias-t-dark));
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(45, 147, 137, 0.25);
    transition: all 0.25s ease;
}

.qias-tpkg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 147, 137, 0.4);
    filter: brightness(1.05);
}

@media (max-width: 1100px) {
    .qias-teacher-packages-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .qias-teacher-packages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .qias-teacher-packages-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   V3.0.0 Enterprise Edition: Ultra-Modern Teacher Profile & Dedicated Packages Landing
   ========================================================================== */

/* 1. Hero Enterprise Banner */
.qias-teacher-enterprise-hero {
    background: linear-gradient(135deg, #0B2522 0%, #164E48 45%, #237A71 100%);
    padding: 35px 20px 45px;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 15px 40px rgba(11, 37, 34, 0.15);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.qias-teacher-enterprise-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(57, 186, 174, 0.18) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Glassmorphic Breadcrumbs */
.qias-glass-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 25px;
    color: #e2f4f2;
}

.qias-glass-breadcrumbs a {
    color: #a8e4df;
    text-decoration: none;
    transition: color 0.2s;
}

.qias-glass-breadcrumbs a:hover {
    color: #ffffff;
}

.qias-glass-breadcrumbs .qias-sep {
    color: rgba(255, 255, 255, 0.4);
}

.qias-glass-breadcrumbs .qias-current {
    color: #ffffff;
    font-weight: 700;
}

/* Hero Main Card */
.qias-teacher-hero-main-card {
    display: flex;
    align-items: center;
    gap: 35px;
    position: relative;
    z-index: 2;
}

.qias-hero-avatar-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.qias-hero-avatar-img,
.qias-hero-avatar-ph {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #39BAAE;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    background: #ffffff;
}

.qias-hero-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #164E48;
}

.qias-verified-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10B981, #059669);
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.qias-hero-details {
    flex: 1;
}

.qias-hero-badge-pill {
    display: inline-block;
    background: rgba(57, 186, 174, 0.2);
    border: 1px solid #39BAAE;
    color: #a8e4df;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.qias-hero-name {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.6px;
    line-height: 1.3;
}

.qias-hero-title {
    font-size: 16px;
    font-weight: 600;
    color: #c9ede9;
    margin: 0 0 18px;
}

/* 4 Honor / Stat Badges */
.qias-hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.qias-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.qias-stat-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.qias-stat-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.qias-stat-card div {
    display: flex;
    flex-direction: column;
}

.qias-stat-card strong {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.qias-stat-card span {
    font-size: 11.5px;
    color: #a8e4df;
    margin-top: 2px;
}

/* Hero Action Buttons */
.qias-hero-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qias-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.qias-hero-btn-primary {
    background: linear-gradient(135deg, #FF6B4A, #ff5733);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.4);
}

.qias-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 74, 0.5);
    color: #ffffff;
}

.qias-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.qias-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 2. About Teacher & Method Highlights Card */
.qias-about-teacher-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 30px 35px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid #EBF4F3;
    margin-bottom: 40px;
}

.qias-about-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F1F8F7;
}

.qias-about-icon {
    font-size: 24px;
}

.qias-about-head h2 {
    font-size: 20px;
    font-weight: 800;
    color: #112A28;
    margin: 0;
}

.qias-about-content {
    font-size: 15px;
    line-height: 1.9;
    color: #334155;
}

.qias-method-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.qias-method-box {
    background: #F8FCFB;
    border: 1.5px solid #D5ECE9;
    border-radius: 16px;
    padding: 22px 20px;
    transition: all 0.25s ease;
}

.qias-method-box:hover {
    background: #FFFFFF;
    border-color: #39BAAE;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(57, 186, 174, 0.12);
}

.qias-method-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.qias-method-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: #164E48;
    margin: 0 0 8px;
}

.qias-method-box p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* Modern Section Head */
.qias-section-head-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 2px solid #E2EFEF;
    padding-bottom: 14px;
}

.qias-badge-tag {
    display: inline-block;
    background: #E0F2FE;
    color: #0369A1;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.qias-section-head-modern h2 {
    font-size: 22px;
    font-weight: 800;
    color: #112A28;
    margin: 0;
}

.qias-counter-pill {
    background: #F1F8F7;
    color: #2D9389;
    border: 1px solid #CFF0ED;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
}

.qias-view-all-packages-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1.5px solid #2D9389;
    color: #2D9389 !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qias-view-all-packages-btn:hover {
    background: #2D9389;
    color: #ffffff !important;
}

/* 3. Dedicated Teacher Packages Landing Page */
.qias-teacher-packages-page-wrapper {
    background: #F7FCFB;
    min-height: 80vh;
}

.qias-tpkg-hero-banner {
    background: linear-gradient(135deg, #112A28 0%, #1B5E57 50%, #2A8C81 100%);
    padding: 35px 20px 45px;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.qias-tpkg-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.qias-tpkg-hero-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.qias-tpkg-avatar-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3.5px solid #39BAAE;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.qias-tpkg-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qias-verified-badge-pill {
    display: inline-block;
    background: #10B981;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.qias-tpkg-title-head {
    font-size: 26px;
    font-weight: 800;
	font-family: var(--wd-title-font-style);
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.qias-tpkg-subtitle-head {
    font-size: 14.5px;
    color: #c9ede9;
    margin: 0;
}

.qias-tpkg-hero-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.qias-tpkg-btn-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF6B4A, #ff5733);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.4);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.qias-tpkg-btn-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.5);
    color: #ffffff;
}

.qias-tpkg-btn-back {
    font-size: 13px;
    color: #a8e4df !important;
    text-decoration: none;
    transition: color 0.2s;
}

.qias-tpkg-btn-back:hover {
    color: #ffffff !important;
}

/* Category Filter Tabs */
.qias-pkg-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #FFFFFF;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #E2EFEF;
}

.qias-pkg-tab-btn {
    background: #F1F8F7;
    border: 1px solid #D5ECE9;
    color: #164E48;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qias-pkg-tab-btn:hover {
    background: #D5ECE9;
}

.qias-pkg-tab-btn.active {
    background: #2D9389;
    color: #ffffff;
    border-color: #2D9389;
    box-shadow: 0 4px 12px rgba(45, 147, 137, 0.3);
}

/* Bottom CTA Banner */
.qias-tpkg-bottom-banner {
    background: #FFFFFF;
    border: 1.5px solid #D5ECE9;
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.qias-tpkg-bottom-banner h3 {
    font-size: 19px;
    font-weight: 800;
    color: #112A28;
    margin: 0 0 6px;
}

.qias-tpkg-bottom-banner p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 4. Responsive Adjustments */
@media (max-width: 992px) {
    .qias-teacher-hero-main-card {
        flex-direction: column;
        text-align: center;
    }
    .qias-hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .qias-hero-actions-row {
        justify-content: center;
    }
    .qias-method-highlights-grid {
        grid-template-columns: 1fr;
    }
    .qias-tpkg-hero-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .qias-tpkg-hero-right {
        flex-direction: column;
    }
    .qias-tpkg-hero-left {
        align-items: center;
    }
    .qias-tpkg-bottom-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .qias-teacher-packages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .qias-hero-stats-row {
        grid-template-columns: 1fr;
    }
    .qias-hero-actions-row {
        flex-direction: column;
        width: 100%;
    }
    .qias-hero-btn {
        width: 100%;
        justify-content: center;
    }
    .qias-teacher-packages-grid {
        grid-template-columns: 1fr !important;
    }
}

/* -------------------------------------------------------------
   V3.0.0 Enterprise: Redesigned Cinema Single Video Player Layout
   ------------------------------------------------------------- */
.qias-modern-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #E2EFEF;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 20px;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.qias-modern-breadcrumbs a {
    color: var(--qias-t-dark);
    text-decoration: none;
    font-weight: 500;
}

.qias-modern-breadcrumbs .qias-sep {
    color: #cbd5e1;
}

.qias-modern-breadcrumbs .qias-current {
    color: #0f172a;
    font-weight: 700;
}

.qias-video-hero-header {
    margin-bottom: 24px;
}

.qias-video-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.qias-cat-pill {
    background: #E6F7F5;
    color: #164E48;
    border: 1px solid #A8E4DF;
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.qias-duration-pill {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FFEDD5;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
}

.qias-video-main-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.qias-cinema-player-frame {
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.16);
    border: 2px solid #E2EFEF;
    margin-bottom: 25px;
}

/* Instructor Sticky Card */
.qias-instructor-sticky-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #E2EFEF;
    text-align: center;
    position: sticky;
    top: 90px;
}

.qias-instructor-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 14px;
}

.qias-instructor-avatar-wrap img,
.qias-instructor-avatar-wrap .qias-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #39BAAE;
    box-shadow: 0 8px 20px rgba(57, 186, 174, 0.25);
    background: #ffffff;
}

.qias-verified-circle {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: #10B981;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.qias-instructor-badge {
    display: inline-block;
    background: #E6F7F5;
    color: #164E48;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.qias-instructor-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.qias-instructor-title {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 16px;
}

.qias-instructor-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.qias-inst-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.qias-inst-btn-packages {
    background: linear-gradient(135deg, var(--qias-t-prof-cta, #FF6B4A), #ff5733) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.35);
}

.qias-inst-btn-packages:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 107, 74, 0.45);
    color: #ffffff !important;
}

.qias-inst-btn-profile {
    background: #F1F8F7;
    color: #164E48 !important;
    border: 1.5px solid #D5ECE9;
}

.qias-inst-btn-profile:hover {
    background: #2D9389;
    color: #ffffff !important;
    border-color: #2D9389;
}

.qias-inst-link-all {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s;
}

.qias-inst-link-all:hover {
    color: var(--qias-t-dark);
}

/* Lesson Details Card (Tabs / Accordion style) */
.qias-lesson-details-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #E2EFEF;
}

.qias-lesson-highlights-sub {
    margin-bottom: 25px;
    padding-bottom: 22px;
    border-bottom: 1.5px dashed #E2EFEF;
}

.qias-sub-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.qias-sub-head h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.qias-sub-icon {
    font-size: 20px;
}

.qias-highlights-list-styled {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qias-highlights-list-styled li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: #334155;
    background: #F8FCFB;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #E6F5F3;
}

.qias-check-bullet {
    width: 22px;
    height: 22px;
    background: #10B981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
}

.qias-desc-content-styled {
    font-size: 15px;
    line-height: 1.9;
    color: #334155;
}

/* Dynamic Hero Banner Gradient Override */
.qias-teacher-enterprise-hero,
.qias-tpkg-hero-banner {
    background: linear-gradient(135deg, var(--qias-t-hero-start, #0F2D29) 0%, #164E48 45%, var(--qias-t-hero-end, #258177) 100%) !important;
}

.qias-hero-btn-primary,
.qias-tpkg-btn-all {
    background: linear-gradient(135deg, var(--qias-t-prof-cta, #FF6B4A), #ff5733) !important;
}

/* -------------------------------------------------------------
   V5.5.0 Enterprise Final: Custom Icons, Positions & Hero Fit
   ------------------------------------------------------------- */
.qias-stat-custom-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.qias-method-custom-img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
    display: inline-block;
}

.qias-method-box.pos-top {
    text-align: center !important;
}

.qias-method-box.pos-top .qias-method-icon,
.qias-method-box.pos-top .qias-method-icon-wrap {
    margin: 0 auto 10px !important;
}

.qias-method-box.pos-center {
    text-align: center !important;
}

.qias-method-box.pos-center .qias-method-icon,
.qias-method-box.pos-center .qias-method-icon-wrap {
    margin: 0 auto 10px !important;
}

.qias-method-box.pos-right {
    text-align: right !important;
}

.qias-teacher-enterprise-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}


/* === v6.0.0 Redesigned Studio Cover & Separated Actions === */
.qias-t-studio-cover {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(90, 204, 193, 0.35), transparent 55%),
                linear-gradient(135deg, #0F2A38 0%, #165B56 55%, #2D9389 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.qias-t-studio-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #5ACCC1, #FFFFFF);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transition: transform 0.35s ease;
}
.qias-t-card:hover .qias-t-studio-ring {
    transform: scale(1.06);
}
.qias-t-studio-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    background: #F6FCFC;
}
.qias-t-card-subject {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #0F766E;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 99px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    max-width: 68%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qias-t-center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.qias-t-card:hover .qias-t-center-play {
    background: #39BAAE;
    border-color: #FFFFFF;
    transform: translate(-50%, -50%) scale(1.1);
}
.qias-t-play-badge {
    bottom: 8px;
    padding: 4px 12px;
    font-size: 11.5px;
    background: rgba(15, 42, 56, 0.78);
}
.qias-t-card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.qias-t-btn-play,
.qias-t-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 5px;
    padding: 9px 8px !important;
    min-height: 38px;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.22s ease;
    line-height: 1.3 !important;
    white-space: nowrap;
}
.qias-t-btn-play {
    background: #0F766E !important;
    color: #FFFFFF !important;
    border: 1px solid #0F766E !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}
.qias-t-btn-play:hover {
    background: #0D625B !important;
    transform: translateY(-1px);
}
.qias-t-btn-detail {
    background: #F0FDFA !important;
    color: #0F766E !important;
    border: 1px solid #A8E4DF !important;
}
.qias-t-btn-detail:hover {
    background: #CCFBF1 !important;
    border-color: #39BAAE !important;
    transform: translateY(-1px);
}
.qias-video-popup-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #0F766E;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.qias-video-popup-detail-btn:hover {
    background: #0D625B;
}
@media (max-width: 600px) {
    .qias-t-card {
        flex: 0 0 82%;
        min-width: 245px;
    }
    .qias-t-arrow {
        width: 34px;
        height: 34px;
    }
    .qias-t-arrow-prev { right: 2px; }
    .qias-t-arrow-next { left: 2px; }
}
/* Teacher name & role pills for both desktop and mobile slider cards */
.qias-t-slider-outer .qias-t-card:not(.qias-only-video-card) .qias-t-teacher-info { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%; }
.qias-t-slider-outer .qias-t-card:not(.qias-only-video-card) .qias-t-teacher-info :is(.qias-t-teacher-name,.qias-t-teacher-role) { max-width:100%; }
.qias-t-slider-outer .qias-t-card:not(.qias-only-video-card) .qias-t-card-body { display:flex;flex-direction:column;flex:1; }
.qias-t-slider-outer .qias-t-card:not(.qias-only-video-card) .qias-t-card-actions { margin-top:auto; }
.qias-t-slider-outer .qias-t-teacher-info :is(.qias-t-teacher-name,.qias-t-teacher-role) { margin:0;padding:4px 10px;border-radius:9px;font-size:12.5px;line-height:1.6;background:#f4e8fa;color:#613874;text-align:center; }
.qias-t-slider-outer .qias-t-teacher-info .qias-t-teacher-name a { color:inherit; }
.qias-t-slider-outer .qias-t-teacher-info .qias-t-teacher-role { background:#fff1d7;color:#714819; }

@media (max-width: 767px) {
    .qias-t-slider-outer > .qias-t-arrow { display:flex;position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;z-index:10; }
    .qias-t-slider-outer > .qias-t-arrow-prev { right:2px;left:auto; }
    .qias-t-slider-outer > .qias-t-arrow-next { left:2px;right:auto; }
    .qias-t-card-actions { gap:6px; }
    .qias-t-btn-play, .qias-t-btn-detail { font-size:11.5px !important;padding:7px 4px !important;gap:3px;min-height:36px; }
}


/* === v6.1.0: Floating Header Clearance, Redesigned Teacher Profile Hero, Like Button & Balanced Methodology Cards === */
.qias-teacher-enterprise-hero,
.qias-tpkg-hero-banner {
    padding-top: 122px !important;
    padding-bottom: 42px !important;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 12px 32px rgba(15, 42, 56, 0.14);
}
.qias-teacher-hero-main-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 16px;
}
.qias-hero-avatar-wrap {
    flex-shrink: 0;
    position: relative;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #5ACCC1, #FFFFFF);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.qias-hero-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}
.qias-hero-details {
    flex: 1;
    min-width: 0;
}
.qias-hero-name {
    font-size: 28px !important;
    font-weight: 900 !important;
    margin: 8px 0 4px !important;
    color: #FFFFFF !important;
}
.qias-hero-title {
    font-size: 15px !important;
    color: #CCFBF1 !important;
    margin: 0 0 16px !important;
}
.qias-hero-stats-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px !important;
    margin-bottom: 18px !important;
}
.qias-stat-card {
    background: rgba(255, 255, 255, 0.11) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.qias-hero-actions-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}
.qias-hero-like-btn {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.22s ease;
}
.qias-hero-like-btn:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    transform: translateY(-1px);
}
.qias-hero-like-btn.is-liked {
    background: #FFF1F2 !important;
    color: #E11D48 !important;
    border-color: #FDA4AF !important;
}
.qias-like-count {
    background: rgba(0, 0, 0, 0.18);
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 800;
}
.qias-hero-like-btn.is-liked .qias-like-count {
    background: #FFE4E6;
    color: #BE123C;
}
.qias-method-highlights-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
.qias-method-box {
    border-top: 3px solid #39BAAE !important;
    border-radius: 16px !important;
    padding: 18px !important;
    background: #F9FCFC !important;
    height: 100%;
}
@media (max-width: 768px) {
    .qias-teacher-enterprise-hero,
    .qias-tpkg-hero-banner {
        padding-top: 96px !important;
        padding-bottom: 28px !important;
    }
    .qias-teacher-hero-main-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }
    .qias-hero-avatar-wrap {
        width: 112px;
        height: 112px;
    }
    .qias-hero-actions-row {
        justify-content: center;
    }
    .qias-method-highlights-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Enforce Vazirmatn on frontend video modal */
.qias-video-popup-modal,
.qias-video-popup-modal *,
.qias-video-popup-content,
.qias-video-popup-content * {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
