@import url(../fonts/opensans/OpenSans.css);

/* لود فایل پایه فارسی برای جلوگیری از کدنویسی تکراری */
@import url(style-fa.css);

/* ============================================================== */
/* 1. LTR Base Settings                                           */
/* ============================================================== */
body { 
    direction: ltr !important;
    text-align: left !important;
}

.pull-right { float: right !important; }
.pull-left { float: left !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* ============================================================== */
/* 2. Inter Font Faces (Local Files)                              */
/* ============================================================== */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter_18pt-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ============================================================== */
/* 3. Typography Settings                                         */
/* ============================================================== */

/* اعمال فونت به تمامی بخش‌های سایت در زبان انگلیسی */
body, p, a, li, span, div, input, button, textarea {
    font-family: 'Inter', Helvetica, Arial, sans-serif !important;
}

/* تنظیم فونت سرفصل‌ها (Headings) */
h1, h2, h3, h4, h5, h6, .headline, .navbar-brand {
    font-family: 'Inter', Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
    /* این دستور باعث می‌شود تیترهای انگلیسی کمی به هم نزدیک‌تر و توپرتر به نظر برسند */
    letter-spacing: -0.5px !important; 
}

/* ============================================================== */
/* 4. Article Readability (post.php)                              */
/* ============================================================== */

.blog-item p, 
.pagebar p,
p {
    font-size: 16px !important; 
    line-height: 26px !important; 
    text-align: justify !important; 
    margin-bottom: 8px !important; 
}

.blog-item ul li, 
.blog-item ol li {
    font-size: 15px !important;
    line-height: 26px !important;
    margin-bottom: 10px !important;
}

/* ============================================================== */
/* 5. Fixes for English Homepage Layout                           */
/* ============================================================== */

/* اصلاح تیترهای صفحه اصلی */
.carousel-inner .item h5 {
    line-height: 24px !important; 
    font-size: 15px !important; 
    margin-top: 10px !important; 
}

/* ============================================================== */
/* 6. اصلاحات یکپارچه فرم جستجوی هدر (چپ‌چین)                         */
/* ============================================================== */
.custom-search-form .form-control {
    height: 36px !important;
    border-radius: 4px 0 0 4px !important; 
    border-right: none !important;
    border-left: 1px solid #ccc !important;
    padding-left: 15px !important; 
    padding-right: 15px !important;
}
.custom-search-form .btn {
    height: 36px !important;
    border-radius: 0 4px 4px 0 !important; 
    margin: 0 !important;
    position: relative !important; 
    right: 0 !important;
}

.article-text ul, .article-text ol { margin: 15px 0 20px 15px !important; padding-left: 25px !important; padding-right: 0 !important; }
.article-text li, p { text-align: left !important; }

.mini-cal-col-left { padding-left: 15px !important; padding-right: 5px !important; }
.mini-cal-col-right { padding-right: 15px !important; padding-left: 5px !important; }

@media (min-width: 768px) {
    .navbar-nav { float: right !important; margin-right: 0 !important; }
    .navbar-nav > li { float: left !important; }
}

@media (max-width: 767px) {
    .navbar-nav { float: none !important; margin: 7.5px 0 !important; }
    .navbar-nav > li { float: none !important; display: block !important; width: 100%; }
    .navbar-nav > li > a { padding-left: 20px !important; padding-right: 15px !important; text-align: left !important; }
}