/* ==========================================================
   Chinpars Dynamic Category Content
   Frontend design - v2.0.0
   ========================================================== */

.cpdc-category-template {
    --cp-primary: #971c20;
    --cp-primary-dark: #681014;
    --cp-primary-deep: #480b0e;
    --cp-gold: #b99a7a;
    --cp-gold-light: #ead9c7;
    --cp-text: #262626;
    --cp-muted: #686868;
    --cp-border: #eadfda;
    --cp-soft: #fff8f7;
    --cp-soft-gold: #faf6f1;
    --cp-white: #fff;
    --cp-shadow: 0 14px 40px rgba(74, 34, 27, 0.08);
    --cp-shadow-hover: 0 20px 48px rgba(112, 17, 21, 0.13);

    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 30px auto;
    padding: clamp(15px, 2vw, 27px);
    overflow: hidden;
    direction: rtl;
    color: var(--cp-text);
    background:
        radial-gradient(circle at 0 0, rgba(185, 154, 122, 0.18), transparent 28%),
        radial-gradient(circle at 100% 20%, rgba(151, 28, 32, 0.07), transparent 22%),
        linear-gradient(180deg, #fff 0%, #fffdfc 100%);
    border: 1px solid var(--cp-border);
    border-radius: 24px;
    box-shadow: var(--cp-shadow);
    font-family: "modam", sans-serif;
    font-size: 15px;
    line-height: 2.15;
    text-align: right;
}

.cpdc-category-template::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 145px;
    height: 5px;
    background: linear-gradient(90deg, var(--cp-primary), var(--cp-gold));
    border-radius: 0 0 0 10px;
}

.cpdc-category-template,
.cpdc-category-template * {
    box-sizing: border-box;
}

.cpdc-category-template input,
.cpdc-category-template textarea,
.cpdc-category-template select,
.cpdc-category-template button {
    font-family: "modam", sans-serif;
}

.cpdc-category-template p:empty {
    display: none;
}

/* =========================
   سربرگ معرفی
   ========================= */

.cpdc-category-template .cpdc-main-content > article > header,
.cpdc-category-template .cpdc-main-content > header,
.cpdc-category-template .cpdc-category-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 25px;
    padding: clamp(25px, 4vw, 42px);
    color: var(--cp-white);
    background:
        radial-gradient(circle at 5% 0, rgba(185, 154, 122, 0.48), transparent 32%),
        radial-gradient(circle at 95% 100%, rgba(255, 255, 255, 0.1), transparent 28%),
        linear-gradient(135deg, var(--cp-primary-deep), var(--cp-primary));
    border: 1px solid rgba(185, 154, 122, 0.65);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(74, 8, 12, 0.2);
}

.cpdc-category-template .cpdc-main-content > article > header::after,
.cpdc-category-template .cpdc-main-content > header::after,
.cpdc-category-template .cpdc-category-hero::after {
    content: "";
    position: absolute;
    bottom: -65px;
    left: -45px;
    width: 190px;
    height: 190px;
    border: 35px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
}

.cpdc-category-template .cpdc-main-content > article > header h2,
.cpdc-category-template .cpdc-main-content > header h2,
.cpdc-category-template .cpdc-category-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 13px;
    padding: 0;
    color: var(--cp-white) !important;
    border: 0;
    font-size: clamp(24px, 3vw, 35px);
    font-weight: 900;
    line-height: 1.55;
}

.cpdc-category-template .cpdc-main-content > article > header p,
.cpdc-category-template .cpdc-main-content > header p,
.cpdc-category-template .cpdc-category-hero p {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.92);
}

