.home-top-news-section,
.home-top-news-section * {
    box-sizing: border-box;
}

.home-top-news-section {
    direction: rtl;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin-top: 18px;
}

.home-sticky-widget {
    top: 20px;
}

.home-featured-row-v2,
.home-featured-side-row {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.home-featured-row-v2 > [class*="col-"],
.home-featured-side-row > [class*="col-"] {
    min-width: 0;
}

.hero-news-card {
    height: 545px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
}

.hero-news-main {
    position: relative;
    height: 355px;
    overflow: hidden;
    background: #0f172a;
}

.hero-news-slide,
.hero-news-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-news-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform 6s ease;
}

.carousel-item.active .hero-news-image img {
    transform: scale(1.06);
}

.hero-news-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 26px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.18) 34%, rgba(15, 23, 42, 0.94) 100%),
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 32%);
    pointer-events: none;
}

.hero-news-content {
    width: 100%;
    max-width: 92%;
    pointer-events: auto;
}

.hero-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.hero-news-badge,
.hero-news-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(9px);
}

.hero-news-badge i {
    color: #f59e0b;
}

.hero-news-title {
    display: block;
    color: #ffffff;
    font-size: 23px;
    font-weight: 950;
    line-height: 1.75;
    text-decoration: none;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    transition: color 0.22s ease;
}

.hero-news-title:hover {
    color: #bfdbfe;
    text-decoration: none;
}

.hero-news-summary {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.9;
}

.hero-carousel-control {
    top: 18px;
    bottom: auto;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    opacity: 1;
    backdrop-filter: blur(8px);
    transition: 0.25s ease;
}

.hero-carousel-control:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-carousel-prev {
    right: 18px;
    left: auto;
}

.hero-carousel-next {
    right: 68px;
    left: auto;
}

.hero-news-list {
    height: 190px;
    padding: 13px;
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 35%),
        #f8fafc;
}

.hero-news-list::-webkit-scrollbar {
    width: 5px;
}

.hero-news-list::-webkit-scrollbar-track {
    background: #edf2f7;
    border-radius: 999px;
}

.hero-news-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.hero-news-list-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid transparent;
    outline: 0;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: #ffffff;
    text-align: right;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    transition: all 0.25s ease;
}

.hero-news-list-item:last-child {
    margin-bottom: 0;
}

.hero-news-list-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.hero-news-list-item.active {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
}

.hero-news-list-item.active .hero-list-content strong {
    color: #0f172a;
}

.hero-news-list-item.active .hero-list-content small {
    color: #2563eb;
}

.hero-list-number {
    min-width: 26px;
    height: 26px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
}

.hero-news-list-item.active .hero-list-number {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.hero-list-thumb {
    width: 58px;
    height: 50px;
    overflow: hidden;
    border-radius: 14px;
    flex-shrink: 0;
    background: #e2e8f0;
}

.hero-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: 0.3s ease;
}

.hero-news-list-item:hover .hero-list-thumb img {
    transform: scale(1.08);
}

.hero-list-content {
    flex: 1;
    min-width: 0;
}

.hero-list-content strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.65;
}

.hero-list-content small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
}

.hero-list-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #60a5fa;
}

.hero-news-list-item.active .hero-list-progress {
    animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hero-news-empty {
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    text-align: center;
    padding: 30px;
}

.hero-news-empty i {
    font-size: 42px;
    color: #94a3b8;
}

.hero-news-empty strong {
    color: #0f172a;
    font-size: 16px;
}

.hero-news-empty span {
    font-size: 12px;
}

.news-widget-card,
.subject-day-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* هم‌تراز شدن ستون سوژه روز + تبلیغات با اسلایدر اصلی، بدون دست زدن به ستون وسط */
@media (min-width: 992px) {
    .subject-stack-equal {
        height: 545px;
        display: flex;
        flex-direction: column;
    }

    .subject-stack-equal .subject-day-card {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 14px;
    }

    .subject-stack-equal .subject-day-body {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .subject-stack-equal .subject-day-image {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }

    .subject-stack-equal .subject-day-stats {
        margin-top: 0;
    }

    .subject-stack-equal .home-ads-stack {
        flex: 0 0 auto;
        gap: 12px;
    }

    .subject-stack-equal .adv-link-v2 img {
        height: 92px;
    }
}


.news-tabs-header {
    display: flex;
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}

.news-modern-tabs {
    display: contents;
    gap: 8px;
    background: transparent;
}

.news-modern-tabs .nav-link {
    border: 0 !important;
    border-radius: 15px !important;
    padding: 10px 8px;
    color: #64748b;
    background: transparent;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
    transition: 0.22s ease;
}

.news-modern-tabs .nav-link i {
    margin-left: 5px;
    font-size: 10px;
}

.news-modern-tabs .nav-link.active,
.news-modern-tabs .nav-link:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.news-tabs-content {
    padding: 8px 12px;
    min-height: 322px;
}

.mini-rank-news {
    border-bottom: 1px solid #eef2f7;
}

.mini-rank-news:last-child {
    border-bottom: 0;
}

.mini-rank-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 0;
    color: #0f172a;
    text-decoration: none;
    transition: 0.22s ease;
}

.mini-rank-link:hover {
    color: #2563eb;
    text-decoration: none;
    transform: translateX(-3px);
}

.mini-rank-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.10);
    flex-shrink: 0;
}

