/* =========================================================
   MAJALES AHVAZ
   Global Site Styles
   ========================================================= */


/* =========================================================
   01. GLOBAL VARIABLES
   ========================================================= */

:root {
    --primary-color: #198754;
    --primary-dark: #157347;
    --primary-light: #eaf7f0;
    --background-color: #f7f9f8;
    --surface-color: #ffffff;
    --text-color: #17211c;
    --muted-color: #6c757d;
    --border-color: #e5ebe7;
    --header-text: #143d2d;
    --header-muted: #7b8c84;
}


/* =========================================================
   02. DOCUMENT / BODY
   ========================================================= */

html {
    direction: rtl;
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    background: #ffffff;
    color: var(--text-color);
    font-family: "Vazirmatn", sans-serif;
}

.site-main {
    min-height: 70vh;
    margin: 0;
    padding: 0;
}


/* =========================================================
   03. BOOTSTRAP / FORM FOCUS
   ========================================================= */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =========================================================
   04. HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(20, 80, 55, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

    .site-header:hover {
        background: rgba(255, 255, 255, 0.98);
    }

.main-navbar {
    min-height: 82px;
    padding: 10px 0;
}


/* =========================================================
   05. HEADER BRAND
   ========================================================= */

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--header-text) !important;
    text-decoration: none;
}

    .site-brand:hover {
        color: #0e6b48 !important;
    }

.brand-mark {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #126b48 0%, #0c4d36 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 94, 63, 0.18);
}

    .brand-mark::before {
        content: "";
        position: absolute;
        inset: 5px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 11px;
    }

    .brand-mark span {
        position: relative;
        font-family: "Vazirmatn", sans-serif;
        font-size: 22px;
        font-weight: 800;
    }

.brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .brand-content strong {
        color: var(--header-text);
        font-size: 17px;
        font-weight: 800;
    }

    .brand-content small {
        margin-top: 5px;
        color: var(--header-muted);
        font-size: 10px;
        font-weight: 500;
    }


/* =========================================================
   06. HEADER NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    margin-left: auto;
}

    .main-nav .nav-link {
        position: relative;
        padding: 10px 14px !important;
        border-radius: 10px;
        color: #52645c !important;
        font-size: 13px;
        font-weight: 600;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

        .main-nav .nav-link:hover {
            color: #0d6847 !important;
            background: rgba(13, 104, 71, 0.055);
        }

        .main-nav .nav-link.active {
            color: #0d6847 !important;
            font-weight: 750;
        }

            .main-nav .nav-link.active::after {
                content: "";
                position: absolute;
                right: 14px;
                left: 14px;
                bottom: 2px;
                height: 2px;
                border-radius: 10px;
                background: #0d6847;
            }


/* =========================================================
   07. HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-right: 18px;
}

.search-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e3ebe7;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .search-button:hover {
        background: #f2f8f5;
        border-color: #cbded5;
        transform: translateY(-1px);
    }

.search-icon {
    position: relative;
    width: 15px;
    height: 15px;
    border: 2px solid #326352;
    border-radius: 50%;
}

    .search-icon::after {
        content: "";
        position: absolute;
        width: 7px;
        height: 2px;
        right: -5px;
        bottom: -3px;
        border-radius: 4px;
        background: #326352;
        transform: rotate(45deg);
    }

.header-archive-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    background: #126b48;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(18, 107, 72, 0.16);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .header-archive-button:hover {
        background: #0d583b;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(18, 107, 72, 0.22);
    }

    .header-archive-button .arrow {
        font-size: 15px;
        transition: transform 0.2s ease;
    }

    .header-archive-button:hover .arrow {
        transform: translateX(-3px);
    }


/* =========================================================
   08. MOBILE NAVIGATION BUTTON
   ========================================================= */

.custom-toggler {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px !important;
    border: 1px solid #dce8e3 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

    .custom-toggler:focus {
        box-shadow: 0 0 0 3px rgba(18, 107, 72, 0.10) !important;
    }

    .custom-toggler span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 10px;
        background: #195640;
        transition: 0.25s ease;
    }


/* =========================================================
   09. FOOTER
   ========================================================= */

