/* ===== پایه ===== */
html, body {
    margin: 0;
    font-family: Tahoma, "Segoe UI", sans-serif;
    background: #f7f9fc;
    color: #16324f;
    direction: rtl;
}
a { color: #2f80ed; text-decoration: none; }

.site-header {
    background: #fff;
    padding: 14px 24px;
    border-bottom: 1px solid #e3eaf3;
}
.site-title {
    font-weight: 700;
    font-size: 18px;
    color: #16324f;
}
.site-footer {
    text-align: center;
    padding: 20px;
    color: #7a8aa0;
    font-size: 12px;
}

/* ===== برگه دسته‌بندی ===== */
.category-page, .single-system {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2f80ed;
    font-size: 13px;
}
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.category-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: #f1f5f9;
}
.category-header h1 {
    margin: 0 0 6px;
    font-size: 22px;
}
.category-desc {
    margin: 0;
    color: #4a5c72;
    font-size: 13px;
    line-height: 1.8;
}

.section-title {
    font-size: 16px;
    margin: 30px 0 15px;
    color: #16324f;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.system-card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e3eaf3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .15s;
}
.system-card:hover {
    box-shadow: 0 6px 18px rgba(47,128,237,0.15);
    border-color: #2f80ed;
}
.system-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.system-card h3 {
    margin: 0;
    font-size: 14px;
}
.system-card p {
    margin: 0;
    color: #4a5c72;
    font-size: 12px;
    line-height: 1.7;
    flex: 1;
}
.system-card a {
    color: #2f80ed;
    font-size: 12px;
    font-weight: 600;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.subcategory-card {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e3eaf3;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #16324f;
    transition: border-color .15s;
}
.subcategory-card:hover { border-color: #2f80ed; }
.subcategory-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.empty-msg {
    color: #7a8aa0;
    text-align: center;
    padding: 40px;
}

/* ===== برگه تکی سامانه ===== */
.single-system-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.single-system-header img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.single-system-header h1 { margin: 0; font-size: 22px; }
.single-system-excerpt {
    background: #eaf3fe;
    padding: 14px 18px;
    border-radius: 10px;
    color: #2f80ed;
}
.single-system-content { margin: 20px 0; line-height: 1.9; }

/* ===== دکمه مودال (مشترک) ===== */
.modal-link {
    display: inline-block;
    background: #2f80ed;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, box-shadow .15s;
}
.modal-link:hover {
    background: #1c6fd8;
    box-shadow: 0 4px 14px rgba(47,128,237,.4);
}