﻿/* =========================================================
   Services Page
   مسیر: wwwroot/TS/css/services.css
========================================================= */

.services-index-page {
    background: #f5f5f7;
}

.services-page-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 70px;
    direction: rtl;
}

    .services-page-wrap *,
    .services-page-wrap *::before,
    .services-page-wrap *::after {
        box-sizing: border-box;
    }

    .services-page-wrap a {
        text-decoration: none;
    }

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* =========================================================
   Desktop Toolbar
========================================================= */

.services-top-tools {
    margin-bottom: 18px;
}

.services-desktop-toolbar {
    width: 100%;
    min-height: 70px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 12px 14px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.services-desktop-search {
    width: min(430px, 45%);
    height: 46px;
    border-radius: 16px;
    background: #f5f5f7;
    border: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 4px;
    order: 1;
}

    .services-desktop-search input {
        flex: 1;
        height: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        padding: 0 12px;
        color: #20202a;
        font-size: 14px;
        direction: rtl;
    }

    .services-desktop-search button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 13px;
        background: #0f2f5f;
        color: #fff;
        flex: 0 0 38px;
    }

.services-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    order: 2;
}

.services-sort-chip {
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: #f7f7f9;
    color: #3f3f49;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    transition: 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

    .services-sort-chip.active,
    .services-sort-chip:hover {
        background: #0f2f5f;
        color: #fff;
        border-color: #0f2f5f;
    }

/* =========================================================
   Cards
========================================================= */

.services-content {
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.services-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    transition: 0.25s ease;
}

    .services-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 42px rgba(15, 23, 42, 0.11);
    }

.services-card-image {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    background: #f2f2f2;
}

    .services-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.35s ease;
    }

.services-card:hover .services-card-image img {
    transform: scale(1.05);
}

.services-card-body {
    padding: 16px;
}

.services-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #80808c;
    font-size: 12px;
    margin-bottom: 12px;
}

    .services-card-meta i {
        color: #0f2f5f;
        margin-left: 4px;
    }

.services-card h2 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 950;
}

    .services-card h2 a {
        color: #20202a;
    }

        .services-card h2 a:hover {
            color: #0f2f5f;
        }

.services-card p {
    color: #6f6f7b;
    font-size: 14px;
    line-height: 2;
    height: 56px;
    overflow: hidden;
    margin: 0 0 14px;
}

.services-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f2f5f;
    font-weight: 950;
}

    .services-read-more i {
        transition: 0.2s ease;
    }

    .services-read-more:hover {
        color: #0f2f5f;
    }

        .services-read-more:hover i {
            transform: translateX(-4px);
        }

/* =========================================================
   Empty
========================================================= */

.services-empty-box {
    background: #fff;
    border-radius: 24px;
    padding: 38px 20px;
    text-align: center;
    color: #73737e;
    border: 1px dashed rgba(15, 23, 42, 0.18);
}

    .services-empty-box i {
        font-size: 42px;
        color: #0f2f5f;
        margin-bottom: 12px;
    }

    .services-empty-box h3 {
        color: #222;
        font-weight: 950;
        margin-bottom: 10px;
    }

    .services-empty-box p {
        margin: 0;
        line-height: 2;
    }

/* =========================================================
   Responsive Desktop
========================================================= */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-desktop-search {
        width: min(360px, 45%);
    }
}

