@font-face {
    font-family: 'YekanBakh';
    /* آدرس قبلی را پاک کنید و آدرس جدید را جایگزین کنید */
    src: url('../fonts/YekanBakhFaNum-VF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* End Custom Fonts CSS */

* {
    font-family: 'YekanBakh';

}

html {
    margin: 0px !important;
    padding: 0px !important;
    box-sizing: border-box !important;
}

.headernav {
    display: flex;
    width: 100%;
    max-width: 1270px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0px;
}

a.phkFirstRow img {
    width: 226px;
}

header {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.phkSvgBox {
    background: #FE2C5417;
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 16px;
}



.phkPhoneBox {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    align-items: center;
    margin-left: 16px;
}

.phkPhoneBox p {
    display: flex;
    flex-direction: column;
}

.phkPhoneBox p span:nth-child(2) {
    color: #212121;
    font-size: 23px;
    font-weight: 600;
}

.phkPhoneBox p span:nth-child(1) {
    color: #212121;
    font-size: 14px;
    font-weight: 500;
}

.headernav a:last-of-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: #00000030 0px 1px 3px;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    gap: 8px;
}

.headernav a:last-of-type p {
    margin: 0px;
    color: #212121;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

div#doctor-list {
    max-height: 350px;
    overflow: auto;
    position: absolute;
    z-index: 99999;
    background: #eee;
    padding: 15px;
    border-radius: 15px;
    font-family: "yekanBakh", Sans-serif;
}

ul#searchResultsWP li a {
    font-size: 14px;
    line-height: 20px;
    color: #000;
}

ul#searchResultsConsultant {
    width: 100% !important;
    max-width: 100% !important;
}

.phkSearchRes {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    position: absolute;
    z-index: 9999;
    width: 500px;
    width: 100%;
    flex-direction: column;
}

.phkSearchBox {
    position: relative;
    width: 470px;
    margin: 0 auto;
}

