/* =========================================
   Hero Section (بخش اصلی) - آپدیت شده برای LCP
========================================= */
.product-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background-color: #1e293b; /* رنگ جایگزین تا زمان لود تصویر */
}

/* تصویر پس زمینه هیرو به صورت img */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.product-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 0, 20, 0.5);
    z-index: 1;
}

.product-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #f8fafc;
}

/* رفع قطعی پرش چیدمان (CLS) برای نوار اعتماد */
.trust-banner {
    background-color: #f8fafc !important;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    direction: rtl;
    position: relative;
    z-index: 10;
    min-height: 64px;
    contain: layout paint; /* جلوگیری از تاثیر شیفت داخلی بر کل صفحه */
}

@media (max-width: 768px) {
    .product-hero {
        min-height: 400px; /* جلوگیری از پرش ناشی از vh در موبایل */
    }
}


/* =========================================
   Trust Banner (نوار اعتماد)
========================================= */
.trust-banner {
    background-color: #f8fafc !important;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    direction: rtl;
    position: relative;
    z-index: 10;
    min-height: 64px; /* اضافه شده برای جلوگیری از CLS و پرش چیدمان */
}

.trust-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
}

.trust-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #1e293b;
}

@media (max-width: 768px) {
    .trust-items { justify-content: center; }
}

/* =========================================
   Course Introduction (معرفی دوره)
========================================= */
.course-intro {
    padding: 80px 0;
    background-color: #ffffff;
    direction: rtl;
}

.intro-container {
    display: flex;
    flex-direction: row;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-content { flex: 1; }

.intro-content h2 {
    color: #1e293b;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.intro-content p {
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.intro-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.intro-features li::before {
    content: "■";
    color: #1e293b;
    font-size: 14px;
    margin-top: 3px;
}

.intro-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: bold;
}

.course-intro iframe,
.course-intro video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border: none;
    display: block;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .intro-container { flex-direction: column; gap: 30px; }
}

/* =========================================
   Course Achievements (دستاوردها)
========================================= */
.course-achievements {
    padding: 10px 20px;
    background-color: #f8fafc;
    direction: rtl;
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #1e293b;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.achievement-card {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.achievement-card:hover { transform: translateY(-5px); }

.achievement-card .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #1e293b;
    margin-bottom: 20px;
}

.achievement-card h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: bold;
}

.achievement-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* =========================================
   Course Curriculum (سرفصل‌ها)
========================================= */
.course-curriculum {
    padding: 60px 20px;
    background-color: #ffffff;
    direction: rtl;
}

.curriculum-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    color: #475569;
    font-size: 16px;
    margin-top: 0px;
    margin-bottom: 40px;
}

.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.curriculum-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.curriculum-item summary::-webkit-details-marker { display: none; }

.curriculum-item summary {
    list-style: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #1e293b;
    transition: background-color 0.3s ease;
}

.curriculum-item summary:hover { background-color: #f1f5f9; }

.summary-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-number {
    background-color: #1e293b;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.curriculum-item h3 { margin: 0; font-size: 16px; }

.toggle-icon {
    transition: transform 0.3s ease;
    color: #475569;
}

.curriculum-item[open] .toggle-icon { transform: rotate(180deg); }

.curriculum-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 10px;
    padding-top: 20px;
}

.curriculum-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.curriculum-content li {
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
    position: relative;
    padding-right: 20px;
}

.curriculum-content li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 15px;
    width: 6px;
    height: 6px;
    background-color: #1e293b;
    border-radius: 50%;
}

/* =========================================
   Sample Videos (ویدیوهای نمونه)
========================================= */
.sample-videos {
    padding: 60px 20px;
    background-color: #f8fafc;
    direction: rtl;
}

.sample-videos .container { max-width: 1200px; margin: 0 auto; }
.sample-videos .section-subtitle {
    text-align: center; color: #475569; font-size: 16px; margin-top: -20px; margin-bottom: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #1e293b;
}

.video-wrapper iframe {
    width: 100%; height: 100%; border: none;
}

.video-info { padding: 20px; text-align: center; }