.cpdc-category-template .cpdc-main-content > article > header p:last-child,
.cpdc-category-template .cpdc-main-content > header p:last-child {
    margin: 20px 0 0;
    padding: 13px 16px;
    color: var(--cp-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 4px solid var(--cp-gold);
    border-radius: 11px;
    backdrop-filter: blur(6px);
}

.cpdc-category-template .cpdc-main-content > article > header strong,
.cpdc-category-template .cpdc-main-content > header strong,
.cpdc-category-template .cpdc-category-hero strong {
    color: var(--cp-white);
}

.cpdc-category-template .cpdc-hero-text {
    position: relative;
    z-index: 1;
}

.cpdc-category-template .cpdc-hero-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 20px;
    padding: 14px 16px;
    color: var(--cp-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 4px solid var(--cp-gold);
    border-radius: 11px;
    backdrop-filter: blur(6px);
}

.cpdc-category-template .cpdc-hero-note-icon {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-top: 4px;
    color: var(--cp-primary);
    background: var(--cp-white);
    border-radius: 7px;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.cpdc-category-template .cpdc-hero-note p:last-child {
    margin-bottom: 0;
}

/* پاراگراف ابتدایی در محتوای بدون header */
.cpdc-category-template .cpdc-main-content > p:first-child {
    margin: 0 0 23px;
    padding: 20px 22px;
    color: #343434;
    background:
        linear-gradient(135deg, rgba(151, 28, 32, 0.055), rgba(185, 154, 122, 0.1));
    border: 1px solid var(--cp-border);
    border-right: 5px solid var(--cp-primary);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(75, 33, 27, 0.055);
    font-size: 16px;
}

/* =========================
   بخش‌های اصلی محتوا
   ========================= */

.cpdc-category-template .cpdc-main-content > article > section:not(.cp-media-section),
.cpdc-category-template .cpdc-main-content > section:not(.cp-media-section),
.cpdc-category-template .cpdc-faq-section {
    position: relative;
    margin: 0 0 23px;
    padding: clamp(21px, 3vw, 31px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--cp-border);
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(68, 38, 30, 0.055);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.cpdc-category-template .cpdc-main-content > article > section:not(.cp-media-section):hover,
.cpdc-category-template .cpdc-main-content > section:not(.cp-media-section):hover,
.cpdc-category-template .cpdc-faq-section:hover {
    border-color: rgba(185, 154, 122, 0.75);
    box-shadow: var(--cp-shadow-hover);
    transform: translateY(-2px);
}

.cpdc-category-template .cpdc-main-content > article > section:not(.cp-media-section)::after,
.cpdc-category-template .cpdc-main-content > section:not(.cp-media-section)::after,
.cpdc-category-template .cpdc-faq-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 65px;
    height: 3px;
    background: var(--cp-gold);
    border-radius: 0 0 8px 0;
}

/* =========================
   عنوان‌ها
   ========================= */

.cpdc-category-template .cpdc-main-content > h2,
.cpdc-category-template .cpdc-main-content section > h2,
.cpdc-category-template .cp-faq-title {
    position: relative;
    margin: 27px 0 20px;
    padding: 0 20px 13px 0;
    color: var(--cp-primary);
    border-bottom: 1px solid var(--cp-border);
    font-size: clamp(20px, 2.3vw, 27px);
    font-weight: 900;
    line-height: 1.7;
}

.cpdc-category-template .cpdc-main-content > h2:first-child,
.cpdc-category-template section > h2:first-child,
.cpdc-category-template .cp-faq-title {
    margin-top: 0;
}

.cpdc-category-template .cp-faq-title {
    display: block;
    text-align: right;
}

.cpdc-category-template .cpdc-main-content > h2::before,
.cpdc-category-template .cpdc-main-content section > h2::before,
.cpdc-category-template .cp-faq-title::before {
    content: "";
    position: absolute;
    top: 9px;
    right: 0;
    width: 7px;
    height: 27px;
    background: linear-gradient(180deg, var(--cp-primary), var(--cp-gold));
    border-radius: 10px;
    box-shadow: 0 3px 9px rgba(151, 28, 32, 0.18);
}

.cpdc-category-template .cpdc-main-content > h2::after,
.cpdc-category-template .cpdc-main-content section > h2::after,
.cpdc-category-template .cp-faq-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 105px;
    height: 3px;
    background: linear-gradient(90deg, var(--cp-primary), var(--cp-gold));
    border-radius: 6px;
}

.cpdc-category-template h3 {
    position: relative;
    margin: 25px 0 12px;
    padding-right: 16px;
    color: var(--cp-primary-dark);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.85;
}

.cpdc-category-template h3::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--cp-gold);
    border: 2px solid rgba(151, 28, 32, 0.22);
    border-radius: 50%;
}

/* =========================
   متن، لینک و تصویر
   ========================= */

.cpdc-category-template p {
    margin: 0 0 14px;
    color: var(--cp-text);
}

.cpdc-category-template strong {
    color: var(--cp-primary);
    font-weight: 850;
}