ul.menu-list {
    display: flex;
    gap: 49px;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

ul.menu-list .menu-item,
.menu-item a {

    font-size: initial;
    font-weight: 500;
    text-decoration: none;
    color: #212122;
}

.headermenu {
    display: flex;
    justify-content: space-between;
    width: 1270px;
    padding: 16px 0px;
    align-items: center;
}

a.packbtnheader {
    border: 1px solid #FE2C54;
    padding: 12px 24px;
    border-radius: 16px;
    color: #FE2C54;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}






.plpHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.plpHeader span {
    color: #FE2C54;
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;
}

.plpHeader h3 {
    font-size: 32px;
    line-height: 64px;
    font-weight: 800;
    margin: 0px;
}

.plpHeader p {
    font-weight: 300;
    font-size: 16px;
    line-height: 32px;
    color: #525252;
}

div#mainContent {
    max-width: 1260px;
    margin: auto;
}

.statsbox {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(90deg, #66023C 0%, #FE2C54 100%);
    border-radius: 24px;
    padding: 32px;
    margin-top: 24px;
}

.pointItem {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pointTitle span {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 32px;
}

.pointTitle p {
    margin: 0px;
    font-size: 20px;
    line-height: 48px;
    font-weight: 700;
}

.coursesBox {
    display: flex;
    flex-direction: row;
    margin-top: 24px;
    gap: 16px;
}

.coursesItem {
    border: 1px solid #E8E8E8;
    border-radius: 20px;
    padding: 16px 14px 16px 14px;
}

p.catBadge {
    border: 1px solid #FFDDE3;
    color: #FE2C54;
    background: #FFF2F4;
    font-size: 10px;
    font-weight: 400;
    line-height: 20px;
    border-radius: 16px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 4px;
    max-width: fit-content;
}

p,
h1,
h2,
h3,
h4,
h5 {
    margin: 0px;
}

.corseInfoItem {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.corseInfoItem p {
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
}

.courseInfo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EAEAEA;
}

.addtoBtn {
    color: #FE2C54;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 500;
}

div.offPrice p {
    color: #828282;
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: line-through;
}

div.mainPrice {
    color: #212121;
    font-size: 16px;
    font-weight: 700;
    line-height: 32px;
}

div.offPrice span {
    background: #FE2C54;
    position: relative;
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    font-weight: 400;
    border-radius: 24px;
    padding: 0px 8px;
    text-decoration: none !important;

}

.offPrice {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.addToCartBox {
    padding-top: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

h3.cartTitle {
    font-size: 16px;
    line-height: 32px;
    font-weight: 600;
}

.catFilter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    max-height: 58px;
    transition: max-height .35s ease;
}

.catFilter.expanded {
    max-height: 1000px;
}

.filterItem.active {
    background: #FFF2F4;
    border: 1px solid #FFDDE3;
}

.filterItem {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #EAEAEA;
    padding: 12px 18px;
    border-radius: 16px;
    flex-shrink: 0;
}

p.filterItemName {
    font-size: 12px;
    color: #212121;
    font-weight: 600;
    line-height: 28px;
}

span.filterItemCount {
    color: #828282;
    font-size: 12px;
    font-weight: 500;
}

.filterItem.active rect {
    fill: #FFADBA;
}

.filterItem rect {
    fill: #EAEAEA;
}

.toggleBox {
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}

.toggleBox svg {
    transition: transform .3s ease;
}

.catFilter.expanded .toggleBox svg {
    transform: rotate(180deg);
}

.catSort {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 24px;
}

.catSortLayout {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.layoutOpt {
    border: 1px solid #EAEAEA;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    cursor: pointer
}



.layoutOpt.selected {
    border: 1px solid #DBE8FF;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    background: #EEF5FF;
}



.filters-wrapper {
    display: flex;
    gap: 15px;
    direction: rtl;
}

.filter-dropdown {
    position: relative;
    width: 260px;
}

/* استایل دکمه اصلی */
.dropdown-btn {
    width: 100%;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    font-size: 15px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-btn:hover {
    border-color: #d1d5db;
}

.btn-text {
    flex-grow: 1;
    text-align: right;
    margin-right: 8px;
    /* فاصله از آیکون سورت در صورت وجود */
}

/* آیکون‌ها */
.sort-icon,
.chevron-icon {
    color: #4b5563;
    transition: transform 0.3s ease;
}

/* چرخش آیکون هنگام باز شدن */
.filter-dropdown.active .chevron-icon {
    transform: rotate(180deg);
}

/* استایل محتوای بازشو */
.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
    max-height: 400px;
    overflow-y: auto;
}

.filter-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* استایل اختصاصی لیست‌ها برای جلوگیری از تداخل */
.dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content li:hover {
    background-color: #f9fafb;
}

/* لیست مرتب‌سازی */
.dropdown-content .sort-list li.active {
    font-weight: bold;
    color: #111827;
}

/* لیست مرتب‌سازی */
.sort-list li.active {
    font-weight: bold;
    color: #111827;
}

/* لیست مدرسین (چک‌باکس‌ها) */
.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
}

.custom-checkbox input {
    display: none;
    /* پنهان کردن چک‌باکس پیش‌فرض */
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1.5px solid #6b7280;
    border-radius: 6px;
    position: relative;
    background-color: transparent;
    transition: all 0.2s;
}

/* استایل چک‌باکس در حالت انتخاب شده */
.custom-checkbox input:checked~.checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* آیکون تیک سفید رنگ داخل چک‌باکس */
.custom-checkbox input:checked~.checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* تغییر استایل اسکرول‌بار برای زیبایی بیشتر */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
}


/* =========================================
   1. حالت پیش‌فرض: چیدمان شبکه‌ای (Grid)
   ========================================= */

.coursesBox {
    display: grid;
    /* تنظیم تعداد ستون‌ها بر اساس عرض صفحه */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1260px;
    margin: 64px auto;
}

/* در حالت گرید، المان‌های داخل کارت معمولا زیر هم قرار می‌گیرند */
.coursesItem {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16حط;
    border: 1px solid #e5e7eb;
    /* حاشیه برای زیبایی (اختیاری) */
    border-radius: 12px;
}

.coursesItem img {
    width: 100%;
    height: auto;
    /* ارتفاع خودکار برای حفظ تناسب */
    border-radius: 8px;
}

.coursesItemContetnt {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.courseItemHeader {
    display: flex;
    flex-direction: column;
    /* در حالت گرید معمولا زیر هم هستند */
    gap: 8px;
}

.courseInfo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}



/* =========================================
   2. حالت کلیک شده: چیدمان ردیفی (Row / List View)
   ========================================= */

/* تغییر کانتینر اصلی به فلکس ستونی تا کارت‌ها زیر هم چیده شوند */
.coursesBox.list-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 
  استایل‌های اختصاصی شما برای حالت ردیفی 
  با پیشوند .coursesBox.list-view
*/
.coursesBox.list-view .coursesItem {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px !important;
}

.coursesBox.list-view .coursesItemContetnt {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.coursesBox.list-view .courseItemHeader {
    display: flex;
    flex-direction: row;
    /* برگرداندن به حالت افقی که در کدهای شما بود */
    gap: 16px;
}

.coursesBox.list-view .courseInfo {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 170px;
}

.coursesBox.list-view .price {
    display: flex;
    gap: 12px;
}

.coursesBox.list-view .coursesItem img {
    width: 273px;
    height: 128px;
    object-fit: cover;
    /* برای جلوگیری از دفرمه شدن عکس */
}

.courseCatSec {
    max-width: 1270px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 64px;
}

.courseCatBox {
    display: flex;
    gap: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 64px;
}

.coursecatItem {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #EAEAEA;
    padding: 16px;
    border-radius: 24px;
    max-width: 378px;
    width: 100%;
    gap: 16px;
}

.catAvatar {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.data {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
}

a.catCta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 4px;
}

a.catCta span {
    color: #FE2C54;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

a.catCta {
    text-decoration: none;
}

.catAvatar .data p {
    color: #212121;
    font-size: 20px;
    font-weight: 600;
    line-height: 40px;
}

.catIconWrapper svg {
    width: 100%;
    height: 100%;
    fill: #FE2C54;
    /* تغییر رنگ آیکون‌ها به قرمز قالب شما در صورت نیاز */
}





@media (max-width: 839px) {
    .statsbox {
        flex-direction: column;
        border-radius: 0px;
        padding: 24px;
        gap: 16px;
        width: 302px;
    }

    .courseInfo {
        display: none;
    }

    .courseItemHeader {
        border-bottom: 1px solid #EAEAEB;
        padding-bottom: 12px;
    }

    .catSortLayout {
        display: none;
    }

    .catSortLayout {
        display: none;
    }

    .catFilter {
        display: none !important;
    }

    .toggleBox {
        flex-direction: row;
        width: 316px !important;
        justify-content: flex-end !important;
        max-width: 350px !important;
    }

    div#mainContent {
        max-width: 350px !important;
        width: 350px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .catFilterWrapper {
        width: 350px !important;
        max-width: 350px !important;
        margin: auto auto;
    }

    .filter-dropdown {
        width: auto;
    }

    .catSort {
        width: 100%;
    }

    .dropdown-content {
        height: 100% !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 10;
        max-height: 100% !important;
        overflow-y: auto;
    }

    .sortMobileHeader {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f3f4f6;
    }

    .sortMobileHeader p {
        color: #212121;
        padding: 20px 24px;
        font-size: 16px;
        font-weight: 500;
    }

    ul.sort-list {
        padding: 24px;
    }

    .dropdown-content li {
        padding: 16px 0px;
    }

    .dropdown-content .sort-list li.active {
        color: #3083FF !important;
        font-weight: 400 !important;
        display: flex;
        width: 100%;
        justify-content: space-between;
    }


    .dropdown-content .sort-list li.active::after {
        content: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.77 16.5567C9.50333 16.5567 9.25 16.45 9.06333 16.2633L5.29 12.49C4.90333 12.1033 4.90333 11.4633 5.29 11.0767C5.67667 10.69 6.31667 10.69 6.70333 11.0767L9.77 14.1433L16.6233 7.29C17.01 6.90333 17.65 6.90333 18.0367 7.29C18.4233 7.67667 18.4233 8.31667 18.0367 8.70333L10.4767 16.2633C10.29 16.45 10.0367 16.5567 9.77 16.5567Z' fill='%233083FF'/%3E%3C/svg%3E");
        display: inline-block;
        width: 24px;
        height: 24px;
        vertical-align: middle;
        /* تنظیم تراز عمودی در صورت نیاز */
    }

    .dropdown-content {
        height: 100% !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 10;
        max-height: 100% !important;
        overflow-y: auto;
    }

    .coursesBox {
        max-width: 350px;
        margin: auto;
    }

    .courseCatSec {
        max-width: 350px;
        margin: auto;
    }
}

.proSummarySec {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.proData {
    max-width: 470px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.proFeatured svg {
    position: absolute;
    top: 40%;
    right: 43%;
}

.proFeatured {
    position: relative;
    display: flex;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.proFeatured img {
    max-width: 400px;
}

.proBadges {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.proRate {}

.proBadgesItem {
    display: flex;
    gap: 24px;
}

.proBadgesItem div {
    display: flex;
    gap: 8px;
}

.proAvatar {
    display: flex;
    gap: 8px;
}

.proData p {
    color: #212121;
    font-size: 16px;
    font-weight: 300;
    line-height: 32px;
}

.proData h2 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
}

.proAddBox {
    border: 1px solid #E9E9E9;
    border-radius: 24px;
    padding: 24px;
    max-width: 320px;
    width: 270.2px !important;
}

.proAddBox .addToCartBox {
    display: flex;
    flex-direction: column;
}

.proAddBox .addtoBtn {
    background: #FE2C54;
    color: #fff;
    width: 100%;
    border-radius: 16px;
    padding: 12px 0px;
    flex-direction: row-reverse;
    justify-content: center;
}

.proAddBox .addtoBtn path {
    stroke: #fff;
}

.proAddBox {

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.proAddBox .addToCartBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.proCtaFirst {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    margin: 64px 0px;
}

.proTabSec {
    width: 100%;
    display: flex;
    gap: 30px;
}

.proTabMain {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

ul.proTabsList {
    display: flex;
    justify-content: center;
    padding: 0px;
    gap: 40px;
    margin: 0px;
    padding: 8px 0px;
    border-bottom: 1px solid #E9E9E9;
}

ul.proTabsList li {
    list-style: none;
}

ul.proTabsList li a {
    color: #212121;
    text-decoration: unset;
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    padding: 11px 0px;
}


ul.proTabsList li.proTab.active a {
    color: #FE2C54;
    border-bottom: 1px solid #FE2C54;
}

div#proAbout h4 {}

.proTabMain h4 {
    color: #212121;
    line-height: 40px;
    font-size: 20px;
    font-weight: 700;
}

.proTabMain p {
    color: #212121;
    font-size: 16px;
    font-weight: 300;
}

div#proAbout span {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    color: #FE2C54;
}

div#proAbout {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

div#proTargets ul {
    margin: 0px;
    display: flex;
    flex-wrap: wrap;
    padding: 0px;
    gap: 8px;
}

div#proTargets ul li {
    width: 49%;
    list-style: none;
    padding: 0px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

div#proTargets ul li span {
    color: #212121;
    font-size: 16px;
    font-weight: 300;
}

div#proTargets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

div#proCourseBox {
    background: #F8F9FB;
    border: 1px solid #E9E9E9;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proCourseTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proCourseTitle h4 {
    width: 70%;
}



.proCourseTitle span#session {
    border-right: 1px solid #E9E9E9;
    border-left: 1px solid #E9E9E9;
    padding: 0px 12px;
}

.proCourseTitle span {
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;
}

.prochapter {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #E9E9E9;
    padding: 20px;
    border-radius: 20px;
    flex-direction: column;
    gap: 16px;
}

p.chapterNum {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 120px;
    width: 100%;
}

.prochapter .proChaptersummary div {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.prochapter .proChaptersummary {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;

}


.prochapter .proChaptersummary div:first-child {
    width: 70%;
}

p.chapterSession {
    border-right: 1px solid #E9E9E9;
    padding-right: 16px;
}

p.chapterTitle {
    border-right: 1px solid #E9E9E9;
    padding-right: 16px;
}

.proChapterSessions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proChapterSessions>div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.proChapterSessions>div>div {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.proChapterSessions>div>div>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.proChapterSessions .sessionPlayBtn span {
    color: #FE2C54;
    font-weight: 500;
    font-size: 14px;
    line-height: 28px;
}



.prochapter.toggled>div:first-child {
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 16px;
}

/* تغییر نشانگر موس و یک افکت چرخش ساده برای دکمه تاگل (اختیاری) */
.prochapter .proChaptersummary #chapterToggle {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.prochapter.toggled .proChaptersummary #chapterToggle {
    transform: rotate(180deg);
}

/* ---- استایل‌های پاپ‌آپ پخش ویدیو ---- */
.phk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.phk-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.phk-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(50px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.phk-modal-overlay.active .phk-modal-content {
    transform: translateY(0);
}

.phk-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    position: relative;
    border-bottom: 1px solid #E9E9E9;
}

.phk-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212121;
}

.phk-modal-close {
    position: absolute;
    left: 24px;
    cursor: pointer;
    font-size: 24px;
    color: #212121;
    line-height: 1;
}

.phk-modal-player {
    padding: 24px;
    background: #fff;
}

.phk-modal-playlist {
    padding: 0 24px 24px 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #E9E9E9 transparent;
}

.phk-modal-playlist::-webkit-scrollbar {
    width: 6px;
}

.phk-modal-playlist::-webkit-scrollbar-thumb {
    background-color: #E9E9E9;
    border-radius: 10px;
}

.phk-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}

.phk-playlist-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #212121;
}

.phk-playlist-header span {
    font-size: 14px;
    color: #828282;
}

.phk-playlist-items {
    border: 1px solid #E9E9E9;
    border-radius: 16px;
    overflow: hidden;
}

.phk-playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E9E9E9;
    cursor: pointer;
    transition: background 0.2s ease;
}

.phk-playlist-item:last-child {
    border-bottom: none;
}

.phk-playlist-item:hover {
    background: #F8F9FB;
}

.phk-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phk-item-info h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #212121;
}

.phk-item-info span {
    font-size: 12px;
    color: #828282;
}

.phk-item-duration {
    font-size: 14px;
    color: #828282;
    font-weight: 500;
}

.phk-playlist-item.active .phk-item-info h5,
.phk-playlist-item.active .phk-item-duration {
    color: #FE2C54;
}