.site-footer {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    direction: rtl;
    background: radial-gradient( circle at 90% 15%, rgba(54, 169, 112, 0.13), transparent 28% ), radial-gradient( circle at 8% 85%, rgba(27, 118, 78, 0.12), transparent 30% ), linear-gradient( 145deg, #071a12 0%, #0b2419 45%, #071810 100% );
    color: #ffffff;
}

    .site-footer > .container {
        margin-bottom: 0;
    }

    .site-footer p:last-child,
    .site-footer ul:last-child {
        margin-bottom: 0;
    }


/* =========================================================
   10. FOOTER DECORATION
   ========================================================= */

.footer-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.footer-glow-right {
    top: -170px;
    right: -100px;
    background: rgba(42, 151, 99, 0.08);
}

.footer-glow-left {
    bottom: -190px;
    left: -110px;
    background: rgba(33, 127, 83, 0.07);
}


/* =========================================================
   11. FOOTER MAIN
   ========================================================= */

.footer-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(240px, 1.3fr);
    gap: 55px;
    padding: 70px 0 55px;
}


/* =========================================================
   12. FOOTER BRAND
   ========================================================= */

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #ffffff !important;
    text-decoration: none !important;
}

.footer-logo {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(129, 218, 169, 0.22);
    border-radius: 15px;
    background: linear-gradient(145deg, #218b5b, #126342);
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .footer-brand-text strong {
        color: #ffffff;
        font-size: 18px;
        font-weight: 850;
        line-height: 1.4;
    }

    .footer-brand-text small {
        color: #8da99b;
        font-size: 10px;
        font-weight: 500;
    }


/* =========================================================
   13. FOOTER DESCRIPTION
   ========================================================= */

.footer-description {
    max-width: 430px;
    margin: 20px 0 22px;
    color: #8da99b;
    font-size: 11px;
    line-height: 2.15;
}


/* =========================================================
   14. FOOTER PRIMARY LINK
   ========================================================= */

.footer-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(104, 199, 148, 0.18);
    border-radius: 10px;
    background: rgba(31, 131, 86, 0.10);
    color: #91d9b1 !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .footer-primary-link span {
        font-size: 14px;
        transition: transform 0.2s ease;
    }

    .footer-primary-link:hover {
        background: rgba(31, 131, 86, 0.18);
        border-color: rgba(104, 199, 148, 0.30);
        transform: translateY(-2px);
    }

        .footer-primary-link:hover span {
            transform: translateX(-3px);
        }


/* =========================================================
   15. FOOTER COLUMNS
   ========================================================= */

.footer-column {
    position: relative;
}

.footer-title {
    margin: 4px 0 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

    .footer-title::after {
        content: "";
        display: block;
        width: 28px;
        height: 2px;
        margin-top: 9px;
        border-radius: 10px;
        background: #2a9a66;
    }


/* =========================================================
   16. FOOTER LINKS
   ========================================================= */

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-links li {
        margin: 0;
        padding: 0;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #8da99b !important;
        text-decoration: none !important;
        font-size: 10px;
        line-height: 1.8;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .footer-links a::before {
            content: "‹";
            color: #2b9865;
            font-size: 14px;
            transition: transform 0.2s ease;
        }

        .footer-links a:hover {
            color: #d4eadc !important;
            transform: translateX(-3px);
        }

            .footer-links a:hover::before {
                transform: translateX(-2px);
            }


/* =========================================================
   17. FOOTER CONTACT
   ========================================================= */

.footer-contact-text {
    max-width: 270px;
    margin: 0 0 17px;
    color: #8da99b;
    font-size: 10px;
    line-height: 2;
}


/* =========================================================
   18. FOOTER SOCIAL
   ========================================================= */

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid rgba(141, 188, 164, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: #9bb4a7 !important;
    text-decoration: none !important;
    font-size: 9px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .footer-social > span:first-child {
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: rgba(39, 145, 94, 0.14);
        color: #71c996;
        font-size: 10px;
        font-weight: 800;
    }

    .footer-social:hover {
        background: rgba(36, 143, 92, 0.10);
        border-color: rgba(102, 193, 143, 0.24);
        color: #d5eadc !important;
        transform: translateY(-2px);
    }


/* =========================================================
   19. FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(174, 218, 193, 0.09);
    color: #718e80;
    font-size: 9px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .footer-copyright strong {
        color: #9db9aa;
        font-weight: 700;
    }

.footer-made {
    color: #718e80;
}

    .footer-made span {
        margin: 0 3px;
        color: #6fc894;
        font-size: 10px;
    }


/* =========================================================
   20. RESPONSIVE - TABLET
   ========================================================= */

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 1199px) {
    .main-nav .nav-link {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .header-archive-button {
        padding: 0 12px;
    }

    .brand-content small {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .main-navbar {
        min-height: 72px;
        padding: 9px 0;
    }

    .custom-toggler {
        display: flex;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 10px;
        background: #ffffff;
        border: 1px solid #e7eeeb;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(17, 55, 42, 0.09);
    }

    .main-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        margin: 0;
    }

        .main-nav .nav-link {
            width: 100%;
            padding: 13px 15px !important;
            border-radius: 11px;
            font-size: 13px;
        }

            .main-nav .nav-link.active::after {
                display: none;
            }

            .main-nav .nav-link.active {
                background: rgba(13, 104, 71, 0.07);
            }

    .header-actions {
        width: 100%;
        margin: 8px 0 0;
        padding-top: 10px;
        border-top: 1px solid #edf1ef;
        justify-content: stretch;
    }

    .search-button {
        width: 46px;
    }

    .header-archive-button {
        flex: 1;
        min-height: 46px;
    }

    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 600px;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-contact-text {
        max-width: 500px;
    }
}


/* =========================================================
   21. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
        padding: 50px 0 40px;
    }

    .footer-brand-section,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 17px 0;
    }
}

@media (max-width: 575.98px) {
    .site-header .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .main-navbar {
        min-height: 68px;
    }

    .brand-mark {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

        .brand-mark span {
            font-size: 20px;
        }

    .brand-content strong {
        font-size: 15px;
    }

    .custom-toggler {
        width: 42px;
        height: 42px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 42px 0 35px;
    }

    .footer-brand-section,
    .footer-contact {
        grid-column: auto;
    }

    .footer-logo {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 21px;
    }

    .footer-brand-text strong {
        font-size: 16px;
    }

    .footer-description {
        margin-top: 17px;
        font-size: 10px;
    }

    .footer-title {
        margin-bottom: 16px;
    }

    .footer-bottom {
        font-size: 8px;
    }
}

@media (max-width: 380px) {
    .brand-content small {
        display: none;
    }

    .brand-content strong {
        font-size: 14px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   22. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .search-button,
    .header-archive-button,
    .custom-toggler span,
    .footer-primary-link,
    .footer-primary-link span,
    .footer-links a,
    .footer-links a::before,
    .footer-social {
        transition: none !important;
    }
}

/* =========================================================
   23. HEADER NOTICES
   ========================================================= */
/*
 * اطلاعیه‌ها عمداً خارج از main-nav و navbar-collapse قرار گرفته
 * تا در موبایل نیز همیشه قابل مشاهده باشد.
 */
.header-notices {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 18px;
    padding-right: 18px;
}

.header-notices::before {
    content: "";
    position: absolute;
    top: 9px;
    right: 0;
    width: 1px;
    height: 24px;
    background: #dfe9e4;
}


/* =========================================================
   NOTICE BUTTON
   ========================================================= */

.header-notice-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 5px 10px 5px 13px;
    border: 1px solid rgba(25, 135, 84, 0.16);
    border-radius: 14px;
    background: linear-gradient( 135deg, rgba(25, 135, 84, 0.075), rgba(25, 135, 84, 0.025) );
    color: #185c40 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 18px rgba(18, 107, 72, 0.055);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .header-notice-button:hover {
        transform: translateY(-2px);
        border-color: rgba(25, 135, 84, 0.28);
        background: linear-gradient( 135deg, rgba(25, 135, 84, 0.13), rgba(25, 135, 84, 0.045) );
        color: #0d6847 !important;
        box-shadow: 0 9px 24px rgba(18, 107, 72, 0.11);
    }

    .header-notice-button.active {
        border-color: rgba(25, 135, 84, 0.30);
        background: linear-gradient( 135deg, rgba(25, 135, 84, 0.14), rgba(25, 135, 84, 0.055) );
    }


/* =========================================================
   NOTICE ICON
   ========================================================= */

.header-notice-icon {
    position: relative;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: #eaf7f0;
    color: #198754;
    font-size: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-notice-button:hover .header-notice-icon {
    background: #198754;
    color: #ffffff;
    transform: scale(1.04);
}


/* =========================================================
   NOTICE CONTENT
   ========================================================= */

.header-notice-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
}

    .header-notice-content strong {
        color: #185c40;
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
    }

    .header-notice-content small {
        margin-top: 3px;
        color: #7b8c84;
        font-size: 8px;
        font-weight: 500;
        white-space: nowrap;
    }


/* =========================================================
   NOTICE ARROW
   ========================================================= */

.header-notice-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
    color: #198754;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.header-notice-button:hover .header-notice-arrow {
    transform: translateX(-3px);
}


/* =========================================================
   NOTICE INDICATOR
   ========================================================= */

.header-notice-button::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #198754;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.10);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .header-notices {
        margin-right: 12px;
        padding-right: 12px;
    }

    .header-notice-button {
        min-height: 43px;
        padding-left: 10px;
        padding-right: 8px;
    }

    .header-notice-content small {
        display: none;
    }

    .header-notice-arrow {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    /*
     * اطلاعیه‌ها عمداً خارج از navbar-collapse هستند.
     * بنابراین با منوی همبرگری باز و بسته نمی‌شوند.
     */

    .main-navbar {
        flex-wrap: wrap;
    }

    .header-notices {
        order: 3;
        width: 100%;
        margin: 4px 0 0;
        padding: 0;
    }

        .header-notices::before {
            display: none;
        }

    .header-notice-button {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        padding: 6px 12px;
        border-radius: 13px;
        box-shadow: 0 5px 18px rgba(18, 107, 72, 0.055);
    }

    .header-notice-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 13px;
    }

    .header-notice-content {
        flex: 1;
    }

        .header-notice-content strong {
            font-size: 11px;
        }

        .header-notice-content small {
            display: block;
            margin-top: 3px;
            font-size: 8px;
        }

    .header-notice-arrow {
        display: flex;
        margin-right: auto;
        font-size: 17px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .header-notices {
        margin-top: 3px;
    }

    .header-notice-button {
        min-height: 46px;
        border-radius: 12px;
    }

    .header-notice-icon {
        width: 32px;
        height: 32px;
    }

    .header-notice-content strong {
        font-size: 10px;
    }

    .header-notice-content small {
        font-size: 7.5px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .header-notice-content small {
        display: none;
    }

    .header-notice-button {
        min-height: 44px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .header-notice-button,
    .header-notice-icon,
    .header-notice-arrow {
        transition: none !important;
    }

        .header-notice-button:hover {
            transform: none;
        }

            .header-notice-button:hover .header-notice-icon {
                transform: none;
            }

            .header-notice-button:hover .header-notice-arrow {
                transform: none;
            }
}

/* =========================================================
   TYPOGRAPHY SYSTEM
   مجـالس اهواز
   خوانایی بالا | RTL | فارسی
   ========================================================= */
/* =========================================================
   24. TYPOGRAPHY TOKENS
   ========================================================= */
:root {
    /* -----------------------------------------------------
       Base
       ----------------------------------------------------- */

    --font-family-base: "Vazirmatn", Tahoma, Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.9;
    /* -----------------------------------------------------
       Text sizes
       ----------------------------------------------------- */

    --font-size-xs: 13px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 42px;
    /* -----------------------------------------------------
       Font weights
       ----------------------------------------------------- */

    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    /* -----------------------------------------------------
       Reading
       ----------------------------------------------------- */

    --text-line-height: 1.9;
    --heading-line-height: 1.45;
    --small-line-height: 1.7;
}


/* =========================================================
   25. GLOBAL FONT
   ========================================================= */

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--text-color);
}


/* =========================================================
   26. GLOBAL TEXT ELEMENTS
   ========================================================= */

p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--text-line-height);
}


