

/* فاصله بین سکشن‌ها */
/*.mh-section {*/
/*    margin-bottom: 40px;*/
/*    padding-bottom: 30px;*/
/*    border-bottom: 1px solid #eee;*/
/*}*/

/* =========================================
   بخش 1: هیرو )
   ========================================= */
.mh-hero-content {
    padding: 4.75rem 0;
    flex-direction: column;
}
.mh-hero-section {
    position: relative;
    width: 100%;
    z-index: 1;
}

.mh-hero-section .attachment-large {
    position: absolute;
    right: 0;
    top: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.mh-hero-section::before {
    content: '';
    background: rgba(69, 69, 69, .4);
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
}
.course-info {
    padding: 4.75rem 0;
    flex-direction: column;
}

h1.mh-title {
    font-size: 40px;
    color: #fff;
}
.mh-hero-content {
    position: relative;
    width: 100%;
    z-index: 1;
    color: #fff;
}

.excerpt-content {
    font-weight: 500;
    margin-bottom: 2px;
}
.mh-hero-content > * {
    width: 90%;
}

/* ستون راست (محتوا) */
.mh-hero-content {
    /* استایل خاصی لازم نیست، از گرید پیروی می‌کند */
}

.mh-breadcrumb {
    font-size: 13px;
    color: #fff;
    margin-bottom: 15px;
}


.mh-breadcrumb a { text-decoration: none; color: #fff; }

.mh-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mh-subtitle {
    font-size: 16px;
    padding: 10px 0;
    border-radius: 8px;
    margin-bottom: 25px;
}

.mh-top-nav {
    display: flex;
    gap: 15px;
}
.top-nav-btn {
      font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 5px 15px;
    border-radius: 50px;
    transition: 0.2s;
    width: max-content !important;
}
.top-nav-btn:hover {
    background: #949494;
    color: #fff;
}

/* ستون چپ (تصویر) */
.mh-hero-media {
    position: sticky; /* چسبیدن هنگام اسکرول (اختیاری) */
    top: 20px;
}

.mh-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}



/* =========================================
   بخش 2: خلاصه
   ========================================= */
.mh-excerpt {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #286b00;
    border-bottom: none;
    font-size: 16px;
    line-height: 1.8;
}
.mh-excerpt h3 {     
    margin-top: 0;
    font-size: 18px;
    color: #000000;
    margin-bottom: 6px;
}

/* =========================================
   بخش 3: صوت
   ========================================= */


.mh-audio-player { width: 100%; margin: 15px 0; }
.audio-dl-link {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

/* =========================================
   بخش 4: متا دیتا
   ========================================= */

.meta-tags a { color: #555; background: #eee; padding: 2px 8px; border-radius: 4px; text-decoration: none; }

/* =========================================
   بخش 5: ویدیو
   ========================================= */
.mh-video-box video, 
.mh-video-box iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
}

/* =========================================
   بخش 6: محتوا
   ========================================= */
.mh-content {
    font-size: 18px;
    line-height: 2;
    text-align: justify;
    color: #333;
}

/* =========================================
   بخش 8: فوتر نویگیشن
   ========================================= */
.mh-footer-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: none;
}
.footer-nav-btn {
    flex: 1;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    transition: 0.3s;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.footer-nav-btn:hover { border-color: #0073aa; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.footer-nav-btn .label { font-size: 12px; color: #999; margin-bottom: 5px; }
.footer-nav-btn .title { font-weight: bold; font-size: 15px; }
.footer-nav-btn.prev { text-align: right; }
.footer-nav-btn.next { text-align: left; }



.mh-section.mh-video-box {
    display: flex;
    justify-content: center;
}

.mh-section.mh-content {
    border-radius: 1rem;
    border: 1px solid #eee;
    background-color: #fff;
    padding: 1rem 2rem;
}


/* ریسپانسیو (موبایل) */
@media (max-width: 768px) {

    .mh-hero-media {
        order: -1; /* تصویر برود بالا */
        position: static;
    }
    .mh-footer-nav {
        flex-direction: column;
    }
}
@media (min-width: 576px) {
    .h_iframe-aparat_embed_frame {
        width: 560px;
    }
}

/* =========================================
   استایل بخش خلاصه و صوت (دو ستونه)
   ========================================= */
.mh-summary-audio-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
    gap: 30px;
    align-items: start;
    margin-top: 40px;
}
.tag-item {
    border-radius: 10px;
    padding: 3px 10px;
    color: #666;
    background: #eee;
}

/* ستون خلاصه */
.mh-excerpt-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.8;
    border: 1px solid #eee;
}
.mh-excerpt-content h3 {
    margin-top: 0;
    color: #d35400;
    font-size: 18px;
    margin-bottom: 15px;
}

/* ستون صوت */
.mh-audio-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
}