.mini-rank-title {
    flex: 1;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 750;
}

.mini-rank-link i {
    color: #cbd5e1;
    font-size: 9px;
    transition: 0.22s ease;
}

.mini-rank-link:hover i {
    color: #2563eb;
}

.mini-widget-empty {
    padding: 35px 15px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.subject-day-card {
    margin-bottom: 16px;
}

.subject-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}


.subject-day-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.subject-day-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
}


.subject-day-header > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25);
}

.subject-day-body {
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
}

.subject-day-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    height: 280px;
    min-height: 0;
    text-decoration: none;
    isolation: isolate;
    background: #111827;
}

.subject-day-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.subject-day-image:hover img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.05);
}

.subject-day-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 24px 20px 20px;
}

.subject-day-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.subject-day-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.05) 0%,
            rgba(15, 23, 42, 0.35) 45%,
            rgba(15, 23, 42, 0.92) 100%
        );
}


.subject-day-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.8;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}


.subject-day-image:hover .subject-day-title {
    color: #bfdbfe;
}

.subject-day-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subject-day-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.subject-day-stats i {
    color: #fbbf24;
}

.subject-day-empty {
    min-height: 180px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-weight: 700;
}

.subject-day-empty i {
    font-size: 28px;
    color: #94a3b8;
}

.home-ads-stack {
    display: grid;
    gap: 14px;
}

.adv-card-v2 {
    position: relative;
    overflow: hidden;
    padding: 7px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.075);
    animation: advSoftPulseV2 3s ease-in-out infinite;
    transition: 0.28s ease;
}

.adv-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.adv-card-v2::before {
    content: "";
    position: absolute;
    top: 0;
    right: -85%;
    width: 48%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
    z-index: 2;
    pointer-events: none;
    animation: advShineV2 3.7s ease-in-out infinite;
}

.adv-link-v2 {
    display: block;
    overflow: hidden;
    border-radius: 15px;
    background: #e2e8f0;
}

.adv-link-v2 img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: 0.32s ease;
}

.adv-card-v2:hover .adv-link-v2 img {
    transform: scale(1.04);
}

.adv-label-v2 {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 3;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

@keyframes advSoftPulseV2 {
    0%, 100% {
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.075);
    }

    50% {
        box-shadow: 0 18px 46px rgba(37, 99, 235, 0.17);
    }
}

@keyframes advShineV2 {
    0% {
        right: -85%;
    }

    45%, 100% {
        right: 130%;
    }
}

@media (max-width: 991.98px) {
    .hero-news-card {
        height: auto;
    }

    .hero-news-main {
        height: 330px;
    }

    .hero-news-list {
        height: 235px;
    }

    .sticky-top,
    .col_z_index,
    .home-sticky-widget {
        position: static !important;
        top: auto !important;
    }

    .news-tabs-content {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-top-news-section {
        overflow-x: hidden;
    }

    .home-featured-row-v2 > [class*="col-"],
    .home-featured-side-row > [class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .hero-news-card,
    .news-widget-card,
    .subject-day-card {
        border-radius: 20px;
    }

    .hero-news-main {
        height: 255px;
    }

    .hero-news-overlay {
        padding: 16px;
    }

    .hero-news-content {
        max-width: 100%;
    }

    .hero-news-title {
        font-size: 16px;
        line-height: 1.8;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-news-summary {
        display: none;
    }

    .hero-news-badge,
    .hero-news-time {
        padding: 5px 9px;
        font-size: 10px;
    }

    .hero-carousel-control {
        width: 36px;
        height: 36px;
        border-radius: 13px;
        top: 12px;
    }

    .hero-carousel-prev {
        right: 12px;
    }

    .hero-carousel-next {
        right: 54px;
    }

    .hero-news-list {
        height: 228px;
        padding: 10px;
    }

    .hero-news-list-item {
        padding: 8px;
        border-radius: 14px;
        gap: 8px;
    }

    .hero-list-number {
        min-width: 23px;
        height: 23px;
        border-radius: 8px;
        font-size: 10px;
    }

    .hero-list-thumb {
        width: 48px;
        height: 44px;
        border-radius: 12px;
    }

    .hero-list-content strong {
        font-size: 11px;
        line-height: 1.65;
    }

    .hero-list-content small {
        font-size: 9px;
    }

    .news-modern-tabs .nav-link {
        padding: 9px 5px;
        font-size: 10px;
    }

    .subject-day-image {
        height: 220px;
        min-height: 0;
    }

    .subject-day-overlay {
        padding: 18px 14px 14px;
    }

    .subject-day-title {
        font-size: 15px;
        line-height: 1.75;
    }

    .subject-day-stats span {
        padding: 6px 9px;
        font-size: 11px;
    }

    .adv-link-v2 img {
        height: 150px;
    }
}