/* =========================================================
   Mobile View
========================================================= */

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    body.services-index-page {
        padding-bottom: 94px;
        background: #f5f5f7;
    }

        /* حذف هدر، فوتر، دارک مود، رد کارت و منوی اضافه در موبایل */
        body.services-index-page #siteHeader,
        body.services-index-page #siteFooter,
        body.services-index-page footer,
        body.services-index-page #darkModeToggle,
        body.services-index-page .dark-mode-toggle,
        body.services-index-page #redFloatingCard,
        body.services-index-page .redFloatingCard {
            display: none !important;
        }

        /* کوچک‌تر شدن Floating Button */
        body.services-index-page #floatBtn {
            width: 38px;
            height: 38px;
            min-width: 38px;
            min-height: 38px;
            font-size: 0.82rem;
            bottom: 92px;
            right: 14px;
            z-index: 1035;
        }

        body.services-index-page .float-contact {
            bottom: 92px;
            border-radius: 16px;
        }

    .services-page-wrap {
        width: min(100% - 22px, 720px);
        padding: 118px 0 96px;
    }

    .services-top-tools {
        margin-bottom: 12px;
    }

    /* Breadcrumb + Search + View Buttons ثابت بالای موبایل */
    .services-mobile-top-sticky {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1050;
        background: rgba(245, 245, 247, 0.98);
        backdrop-filter: blur(12px);
        padding: 10px 10px 8px;
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

    .services-mobile-breadcrumb {
        width: 100%;
        background: #fff;
        border: 1px solid #eeeeee;
        border-radius: 16px;
        padding: 9px 12px;
        display: flex !important;
        align-items: center;
        gap: 7px;
        color: #777;
        font-size: 0.78rem;
        font-weight: 800;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    }

        .services-mobile-breadcrumb a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #555;
            text-decoration: none;
        }

        .services-mobile-breadcrumb i {
            color: #0f2f5f;
            font-size: 0.86rem;
        }

    .services-mobile-toolbar {
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        direction: rtl;
    }

    .services-search-box {
        flex: 1;
        min-width: 0;
        height: 48px;
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 16px;
        padding: 5px;
        border: 1px solid transparent;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

        .services-search-box:focus-within {
            border-color: rgba(239, 80, 70, 0.35);
        }

        .services-search-box input {
            flex: 1;
            min-width: 0;
            border: 0;
            outline: 0;
            background: transparent;
            padding: 0 10px;
            font-size: 13px;
            color: #222;
            direction: rtl;
        }

        .services-search-box button {
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 13px;
            background: #0f2f5f;
            color: #fff;
            flex: 0 0 38px;
        }

    .services-mobile-view-toggle {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 5px;
        background: #fff;
        border-radius: 16px;
        padding: 5px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .services-view-mode-btn {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #777;
        font-family: inherit;
        cursor: pointer;
    }

        .services-view-mode-btn.active {
            background: #0f2f5f;
            color: #fff;
        }

    /* کارت‌ها در موبایل */
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .services-card {
        border-radius: 20px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

        .services-card:hover {
            transform: none;
        }

    .services-card-image {
        height: 155px;
    }

    .services-card-body {
        padding: 13px;
    }

    .services-card h2 {
        font-size: 15px;
    }

    .services-card p {
        font-size: 13px;
        height: 52px;
    }

    /* حالت سطری موبایل */
    .services-mobile-list-view {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .services-mobile-list-view .services-card {
            display: grid;
            grid-template-columns: 132px minmax(0, 1fr);
            min-height: 132px;
        }

        .services-mobile-list-view .services-card-image {
            height: 100%;
            min-height: 132px;
            border-radius: 0;
        }

        .services-mobile-list-view .services-card-body {
            padding: 12px;
        }

        .services-mobile-list-view .services-card-meta {
            font-size: 11px;
            gap: 8px;
            margin-bottom: 6px;
        }

        .services-mobile-list-view .services-card h2 {
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 6px;
        }

        .services-mobile-list-view .services-card p {
            font-size: 12px;
            line-height: 1.8;
            height: 43px;
            margin-bottom: 8px;
        }

        .services-mobile-list-view .services-read-more {
            font-size: 12px;
        }

    /* منوی پایین موبایل مثل Blog، فقط خانه و تماس */
    .services-mobile-bottom-bar {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 12px;
        height: 66px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(12px);
        z-index: 1040;
        padding: 8px;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        direction: rtl;
    }

    .services-bottom-item {
        border: none;
        background: transparent;
        color: #555;
        border-radius: 18px;
        font-family: inherit;
        font-size: 0.74rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        transition: all 0.2s ease;
    }

        .services-bottom-item:hover,
        .services-bottom-item:focus {
            text-decoration: none;
            color: #0f2f5f;
        }

        .services-bottom-item.active {
            background: #fff2f1;
            color: #0f2f5f;
        }

    .services-bottom-icon {
        width: 28px;
        height: 28px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .services-bottom-item.active .services-bottom-icon {
        background: #0f2f5f;
        color: #fff;
        box-shadow: 0 6px 16px rgba(239, 80, 70, 0.28);
    }

    .services-call-bottom-btn {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
        flex-direction: row;
        gap: 8px;
        font-size: 0.82rem;
    }

        .services-call-bottom-btn:hover,
        .services-call-bottom-btn:focus {
            color: #fff !important;
            transform: translateY(-1px);
        }

    .services-call-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.88rem;
    }
}

@media (max-width: 991px) {
    .service-detail-bottom-bar.services-index-bottom-bar {
        position: fixed !important;
        right: 12px !important;
        left: 12px !important;
        bottom: 12px !important;
        height: 66px !important;
        padding: 8px !important;
        z-index: 1040 !important;
        direction: rtl;
        display: grid !important;
        grid-template-columns: 1fr 1.25fr !important;
        gap: 8px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.94)) !important;
        border: 1px solid rgba(34, 65, 115, 0.12) !important;
        border-radius: 24px !important;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18) !important;
        backdrop-filter: blur(14px);
    }

    .services-index-bottom-bar .service-bottom-item {
        position: relative !important;
        width: 100% !important;
        height: 50px !important;
        min-height: 50px !important;
        padding: 0 14px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        color: #475569 !important;
        background: rgba(34, 65, 115, 0.045) !important;
        border: 1px solid rgba(34, 65, 115, 0.07) !important;
        border-radius: 18px !important;
        font-size: 0.78rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        overflow: hidden !important;
        min-width: 0 !important;
        transition: all 0.25s ease !important;
        z-index: 1 !important;
    }

        .services-index-bottom-bar .service-bottom-item::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #224173, #1b3560);
            opacity: 0;
            transition: 0.25s ease;
            z-index: -1;
        }

    .services-index-bottom-bar .service-bottom-icon,
    .services-index-bottom-bar .service-call-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        flex: 0 0 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 11px !important;
        background: rgba(34, 65, 115, 0.11) !important;
        color: #224173 !important;
        font-size: 0.88rem !important;
        transition: 0.25s ease !important;
    }

    .services-index-bottom-bar .service-bottom-title {
        display: inline-block !important;
        font-size: 0.78rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .services-index-bottom-bar .service-bottom-item:hover,
    .services-index-bottom-bar .service-bottom-item:focus {
        color: #fff !important;
        transform: translateY(-1px);
    }

        .services-index-bottom-bar .service-bottom-item:hover::before,
        .services-index-bottom-bar .service-bottom-item:focus::before {
            opacity: 1;
        }

        .services-index-bottom-bar .service-bottom-item:hover .service-bottom-icon,
        .services-index-bottom-bar .service-bottom-item:focus .service-bottom-icon,
        .services-index-bottom-bar .service-bottom-item:hover .service-call-icon,
        .services-index-bottom-bar .service-bottom-item:focus .service-call-icon {
            color: #224173 !important;
            background: #fff !important;
        }

    .services-index-bottom-bar .service-call-bottom-btn {
        color: #fff !important;
        background: linear-gradient(135deg, #224173, #1b3560) !important;
        border-color: transparent !important;
        box-shadow: 0 10px 24px rgba(34, 65, 115, 0.28) !important;
    }

        .services-index-bottom-bar .service-call-bottom-btn::before {
            opacity: 0 !important;
        }

        .services-index-bottom-bar .service-call-bottom-btn .service-call-icon {
            color: #224173 !important;
            background: #fff !important;
        }

        .services-index-bottom-bar .service-call-bottom-btn:hover,
        .services-index-bottom-bar .service-call-bottom-btn:focus {
            color: #fff !important;
            background: linear-gradient(135deg, #1b3560, #142844) !important;
            box-shadow: 0 14px 30px rgba(34, 65, 115, 0.34) !important;
        }
}

@media (max-width: 520px) {
    .service-detail-bottom-bar.services-index-bottom-bar {
        right: 10px !important;
        left: 10px !important;
        bottom: 10px !important;
    }
}

@media (max-width: 380px) {
    .service-detail-bottom-bar.services-index-bottom-bar {
        right: 8px !important;
        left: 8px !important;
        bottom: 8px !important;
        height: 62px !important;
        padding: 7px !important;
        gap: 6px !important;
        border-radius: 21px !important;
    }

    .services-index-bottom-bar .service-bottom-item {
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 10px !important;
        gap: 5px !important;
        border-radius: 16px !important;
        font-size: 0.72rem !important;
    }

    .services-index-bottom-bar .service-bottom-icon,
    .services-index-bottom-bar .service-call-icon {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        flex-basis: 25px !important;
        font-size: 0.78rem !important;
    }

    .services-index-bottom-bar .service-bottom-title {
        font-size: 0.72rem !important;
    }
}

/* ----------------- Fix Services Mobile Top Toolbar ----------------- */
/* حل مشکل دیده نشدن سرچ‌باکس و دکمه‌های نمایش سطری/گرید در /Services */

@media (max-width: 991px) {
    body.services-index-page .services-mobile-top-sticky {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1080 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 8px 10px 10px !important;
        background: rgba(245, 245, 247, 0.98) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

        /* چون mobile-page-topbar به صورت عمومی fixed شده، اینجا داخل صفحه Services خنثی‌اش می‌کنیم */
        body.services-index-page .services-mobile-top-sticky .mobile-page-topbar.mobile-only {
            position: static !important;
            top: auto !important;
            right: auto !important;
            left: auto !important;
            bottom: auto !important;
            width: 100% !important;
            height: auto !important;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            padding: 0 !important;
            margin: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            transform: none !important;
            z-index: auto !important;
        }

        body.services-index-page .services-mobile-top-sticky .mobile-page-head {
            width: 100% !important;
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) 44px !important;
            align-items: center !important;
            gap: 8px !important;
            margin: 0 !important;
            padding: 0 !important;
            direction: rtl;
        }

    body.services-index-page .services-mobile-toolbar {
        width: 100% !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
        direction: rtl;
        position: relative !important;
        z-index: 2 !important;
    }

    body.services-index-page .services-search-box {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        background: #fff !important;
        border-radius: 16px !important;
        padding: 5px !important;
        border: 1px solid rgba(15, 23, 42, 0.06) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

        body.services-index-page .services-search-box input {
            display: block !important;
            flex: 1 1 auto !important;
            min-width: 0 !important;
            height: 100% !important;
            border: 0 !important;
            outline: 0 !important;
            background: transparent !important;
            padding: 0 10px !important;
            font-size: 13px !important;
            color: #222 !important;
            direction: rtl;
        }

        body.services-index-page .services-search-box button {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
            flex: 0 0 38px !important;
            border: 0 !important;
            border-radius: 13px !important;
            background: #0f2f5f !important;
            color: #fff !important;
        }

    body.services-index-page .services-mobile-view-toggle {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        height: 48px !important;
        padding: 5px !important;
        background: #fff !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.services-index-page .services-view-mode-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: transparent !important;
        color: #777 !important;
        font-family: inherit;
        cursor: pointer;
    }

        body.services-index-page .services-view-mode-btn.active {
            background: #0f2f5f !important;
            color: #fff !important;
        }

    /* چون نوار بالای موبایل دو ردیفی شد، محتوای سرویس‌ها باید از زیرش شروع شود */
    body.services-index-page .services-page-wrap {
        padding-top: 124px !important;
    }
}


/* =========================================================
   Services Index Mobile Font Scale
   هماهنگ با فونت‌های مودال محصولات
========================================================= */

@media (max-width: 991px) {

    body.services-index-page {
        font-size: 14px !important;
    }

    /* Top Sticky / Breadcrumb */
    .services-mobile-breadcrumb {
        font-size: 0.78rem !important;
        font-weight: 800 !important;
    }

        .services-mobile-breadcrumb i {
            font-size: 0.86rem !important;
        }

    /* Search Box */
    .services-search-box input,
    body.services-index-page .services-search-box input {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
    }

    .services-search-box button,
    body.services-index-page .services-search-box button {
        font-size: 0.78rem !important;
    }

    /* View Toggle Buttons */
    .services-view-mode-btn,
    body.services-index-page .services-view-mode-btn {
        font-size: 0.82rem !important;
    }

    /* Grid Card */
    .services-card-meta {
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        gap: 8px !important;
    }

        .services-card-meta i {
            font-size: 0.78rem !important;
        }

    .services-card h2 {
        font-size: 0.88rem !important;
        line-height: 1.75 !important;
        font-weight: 900 !important;
    }

    .services-card p {
        font-size: 0.78rem !important;
        line-height: 1.9 !important;
    }

    .services-read-more {
        font-size: 0.78rem !important;
        font-weight: 900 !important;
    }

        .services-read-more i {
            font-size: 0.76rem !important;
        }

    /* List View Card */
    .services-mobile-list-view .services-card-meta {
        font-size: 0.7rem !important;
        font-weight: 800 !important;
    }

    .services-mobile-list-view .services-card h2 {
        font-size: 0.86rem !important;
        line-height: 1.7 !important;
        font-weight: 900 !important;
    }

    .services-mobile-list-view .services-card p {
        font-size: 0.76rem !important;
        line-height: 1.8 !important;
    }

    .services-mobile-list-view .services-read-more {
        font-size: 0.76rem !important;
        font-weight: 900 !important;
    }

    /* Empty Box */
    .services-empty-box h3 {
        font-size: 1rem !important;
        font-weight: 900 !important;
    }

    .services-empty-box p {
        font-size: 0.82rem !important;
        line-height: 2 !important;
    }

    .services-empty-box i {
        font-size: 1.7rem !important;
    }

    /* Bottom Bar - کلاس اختصاصی services */
    .services-bottom-item {
        font-size: 0.74rem !important;
        font-weight: 800 !important;
    }

    .services-call-bottom-btn {
        font-size: 0.82rem !important;
        font-weight: 900 !important;
    }

    .services-bottom-icon,
    .services-call-icon {
        font-size: 0.88rem !important;
    }

    /* Bottom Bar - اگر از کلاس‌های service-detail برای index استفاده شده */
    .services-index-bottom-bar .service-bottom-item {
        font-size: 0.74rem !important;
        font-weight: 800 !important;
    }

    .services-index-bottom-bar .service-bottom-title {
        font-size: 0.74rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    .services-index-bottom-bar .service-call-bottom-btn {
        font-size: 0.82rem !important;
        font-weight: 900 !important;
    }

    .services-index-bottom-bar .service-bottom-icon,
    .services-index-bottom-bar .service-call-icon {
        font-size: 0.88rem !important;
    }
}

@media (max-width: 520px) {

    .services-card h2 {
        font-size: 0.86rem !important;
    }

    .services-card p {
        font-size: 0.76rem !important;
    }

    .services-read-more {
        font-size: 0.76rem !important;
    }

    .services-mobile-list-view .services-card h2 {
        font-size: 0.82rem !important;
    }

    .services-mobile-list-view .services-card p {
        font-size: 0.74rem !important;
    }

    .services-search-box input,
    body.services-index-page .services-search-box input {
        font-size: 0.76rem !important;
    }
}

@media (max-width: 380px) {

    .services-mobile-breadcrumb {
        font-size: 0.72rem !important;
    }

    .services-search-box input,
    body.services-index-page .services-search-box input {
        font-size: 0.72rem !important;
    }

    .services-view-mode-btn,
    body.services-index-page .services-view-mode-btn {
        font-size: 0.78rem !important;
    }

    .services-card-meta {
        font-size: 0.68rem !important;
    }

    .services-card h2 {
        font-size: 0.8rem !important;
        line-height: 1.7 !important;
    }

    .services-card p {
        font-size: 0.72rem !important;
        line-height: 1.75 !important;
    }

    .services-read-more {
        font-size: 0.72rem !important;
    }

    .services-mobile-list-view .services-card h2 {
        font-size: 0.78rem !important;
    }

    .services-mobile-list-view .services-card p {
        font-size: 0.7rem !important;
    }

    .services-bottom-item,
    .services-index-bottom-bar .service-bottom-item,
    .services-index-bottom-bar .service-bottom-title {
        font-size: 0.72rem !important;
    }

    .services-call-bottom-btn,
    .services-index-bottom-bar .service-call-bottom-btn {
        font-size: 0.78rem !important;
    }

    .services-bottom-icon,
    .services-call-icon,
    .services-index-bottom-bar .service-bottom-icon,
    .services-index-bottom-bar .service-call-icon {
        font-size: 0.78rem !important;
    }
}