/* Akharin News - Custom News Design */
/* Joomla 5 / Cassiopeia */

/* Local Persian Fonts */

@font-face {
    font-family: "Vazirmatn";
    src: url("/media/fonts/akharin/Vazirmatn[wght].ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Estedad";
    src: url("/media/fonts/akharin/Estedad[wght].woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --an-navy: #10243e;
    --an-navy-dark: #0a192b;
    --an-red: #d92332;
    --an-text: #202a36;
    --an-muted: #718096;
    --an-bg: #f4f6f9;
    --an-border: #e5e9ef;
    --an-radius: 12px;
    --an-shadow: 0 5px 20px rgba(16,36,62,.07);
}

html {
    scroll-behavior: smooth;
}

body.site {
    direction: rtl;
    text-align: right;
    background: var(--an-bg);
    color: var(--an-text);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.9;
}

a {
    color: var(--an-navy);
    text-decoration: none;
}

a:hover {
    color: var(--an-red);
}

.container-header {
    background: #fff;
    background-image: none;
    color: var(--an-text);
    border-bottom: 1px solid var(--an-border);
    box-shadow: 0 3px 14px rgba(0,0,0,.04);
}

.container-header .grid-child {
    max-width: 1280px;
    margin-inline: auto;
}

.navbar-brand {
    padding: 22px 0;
}

.container-header {
    background-color: #500 !important;
    background-image: none !important;
}
/* رنگ نوشته‌های منوی هدر */
.container-header .mod-menu a {
    color: #ffffff !important;
}

/* حالت عبور موس و انتخاب منو */
.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus {
    color: #ffd6d6 !important;
}

/* رنگ عنوان سایت */
.container-header .navbar-brand {
    color: #ffffff !important;
}
/* چینش هدر و منو در حالت راست‌چین */
.container-header .container-nav {
    display: flex;
    justify-content: flex-start !important;
    direction: rtl;
    width: 100%;
}

.container-header .container-nav > * {
    margin-right: 0;
    margin-left: auto;
}

.container-header .mod-menu {
    display: flex;
    justify-content: flex-start;
    direction: rtl;
    text-align: right;
}
.container-header .mod-menu {
    gap: 24px;
}

.container-header .mod-menu a {
    color: #fff !important;
    font-weight: 600;
    padding: 10px 4px;
}

.container-header .mod-menu a:hover {
    color: #ffd6d6 !important;
}
/* اندازه و چینش لوگو */
.container-header .navbar-brand {
    display: flex;
    align-items: center;
    min-height: 90px;
}

.container-header .brand-logo img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

/* فاصله و ارتفاع منو */
.container-header .container-nav {
    min-height: 55px;
    align-items: center;
}
.container-header .brand-logo img {
    max-height: 100px !important;
    width: auto !important;
    max-width: 280px;
    object-fit: contain;
}
.container-header .mod-menu a {
    font-size: 14px !important;
    padding: 7px 3px !important;
    font-weight: 500 !important;
}

.container-header .mod-menu {
    gap: 18px !important;
}
.container-header .navbar-brand {
    min-height: 70px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}
.container-header .container-nav {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

.container-header .mod-menu {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.container-header .mod-menu a {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}
.container-header .grid-child {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Header menu colors */
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .navbar-nav > li > a {
    color: #ffffff !important;
}

.container-header .mod-menu > li > a:hover,
.container-header .navbar-nav > li > a:hover {
    color: #f2dede !important;
}

.container-header .mod-menu > li.active > a,
.container-header .navbar-nav > li.active > a {
    color: #ffffff !important;
    font-weight: 700;
}
/* AkharinNews Homepage Layout */

.akharin-home-grid {
    display: grid;
    direction: rtr;
    grid-template-columns: 2.2fr 1.5fr 1fr 0.8fr;
    gap: 15px;
    width: 100%;
    margin: 20px auto;
    align-items: start;
}

.akharin-col {
    direction: rtl;
    text-align: right;
    min-width: 0;
    background: #fff;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.akharin-col h2,
.akharin-col h3 {
    font-size: 17px;
    font-weight: bold;
    border-bottom: 2px solid #500;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.akharin-home-bottom {
    direction: rtl;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.akharin-section {
    min-width: 0;
    background: #fff;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    text-align: right;
}

@media (max-width: 992px) {
    .akharin-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .akharin-home-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .akharin-home-grid,
    .akharin-home-bottom {
        grid-template-columns: 1fr;
    }
}
/* Fix Cassiopeia homepage grid conflict */
body.akharin-home .site-grid {
    display: block !important;
}
/* عنوان خبر اصلی */
.akharin-main h3 {
    text-align: center;
    color: #10243e;
    font-size: 22px;
    font-weight: 700;
}

/* عنوان اخبار مهم */
.akharin-important h3 {
    font-size: 14px;
    font-weight: 600;
}

/* عنوان اخبار اختصاصی */
.akharin-exclusive h3 {
    font-size: 15px;
    font-weight: 600;
}

/* رنگ تیترها */
.akharin-main h3 a,
.akharin-important h3 a,
.akharin-exclusive h3 a {
    color: #181818;
}
/* آیکون فقط کنار تیتر هر خبر */
.akharin-popular li,
.akharin-latest li {
    list-style: none !important;
    position: relative;
    padding-right: 17px !important;
}

.akharin-popular li::before,
.akharin-latest li::before {
    content: "◆";
    position: absolute;
    right: 0;
    top: 3px;
    color: #500;
    font-size: 11px;
}

/* جلوگیری از آیکون کنار عنوان ماژول */
.akharin-popular .card-header::before,
.akharin-latest .card-header::before,
.akharin-popular h3::before,
.akharin-latest h3::before {
    content: none !important;
}
.akharin-popular li::before,
.akharin-latest li::before {
    top: 50%;
    transform: translateY(-50%);
}
/* حداقل فاصله داخلی بخش‌های خبری */
.akharin-important,
.akharin-popular,
.akharin-latest {
    padding: 3px !important;
}

/* کاهش فاصله بین تیترها */
.akharin-important li,
.akharin-popular li,
.akharin-latest li {
    margin-bottom: 5px !important;
}

/* حذف فاصله اضافی عنوان ماژول */
.akharin-important .card-header,
.akharin-popular .card-header,
.akharin-latest .card-header {
    padding: 4px 3px !important;
    margin-bottom: 4px !important;
}
/* یکسان‌سازی کامل عنوان ماژول‌های صفحه اصلی */
.akharin-important .card-header,
.akharin-popular .card-header,
.akharin-latest .card-header,
.akharin-exclusive .card-header,
.akharin-around .card-header {
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1.5 !important;
    color: #500 !important;
    text-align: right !important;
    padding: 8px 10px !important;
    margin: 0 0 8px !important;
    background: #f5f5f5 !important;
    border: 0 !important;
    border-bottom: 2px solid #500 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.akharin-important .card-header *,
.akharin-popular .card-header *,
.akharin-latest .card-header *,
.akharin-exclusive .card-header *,
.akharin-around .card-header * {
    font: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}
/* یکسان‌سازی ظاهری عنوان تمام بخش‌های صفحه اصلی */
.akharin-important .card-header,
.akharin-popular .card-header,
.akharin-latest .card-header,
.akharin-exclusive .card-header,
.akharin-around .card-header,
.akharin-important .module-title,
.akharin-popular .module-title,
.akharin-latest .module-title,
.akharin-exclusive .module-title,
.akharin-around .module-title {
    display: block !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    color: #500 !important;
    text-align: right !important;
    padding: 5px 0 8px !important;
    margin: 0 0 8px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid #500 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.akharin-important .card-header *,
.akharin-popular .card-header *,
.akharin-latest .card-header *,
.akharin-exclusive .card-header *,
.akharin-around .card-header *,
.akharin-important .module-title *,
.akharin-popular .module-title *,
.akharin-latest .module-title *,
.akharin-exclusive .module-title *,
.akharin-around .module-title * {
    font: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}
/* کاهش فاصله داخلی ستون‌های اخبار مهم، پربازدید و آخرین */
.akharin-important,
.akharin-popular,
.akharin-latest {
    padding: 2px !important;
}

/* حذف فاصله داخلی کارت‌های جوملا */
.akharin-important .card,
.akharin-popular .card,
.akharin-latest .card {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.akharin-important .card-body,
.akharin-popular .card-body,
.akharin-latest .card-body {
    padding: 0 !important;
}

/* یکسان‌سازی عنوان ماژول‌ها */
.akharin-important .card-header,
.akharin-popular .card-header,
.akharin-latest .card-header,
.akharin-exclusive .card-header,
.akharin-around .card-header {
    display: block !important;
    padding: 3px 2px !important;
    margin: 0 0 5px !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    color: #500 !important;
    text-align: right !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid #500 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.akharin-important .important-number {
    margin-right: 5px !important;
}
/* تیتر خبر اصلی */
.akharin-main .akharin-position-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000773;
    line-height: 1.8;
    text-align: center;
    margin: 12px 0;
}

.akharin-main .akharin-position-item h3 a {
    color: #10243e;
    text-decoration: none;
}

.akharin-main .akharin-position-item h3 a:hover {
    color: #500;
}
/* اندازه تیترهای آخرین اخبار */
.akharin-latest li a {
    font-size: 14px;
    line-height: 1.9;
}
/* تیتر خبرهای پربازدید */
.akharin-popular li a {
    font-size: 14px;
    line-height: 1.9;
}

/* تیتر خبرهای گوشه و کنار */
.akharin-around li a {
    font-size: 14px;
    line-height: 1.9;
}
/* Advertisement Module 113 */

#mod-custom113,
#mod-custom113 p,
#mod-custom113 span,
#mod-custom113 a,
#mod-custom113 li,
#mod-custom113 div {
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
}

#mod-custom113 strong,
#mod-custom113 b {
    font-size: 13px !important;
    font-weight: 700 !important;
}