.cpdc-category-template a {
    color: var(--cp-primary);
    font-weight: 750;
    text-decoration: none;
    border-bottom: 1px dashed var(--cp-gold);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cpdc-category-template a:hover {
    color: var(--cp-primary-dark);
    border-bottom-color: var(--cp-primary);
}

/* لینک‌های داخل متن، رنگ و وزن نوشته اطراف را حفظ می‌کنند. */
.cpdc-category-template .cpdc-main-content p a,
.cpdc-category-template .cpdc-faq-answer a,
.cpdc-category-template .cpdc-video-note a,
.cpdc-category-template .cpdc-final-cta-text a {
    color: inherit !important;
    font-weight: inherit;
}

.cpdc-category-template .cpdc-main-content p a:hover,
.cpdc-category-template .cpdc-faq-answer a:hover,
.cpdc-category-template .cpdc-video-note a:hover,
.cpdc-category-template .cpdc-final-cta-text a:hover {
    color: inherit !important;
}

.cpdc-category-template a:focus-visible,
.cpdc-category-template summary:focus-visible {
    outline: 3px solid rgba(151, 28, 32, 0.2);
    outline-offset: 3px;
}

.cpdc-category-template .cpdc-hero-actions,
.cpdc-category-template .cpdc-module-actions,
.cpdc-category-template .cpdc-final-actions,
.cpdc-category-template .cpdc-content-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cpdc-category-template .cpdc-hero-actions {
    position: relative;
    z-index: 1;
    margin-top: 19px;
}

.cpdc-category-template .cpdc-module-actions {
    margin-top: 15px;
}

.cpdc-category-template .cpdc-action-button,
.cpdc-category-template .cpdc-content-button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    color: var(--cp-white);
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-primary-dark));
    border: 1px solid var(--cp-primary);
    border-radius: 11px;
    box-shadow: 0 8px 19px rgba(151, 28, 32, 0.19);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cpdc-category-template .cpdc-action-button:hover,
.cpdc-category-template .cpdc-content-button:hover {
    color: var(--cp-white);
    background: var(--cp-primary-dark);
    border-color: var(--cp-primary-dark);
    box-shadow: 0 11px 24px rgba(151, 28, 32, 0.26);
    transform: translateY(-2px);
}

.cpdc-category-template .cpdc-action-outline {
    color: var(--cp-primary);
    background: var(--cp-white);
    border-color: var(--cp-gold);
    box-shadow: none;
}

.cpdc-category-template .cpdc-action-outline:hover {
    color: var(--cp-primary-dark);
    background: var(--cp-soft-gold);
    border-color: var(--cp-primary);
}

.cpdc-category-template .cpdc-category-hero .cpdc-action-button {
    color: var(--cp-primary-dark);
    background: var(--cp-white);
    border-color: var(--cp-white);
    box-shadow: 0 9px 21px rgba(44, 5, 7, 0.2);
}

.cpdc-category-template .cpdc-category-hero .cpdc-action-button:hover {
    color: var(--cp-primary);
    background: #fff8f5;
}

.cpdc-category-template .cpdc-category-hero .cpdc-action-outline {
    color: var(--cp-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.cpdc-category-template .cpdc-content-actions {
    margin: 17px 0;
}

.cpdc-category-template img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--cp-border);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(61, 35, 29, 0.1);
}

.cpdc-category-template figure {
    margin: 22px 0;
}

.cpdc-category-template figcaption {
    margin-top: 8px;
    color: var(--cp-muted);
    font-size: 13px;
    text-align: center;
}

.cpdc-category-template blockquote {
    position: relative;
    margin: 22px 0;
    padding: 19px 23px 19px 18px;
    color: #3a302d;
    background: var(--cp-soft-gold);
    border: 1px solid var(--cp-border);
    border-right: 5px solid var(--cp-gold);
    border-radius: 14px;
}

.cpdc-category-template blockquote::before {
    content: "“";
    position: absolute;
    top: -2px;
    left: 16px;
    color: rgba(151, 28, 32, 0.13);
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
}

/* =========================
   لیست‌ها
   ========================= */

.cpdc-category-template ul,
.cpdc-category-template ol {
    margin: 17px 0;
    padding: 0;
    list-style: none;
}

.cpdc-category-template li {
    position: relative;
    margin: 8px 0;
    padding: 8px 38px 8px 12px;
    background: linear-gradient(90deg, transparent, rgba(185, 154, 122, 0.065));
    border-radius: 9px;
}

