/* Shared presentation for the course and book detail pages. */
.product-detail {
    --pd-ink: #202a45;
    --pd-muted: #717b90;
    --pd-blue: #1128af;
    --pd-border: #e5e9f2;
    background: linear-gradient(180deg, #f4f6fc 0, #f8f9fc 650px, #f8f9fc 100%);
    color: var(--pd-ink);
    padding: 24px 0 64px;
    direction: rtl;
    text-align: right;
    overflow-wrap: anywhere;
}
.product-detail *, .product-detail *::before, .product-detail *::after { box-sizing: border-box; }
.product-detail a { text-decoration: none; }
.product-detail [id] { scroll-margin-top: 100px; }
.pd-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; font-size: 12px; line-height: 2; color: var(--pd-muted); }
.pd-breadcrumb a { color: #596480; }
.pd-breadcrumb > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.pd-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 42px; border: 1px solid #fff; border-radius: 28px; background: linear-gradient(125deg, #fff 45%, #edf0fc); box-shadow: 0 18px 55px #24386e08; }
.pd-eyebrow { display: flex; align-items: center; gap: 8px; color: #5969b6; font-size: 12px; font-weight: 600; line-height: 2; margin-bottom: 10px; }
.pd-hero h1 { margin: 0 0 18px; color: #202a45; font-size: clamp(25px, 2.5vw, 38px); font-weight: 800; line-height: 1.7; letter-spacing: -.6px; }
.pd-lead { color: #657089; font-size: 14px; line-height: 2.6; margin-bottom: 22px; }
.pd-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 20px; color: #515d77; font-size: 12px; line-height: 2; }
.pd-hero__facts > span { display: inline-flex; align-items: center; gap: 7px; }
.pd-hero__facts i { color: #7c89b8; font-size: 16px; }
.pd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.product-detail .pd-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 22px; border: 1px solid transparent; border-radius: 12px; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.8; cursor: pointer; transition: background .18s, box-shadow .18s; }
.product-detail .pd-button--primary { background: var(--pd-blue); color: white; box-shadow: 0 5px 14px #1128af1c; }
.product-detail .pd-button--primary:hover { background: #0b1e91; box-shadow: 0 7px 20px #1128af29; }
.product-detail .pd-button--secondary { background: #fff; color: #455172; border-color: #dce2ef; }
.product-detail .pd-button--secondary:hover { background: #edf1fc; }
.product-detail button:disabled { cursor: wait; opacity: .65; }
.product-detail a:focus-visible, .product-detail button:focus-visible, .product-detail summary:focus-visible { outline: 3px solid #8294e5; outline-offset: 4px; }
.pd-copy-link { display: flex; align-items: center; max-width: 350px; gap: 8px; color: #8a94aa; }
.pd-copy-link input { min-width: 0; width: 100%; border: 0; background: transparent; color: #7b859a; font: 12px/2 sans-serif; direction: ltr; text-align: right; outline-offset: 3px; }
.pd-copy-link button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #5363a8; border: 0; padding: 8px; font-size: 11px; }
.pd-hero__visual { min-width: 0; }
.pd-cover { padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 16px 40px #1d305220; transform: rotate(-2deg); }
.pd-cover img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; border-radius: 14px; }
.pd-cover-caption { display: flex; align-items: center; gap: 9px; padding: 25px 10px 0; color: #6d7896; font-size: 11px; }
.pd-cover-caption b { margin-inline-start: auto; color: #344477; }
.product-detail--book .pd-cover { max-width: 290px; margin: auto; padding: 22px; background: #fffaf1; }
.product-detail--book .pd-cover img { max-height: 350px; border-radius: 4px; filter: drop-shadow(-7px 10px 8px #30201920); }
.product-detail--book .pd-hero { background: linear-gradient(125deg, #fff 45%, #f4f0e8); }
.pd-section-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 22px 0; border-bottom: 1px solid var(--pd-border); }
.pd-section-nav a { flex-shrink: 0; padding: 10px 18px; border-radius: 9px; font-size: 13px; color: #64708b; }
.pd-section-nav a:hover, .pd-section-nav a.is-active { color: var(--pd-blue); background: #e9edfb; }
.pd-section-nav span { margin-inline-start: 6px; font-size: 11px; background: white; padding: 2px 6px; border-radius: 5px; }
.pd-offer { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 24px; background: #fff7ed; border: 1px solid #f7e3ca; border-radius: 16px; color: #895e31; font-size: 13px; line-height: 2; }
.pd-offer__badge { flex-shrink: 0; display: grid; place-items: center; width: 55px; height: 55px; background: #a66029; color: #fff; border-radius: 16px; font-size: 20px; font-weight: 700; }
.pd-offer__timer { margin-inline-start: auto; text-align: center; font-size: 11px; }
.pd-offer__timer b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.pd-main-grid { align-items: flex-start; }
.pd-main-column, .pd-side-column { min-width: 0; }
.product-detail .pd-panel, .product-detail .full-info, .product-detail .down-episode .ingo { border: 1px solid var(--pd-border); background: #fff; border-radius: 20px; box-shadow: 0 6px 25px #263c6805; }
.product-detail .course-contex { padding: 28px; margin: 0; }
.pd-section-heading { margin-bottom: 25px; }
.pd-section-heading h2 { color: #26324e; font-size: 23px; line-height: 1.8; font-weight: 700; margin: 0; }
.pd-section-heading > p { color: var(--pd-muted); font-size: 13px; margin: 6px 0 0; line-height: 2; }
.product-detail .pd-description { color: #4f5b73; font-size: 15px; line-height: 2.25; overflow-x: auto; }
.product-detail .pd-description p { padding: 0; margin: 0 0 20px; line-height: 2.25; font-size: inherit; word-spacing: normal; text-align: start; }
.product-detail .pd-description img { max-width: 100% !important; height: auto !important; border-radius: 12px; }
.product-detail .pd-description iframe { max-width: 100%; }
.product-detail .pd-description h1, .product-detail .pd-description h2, .product-detail .pd-description h3 { font-size: 21px; padding: 0; margin: 28px 0 14px; line-height: 1.9; color: #283655; }
.product-detail .pd-description li { margin-bottom: 8px; }
.product-detail .pd-description span { margin: 0; }
.product-detail .course-contex .video-box { margin: 24px 0; }
.product-detail .course-contex .video { border-radius: 15px; max-height: 460px; background: #171d30; }
.product-detail .alert { border: 1px solid #dce7f4 !important; padding: 14px 18px; border-radius: 12px; color: #476080; background: #f2f7fc; font-size: 13px; line-height: 2; }
.product-detail .alert p { padding: 0; margin: 0 !important; font-size: 13px; line-height: 2; }
.product-detail .alert-warning { color: #877049; border-color: #f0e6d0 !important; background: #fdf9f0; }
.product-detail .contex-episode .alert-ask { margin: 24px 0 0; padding: 15px 18px; }
.product-detail .full-info { margin: 0 0 20px; padding: 0; z-index: auto; }
.pd-purchase__heading { padding: 22px 24px 18px; border-bottom: 1px solid #edf0f5; background: linear-gradient(120deg, #f3f5ff, #fff); border-radius: 20px 20px 0 0; }
.pd-purchase__heading > span { font-size: 11px; color: #7e89a1; }
.pd-purchase__heading h2 { font-size: 19px; font-weight: 700; margin: 6px 0 0; line-height: 1.8; }
.product-detail .episode-info { padding: 20px 24px; }
.product-detail .episode-info > ul { margin-bottom: 0; }
.product-detail .episode-info > ul > li { padding: 10px 0; font-size: 13px; line-height: 2.1; color: #5f6c85; border-bottom: 1px solid #f0f2f7; }
.product-detail .episode-info > ul > li:first-child { padding-top: 0; }
.product-detail .episode-info > ul > li b { font-size: 19px; }
.product-detail .episode-info .discount { display: block; font-size: 13px; color: #939bac !important; text-decoration: line-through; }
.product-detail .episode-info .price-pay { display: block; color: #16836d !important; font-size: 24px; }
.product-detail .episode-info hr { display: none; }
.product-detail .episode-info .text-info { color: #8190bc !important; }
.product-detail .share-course { display: flex; align-items: center; flex-direction: row-reverse; justify-content: space-between; gap: 10px; height: auto; padding-top: 20px; }
.product-detail .share-course > div, .product-detail .share-course > span { position: static; float: none; }
.product-detail .share-course > div { display: flex; gap: 7px; }
.product-detail .share-course a { box-shadow: none; background: #f4f6fa; border-radius: 9px; width: 32px; height: 32px; padding: 5px; }
.product-detail .share-course a:hover { background: #e9edf7; }
.product-detail .data-pisode { border: 0; border-top: 1px solid #edf0f5; border-radius: 0; box-shadow: none; padding: 20px; }
.product-detail .data-pisode > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0 0 20px; gap: 4px; }
.product-detail .data-pisode > ul > li { width: auto; float: none; display: block; }
.product-detail .data-pisode > ul > li span { font-size: 11px; color: #838da1; }
.product-detail .data-pisode > ul > li i { font-size: 13px; font-weight: 600; color: #4d5b81; }
.product-detail .data-pisode > .pd-purchase__action { background: transparent; line-height: 1.8; }
.product-detail .pd-purchase__action > a { display: block; border-radius: 12px; padding: 14px 16px; background: var(--pd-blue); color: #fff; font-size: 14px; font-weight: 600; }
.product-detail .pd-purchase__action > a:hover { background: #0b1e91; }
.product-detail .forum { padding: 18px; background: #ecf4f3; border: 1px solid #dcebe8; border-radius: 14px; text-align: center; margin: 20px 0 !important; }
.product-detail .forum a { color: #39766b; font-size: 13px; line-height: 2; }
.product-detail .vote { margin: 12px 0; gap: 8px; flex-wrap: nowrap; }
.product-detail .vote > button { width: calc(50% - 4px) !important; border-radius: 10px; }
.product-detail .proffer h4 { font-size: 16px; padding-bottom: 14px; margin-bottom: 10px; }
.product-detail .proffer > ul > li > a { font-size: 13px; padding: 0; }
.product-detail .proffer > ul > li > a::before { display: none; }
.product-detail .down-episode { margin: 28px 0; }
.product-detail .down-episode .ingo { padding: 28px; margin: 0; }
.product-detail .down-episode .ingo .alert i { position: static; background: transparent; box-shadow: none; padding: 0 4px; }
.pd-episode { border: 1px solid #e6eaf2; border-radius: 13px; margin-top: 12px; background: white; }
.pd-episode summary { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto 18px; gap: 14px; align-items: center; padding: 17px 18px; cursor: pointer; list-style: none; }
.pd-episode summary::-webkit-details-marker { display: none; }
.pd-episode__number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f0f3fa; color: #7d8aab; font-size: 12px; }
.pd-episode__title { color: #34425e; font-size: 14px; font-weight: 600; line-height: 1.9; }
.pd-episode__meta { color: #8993a7; font-size: 12px; direction: ltr; }
.pd-episode__access { font-size: 10px; padding: 4px 9px; border-radius: 6px; background: #f1f3f8; color: #818da3; }
.pd-episode__access.is-free { background: #eaf6ef; color: #3d8867; }
.pd-episode__chevron { color: #939fb8; transition: transform .15s; }
.pd-episode[open] { background: #fcfdff; border-color: #cbd5ee; }
.pd-episode[open] .pd-episode__chevron { transform: rotate(180deg); }
.pd-episode__body { border-top: 1px solid #edf0f6; padding: 20px 24px; font-size: 13px; color: #717d94; line-height: 2.1; }
.pd-episode__body p { white-space: pre-line; }
.pd-empty { padding: 26px; text-align: center; color: #7b879c; background: #f7f9fc; border-radius: 12px; line-height: 2; }
.product-detail .user-comments { padding: 28px; margin-bottom: 24px; }
.product-detail .user-comments > header h3 { padding: 0 0 20px; margin-bottom: 22px; font-size: 22px; font-weight: 700; line-height: 1.8; }
.product-detail .user-comments > header h3 > i { color: #7788c4 !important; font-size: 25px; margin-inline-end: 12px; }
.product-detail .user-comments > .inner > form { background: #f8f9fc; border: 1px solid #e9edf5; border-radius: 14px; padding: 22px; margin: 20px 0 26px; }
.product-detail .user-comments > .inner > form .form-control { padding: 12px 15px; height: auto; border-radius: 10px; border: 1px solid #dce3ef; font-size: 13px; line-height: 1.9; background: white; }
.product-detail .user-comments > .inner > form textarea.form-control { min-height: 128px; resize: vertical; }
.product-detail .user-comments > .inner > form button { margin: 16px 0 0; height: auto; }
.product-detail .user-comments > .inner > form .ck-editor__editable { min-height: 140px; }
.product-detail .comment-list .comment-row { border: 1px solid #e8edf5 !important; border-radius: 14px; padding: 20px; margin: 14px 0; background: white; box-shadow: none; }
.product-detail .comment-list .comment-row .left-col { padding-inline-start: 48px; }
.product-detail .comment-list .comment-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.product-detail .comment-list .comment-row .left-col > .d-inline > span { padding: 0; color: #6a7690; font-size: 12px; }
.product-detail .comment-list .comment-row .left-col > .form-group p { padding: 12px 0; text-indent: 0; font-size: 15px; color: #000000; line-height: 2.1; }
.product-detail .comment-list .reply { margin: 0; height: auto; padding: 7px 14px; border-radius: 8px; background: #f0f3fb; color: #000000; font-size: 12px; }
.product-detail .comment-list .answer { margin-inline-start: 30px; width: calc(100% - 30px); }
.product-detail .tags-layer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.product-detail .tags-layer a { padding: 6px 12px; border: 1px solid #e0e5ef; border-radius: 8px; background: white; color: #748099; font-size: 11px; }
.product-detail .user-comments .reply-modal button { margin: 0; height: auto; }
.product-detail .user-comments .reply-modal textarea { height: auto; resize: vertical; }
.product-detail .user-comments .reply-modal .btn-close { margin-inline-start: auto; }

@media (max-width: 991.98px) {
    .pd-hero { gap: 28px; padding: 28px; }
    .pd-main-column { order: 2; }
    .pd-side-column { order: 1; }
    .product-detail .pd-purchase { margin-bottom: 0; }
    .pd-cover-caption { font-size: 10px; }
    .pd-hero__actions .pd-button { padding: 10px 16px; }
}
@media (max-width: 767.98px) {
    .product-detail { padding-top: 16px; }
    .pd-hero { grid-template-columns: 1fr; gap: 28px; padding: 24px; border-radius: 20px; }
    .pd-hero__visual { order: -1; max-width: 420px; width: 100%; margin: auto; }
    .pd-cover { transform: none; padding: 7px; }
    .pd-cover img { max-height: 260px; }
    .product-detail--book .pd-cover { max-width: 220px; padding: 16px; }
    .pd-cover-caption { padding-top: 12px; }
    .pd-hero h1 { font-size: 25px; }
    .pd-lead { font-size: 13px; }
    .pd-hero__actions { margin-top: 22px; }
    .pd-hero__actions > a { flex: 1; }
    .pd-offer { flex-wrap: wrap; padding: 16px; gap: 12px; }
    .pd-offer__timer { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid #f0dfc8; }
    .pd-section-nav { margin: 16px 0; }
    .pd-section-nav a { padding: 10px 12px; font-size: 12px; }
    .product-detail .course-contex, .product-detail .down-episode .ingo, .product-detail .user-comments { padding: 20px; border-radius: 16px; }
    .pd-episode summary { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 8px 12px; padding: 14px; }
    .pd-episode__number { grid-row: span 2; width: 30px; height: 32px; }
    .pd-episode__title { grid-column: 2; font-size: 13px; }
    .pd-episode__meta { grid-column: 2; grid-row: 2; text-align: right; }
    .pd-episode__access { grid-column: 2; grid-row: 3; justify-self: start; }
    .pd-episode__chevron { grid-column: 3; grid-row: 1; }
    .pd-episode__body { padding: 16px; }
    .product-detail .user-comments > .inner > form { padding: 16px; }
    .product-detail .comment-list .comment-row { padding: 14px; }
    .product-detail .comment-list .answer { margin-inline-start: 12px; width: calc(100% - 12px); }
    .product-detail .comment-list .comment-row .left-col { padding-inline-start: 0; }
    .pd-section-heading h2, .product-detail .user-comments > header h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .product-detail *, .product-detail *::before, .product-detail *::after { transition: none !important; scroll-behavior: auto !important; }
}

.episode-cinema { margin:20px auto;width:80%; padding:20px; border-radius:20px; background:linear-gradient(135deg,#172942,#2e4569); color:#dce7f6; border:1px solid #3c5271; box-shadow:0 12px 30px #233b6415; }
.episode-cinema__heading { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:18px; }
.episode-cinema__heading > span { font-weight:700; font-size:15px; color:#f3e4bf; }
.episode-cinema__heading small { font-size:11px; color:#bacce5; }
.episode-cinema__start { width:100%; min-height:150px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; border:1px solid #ffffff26; border-radius:14px; background:radial-gradient(ellipse at center,#6986b540,#101e3500); color:#fff; }
.episode-cinema__start > i { display:grid; place-items:center; width:58px; height:58px; border-radius:50%; border:1px solid #dcc28b; color:#ead5aa; font-size:21px; }
.episode-cinema video { width:100%; max-height:70vh; aspect-ratio:16/9; background:#080e18; border-radius:12px; display:block; }
.episode-cinema .episode-cinema__status { font-size:12px; color:#c1d1e7; margin:12px 0; line-height:2; }
.episode-cinema__status:empty { display:none; }
.episode-cinema__tools { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:14px; }
.episode-cinema button,.episode-cinema select { font:inherit; cursor:pointer; }
.episode-cinema__tools button,.episode-cinema select { border:1px solid #617898; border-radius:8px; padding:7px 10px; background:#213550; color:#e5eefb; font-size:12px; }
.episode-cinema label { font-size:11px; color:#bdcfe8; }
.episode-cinema__selection { margin-bottom:14px; }
.episode-cinema__selection select { max-width:100%; }
.episode-cinema [hidden] { display:none!important; }
.episode-cinema :focus-visible { outline:2px solid #e1c792; outline-offset:3px; }
@media(max-width:575px) { .episode-cinema { padding:12px; } .episode-cinema__heading { align-items:flex-start; flex-direction:column; } }