.video-badge {
    display: inline-block;
    background-color: #1e293b;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.video-info h3 { margin: 0; font-size: 16px; color: #1e293b; line-height: 1.5; }

@media (max-width: 992px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .video-grid { grid-template-columns: 1fr; } }

/* =========================================
   Target Audience (مخاطبین دوره)
========================================= */
.target-audience {
    padding: 80px 20px;
    background-color: #ffffff;
    direction: rtl;
}

.target-audience .container { max-width: 1000px; margin: 0 auto; }
.target-audience .section-title { text-align: center; color: #1e293b; font-size: 28px; margin-bottom: 10px; }
.target-audience .section-subtitle { text-align: center; color: #475569; font-size: 16px; margin-bottom: 50px; }

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.audience-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.suitable-box { border-top: 5px solid #1e293b; }
.unsuitable-box { border-top: 5px solid #94a3b8; }

.box-header { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.box-header h3 { margin: 0; color: #1e293b; font-size: 20px; }

.audience-list { list-style: none; padding: 0; margin: 0; }
.audience-list li {
    position: relative; padding-right: 25px; margin-bottom: 20px; color: #475569; line-height: 1.8; font-size: 15px;
}
.audience-list li:last-child { margin-bottom: 0; }
.audience-list li::before {
    content: ""; position: absolute; right: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%;
}

.suitable-box .audience-list li::before { background-color: #1e293b; }
.unsuitable-box .audience-list li::before { background-color: #94a3b8; }

@media (max-width: 768px) {
    .audience-grid { grid-template-columns: 1fr; gap: 30px; }
    .target-audience { padding: 60px 20px; }
}

/* =========================================
   Instructor Section (معرفی مدرس)
========================================= */
.zb-instructor-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    direction: rtl;
}

.zb-instructor-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 32px;
    padding: 40px;
    gap: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    align-items: stretch;
}

.zb-instructor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zb-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: #f1f5f9;
    color: #1e293b;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.zb-bio-title {
    font-size: 32px;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.zb-instructor-bio {
    font-size: 15px;
    line-height: 1.9;
    color: #475569;
    margin: 0 0 40px 0;
    text-align: justify;
}

.zb-instructor-stats {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.zb-stat-box {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zb-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
}

.zb-stat-value {
    font-size: 18px;
    font-weight: 900;
    color: #1e293b;
}

.zb-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.zb-instructor-image-wrapper {
    flex: 0 0 350px;
    background-color: #f8fafc;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.zb-instructor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .zb-instructor-card {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .zb-instructor-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 400px;
        order: -1;
    }
    
    .zb-bio-title { font-size: 26px; }
}

@media (max-width: 600px) {
    .zb-instructor-stats { flex-direction: column; }
    .zb-stat-box { padding: 16px; }
}

/* =========================================
   FAQ Section (سوالات متداول دو ستونه)
========================================= */
.course-faq {
    padding: 80px 20px;
    background-color: #f8fafc;
    direction: rtl;
}

.faq-container { max-width: 1200px; margin: 0 auto; }

.course-faq .section-title {
    text-align: center;
    color: #1e293b;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.course-faq .section-subtitle {
    text-align: center;
    color: #475569;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.faq-column { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary {
    list-style: none;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-icon {
    font-size: 26px;
    font-weight: 300;
    color: #64748b;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    color: #1e293b;
}

.faq-content {
    padding: 0 24px 24px 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.faq-content p {
    margin: 0;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
    .course-faq { padding: 60px 20px; }
}

/* =========================================
   Testimonials Section (نظرات زبان‌آموزان)
========================================= */
.course-testimonials {
    padding: 80px 20px;
    background-color: #ffffff;
    direction: rtl;
}

.testimonials-container { max-width: 1200px; margin: 0 auto; }

.course-testimonials .section-title {
    text-align: center;
    color: #1e293b;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.course-testimonials .section-subtitle {
    text-align: center;
    color: #475569;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonial-card:hover { transform: translateY(-5px); }

.testimonial-content p {
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background-color: #1e293b;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.author-info h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.author-info span {
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 992px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .course-testimonials { padding: 60px 20px; }
}

/* =========================================
   Final CTA Section (فراخوان نهایی)
========================================= */
.final-cta-section {
    padding: 80px 20px; 
    background-color: #f8fafc;
    color: #1e293b;
    text-align: center;
    direction: rtl;
    border-top: 1px solid #e2e8f0;
}

.final-cta-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #1e293b;
}

.cta-subtitle {
    font-size: 18px;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.cta-old-price {
    font-size: 18px;
    color: #64748b;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.cta-new-price {
    font-size: 36px;
    font-weight: 900;
    color: #1e293b;
}

.cta-button {
    background-color: #1e293b;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

.cta-button:hover {
    background-color: #334155;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.3);
}

.cta-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.cta-guarantee svg {
    color: #10b981;
}

@media (max-width: 768px) {
    .final-cta-section { padding: 60px 20px; }
    .cta-title { font-size: 26px; }
    .cta-subtitle { font-size: 16px; }
    .cta-new-price { font-size: 28px; }
    .cta-button { width: 100%; padding: 15px 20px; font-size: 16px; }
}

@media (max-width: 768px) {
    .course-intro {
        padding: 10px 0 !important; 
    }

    .intro-container {
        flex-direction: column !important;
        gap: 20px !important; 
    }

    .intro-image-container,
    .wp-block-embed__wrapper,
    .fluid-width-video-wrapper,
    .course-intro figure.wp-block-embed {
        height: auto !important;
        display: block !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .course-intro iframe,
    .course-intro video,
    .intro-image-container iframe,
    .intro-image-container video {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .sample-videos {
        padding: 40px 20px !important; 
    }
    
    .sample-videos .container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .video-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: 100% !important;
    }

    .video-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
        overflow: hidden !important;
    }
    
    .video-wrapper {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }

    .video-wrapper iframe {
        width: 100% !important;
        height: 100% !important;
        border-radius: 12px 12px 0 0 !important;
    }
}
/* =========================================
   استایل‌های قیمت و دکمه خرید در هیرو
========================================= */

/* استایل قیمت خط‌خورده (قدیمی) */
.product-price-box .price-old {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8; /* رنگ خاکستری برای قیمت قدیمی */
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* اعمال خط‌خوردگی فقط روی مبلغ و واحد پول */
.product-price-box .old-amount,
.product-price-box .old-currency {
    text-decoration: line-through;
    text-decoration-color: #ef4444; /* رنگ قرمز برای خط‌خوردگی */
    text-decoration-thickness: 2px;
}

/* استایل بج (به مدت محدود) */
.product-price-box .price-badge {
    background-color: #dc2626;
    color: white;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none !important; /* جلوگیری از خط‌خوردگی بج */
}

/* استایل قیمت جدید */
.product-price-box .price-new {
    color: #fcfcfc; /* رنگ زرد طلایی محبوب شما */
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.trust-banner {
    min-height: 80px; /* این عدد را بر اساس ارتفاع دقیق نوار تنظیم کنید */
    contain: layout paint;
}
/* استایل دکمه ثبت‌نام در دوره */
.product-hero-content .btn-buy {
    display: inline-block;
    background-color: #e4bf44;
    color: #1e293b; /* رنگ سورمه‌ای متن */
    padding: 12px 32px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px; /* گوشه‌های گرد */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-hero-content .btn-buy:hover {
    background-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}