.cpdc-category-template ul > li::before {
    content: "✓";
    position: absolute;
    top: 9px;
    right: 8px;
    display: grid;
    width: 22px;
    height: 22px;
    color: var(--cp-white);
    background: linear-gradient(145deg, var(--cp-primary), var(--cp-primary-dark));
    border-radius: 7px;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.cpdc-category-template ol {
    counter-reset: cpdc-counter;
}

.cpdc-category-template ol > li {
    counter-increment: cpdc-counter;
}

.cpdc-category-template ol > li::before {
    content: counter(cpdc-counter);
    position: absolute;
    top: 9px;
    right: 8px;
    display: grid;
    width: 22px;
    height: 22px;
    color: var(--cp-primary);
    background: var(--cp-white);
    border: 1px solid var(--cp-gold);
    border-radius: 50%;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

/* =========================
   کارت‌ها و آکاردئون‌های محتوا
   ========================= */

.cpdc-category-template .cpdc-compare-grid,
.cpdc-category-template .cpdc-main-content section > div:has(> div > h3) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 18px 0;
}

.cpdc-category-template .cpdc-compare-card,
.cpdc-category-template .cpdc-main-content section > div > div:has(> h3) {
    padding: 19px;
    background:
        linear-gradient(145deg, var(--cp-soft-gold), var(--cp-white));
    border: 1px solid var(--cp-border);
    border-top: 4px solid var(--cp-primary);
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(66, 38, 31, 0.05);
}

.cpdc-category-template .cpdc-compare-card h3,
.cpdc-category-template .cpdc-main-content section > div > div:has(> h3) h3 {
    margin-top: 0;
}

.cpdc-category-template .cpdc-main-content section > div:has(> h3):not(.cpdc-compare-card) {
    margin: 20px 0;
    padding: 20px;
    background:
        linear-gradient(135deg, var(--cp-soft-gold), var(--cp-white));
    border: 1px solid var(--cp-gold);
    border-right: 5px solid var(--cp-primary);
    border-radius: 14px;
}

.cpdc-category-template .cpdc-main-content details {
    margin: 17px 0;
    overflow: hidden;
    background: var(--cp-white);
    border: 1px solid var(--cp-border);
    border-radius: 13px;
    box-shadow: 0 5px 16px rgba(71, 39, 31, 0.045);
}

.cpdc-category-template .cpdc-main-content details[open] {
    border-color: rgba(151, 28, 32, 0.38);
    box-shadow: 0 10px 25px rgba(151, 28, 32, 0.075);
}

.cpdc-category-template .cpdc-main-content details > summary {
    position: relative;
    display: block;
    min-height: 56px;
    padding: 14px 57px 14px 17px;
    color: var(--cp-primary-dark);
    background: linear-gradient(90deg, var(--cp-white), var(--cp-soft-gold));
    font-weight: 850;
    line-height: 1.9;
    cursor: pointer;
    list-style: none;
}

.cpdc-category-template .cpdc-main-content details > summary::-webkit-details-marker {
    display: none;
}

.cpdc-category-template .cpdc-main-content details > summary::before {
    content: "+";
    position: absolute;
    top: 50%;
    right: 15px;
    display: grid;
    width: 29px;
    height: 29px;
    color: var(--cp-white);
    background: linear-gradient(145deg, var(--cp-primary), var(--cp-primary-dark));
    border-radius: 8px;
    place-items: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
}

.cpdc-category-template .cpdc-main-content details[open] > summary {
    color: var(--cp-white);
    background:
        radial-gradient(circle at 0 0, rgba(185, 154, 122, 0.35), transparent 36%),
        linear-gradient(135deg, var(--cp-primary-dark), var(--cp-primary));
}

.cpdc-category-template .cpdc-main-content details[open] > summary::before {
    content: "−";
    color: var(--cp-primary);
    background: var(--cp-white);
}

.cpdc-category-template .cpdc-main-content details > p {
    padding: 0 18px;
}

.cpdc-category-template .cpdc-main-content details > p:first-of-type {
    padding-top: 17px;
}

.cpdc-category-template .cpdc-main-content details > p:last-child {
    padding-bottom: 17px;
}

/* =========================
   جدول‌ها
   ========================= */

.cpdc-category-template .cpdc-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 21px 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--cp-border);
    border-radius: 14px;
    box-shadow: 0 9px 25px rgba(67, 38, 31, 0.07);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--cp-primary) var(--cp-soft-gold);
}

