/*
Theme Name: راهکار هوشمند سیستم
Theme URI: https://iospersian.ir/
Author: مسیب زمانی
Description: نسخه برای راهکار هوشمند سیستم با فونت ایران‌سنس.
Version: 4.1
License: GNU General Public License v2 or later
Text Domain: rahkar-smart
*/

/* 1. Font-Face (پیش‌فرض ایران‌سنس) */
@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSansWeb.eot');
    src: url('fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
         url('fonts/IRANSansWeb.woff2') format('woff2'),
         url('fonts/IRANSansWeb.woff') format('woff'),
         url('fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 2. Base Typography & RTL */
html {
    font-family: 'IRANSans', Tahoma, sans-serif;
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    direction: rtl;
    text-align: right;
    font-family: 'IRANSans', Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

/* 3. Global Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IRANSans', Tahoma, sans-serif;
    clear: both;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 0.75em;
    letter-spacing: 0; /* حذف فاصله حروف لاتین برای فارسی */
    text-transform: none;
}

p {
    margin: 0 0 1.5em;
}

a {
    color: #005baa; /* رنگ برند */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover, a:active, a:focus {
    color: #003f7f;
    outline: 0;
}

/* 4. Forms & Buttons */
button,
input,
optgroup,
select,
textarea,
.button {
    font-family: 'IRANSans', Tahoma, sans-serif;
    font-size: 14px;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: #005baa;
    border: none;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    padding: 0.6em 1.5em;
    transition: background 0.2s;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #003f7f;
}

/* 5. Site Header & Branding (راهکار هوشمند سیستم) */
.site-title {
    font-family: 'IRANSans', Tahoma, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5em;
}

.site-title a {
    color: #222;
}

.site-description {
    font-family: 'IRANSans', Tahoma, sans-serif;
    font-size: 14px;
    color: #767676;
    font-weight: 400;
}

/* 6. Navigation */
.main-navigation a {
    font-family: 'IRANSans', Tahoma, sans-serif;
    font-weight: 700;
    color: #222;
}

/* 7. Post & Content Styles */
.entry-title {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.entry-meta, .entry-footer {
    font-family: 'IRANSans', Tahoma, sans-serif;
    font-size: 13px;
    color: #767676;
}

/* 8. Footer Customization */
.site-footer {
    background-color: #f7f7f7;
    padding: 3em 0;
    font-family: 'IRANSans', Tahoma, sans-serif;
    border-top: 1px solid #eee;
}

.site-info a {
    color: #005baa;
    font-weight: bold;
}

/* 9. Media Queries for RTL fixes */
@media screen and (min-width: 48em) {
    .wrap {
        max-width: 1000px;
        padding-left: 3em;
        padding-right: 3em;
    }
}

/* کدهای تکمیلی برای همترازی راست‌چین در المان‌های شناور */
.alignright {
    float: left; /* در RTL، المان راست‌چین باید به چپ شناور شود */
    margin: 0.5em 1.5em 1.5em 0;
}

.alignleft {
    float: right;
    margin: 0.5em 0 1.5em 1.5em;
}

/* End of Customization */