.audio-label {
    font-weight: bold;
    color: #444;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mh-audio-player {
    width: 100%;
    margin-bottom: 20px;
    height: 40px;
}

/* باکس دکمه‌های زیر پلیر */
.mh-audio-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; 
    justify-content: space-between;
    margin-top: 16px;
}

/* استایل مشترک دکمه‌های زیر پلیر */
.audio-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    padding: 5px 7px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mh-section.mh-meta-data {
    flex-direction: column;
}
.mh-meta-data .times-data {
    flex-direction: row;
    display: flex;
    gap: 13px;
    margin-top: 10px;
}

a.audio-btn-dl {
    background: 0 0;
    color: #666;
    border-radius: 12px;
    border: 2px solid #999;
}

a.audio-btn-dl:hover {
    background-color: #999;
    color: #fff;
}


a.audio-btn-dl:hover img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(305deg) brightness(176%) contrast(102%);
}

.audio-action-btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* رنگ قرمز برای لایک در حالت اکتیو (ارث‌بری از کدهای قبلی) */



/* =========================================
   استایل تاریخ و تگ‌ها (کمی تمیزتر)
   ========================================= */
.mh-meta-data {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-tags a {
    color: #0073aa;
    background: #eef2f5;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s;
}
.meta-tags a:hover {
    background: #0073aa;
    color: #fff;
}

/* ریسپانسیو (در موبایل زیر هم قرار بگیرند) */
@media (max-width: 768px) {
    .mh-summary-audio-wrapper {
        grid-template-columns: 1fr; /* تک ستونه */
    }
    .mh-audio-actions {
        justify-content: space-between;
    }
    .audio-action-btn {
        flex: 1; /* عرض دکمه‌ها در موبایل برابر شود */
    }
}


/* شروع استایل پلیر جدید */
/* کانتینر اصلی پلیر */
.mh-pro-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    gap: 15px;
    width: 100%;
    direction: rtl;
}

/* دکمه پخش و توقف */
.mh-btn-play {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
    margin-bottom: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    min-width: 40px;
    background-color: #2c9564;
}

.mh-btn-play svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* متن زمان‌ها */
.mh-time {
    font-size: 13px;
    color: #666;
    font-family: Tahoma, Arial, sans-serif;
    min-width: 38px;
    text-align: center;
}

/* کانتینر نوار پیشرفت */
.mh-progress-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    width: calc(100% - 40px);
    height: .375rem;
    border-radius: 50rem;
    background: #eee;
    outline: 0;
    direction: ltr;
    z-index: 0;
}

/* نوار پر شده (نشان‌دهنده زمان سپری‌شده) */
.mh-slider-track {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: .375rem;
    background-color: #2c9564;
    border-top-left-radius: 50rem;
    border-bottom-left-radius: 50rem;
    cursor: pointer;
    z-index: -1;
}

/* دایره لغزان (Thumb) */
.mh-slider-thumb {
    display: inline-block;
    height: 1rem;
    width: 1rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: content-box;
    border-radius: 50%;
    background-color: #2c9564;
    cursor: pointer;
    transition: .2s transform;
    z-index: -1;
}

/* اینپوت اصلی (نامرئی ولی فعال) */
.mh-range-input {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    -webkit-appearance: none;
}

/* بخش تنظیم سرعت */
.mh-speed-box {
    position: relative;
    display: flex;
    align-items: center;
}

.mh-speed-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    font-weight: bold;
    padding: 0 5px;
    outline: none;
    direction: ltr;
}

.mh-speed-select:hover {
    color: #0073aa;
}

/* اتمام استایل پلیر جدید */