/* =========================================
   قالب مستقل هیرو (Hero Template)
   ========================================= */

/* کانتینر اصلی و لایه تیره (Overlay) */
.mh-hero-section {
    position: relative;
    width: 100%;
    z-index: 1;
}
.mh-hero-section::before {
    content: '';
    background: rgba(69, 69, 69, 0.4);
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
}

/* تصویر پس‌زمینه هیرو */
.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-content {
    padding: 4.75rem 0;
    flex-direction: column;
    position: relative;
    width: 100%;
    z-index: 1;
    color: #fff;
}
.mh-hero-content * {
    width: 90%;
}
.course-info {
    padding: 4.75rem 0;
    flex-direction: column;
}

/* عناوین و متون */
.mh-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.3;
}
h1.mh-title {
    font-size: 40px;
    color: #fff;
}
.mh-subtitle {
    font-size: 16px;
    padding: 10px 0;
    border-radius: 8px;
    margin-bottom: 25px;
}
.excerpt-content {
    font-weight: 500;
    margin-bottom: 2px;
}

/* بردکرامب */
.mh-breadcrumb {
    font-size: 13px;
    color: #fff;
    margin-bottom: 15px;
}
.mh-breadcrumb a {
    text-decoration: none;
    color: #fff;
}

/* دکمه‌های نویگیشن بالای هیرو */
.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;
}

main.mh-page-content {
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 17px 25px;
}

/* ریسپانسیو (موبایل) */
@media (max-width: 768px) {
    .mh-hero-media {
        order: -1; /* انتقال تصویر به بالای متون در موبایل */
        position: static;
    }
}