small {
    font-size: var(--font-size-sm);
    line-height: var(--small-line-height);
}


strong,
b {
    font-weight: var(--font-weight-bold);
}


em,
i {
    font-style: normal;
}


/* =========================================================
   27. HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-family-base);
    color: var(--text-color);
    line-height: var(--heading-line-height);
    letter-spacing: -0.01em;
}


h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
}


h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}


h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
}


h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}


h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}


h6 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
}


/* =========================================================
   28. LINKS
   ========================================================= */

a {
    font-family: inherit;
}


/* =========================================================
   29. FORMS
   ========================================================= */

button,
input,
textarea,
select {
    font-family: var(--font-family-base);
}


input,
select,
textarea {
    font-size: var(--font-size-md);
}


button {
    font-size: var(--font-size-md);
}


/* =========================================================
   30. HEADER TYPOGRAPHY
   ========================================================= */

/* Brand */

.brand-content strong {
    font-size: 16px;
    font-weight: var(--font-weight-extrabold);
    line-height: 1.4;
}


.brand-content small {
    margin-top: 2px;
    font-size: 12px;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
}


/* Navigation */

.main-nav .nav-link {
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    line-height: 1.6;
}


/* Header buttons */

.header-archive-button {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}


.search-button {
    font-size: 16px;
}