.cpdc-category-template .cpdc-table-scroll::-webkit-scrollbar {
    height: 7px;
}

.cpdc-category-template .cpdc-table-scroll::-webkit-scrollbar-track {
    background: var(--cp-soft-gold);
}

.cpdc-category-template .cpdc-table-scroll::-webkit-scrollbar-thumb {
    background: var(--cp-primary);
    border-radius: 20px;
}

.cpdc-category-template .cpdc-table-hint {
    display: none;
}

.cpdc-category-template .cpdc-main-content table {
    display: table;
    width: 100%;
    min-width: 680px;
    margin: 0;
    overflow: visible;
    border: 0;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 0;
    box-shadow: none;
}

.cpdc-category-template table thead,
.cpdc-category-template table tbody {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.cpdc-category-template table th {
    padding: 15px 14px;
    color: var(--cp-white);
    background:
        linear-gradient(135deg, var(--cp-primary-dark), var(--cp-primary));
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    font-weight: 850;
    text-align: right;
    white-space: nowrap;
}

.cpdc-category-template table td {
    padding: 14px;
    color: var(--cp-text);
    background: var(--cp-white);
    border: 0;
    border-bottom: 1px solid var(--cp-border);
    border-left: 1px solid var(--cp-border);
    font-size: 14px;
    line-height: 1.85;
    text-align: right;
    vertical-align: middle;
    transition: background 0.2s ease;
}

.cpdc-category-template table th:last-child,
.cpdc-category-template table td:last-child {
    border-left: 0;
}

.cpdc-category-template table tbody tr:nth-child(even) td {
    background: var(--cp-soft-gold);
}

.cpdc-category-template table tbody tr:hover td {
    background: var(--cp-soft);
}

.cpdc-category-template table tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================
   سؤالات متداول
   ========================= */

.cpdc-category-template .cpdc-faq-section {
    background:
        radial-gradient(circle at 0 0, rgba(185, 154, 122, 0.14), transparent 25%),
        var(--cp-white);
}

.cpdc-category-template .cpdc-faq-list {
    display: grid;
    gap: 11px;
}

.cpdc-category-template .cpdc-faq-list details {
    margin: 0;
    overflow: hidden;
    background: var(--cp-white);
    border: 1px solid var(--cp-border);
    border-radius: 13px;
    box-shadow: 0 5px 16px rgba(71, 39, 31, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cpdc-category-template .cpdc-faq-list details:hover {
    border-color: rgba(185, 154, 122, 0.9);
}

.cpdc-category-template .cpdc-faq-list details[open] {
    border-color: rgba(151, 28, 32, 0.42);
    box-shadow: 0 10px 24px rgba(151, 28, 32, 0.085);
}

.cpdc-category-template .cpdc-faq-list summary {
    position: relative;
    display: block;
    min-height: 58px;
    padding: 15px 58px 15px 18px;
    color: var(--cp-primary-dark);
    background: linear-gradient(90deg, var(--cp-white), var(--cp-soft-gold));
    font-size: 15px;
    font-weight: 850;
    line-height: 1.9;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.22s ease, background 0.22s ease;
}

.cpdc-category-template .cpdc-faq-list summary::-webkit-details-marker {
    display: none;
}

.cpdc-category-template .cpdc-faq-list summary::before {
    content: "+";
    position: absolute;
    top: 50%;
    right: 16px;
    display: grid;
    width: 30px;
    height: 30px;
    color: var(--cp-white);
    background: linear-gradient(145deg, var(--cp-primary), var(--cp-primary-dark));
    border: 1px solid rgba(185, 154, 122, 0.7);
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(151, 28, 32, 0.17);
    place-items: center;
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.25s ease, background 0.25s ease;
}

.cpdc-category-template .cpdc-faq-list details[open] > summary {
    color: var(--cp-white);
    background:
        radial-gradient(circle at 0 0, rgba(185, 154, 122, 0.35), transparent 36%),
        linear-gradient(135deg, var(--cp-primary-dark), var(--cp-primary));
}

.cpdc-category-template .cpdc-faq-list details[open] > summary::before {
    content: "−";
    color: var(--cp-primary);
    background: var(--cp-white);
    transform: translateY(-50%) rotate(180deg);
}

.cpdc-category-template .cpdc-faq-answer {
    padding: 19px 21px;
    color: var(--cp-text);
    background: var(--cp-white);
    border-top: 1px solid var(--cp-border);
}

.cpdc-category-template .cpdc-faq-answer p:last-child {
    margin-bottom: 0;
}

/* =========================
   اقدام نهایی
   ========================= */

.cpdc-category-template .cpdc-final-cta {
    position: relative;
    margin: 23px 0 0;
    padding: clamp(25px, 4vw, 38px);
    overflow: hidden;
    color: var(--cp-white);
    background:
        radial-gradient(circle at 0 0, rgba(185, 154, 122, 0.46), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.09), transparent 30%),
        linear-gradient(135deg, var(--cp-primary-deep), var(--cp-primary));
    border: 1px solid rgba(185, 154, 122, 0.7);
    border-radius: 20px;
    box-shadow: 0 17px 40px rgba(83, 10, 14, 0.18);
    text-align: center;
}

.cpdc-category-template .cpdc-final-cta::after {
    content: "";
    position: absolute;
    bottom: -78px;
    left: -55px;
    width: 210px;
    height: 210px;
    border: 38px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.cpdc-category-template .cpdc-final-cta h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    padding: 0;
    color: var(--cp-white) !important;
    border: 0;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 900;
    line-height: 1.65;
}

.cpdc-category-template .cpdc-final-cta h2::before,
.cpdc-category-template .cpdc-final-cta h2::after {
    display: none;
}

.cpdc-category-template .cpdc-final-cta-text {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.cpdc-category-template .cpdc-final-cta-text p {
    color: rgba(255, 255, 255, 0.9);
}

.cpdc-category-template .cpdc-final-actions {
    position: relative;
    z-index: 1;
    justify-content: center;
    margin-top: 18px;
}

.cpdc-category-template .cpdc-final-cta .cpdc-action-button {
    color: var(--cp-primary-dark);
    background: var(--cp-white);
    border-color: var(--cp-white);
}

.cpdc-category-template .cpdc-final-cta .cpdc-action-button:hover {
    color: var(--cp-primary);
    background: #fff7f4;
}

.cpdc-category-template .cpdc-final-cta .cpdc-action-outline {
    color: var(--cp-white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
}

.cpdc-category-template .cpdc-final-cta .cpdc-action-outline:hover {
    color: var(--cp-white);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cp-white);
}

/* =========================
   ویدئو و پادکست
   ========================= */

.cpdc-category-template .cpdc-media-module {
    display: grid;
    gap: 18px;
    margin: 0 0 23px;
}

.cpdc-category-template .cpdc-video-module {
    overflow: hidden;
    background: var(--cp-white);
    border: 1px solid var(--cp-border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(61, 35, 29, 0.09);
}

.cpdc-category-template .cpdc-media-module-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 21px 24px;
    color: var(--cp-white);
    background:
        radial-gradient(circle at 0 0, rgba(185, 154, 122, 0.42), transparent 40%),
        linear-gradient(135deg, var(--cp-primary-dark), var(--cp-primary));
}

.cpdc-category-template .cpdc-media-module-icon {
    display: grid;
    flex: 0 0 49px;
    width: 49px;
    height: 49px;
    padding-right: 2px;
    color: var(--cp-primary);
    background: var(--cp-white);
    border: 3px solid rgba(185, 154, 122, 0.85);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(55, 10, 12, 0.21);
    place-items: center;
    line-height: 1;
}

.cpdc-category-template .cpdc-media-module-header h2 {
    margin: 0 0 4px;
    padding: 0;
    color: var(--cp-white) !important;
    border: 0;
    font-size: clamp(19px, 2.3vw, 26px);
    font-weight: 900;
    line-height: 1.6;
}

.cpdc-category-template .cpdc-media-module-header h2::before,
.cpdc-category-template .cpdc-media-module-header h2::after {
    display: none;
}

.cpdc-category-template .cpdc-media-module-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.87);
    font-size: 13px;
}

.cpdc-category-template .cpdc-video-body {
    padding: 22px;
}

.cpdc-category-template .cpdc-video-player {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #151515;
    border: 1px solid var(--cp-border);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(28, 28, 28, 0.15);
    object-fit: cover;
}

.cpdc-category-template .cpdc-video-note {
    margin: 17px 0 0;
    padding: 14px 17px;
    background: var(--cp-soft-gold);
    border: 1px solid var(--cp-border);
    border-right: 4px solid var(--cp-primary);
    border-radius: 11px;
}

.cpdc-category-template .cpdc-video-note p:last-child {
    margin-bottom: 0;
}

.cpdc-category-template .cpdc-audio-module {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background:
        radial-gradient(circle at 0 0, rgba(185, 154, 122, 0.18), transparent 31%),
        linear-gradient(135deg, var(--cp-soft-gold), var(--cp-white));
    border: 1px solid var(--cp-gold);
    border-radius: 17px;
    box-shadow: 0 10px 27px rgba(68, 37, 29, 0.07);
}

.cpdc-category-template .cpdc-audio-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    color: var(--cp-white);
    background: linear-gradient(145deg, var(--cp-primary), var(--cp-primary-dark));
    border: 3px solid rgba(185, 154, 122, 0.7);
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(151, 28, 32, 0.2);
    place-items: center;
    font-size: 25px;
    line-height: 1;
}

