/* ==========================================================================
   STYLE FOR ABOUTUS / OTHER SERVICES (نسخه کاملاً تراز لبه به لبه و ۲ ستونه موبایل)
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: Tahoma, sans-serif; }

body {
    background-color: #f8fafc;
    direction: rtl;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 80px;
    overflow-x: hidden; /* حذف هرگونه اسکرول افقی ناخواسته */
}

/* هدر مینی‌مال جهانی */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.nav-right, .nav-left { display: flex; align-items: center; gap: 40px; }
.logo { font-weight: 800; color: #0052cc; font-size: 19px; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.menu { display: flex; gap: 25px; }
.menu a { text-decoration: none; color: #64748b; font-size: 13.5px; font-weight: 600; transition: all 0.2s ease; }
.menu a:hover, .menu a.active { color: #1455d9 !important; }
.btn-login { background: #1455d9; color: white; border: none; padding: 10px 22px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: bold; transition: all 0.2s; }
.btn-login:hover { background: #003d99; transform: translateY(-1px); }
.btn-register { background: none; border: none; color: #475569; cursor: pointer; font-size: 12.5px; font-weight: bold; }

/* مخفی‌سازی مطلق اجزای موبایل در دسکتاپ بزرگ */
.hamburger-menu-btn, .mobile-sidebar, .sidebar-overlay { display: none !important; }

/* نوار راهنما کاملاً به راست چسبیده */
.breadcrumb {
    font-size: 11px;
    color: #94a3b8;
    text-align: right !important;
    width: 100% !important;
    max-width: 1160px;
    margin: 10px auto -10px auto;
    font-weight: bold;
    padding-right: 0 !important;
    display: block !important;
}
.breadcrumb a { text-decoration: none; color: #94a3b8; transition: color 0.2s; }
.breadcrumb a:hover { color: #1455d9; }

/* بخش هیرو دسکتاپ */
.hero-aboutus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
    background-color: #f8fafc;
    gap: 40px;
    width: 100%;
    padding: 10px 0;
}
.hero-text-aboutus { width: 50%; text-align: right; display: flex; flex-direction: column; padding-right: 0 !important; margin-right: 0 !important; }
.hero-text-aboutus h1 { font-size: 42px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.hero-text-aboutus .sub-title-blue { color: #1455d9; font-size: 24px; font-weight: bold; margin-top: 5px; line-height: 1.3; }
.hero-text-aboutus p { margin-top: 15px; max-width: 480px; line-height: 1.8; font-size: 14px; color: #64748b; }

.hero-image-aboutus { width: 45%; display: flex; justify-content: center; align-items: center; }
.hero-image-aboutus img { width: 100%; max-width: 380px; height: auto; object-fit: contain; mix-blend-mode: multiply; }

/* کانتینر گرید ۴ ستونه دسکتاپ */
.services-grid-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100%;
    max-width: 1160px;
    margin: 10px auto 40px auto;
}

.service-item-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 250px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.service-item-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03); }
.service-item-card i { font-size: 28px; color: #1455d9; margin-bottom: 12px; display: block; }
.service-item-card h3 { font-size: 15px; font-weight: bold; color: #0f172a; margin-bottom: 8px; }
.service-item-card p { font-size: 12px; color: #64748b; margin-bottom: 15px; line-height: 1.5; }
.service-price-info { margin-bottom: 12px; font-size: 12px; color: #475569; }
.service-price-info strong { color: #1455d9; font-size: 15px; font-weight: 800; }
.btn-view-service { color: #1455d9; background: none; border: none; font-size: 13px; font-weight: bold; cursor: pointer; transition: 0.2s; text-decoration: none; }
.btn-view-service:hover { color: #003d99; text-decoration: underline; }

/* ==========================================================================
   تنظیمات واکنش‌گرا مخصوص تبلت و موبایل ویو (قفل روی ۲ ستون و حذف اسکرول)
   ========================================================================== */
@media (max-width: 992px) {
    body { padding: 15px 20px !important; gap: 20px; }

    /* هدر موبایل و لوگوی وسط‌چین */
    .navbar {
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center !important;
        height: 60px !important; 
        padding: 0 10px !important; 
        border-bottom: none; 
    }
    .nav-right { 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
    }
    .logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 auto !important;
        font-size: 18px !important;
        z-index: 5;
    }
    .navbar .menu, .navbar .nav-left { display: none !important; }

    /* نمایش منوی همبرگری سمت راست هدر */
    .hamburger-menu-btn { 
        display: block !important; 
        background: none !important; 
        border: none !important; 
        font-size: 24px !important; 
        color: #0f172a !important; 
        cursor: pointer !important;
        order: 2 !important;
    }
    .breadcrumb { text-align: center !important; }

    /* سایدبار کشویی پنهان موبایل */
    .mobile-sidebar {
        display: flex !important;
        position: fixed !important; 
        top: 0 !important; 
        right: -290px !important;
        width: 280px !important; 
        height: 100vh !important; 
        background: #ffffff !important; 
        z-index: 9999 !important;
        flex-direction: column !important; 
        padding: 25px 20px !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.08) !important;
        transition: right 0.3s ease-in-out !important;
    }
    .mobile-sidebar.open { right: 0 !important; }
    .sidebar-header { display: flex !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; margin-bottom: 25px !important; border-bottom: 1px solid #f1f5f9 !important; padding-bottom: 15px !important; }
    .close-sidebar-btn { background: none !important; border: none !important; font-size: 22px !important; color: #94a3b8 !important; cursor: pointer !important; }
    .sidebar-menu { display: flex !important; flex-direction: column !important; gap: 18px !important; width: 100% !important; text-align: right !important; }
    .sidebar-menu a { text-decoration: none !important; color: #334155 !important; font-size: 14px !important; font-weight: bold !important; padding: 4px 0 !important; display: block !important; }
    .sidebar-hr { border: none !important; border-top: 1px solid #f1f5f9 !important; margin: 10px 0 !important; }
    .btn-sidebar-login { background: #1455d9 !important; color: white !important; border: none !important; padding: 12px !important; border-radius: 8px !important; font-weight: bold !important; width: 100% !important; margin-top: 10px !important; }
    .btn-sidebar-register { background: none !important; border: 1px solid #cbd5e1 !important; color: #475569 !important; padding: 12px !important; border-radius: 8px !important; font-weight: bold !important; width: 100% !important; }

    .sidebar-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background: rgba(0, 0, 0, 0.4) !important; z-index: 9998 !important; backdrop-filter: blur(2px) !important; transition: opacity 0.3s ease !important; opacity: 0; pointer-events: none; }
    .sidebar-overlay.show { display: block !important; opacity: 1 !important; pointer-events: auto !important; }
    
    /* تراز بدنه هیرو */
    .hero-aboutus { flex-direction: column-reverse !important; text-align: center !important; gap: 20px !important; min-height: auto !important; width: 100% !important; }
    .hero-text-aboutus { width: 100% !important; text-align: center !important; }
    .hero-text-aboutus h1 { font-size: 28px !important; }
    .hero-text-aboutus .sub-title-blue { font-size: 18px !important; }
    .hero-text-aboutus p { font-size: 13px !important; margin: 15px auto !important; }
    .hero-image-aboutus { width: 100% !important; }
    .hero-image-aboutus img { max-width: 250px !important; }
    
    /* 🟢 قفل افقی: چیدمان منظم کارت‌ها به صورت دقیقاً ۲ عدد در هر ردیف لبه به لبه */
    .services-grid-container { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important; 
        width: 100% !important;
    }
}