/* =========================================================
   31. HEADER NOTICES
   ========================================================= */

.header-notice-content strong {
    font-size: 13px;
    font-weight: var(--font-weight-extrabold);
    line-height: 1.5;
}


.header-notice-content small {
    margin-top: 2px;
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}


.header-notice-arrow {
    font-size: 16px;
}


/* =========================================================
   32. MOBILE HEADER
   ========================================================= */

@media (max-width: 991.98px) {

    .brand-content strong {
        font-size: 16px;
    }

    .brand-content small {
        font-size: 12px;
    }

    .main-nav .nav-link {
        font-size: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-archive-button {
        font-size: 14px;
    }

    .header-notice-content strong {
        font-size: 13px;
    }

    .header-notice-content small {
        font-size: 10px;
    }
}


/* =========================================================
   33. CONTENT READING
   ========================================================= */

.site-main {
    font-size: var(--font-size-md);
    line-height: var(--text-line-height);
}


    .site-main p {
        max-width: 75ch;
    }


/* متن‌های طولانی */

.notice-details-body,
.audio-description,
.page-content,
.article-content {
    font-size: 17px;
    line-height: 2;
}


/* =========================================================
   34. META / SECONDARY TEXT
   ========================================================= */

.text-muted {
    font-size: var(--font-size-sm);
}


.muted-text {
    font-size: var(--font-size-sm);
}


.meta,
.metadata {
    font-size: var(--font-size-sm);
    line-height: 1.8;
}


/* =========================================================
   35. CARDS
   ========================================================= */

.card-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.6;
}