.cpdc-category-template .cpdc-audio-content {
    flex: 1;
    min-width: 0;
}

.cpdc-category-template .cpdc-audio-content h3 {
    margin: 0 0 3px;
    padding: 0;
}

.cpdc-category-template .cpdc-audio-content h3::before {
    display: none;
}

.cpdc-category-template .cpdc-audio-content p {
    margin: 0;
    color: var(--cp-muted);
    font-size: 13px;
}

.cpdc-category-template .cpdc-audio-content audio {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 11px;
}

/* سازگاری با محتوای HTML قدیمی */
.cpdc-category-template .cp-media-section {
    margin: 0 0 23px;
    padding: 0;
    overflow: hidden;
    background: var(--cp-white);
    border: 1px solid var(--cp-border);
    border-radius: 18px;
    box-shadow: 0 11px 30px rgba(61, 35, 29, 0.08);
}

.cpdc-category-template .cp-media-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 21px 24px;
    color: var(--cp-white);
    background:
        radial-gradient(circle at 0 0, rgba(185, 154, 122, 0.4), transparent 40%),
        linear-gradient(135deg, var(--cp-primary-dark), var(--cp-primary));
}

.cpdc-category-template .cp-media-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding-right: 2px;
    color: var(--cp-primary);
    background: var(--cp-white);
    border: 3px solid rgba(185, 154, 122, 0.85);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(55, 10, 12, 0.21);
    place-items: center;
    line-height: 1;
}

