/* ═══════════════════════════════════════════════════════════════
   NAT-ALIGN-V3 — تراز کامل همه بخش‌ها روی container سراسری
   ═══════════════════════════════════════════════════════════════ */

:root {
    --nat-max: 1240px;
    --nat-pad: 32px;
}
@media (max-width: 959px) { :root { --nat-pad: 26px; } }
@media (max-width: 640px) { :root { --nat-pad: 16px; } }

/* ═════ ۱. بنرهای تبلیغاتی افقی در <main> — هم‌عرض container ═════ */
html body main > .nat-ad-slot,
html body main > .nat-ad-slot--flush,
html body main > .nat-ad,
html body main > div.nat-ad {
    display: block !important;
    width: 100% !important;
    max-width: var(--nat-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    padding-left: var(--nat-pad) !important;
    padding-right: var(--nat-pad) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    float: none !important;
    position: relative !important;
}

/* محتوای داخلی — بدون margin اضافی */
html body main > .nat-ad-slot > *,
html body main > .nat-ad-slot--flush > *,
html body main > .nat-ad > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* تبلیغات داخل container — بدون padding اضافی */
html body main .container > .nat-ad-slot,
html body main .container > .nat-ad,
html body main .container > div > .nat-ad {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* تصویر تبلیغ — تمام عرض */
html body main > .nat-ad-slot img,
html body main > .nat-ad-slot--flush img,
html body main > .nat-ad img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 14px !important;
}

/* ═════ ۲. CTA فراخوان — هم‌عرض container ═════ */
html body main > section#submit.section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 22px 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}
html body main > section#submit.section > .container {
    display: block !important;
    width: 100% !important;
    max-width: var(--nat-max) !important;
    margin: 0 auto !important;
    padding-left: var(--nat-pad) !important;
    padding-right: var(--nat-pad) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
}
html body main > section#submit.section .cta {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    margin: 0 !important;
    padding: 22px 32px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    border-radius: 14px !important;
    flex-wrap: wrap !important;
}
html body main > section#submit.section .cta h2 {
    font-size: 1.2rem !important;
    margin: 0 0 6px !important;
    line-height: 1.4 !important;
}
html body main > section#submit.section .cta p {
    font-size: .87rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ═════ ۳. بنر پایین — هم‌عرض و هم‌ارتفاع CTA ═════ */
html body main > section.ad.ad--bottom {
    display: block !important;
    width: 100% !important;
    max-width: var(--nat-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 10px !important;
    margin-bottom: 26px !important;
    padding-left: var(--nat-pad) !important;
    padding-right: var(--nat-pad) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
html body main > section.ad.ad--bottom > .container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
html body main > section.ad.ad--bottom .ad__box,
html body main > section.ad.ad--bottom .ad__box--wide {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    line-height: 0 !important;
    text-decoration: none !important;
}
html body main > section.ad.ad--bottom .ad__label {
    display: none !important;
}
html body main > section.ad.ad--bottom .ad__box--wide img {
    display: block !important;
    width: 100% !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* موبایل */
@media (max-width: 768px) {
    html body main > section.ad.ad--bottom .ad__box,
    html body main > section.ad.ad--bottom .ad__box--wide,
    html body main > section.ad.ad--bottom .ad__box--wide img,
    html body main > section#submit.section .cta {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }
    html body main > section#submit.section .cta {
        padding: 16px 20px !important;
    }
}

/* ═════ ۴. آواز قلم‌ها — هم‌عرض + باکس مشخص ═════ */
html body #ntUserWritings {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
html body #ntUserWritings #submissions.section,
html body #ntUserWritings #submissions.section--alt {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 28px 0 24px !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #f0ead9 0%, #e8e2d0 100%) !important;
    border-top: 1px solid #d8d2be !important;
    border-bottom: 1px solid #d8d2be !important;
}
html body #ntUserWritings #submissions.section > .container,
html body #ntUserWritings #submissions.section--alt > .container {
    display: block !important;
    width: 100% !important;
    max-width: var(--nat-max) !important;
    margin: 0 auto !important;
    padding-left: var(--nat-pad) !important;
    padding-right: var(--nat-pad) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
}
html body #ntUserWritings .subs-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    min-height: 0 !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
}
@media (max-width: 1024px) {
    html body #ntUserWritings .subs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
    html body #ntUserWritings .subs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
}

/* کارت‌های آواز قلم‌ها — فشرده */
html body #ntUserWritings .sub-card {
    background: #fbf9f3 !important;
    border: 1px solid #d8d2be !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all .25s ease !important;
}
html body #ntUserWritings .sub-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 22px rgba(15,54,65,.12) !important;
    border-color: rgba(217,154,43,.40) !important;
}
html body #ntUserWritings .sub-card__img {
    display: block !important;
    aspect-ratio: 16/10 !important;
    min-height: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #0F3641 !important;
    position: relative !important;
    text-decoration: none !important;
}
html body #ntUserWritings .sub-card__body {
    padding: 8px 10px 10px !important;
    gap: 3px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
html body #ntUserWritings .sub-card__title {
    font-size: .76rem !important;
    line-height: 1.42 !important;
    color: #0F3641 !important;
    font-weight: 800 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
html body #ntUserWritings .sub-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}
html body #ntUserWritings .sub-card__meta {
    font-size: .6rem !important;
    color: #8B5E14 !important;
    font-weight: 700 !important;
    padding-top: 6px !important;
    margin-top: auto !important;
    border-top: 1px dashed rgba(217,154,43,.20) !important;
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}
html body #ntUserWritings .sub-card__type {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    background: linear-gradient(135deg, #D99A2B, #8B5E14) !important;
    color: #fff !important;
    padding: 2px 7px !important;
    border-radius: 100px !important;
    font-size: .56rem !important;
    font-weight: 800 !important;
    z-index: 2 !important;
}

/* ═════ ۵. فوتر — هم‌عرض ═════ */
html body footer.footer .container,
html body footer.footer > .container {
    display: block !important;
    width: 100% !important;
    max-width: var(--nat-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--nat-pad) !important;
    padding-right: var(--nat-pad) !important;
    box-sizing: border-box !important;
}

/* ═════ ۶. تضمین Hero و وب نامه هم روی همین عرض ═════ */
html body main > section.hero > .container,
html body main > section.section > .container,
html body main > section#webnameh > .container,
html body main > section#shop > .container,
html body main > section#podcast > .container {
    display: block !important;
    width: 100% !important;
    max-width: var(--nat-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--nat-pad) !important;
    padding-right: var(--nat-pad) !important;
    box-sizing: border-box !important;
}

/* ═════ ۷. رفع باقی‌مانده CSSهای مهاجم روی CTA ═════ */
html body .nat-bottom-cta-align,
html body #submit .nat-cta,
html body main #submit > .container > .cta {
    max-width: 100% !important;
    width: 100% !important;
}