.card-text {
    font-size: 15px;
    line-height: 1.9;
}


.card small {
    font-size: 13px;
}


/* =========================================================
   36. BUTTONS
   ========================================================= */

.btn {
    font-family: var(--font-family-base);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
}


.btn-lg {
    font-size: 16px;
}


.btn-sm {
    font-size: 13px;
}


/* =========================================================
   37. MOBILE TYPOGRAPHY
   ========================================================= */

@media (max-width: 767.98px) {

    html {
        font-size: 16px;
    }

    body {
        font-size: 16px;
        line-height: 1.9;
    }

    p {
        font-size: 16px;
        line-height: 1.95;
    }

    h1 {
        font-size: 30px;
        line-height: 1.45;
    }

    h2 {
        font-size: 25px;
        line-height: 1.5;
    }

    h3 {
        font-size: 21px;
        line-height: 1.55;
    }

    h4 {
        font-size: 19px;
    }

    h5 {
        font-size: 17px;
    }

    h6 {
        font-size: 16px;
    }

    .notice-details-body,
    .audio-description,
    .page-content,
    .article-content {
        font-size: 16px;
        line-height: 2;
    }

    .card-title {
        font-size: 18px;
    }

    .card-text {
        font-size: 15px;
    }
}


/* =========================================================
   38. SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .brand-content strong {
        font-size: 15px;
    }

    .brand-content small {
        font-size: 11px;
    }

    .main-nav .nav-link {
        font-size: 15px;
    }

    .header-archive-button {
        font-size: 14px;
    }

    .header-notice-content strong {
        font-size: 13px;
    }

    .header-notice-content small {
        font-size: 10px;
    }

    .btn {
        font-size: 14px;
    }
}


/* =========================================================
   39. VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 380px) {

    body {
        font-size: 16px;
    }

    p {
        font-size: 15px;
    }

    h1 {
        font-size: 27px;
    }

    h2 {
        font-size: 23px;
    }

    h3 {
        font-size: 20px;
    }

    .brand-content strong {
        font-size: 14px;
    }

    .brand-content small {
        font-size: 10px;
    }

    .main-nav .nav-link {
        font-size: 14px;
    }
}


/* =========================================================
   40. ACCESSIBILITY / READABILITY
   ========================================================= */

/*
   جلوگیری از کوچک شدن خودکار متن در بعضی مرورگرها
*/

body,
button,
input,
textarea,
select {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/*
   فاصله مناسب برای متن فارسی
*/

p,
li {
    overflow-wrap: break-word;
    word-break: normal;
}


/*
   متن‌های طولانی فارسی
*/

.notice-details-body p,
.page-content p,
.article-content p {
    margin-bottom: 1.25rem;
}


/*
   لیست‌ها
*/

.site-main ul,
.site-main ol {
    padding-right: 1.5rem;
    padding-left: 0;
    font-size: 16px;
    line-height: 2;
}


/* =========================================================
   41. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }
}



/* =========================================================
   END
   ========================================================= */
