
/* ==================================================
   سایت جهانی بهتر - CSS اصلی قالب
   Cassiopeia Extended
   ================================================== */


/* ---------- فونت‌های فارسی ---------- */

@font-face {
    font-family: 'B Nazanin';
    src: url('/templates/cassiopeia_extended/fonts/B_Nazanin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'B Titr';
    src: url('/templates/cassiopeia_extended/fonts/B_Titr_Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


/* ---------- فونت عمومی سایت ---------- */

body {
    font-family: 'B Nazanin', serif;
    font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-header,
.card-header {
    font-family: 'B Titr', serif;
    font-weight: bold;
}

h1 a,
h2 a,
h3 a,
h4 a,
.page-header a,
.card-header a {
    text-decoration: none !important;
}


/* ---------- هدر اختصاصی سایت ---------- */

.container-banner {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
}

.container-banner .moduletable,
.container-banner .mod-custom {
    margin: 0 !important;
    padding: 0 !important;
}

.site-header-custom {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
}

.site-header-custom img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 18px;
}

.container-banner + .site-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ---------- کارت معرفی نویسنده ---------- */

.author-card {
    text-align: center;
    padding: 22px 12px;
    background: #ffffff;
    border: 1px solid #e5eeee;
    border-radius: 17px;
    box-shadow: 0 3px 12px rgba(30, 90, 95, 0.09);
}

.author-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: #246b75;
    font-family: 'B Titr', serif;
    font-size: 17px;
}

.author-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e2f0ee;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.13);
    transition: transform 0.25s ease;
}

.author-card a:hover img {
    transform: scale(1.05);
}

.author-card a:hover {
    color: #174b54;
}


/* ---------- فهرست مقالات ستون کناری ---------- */

.modern-articles-list {
    background: #ffffff;
    border: 1px solid #e6eeee;
    border-radius: 17px;
    padding: 8px 14px;
    box-shadow: 0 3px 12px rgba(30, 90, 95, 0.07);
}

.modern-article-item {
    padding: 13px 3px;
    border-bottom: 1px solid #edf1f1;
}

.modern-article-item:last-child {
    border-bottom: none;
}

.modern-article-title {
    display: block;
    color: #285f70;
    font-family: 'B Titr', serif;
    font-size: 14px;
    line-height: 1.9;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.modern-article-title:hover {
    color: #c07845;
}

.modern-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #899395;
    font-family: 'B Nazanin', serif;
    font-size: 13px;
}

.modern-article-meta span {
    white-space: nowrap;
}


/* ---------- ستون اصلی مطالب ---------- */

/* نمایش مطالب در یک ستون */

.blog-featured .blog-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-featured .blog-item {
    width: 100%;
    margin: 0 !important;
}


/* ---------- کارت هر مطلب ---------- */

.modern-article-card {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5eeee;
    border-radius: 17px;
    padding: 22px;
    margin: 0 !important;
    box-shadow: 0 4px 15px rgba(30, 90, 95, 0.07);
    overflow: hidden;
}


/* ---------- عنوان مطلب ---------- */

.modern-article-heading {
    font-family: 'B Titr', serif;
    font-size: 21px;
    line-height: 1.8;
    margin: 0 0 16px;
    color: #285f70;
}

.modern-article-heading a {
    color: inherit;
    text-decoration: none !important;
}

.modern-article-heading a:hover {
    color: #b87948;
}


/* ---------- تصویر و خلاصه مطلب ---------- */

.modern-article-body {
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    align-items: center !important;
    gap: 20px !important;
}

.modern-article-image {
    order: 2 !important;
    flex: 0 0 34%;
    max-width: 34%;
    min-width: 0;
}

.modern-article-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

.modern-article-text {
    order: 1 !important;
    flex: 1;
    min-width: 0;
    font-family: 'B Nazanin', serif;
    font-size: 18px;
    line-height: 2;
    color: #444444;
}


/* ---------- لینک ادامه مطلب ---------- */

.modern-article-readmore {
    margin-top: 15px;
    text-align: left;
}

.modern-article-readmore a {
    display: inline-block;
    color: #246b75;
    font-family: 'B Titr', serif;
    font-size: 14px;
    text-decoration: none !important;
    padding: 5px 12px;
    border: 1px solid #dcebea;
    border-radius: 8px;
}

.modern-article-readmore a:hover {
    background: #eaf4f2;
}


/* ---------- حذف عنوان Home ---------- */

.blog-featured > .page-header {
    display: none !important;
}


/* ---------- تنظیمات موبایل ---------- */

@media (max-width: 600px) {

    .container-banner {
        margin-bottom: 10px !important;
    }

    .modern-article-card {
        padding: 15px;
    }

    .modern-article-body {
        gap: 12px !important;
    }

    .modern-article-image {
        flex-basis: 38%;
        max-width: 38%;
    }

    .modern-article-heading {
        font-size: 18px;
    }

    .modern-article-text {
        font-size: 16px;
    }

    .author-card img {
        width: 170px;
        height: 170px;
    }
}