.cpdc-category-template .cp-media-header h2 {
    margin: 0 0 4px;
    padding: 0;
    color: var(--cp-white) !important;
    border: 0;
    font-size: clamp(19px, 2.3vw, 26px);
    font-weight: 900;
    line-height: 1.6;
}

.cpdc-category-template .cp-media-header h2::before,
.cpdc-category-template .cp-media-header h2::after {
    display: none;
}

.cpdc-category-template .cp-media-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.87);
    font-size: 13px;
}

.cpdc-category-template .cp-media-body {
    padding: 22px;
}

.cpdc-category-template .cp-video-player,
.cpdc-category-template video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #151515;
    border: 1px solid var(--cp-border);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(28, 28, 28, 0.15);
    object-fit: cover;
}

.cpdc-category-template .cp-media-note {
    margin: 17px 0 0 !important;
    padding: 14px 17px;
    background: var(--cp-soft-gold);
    border: 1px solid var(--cp-border);
    border-right: 4px solid var(--cp-primary);
    border-radius: 11px;
}

.cpdc-category-template .cp-podcast-box {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 18px;
    padding: 18px;
    background: linear-gradient(135deg, var(--cp-soft-gold), var(--cp-white));
    border: 1px solid var(--cp-gold);
    border-radius: 14px;
}

.cpdc-category-template .cp-podcast-play {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    color: var(--cp-white);
    background: linear-gradient(145deg, var(--cp-primary), var(--cp-primary-dark));
    border: 3px solid rgba(185, 154, 122, 0.65);
    border-radius: 50%;
    place-items: center;
    font-size: 23px;
}

.cpdc-category-template .cp-podcast-info {
    flex: 1;
    min-width: 0;
}

.cpdc-category-template .cp-podcast-info h3 {
    margin: 0 0 3px;
    padding: 0;
}

.cpdc-category-template .cp-podcast-info h3::before {
    display: none;
}

.cpdc-category-template audio {
    display: block;
    width: 100%;
    margin-top: 11px;
}

/* =========================
   موبایل
   ========================= */

