/* ===========================================
   8sobh - رفع مشکلات قالب Jannah (v2.2.0)
   =========================================== */

/* --- ۱) تیترها زیر عکس (همه بلاک‌ها) --- */
.mag-box .post-thumb,
.home .post-thumb,
.mag-box .posts-list .post-thumb,
.mag-box .posts-list-big-first .post-thumb {
    overflow: visible !important;
}

.mag-box .post-title,
.home .post-title,
.posts-list .post-title,
.posts-list-big-first .post-title,
.archive .post-title,
.mag-box .thumb-title,
.mag-box .thumb-overlay .thumb-title,
.scroll-2-box .post-title,
.slider-area .thumb-title {
    position: static !important;
    background: transparent !important;
    text-shadow: none !important;
    color: #222 !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
}

.mag-box .post-title a,
.home .post-title a,
.mag-box .thumb-title a,
.scroll-2-box .post-title a,
.slider-area .thumb-title a {
    color: #222 !important;
    text-shadow: none !important;
}

.mag-box .post-title a:hover,
.home .post-title a:hover,
.mag-box .thumb-title a:hover,
.scroll-2-box .post-title a:hover {
    color: var(--e8sobh-orange, #e65100) !important;
}

.mag-box .thumb-overlay,
.mag-box .post-overlay,
.scroll-2-box .post-overlay,
.slider-area .thumb-overlay {
    position: static !important;
    background: transparent !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

.mag-box .thumb-overlay::before,
.mag-box .post-overlay::before,
.scroll-2-box .post-overlay::before,
.slider-area .thumb-overlay::before {
    display: none !important;
}

.scroll-2-box .slide,
.tie-slider-7 .slide,
.wide-slider-with-navfor-wrapper .slide {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.scroll-2-box .post-thumb,
.tie-slider-7 .slide,
.wide-slider-with-navfor-wrapper .main-slider-inner .slide {
    position: relative !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    background-size: cover !important;
    background-position: center !important;
}

.scroll-2-box .post-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover !important;
    display: block !important;
}

/* --- ۲) تیتر یک: فشرده، ۳ خبر، بدون ناو عمودی --- */
.home #tiepost-64250-section-8928 .wide-slider-nav-wrapper,
.home .wide-slider-with-navfor-wrapper .wide-slider-nav-wrapper {
    display: none !important;
}

.home #tiepost-64250-section-8928 .wide-slider-with-navfor-wrapper .main-slider-inner,
.home #tiepost-64250-section-8928 .slider-main-container {
    min-height: 0 !important;
    max-height: none !important;
}

.home #tiepost-64250-section-8928 .wide-slider-with-navfor-wrapper .slide {
    min-height: 180px !important;
    max-height: 220px !important;
    aspect-ratio: 16 / 9;
}

.home #tiepost-64250-section-8928 .wide-slider-with-navfor-wrapper .tie-slick-slider .slide:nth-child(n+4) {
    display: none !important;
}

.home #tiepost-64250-section-8928 .slider-area {
    margin-bottom: 8px !important;
}

.home #tiepost-64250-section-8928 .thumb-content {
    position: static !important;
    padding: 10px 0 0 !important;
}

.home #tiepost-64250-section-8928 .thumb-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: #222 !important;
}

/* --- ۳) مجلس اسلایدر: ارتفاع و تیتر زیر عکس --- */
.home .tie-slider-7 .main-slider-inner {
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

.home .tie-slider-7 .slide {
    min-height: 180px !important;
    max-height: 220px !important;
    margin-bottom: 0 !important;
}

.home .tie-slider-7 .thumb-content {
    position: static !important;
    padding: 10px 0 !important;
}

.home .slider-area.mag-box {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

/* --- ۴) کاهش سفیدی بین بلاک‌ها --- */
.home .section-wrapper {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

.home .cat-box,
.home .mag-box,
.home .home-block,
.home .block-wrap,
.home .block-head {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

.home .container-wrapper,
.home .mag-box-container {
    padding: 10px 15px !important;
}

.home .main-content-row {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.home #tiepost-64250-section-8621 .mag-box:last-child {
    margin-bottom: 8px !important;
}

/* --- ۵) مطالب جدید: فونت و چیدمان --- */
.timeline-widget h3,
.widget-single-post-item h3,
#posts-list-widget-6 h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.65 !important;
}

.timeline-widget .date,
.widget-single-post-item .date,
#posts-list-widget-6 .date {
    font-size: 12px !important;
    color: #888 !important;
}

.home .sidebar .theiaStickySidebar {
    position: sticky !important;
    top: 16px !important;
    align-self: flex-start !important;
}

.home #posts-list-widget-6 .widget-title .the-subtitle {
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* سایدبار بالاتر در صفحه (بعد از جابجایی JS) */
.home .e8sobh-sidebar-early {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.home .e8sobh-sidebar-early .main-content[aria-hidden="true"] {
    display: none;
}

@media (min-width: 992px) {
    .home .e8sobh-sidebar-early .e8sobh-early-row {
        display: flex;
        justify-content: flex-end;
    }

    .home .e8sobh-sidebar-early .sidebar {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

.home .e8sobh-sidebar-early .container-wrapper {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

/* --- ۶) عناوین بلاک سرویس‌ها --- */
.mag-box-title,
.block-title,
.the-global-title .the-subtitle,
.the-global-title h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
}

.mag-box-title h3 a,
.block-title h3 a,
.the-global-title h3 a,
.cat-box-title h2 a {
    color: var(--e8sobh-dark, #bf360c) !important;
}

.mag-box-title h3 a:hover,
.the-global-title h3 a:hover {
    color: var(--e8sobh-orange, #e65100) !important;
}

/* --- ۷) اسکرولینگ باکس یکسان --- */
.home .scrolling-box .slide-img img,
.home .scrolling-box-slider .slide-img img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover !important;
}

.home .scroll-2-box .scrolling-slider .slide {
    max-width: 280px;
}

/* --- ۸) اعداد فارسی --- */
body.e8sobh-active {
    font-feature-settings: "ss01", "ss02" !important;
    font-variant-numeric: proportional-nums !important;
}

.tie-date,
.post-meta .meta-item,
.timeline-widget .date,
.widget-single-post-item .date {
    font-feature-settings: "ss01", "ss02" !important;
}

@media (max-width: 991px) {
    .home #tiepost-64250-section-8928 .wide-slider-with-navfor-wrapper .slide {
        min-height: 160px !important;
        max-height: 200px !important;
    }

    .home .tie-slider-7 .slide {
        min-height: 160px !important;
        max-height: 200px !important;
    }
}