@media (max-width: 767px) {
    .cpdc-category-template {
        margin: 20px auto;
        padding: 11px;
        border-radius: 17px;
        font-size: 14px;
        line-height: 2;
    }

    .cpdc-category-template .cpdc-main-content > article > header,
    .cpdc-category-template .cpdc-main-content > header,
    .cpdc-category-template .cpdc-category-hero {
        padding: 24px 18px;
        border-radius: 15px;
    }

    .cpdc-category-template .cpdc-main-content > article > section:not(.cp-media-section),
    .cpdc-category-template .cpdc-main-content > section:not(.cp-media-section),
    .cpdc-category-template .cpdc-faq-section {
        margin-bottom: 15px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .cpdc-category-template .cpdc-main-content > p:first-child {
        padding: 15px;
        border-radius: 12px;
        font-size: 14px;
        text-align: right;
    }

    .cpdc-category-template .cpdc-main-content > h2,
    .cpdc-category-template .cpdc-main-content section > h2,
    .cpdc-category-template .cp-faq-title {
        padding-right: 16px;
        font-size: 20px;
    }

    .cpdc-category-template p {
        text-align: right;
    }

    .cpdc-category-template li {
        padding-left: 5px;
    }

    .cpdc-category-template .cpdc-compare-grid,
    .cpdc-category-template .cpdc-main-content section > div:has(> div > h3) {
        grid-template-columns: 1fr;
    }

    .cpdc-category-template .cpdc-table-scroll {
        position: relative;
        margin: 16px 0;
        padding-top: 34px;
        background: var(--cp-white);
    }

    .cpdc-category-template .cpdc-table-hint {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        display: flex;
        height: 34px;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        color: var(--cp-primary-dark);
        background: var(--cp-soft-gold);
        border-bottom: 1px solid var(--cp-border);
        font-size: 11px;
        font-weight: 750;
        white-space: nowrap;
    }

    .cpdc-category-template .cpdc-main-content table {
        min-width: 630px;
        margin: 0;
    }

    .cpdc-category-template table th,
    .cpdc-category-template table td {
        padding: 11px;
        font-size: 13px;
    }

    .cpdc-category-template .cpdc-faq-list summary {
        padding: 13px 52px 13px 12px;
        font-size: 14px;
    }

    .cpdc-category-template .cpdc-faq-list summary::before {
        right: 12px;
        width: 28px;
        height: 28px;
    }

    .cpdc-category-template .cpdc-faq-answer {
        padding: 15px;
    }

    .cpdc-category-template .cpdc-final-cta {
        padding: 25px 16px;
        border-radius: 15px;
    }

    .cpdc-category-template .cpdc-final-actions,
    .cpdc-category-template .cpdc-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cpdc-category-template .cpdc-action-button,
    .cpdc-category-template .cpdc-content-button {
        width: 100%;
    }

    .cpdc-category-template .cpdc-media-module-header {
        gap: 11px;
        padding: 17px 14px;
    }

    .cpdc-category-template .cpdc-media-module-icon {
        flex-basis: 41px;
        width: 41px;
        height: 41px;
        font-size: 14px;
    }

    .cpdc-category-template .cpdc-media-module-header h2 {
        font-size: 17px;
    }

    .cpdc-category-template .cpdc-media-module-header p {
        font-size: 12px;
    }

    .cpdc-category-template .cpdc-video-body {
        padding: 13px;
    }

    .cpdc-category-template .cpdc-audio-module {
        align-items: flex-start;
        gap: 11px;
        padding: 14px;
    }

    .cpdc-category-template .cpdc-audio-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .cpdc-category-template .cp-media-header {
        gap: 11px;
        padding: 17px 14px;
    }

    .cpdc-category-template .cp-media-icon {
        flex-basis: 41px;
        width: 41px;
        height: 41px;
        font-size: 14px;
    }

    .cpdc-category-template .cp-media-header h2 {
        font-size: 17px;
    }

    .cpdc-category-template .cp-media-header p {
        font-size: 12px;
    }

    .cpdc-category-template .cp-media-body {
        padding: 13px;
    }

    .cpdc-category-template .cp-podcast-box {
        align-items: flex-start;
        gap: 11px;
        padding: 13px;
    }

    .cpdc-category-template .cp-podcast-play {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cpdc-category-template {
        animation: cpdc-fade-up 0.45s ease both;
    }

    @keyframes cpdc-fade-up {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .cpdc-category-template *,
    .cpdc-category-template *::before,
    .cpdc-category-template *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
