﻿/* =========================================================
   Service Details Page
   مسیر: wwwroot/TS/css/service-details.css
========================================================= */

.service-details-page {
    background: #f5f5f7;
}

.service-detail-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 70px;
    direction: rtl;
}

    .service-detail-wrap *,
    .service-detail-wrap *::before,
    .service-detail-wrap *::after {
        box-sizing: border-box;
    }

    .service-detail-wrap a {
        text-decoration: none;
    }

    .service-detail-wrap img {
        max-width: 100%;
    }

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Layout */

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}

.service-detail-main {
    min-width: 0;
}

.service-detail-sidebar {
    position: sticky;
    top: 95px;
}

/* Hero */

.service-detail-hero {
    overflow: hidden;
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    min-height: 390px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.service-detail-hero-image {
    position: relative;
    overflow: hidden;
    background: #ececec;
}

    .service-detail-hero-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.36));
        pointer-events: none;
    }

    .service-detail-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.service-detail-category {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    background: #ef5046;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 900;
}

.service-detail-hero-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-detail-desktop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b8b94;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

    .service-detail-desktop-breadcrumb a {
        color: #60606b;
    }

        .service-detail-desktop-breadcrumb a:hover {
            color: #ef5046;
        }

.service-detail-hero-content h1 {
    color: #20202a;
    font-size: 34px;
    font-weight: 950;
    line-height: 1.55;
    margin: 0 0 14px;
}

.service-detail-summary {
    color: #64646f;
    font-size: 15px;
    line-height: 2.1;
    margin: 0 0 18px;
}

.service-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

    .service-detail-meta span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #5f606b;
        background: #f5f5f7;
        border: 1px solid rgba(15, 23, 42, 0.07);
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 850;
    }

    .service-detail-meta i {
        color: #ef5046;
    }

.service-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-detail-primary-btn,
.service-detail-secondary-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 950;
    transition: all 0.2s ease;
}

.service-detail-primary-btn {
    color: #fff;
    background: #ef5046;
    box-shadow: 0 12px 26px rgba(239, 80, 70, 0.24);
}

    .service-detail-primary-btn:hover {
        color: #fff;
        background: #dc3e35;
        transform: translateY(-2px);
    }

.service-detail-secondary-btn {
    color: #33343d;
    background: #f5f5f7;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

    .service-detail-secondary-btn:hover {
        color: #ef5046;
        background: #fff2f1;
    }

/* Cards */

.service-detail-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.service-detail-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

    .service-detail-section-title span {
        width: 6px;
        height: 26px;
        border-radius: 999px;
        background: #ef5046;
    }

    .service-detail-section-title h2 {
        margin: 0;
        color: #20202a;
        font-size: 20px;
        font-weight: 950;
    }

/* Html content */

.service-detail-html-content {
    color: #40414b;
    font-size: 15px;
    line-height: 2.15;
}

    .service-detail-html-content p {
        margin: 0 0 16px;
    }

    .service-detail-html-content h1,
    .service-detail-html-content h2,
    .service-detail-html-content h3,
    .service-detail-html-content h4 {
        color: #20202a;
        font-weight: 950;
        line-height: 1.7;
        margin: 24px 0 12px;
    }

    .service-detail-html-content h2 {
        font-size: 22px;
    }

    .service-detail-html-content h3 {
        font-size: 19px;
    }

    .service-detail-html-content ul,
    .service-detail-html-content ol {
        padding-right: 22px;
        margin: 14px 0;
    }

    .service-detail-html-content li {
        margin-bottom: 8px;
    }

    .service-detail-html-content img {
        border-radius: 20px;
        margin: 14px 0;
    }

    .service-detail-html-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 18px 0;
        overflow: hidden;
        border-radius: 16px;
    }

        .service-detail-html-content table th,
        .service-detail-html-content table td {
            border: 1px solid #ececf0;
            padding: 12px;
        }

        .service-detail-html-content table th {
            background: #f5f5f7;
            font-weight: 950;
        }

/* Tags */

.service-detail-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

    .service-detail-tags h3 {
        margin: 0 0 12px;
        color: #20202a;
        font-size: 16px;
        font-weight: 950;
    }

.service-detail-tag-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

    .service-detail-tag-list a {
        display: inline-flex;
        color: #ef5046;
        background: #fff2f1;
        border: 1px solid rgba(239, 80, 70, 0.16);
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 12px;
        font-weight: 900;
    }

/* Author */

.service-detail-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-detail-author-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 22px;
    color: #fff;
    background: #ef5046;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 12px 26px rgba(125, 125, 125, 0.22);
}

.service-detail-author span {
    color: #ef5046;
    font-size: 13px;
    font-weight: 950;
}

.service-detail-author h3 {
    margin: 4px 0 8px;
    color: #20202a;
    font-size: 18px;
    font-weight: 950;
}

.service-detail-author p {
    margin: 0;
    color: #6b6c76;
    line-height: 2;
}

/* Comments */

.service-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-comment-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #f7f7f9;
    border: 1px solid #eeeeee;
}

.service-comment-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 16px;
    background: #fff;
    color: #ef5046;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-comment-body {
    flex: 1;
    min-width: 0;
}

.service-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

    .service-comment-head strong {
        color: #20202a;
        font-size: 14px;
        font-weight: 950;
    }

    .service-comment-head small {
        color: #8a8b94;
        font-size: 12px;
    }

.service-comment-body p {
    color: #60616c;
    line-height: 2;
    margin: 0;
}

.service-admin-reply {
    margin-top: 12px;
    background: #fff;
    border-right: 4px solid #ef5046;
    border-radius: 14px;
    padding: 12px;
}

    .service-admin-reply strong {
        color: #ef5046;
        font-size: 13px;
    }

.service-comments-empty {
    text-align: center;
    border: 1px dashed #d9d9df;
    border-radius: 18px;
    padding: 24px 14px;
    color: #73747e;
    margin-bottom: 20px;
}

    .service-comments-empty i {
        display: block;
        color: #ef5046;
        font-size: 34px;
        margin-bottom: 10px;
    }

    .service-comments-empty p {
        margin: 0;
    }

/* Comment Form */

.service-comment-form {
    margin-top: 24px;
    background: #f7f7f9;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    padding: 20px;
}

    .service-comment-form h3 {
        margin: 0 0 6px;
        color: #20202a;
        font-size: 18px;
        font-weight: 950;
    }

    .service-comment-form > p {
        color: #777883;
        margin: 0 0 16px;
        line-height: 1.9;
    }

.service-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-form-group {
    margin-bottom: 12px;
}

    .service-form-group label {
        display: block;
        color: #343540;
        font-size: 13px;
        font-weight: 950;
        margin-bottom: 8px;
    }

    .service-form-group input,
    .service-form-group textarea {
        width: 100%;
        border: 1px solid #e3e3e8;
        background: #fff;
        border-radius: 16px;
        outline: 0;
        padding: 12px 14px;
        color: #20202a;
        font-size: 14px;
        line-height: 1.8;
        transition: 0.2s ease;
        font-family: inherit;
    }

    .service-form-group input {
        height: 48px;
    }

    .service-form-group textarea {
        resize: vertical;
        min-height: 130px;
    }

        .service-form-group input:focus,
        .service-form-group textarea:focus {
            border-color: rgba(239, 80, 70, 0.55);
            box-shadow: 0 0 0 4px rgba(239, 80, 70, 0.08);
        }

.service-submit-comment {
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    background: #ef5046;
    color: #fff;
    padding: 0 18px;
    font-weight: 950;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(239, 80, 70, 0.24);
}

    .service-submit-comment:hover {
        background: #dc3e35;
    }

/* Sidebar */

.service-sidebar-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

    .service-sidebar-card h3 {
        margin: 0 0 14px;
        color: #20202a;
        font-size: 17px;
        font-weight: 950;
    }

.service-share-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .service-share-list a {
        min-height: 46px;
        border-radius: 16px;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 0 14px;
        font-weight: 950;
    }

        .service-share-list a.whatsapp {
            background: #25d366;
        }

        .service-share-list a.telegram {
            background: #229ed9;
        }

.service-sidebar-cta {
    text-align: center;
}

.service-sidebar-cta-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    border-radius: 24px;
    background: #ef5046;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 12px 26px rgba(125, 125, 125, 0.22);
}

.service-sidebar-cta p {
    color: #6b6c76;
    line-height: 2;
    margin: 0 0 14px;
}

.service-sidebar-cta a {
    min-height: 44px;
    border-radius: 16px;
    color: #fff;
    background: #ef5046;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.service-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .service-info-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 0;
        border-bottom: 1px solid #eeeeee;
    }

        .service-info-list li:last-child {
            border-bottom: 0;
        }

    .service-info-list span {
        color: #777883;
        font-size: 13px;
    }

    .service-info-list strong {
        color: #20202a;
        font-size: 13px;
        font-weight: 950;
    }

/* Responsive */

@media (max-width: 1100px) {
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-detail-sidebar {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    body.service-details-page {
        padding-bottom: 96px;
        background: #f5f5f7;
    }

        body.service-details-page #siteFooter,
        body.service-details-page footer,
        body.service-details-page #darkModeToggle,
        body.service-details-page .dark-mode-toggle,
        body.service-details-page #redFloatingCard,
        body.service-details-page .redFloatingCard {
            display: none !important;
        }

        body.service-details-page #siteHeader {
            display: block !important;
            position: relative !important;
            z-index: 13000 !important;
            height: 0 !important;
            min-height: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            overflow: visible !important;
            background: transparent !important;
            box-shadow: none !important;
            border: 0 !important;
        }

            body.service-details-page #siteHeader > nav,
            body.service-details-page #siteHeader .navbar,
            body.service-details-page #siteHeader .main-header,
            body.service-details-page #siteHeader .header-main,
            body.service-details-page #siteHeader .top-header {
                display: none !important;
            }

        body.service-details-page #offcanvasMenu {
            display: block !important;
        }


        body.service-details-page #floatBtn {
            width: 38px;
            height: 38px;
            min-width: 38px;
            min-height: 38px;
            font-size: 0.82rem;
            bottom: 92px;
            right: 14px;
            z-index: 1035;
        }

        body.service-details-page .float-contact {
            bottom: 92px;
            border-radius: 16px;
        }

    .service-detail-wrap {
        width: min(100% - 22px, 720px);
        padding: 70px 0 96px;
    }

    .service-detail-mobile-top {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1050;
        background: rgba(245, 245, 247, 0.98);
        backdrop-filter: blur(12px);
        padding: 10px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

    .service-detail-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;
        overflow: hidden;
        white-space: nowrap;
    }

        .service-detail-mobile-breadcrumb a,
        .service-detail-mobile-breadcrumb span {
            color: #555;
            text-decoration: none;
        }

            .service-detail-mobile-breadcrumb span:last-child {
                overflow: hidden;
                text-overflow: ellipsis;
            }

        .service-detail-mobile-breadcrumb i {
            color: #ef5046;
            font-size: 0.86rem;
        }

    .service-detail-hero {
        display: block;
        min-height: 0;
        border-radius: 22px;
        margin-bottom: 14px;
    }

    .service-detail-hero-image {
        height: 220px;
    }

    .service-detail-hero-content {
        padding: 18px;
    }

        .service-detail-hero-content h1 {
            font-size: 23px;
            line-height: 1.7;
            margin-bottom: 10px;
        }

    .service-detail-summary {
        font-size: 13px;
        line-height: 2;
        margin-bottom: 14px;
    }

    .service-detail-meta {
        gap: 7px;
        margin-bottom: 16px;
    }

        .service-detail-meta span {
            padding: 7px 10px;
            font-size: 12px;
        }

    .service-detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .service-detail-primary-btn,
    .service-detail-secondary-btn {
        min-height: 42px;
        border-radius: 14px;
        padding: 0 10px;
        font-size: 12px;
    }

    .service-detail-card {
        border-radius: 22px;
        padding: 18px;
        margin-bottom: 14px;
    }

    .service-detail-section-title h2 {
        font-size: 18px;
    }

    .service-detail-html-content {
        font-size: 14px;
        line-height: 2.1;
    }

    .service-detail-author {
        align-items: flex-start;
    }

    .service-detail-author-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 18px;
        font-size: 20px;
    }

    .service-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-comment-item {
        padding: 12px;
    }

    .service-comment-head {
        display: block;
    }

        .service-comment-head small {
            display: block;
            margin-top: 4px;
        }

    /* Bottom Menu */
    .service-detail-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: 1fr 1fr 1.25fr;
        gap: 8px;
        direction: rtl;
    }

    .service-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;
    }

        .service-bottom-item:hover,
        .service-bottom-item:focus {
            text-decoration: none;
            color: #ef5046;
        }

    .service-bottom-icon {
        width: 28px;
        height: 28px;
        border-radius: 12px;
        background: #fff2f1;
        color: #ef5046;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .service-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;
    }

        .service-call-bottom-btn:hover,
        .service-call-bottom-btn:focus {
            color: #fff !important;
            transform: translateY(-1px);
        }

    .service-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: 520px) {
    .service-detail-wrap {
        width: calc(100% - 18px);
        padding-top: 70px;
    }

    .service-detail-hero-image {
        height: 205px;
    }

    .service-detail-hero-content {
        padding: 16px;
    }

        .service-detail-hero-content h1 {
            font-size: 21px;
        }

    .service-detail-card {
        padding: 16px;
    }

    .service-detail-actions {
        grid-template-columns: 1fr;
    }

    .service-detail-bottom-bar {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }
}

/* =========================================================
   Comments Load More + Form First
========================================================= */

.service-comment-form-top {
    margin-top: 0;
    margin-bottom: 0;
}

.service-comments-divider {
    height: 1px;
    background: #eeeeee;
    margin: 26px 0 22px;
}

.service-comments-title {
    margin-bottom: 16px;
}

.service-comment-hidden {
    display: none !important;
}

.service-comment-load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
}

.service-comment-load-more-btn {
    min-height: 44px;
    border: 0;
    border-radius: 16px;
    background: #fff2f1;
    color: #ef5046;
    padding: 0 18px;
    font-weight: 950;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .service-comment-load-more-btn:hover {
        background: #ef5046;
        color: #fff;
        box-shadow: 0 10px 22px rgba(239, 80, 70, 0.22);
    }

@media (max-width: 991px) {
    .service-comments-divider {
        margin: 22px 0 18px;
    }

    .service-comment-load-more-btn {
        width: 100%;
        min-height: 42px;
        border-radius: 14px;
        font-size: 13px;
    }
}


/* =========================================================
   Service Details Theme Fix - Main Blue Theme
   Mobile Bottom Menu Inline
========================================================= */

.service-details-page {
    background: radial-gradient(circle at top right, rgba(34, 65, 115, 0.08), transparent 34%), #f5f7fb;
}

/* رنگ‌بندی کلی صفحه مطابق تم اصلی سایت */
.service-detail-category,
.service-detail-section-title span,
.service-detail-author-icon,
.service-sidebar-cta-icon,
.service-submit-comment,
.service-sidebar-cta a {
    background: linear-gradient(135deg, #224173, #1b3560) !important;
}

.service-detail-primary-btn {
    background: linear-gradient(135deg, #224173, #1b3560) !important;
    box-shadow: 0 12px 26px rgba(34, 65, 115, 0.24) !important;
}

    .service-detail-primary-btn:hover {
        background: linear-gradient(135deg, #1b3560, #142844) !important;
        box-shadow: 0 16px 34px rgba(34, 65, 115, 0.3) !important;
    }

.service-detail-desktop-breadcrumb a:hover,
.service-detail-meta i,
.service-detail-author span,
.service-comments-empty i,
.service-admin-reply strong,
.service-detail-mobile-breadcrumb i,
.service-detail-tag-list a,
.service-comment-avatar,
.mobile-detail-theme-color {
    color: #224173 !important;
}

.service-detail-secondary-btn:hover {
    color: #224173 !important;
    background: rgba(34, 65, 115, 0.08) !important;
}

.service-detail-tag-list a,
.service-comment-load-more-btn {
    color: #224173 !important;
    background: rgba(34, 65, 115, 0.08) !important;
    border-color: rgba(34, 65, 115, 0.14) !important;
}

    .service-comment-load-more-btn:hover {
        color: #fff !important;
        background: linear-gradient(135deg, #224173, #1b3560) !important;
        box-shadow: 0 10px 22px rgba(34, 65, 115, 0.22) !important;
    }

.service-admin-reply {
    border-right-color: #224173 !important;
}

.service-form-group input:focus,
.service-form-group textarea:focus {
    border-color: rgba(34, 65, 115, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(34, 65, 115, 0.09) !important;
}

.service-submit-comment {
    box-shadow: 0 12px 26px rgba(34, 65, 115, 0.24) !important;
}

    .service-submit-comment:hover {
        background: linear-gradient(135deg, #1b3560, #142844) !important;
    }

.service-sidebar-card,
.service-detail-card,
.service-detail-hero,
.service-detail-mobile-breadcrumb {
    border-color: rgba(125, 125, 125, 0.09) !important;
}

.service-detail-meta span,
.service-comment-form,
.service-comment-item {
    background: rgba(34, 65, 115, 0.035) !important;
    border-color: rgba(34, 65, 115, 0.08) !important;
}

/* =========================================================
   Mobile Bottom Bar
========================================================= */

@media (max-width: 991px) {
    .service-detail-mobile-top {
        background: rgba(245, 247, 251, 0.96) !important;
    }

    .service-detail-mobile-breadcrumb {
        box-shadow: 0 10px 24px rgba(34, 65, 115, 0.07) !important;
    }

    .service-detail-bottom-bar {
        height: 66px;
        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);
        grid-template-columns: 1fr 1fr 1.25fr !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .service-bottom-item {
        position: relative;
        min-height: 50px;
        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;
        overflow: hidden;
    }

        .service-bottom-item::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #224173, #1b3560);
            opacity: 0;
            transition: 0.25s ease;
            z-index: -1;
        }

        .service-bottom-item:hover,
        .service-bottom-item:focus {
            color: #fff !important;
            transform: translateY(-1px);
        }

            .service-bottom-item:hover::before,
            .service-bottom-item:focus::before {
                opacity: 1;
            }

    .service-bottom-icon,
    .service-call-icon {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
        border-radius: 11px !important;
        background: rgba(34, 65, 115, 0.11) !important;
        color: #224173 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.88rem !important;
        transition: 0.25s ease;
    }

    .service-bottom-title {
        line-height: 1;
        white-space: nowrap;
    }

    .service-bottom-item:hover .service-bottom-icon,
    .service-bottom-item:focus .service-bottom-icon,
    .service-bottom-item:hover .service-call-icon,
    .service-bottom-item:focus .service-call-icon {
        color: #224173 !important;
        background: #fff !important;
    }

    .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;
    }

        .service-call-bottom-btn::before {
            opacity: 0 !important;
        }

        .service-call-bottom-btn .service-call-icon {
            color: #224173 !important;
            background: #fff !important;
        }

        .service-call-bottom-btn:hover,
        .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: 380px) {
    .service-detail-bottom-bar {
        height: 62px !important;
        right: 8px !important;
        left: 8px !important;
        bottom: 8px !important;
        border-radius: 21px !important;
        gap: 6px !important;
        padding: 7px !important;
    }

    .service-bottom-item {
        min-height: 46px;
        gap: 5px !important;
        font-size: 0.72rem !important;
        border-radius: 16px !important;
    }

    .service-bottom-icon,
    .service-call-icon {
        width: 25px !important;
        height: 25px !important;
        flex-basis: 25px !important;
        font-size: 0.78rem !important;
    }
}

/* =========================================================
   Service Details Mobile Font Scale
   هماهنگ با فونت‌های مودال محصولات
========================================================= */

@media (max-width: 991px) {

    body.service-details-page {
        font-size: 14px !important;
    }

    .service-detail-mobile-breadcrumb {
        font-size: 0.78rem !important;
        font-weight: 800 !important;
    }

        .service-detail-mobile-breadcrumb i {
            font-size: 0.86rem !important;
        }

    .service-detail-category {
        font-size: 0.72rem !important;
        font-weight: 800 !important;
    }

    .service-detail-hero-content h1 {
        font-size: 1rem !important;
        line-height: 1.75 !important;
        font-weight: 900 !important;
        margin-bottom: 10px !important;
    }

    .service-detail-summary {
        font-size: 0.88rem !important;
        line-height: 2 !important;
        margin-bottom: 14px !important;
    }

    .service-detail-meta span {
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        padding: 7px 10px !important;
    }

    .service-detail-primary-btn,
    .service-detail-secondary-btn {
        font-size: 0.78rem !important;
        font-weight: 900 !important;
        min-height: 42px !important;
    }

    .service-detail-section-title h2 {
        font-size: 1rem !important;
        font-weight: 900 !important;
    }

    .service-detail-html-content {
        font-size: 0.88rem !important;
        line-height: 2.1 !important;
    }

        .service-detail-html-content h1 {
            font-size: 1rem !important;
            line-height: 1.8 !important;
        }

        .service-detail-html-content h2 {
            font-size: 1rem !important;
            line-height: 1.8 !important;
        }

        .service-detail-html-content h3 {
            font-size: 0.95rem !important;
            line-height: 1.8 !important;
        }

        .service-detail-html-content h4 {
            font-size: 0.9rem !important;
            line-height: 1.8 !important;
        }

        .service-detail-html-content p,
        .service-detail-html-content li {
            font-size: 0.88rem !important;
        }

    .service-detail-tags h3 {
        font-size: 0.88rem !important;
        font-weight: 900 !important;
    }

    .service-detail-tag-list a {
        font-size: 0.72rem !important;
        font-weight: 800 !important;
    }

    .service-detail-author span {
        font-size: 0.78rem !important;
        font-weight: 900 !important;
    }

    .service-detail-author h3 {
        font-size: 1rem !important;
        font-weight: 900 !important;
    }

    .service-detail-author p {
        font-size: 0.88rem !important;
        line-height: 2 !important;
    }

    .service-comment-form h3 {
        font-size: 1rem !important;
        font-weight: 900 !important;
    }

    .service-comment-form > p {
        font-size: 0.82rem !important;
        line-height: 1.9 !important;
    }

    .service-form-group label {
        font-size: 0.78rem !important;
        font-weight: 900 !important;
    }

    .service-form-group input,
    .service-form-group textarea {
        font-size: 0.82rem !important;
        line-height: 1.8 !important;
    }

    .service-submit-comment {
        font-size: 0.82rem !important;
        font-weight: 900 !important;
    }

    .service-comments-empty {
        font-size: 0.82rem !important;
    }

        .service-comments-empty i {
            font-size: 1.5rem !important;
        }

    .service-comment-head strong {
        font-size: 0.82rem !important;
        font-weight: 900 !important;
    }

    .service-comment-head small {
        font-size: 0.72rem !important;
    }

    .service-comment-body p {
        font-size: 0.82rem !important;
        line-height: 2 !important;
    }

    .service-admin-reply strong {
        font-size: 0.78rem !important;
        font-weight: 900 !important;
    }

    .service-comment-load-more-btn {
        font-size: 0.82rem !important;
        font-weight: 900 !important;
    }

    .service-bottom-item {
        font-size: 0.74rem !important;
        font-weight: 800 !important;
    }

    .service-call-bottom-btn {
        font-size: 0.82rem !important;
        font-weight: 900 !important;
    }

    .service-bottom-icon,
    .service-call-icon {
        font-size: 0.88rem !important;
    }

    .service-bottom-title {
        font-size: inherit !important;
        line-height: 1 !important;
    }
}

@media (max-width: 520px) {

    .service-detail-hero-content h1 {
        font-size: 1rem !important;
    }

    .service-detail-summary,
    .service-detail-html-content,
    .service-detail-html-content p,
    .service-detail-html-content li,
    .service-detail-author p {
        font-size: 0.86rem !important;
    }

    .service-detail-primary-btn,
    .service-detail-secondary-btn,
    .service-form-group input,
    .service-form-group textarea,
    .service-submit-comment,
    .service-comment-load-more-btn {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 380px) {

    .service-detail-mobile-breadcrumb {
        font-size: 0.72rem !important;
    }

    .service-detail-hero-content h1 {
        font-size: 0.95rem !important;
    }

    .service-detail-summary,
    .service-detail-html-content,
    .service-detail-html-content p,
    .service-detail-html-content li {
        font-size: 0.82rem !important;
    }

    .service-detail-meta span,
    .service-detail-primary-btn,
    .service-detail-secondary-btn,
    .service-form-group label,
    .service-detail-tag-list a {
        font-size: 0.72rem !important;
    }

    .service-bottom-item {
        font-size: 0.72rem !important;
    }

    .service-call-bottom-btn {
        font-size: 0.78rem !important;
    }
}




/* =========================================================
   Service Detail Hero - Full Background Image + Text Overlay
========================================================= */

.service-detail-hero.service-detail-hero-overlay {
    position: relative !important;
    display: block !important;
    min-height: 520px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    background: #000 !important;
    margin-bottom: 18px !important;
}

/* تصویر تمام بک‌گراند هیرو */
.service-detail-hero-overlay .service-detail-hero-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #000 !important;
    z-index: 1 !important;
}

.service-detail-hero-overlay .service-detail-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* لایه تیره برای خوانایی متن */
.service-detail-hero-overlay .service-detail-hero-image::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient( 90deg, rgba(7, 18, 35, 0.86) 0%, rgba(10, 28, 52, 0.72) 38%, rgba(10, 28, 52, 0.35) 65%, rgba(0, 0, 0, 0.10) 100% ), linear-gradient( 180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.35) 100% ) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* محتوای متنی روی تصویر */
.service-detail-hero-overlay .service-detail-hero-content {
    position: relative !important;
    z-index: 3 !important;
    min-height: 520px !important;
    max-width: 760px !important;
    padding: 42px 46px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: right !important;
}

/* متن‌ها */
.service-detail-hero-overlay .service-detail-desktop-breadcrumb,
.service-detail-hero-overlay .service-detail-desktop-breadcrumb a {
    color: rgba(255, 255, 255, 0.88) !important;
}

.service-detail-hero-overlay .service-detail-hero-content h1 {
    color: #fff !important;
    font-size: 2.2rem !important;
    line-height: 1.7 !important;
    margin-bottom: 14px !important;
}

.service-detail-hero-overlay .service-detail-summary {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem !important;
    line-height: 2.1 !important;
}

/* متاها */
.service-detail-hero-overlay .service-detail-meta span {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(6px);
}

.service-detail-hero-overlay .service-detail-meta i {
    color: #fff !important;
}

/* دکمه دوم روی عکس */
.service-detail-hero-overlay .service-detail-secondary-btn {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

    .service-detail-hero-overlay .service-detail-secondary-btn:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.20) !important;
    }

/* دسته‌بندی */
.service-detail-hero-overlay .service-detail-category {
    z-index: 4 !important;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991px) {
    .service-detail-hero.service-detail-hero-overlay {
        min-height: 420px !important;
        border-radius: 22px !important;
    }

    .service-detail-hero-overlay .service-detail-hero-content {
        min-height: 420px !important;
        max-width: 100% !important;
        padding: 26px 20px !important;
    }

        .service-detail-hero-overlay .service-detail-hero-content h1 {
            font-size: 1.35rem !important;
            line-height: 1.8 !important;
        }

    .service-detail-hero-overlay .service-detail-summary {
        font-size: 0.9rem !important;
        line-height: 2 !important;
    }

    .service-detail-hero-overlay .service-detail-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
        gap: 10px !important;
    }
}

@media (max-width: 520px) {
    .service-detail-hero.service-detail-hero-overlay {
        min-height: 380px !important;
    }

    .service-detail-hero-overlay .service-detail-hero-content {
        min-height: 380px !important;
        padding: 22px 16px !important;
    }

    .service-detail-hero-overlay .service-detail-actions {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Mobile Hero Image Fit Fix
   حذف فضای خالی تصویر در ویوی موبایل
========================================================= */

@media (max-width: 991px) {
    .service-detail-hero.service-detail-hero-overlay {
        position: relative !important;
        display: block !important;
        min-height: 430px !important;
        height: auto !important;
        overflow: hidden !important;
        background: #000 !important;
    }

    .service-detail-hero-overlay .service-detail-hero-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        aspect-ratio: auto !important;
        background: #000 !important;
        overflow: hidden !important;
    }

        .service-detail-hero-overlay .service-detail-hero-image img,
        .service-detail-hero-overlay .service-detail-hero-img {
            width: 100% !important;
            height: 100% !important;
            min-width: 100% !important;
            min-height: 100% !important;
            object-fit: cover !important;
            object-position: center center !important;
            display: block !important;
        }

    .service-detail-hero-overlay .service-detail-hero-content {
        position: relative !important;
        z-index: 3 !important;
        min-height: 430px !important;
    }
}

@media (max-width: 520px) {
    .service-detail-hero.service-detail-hero-overlay {
        min-height: 400px !important;
    }

    .service-detail-hero-overlay .service-detail-hero-content {
        min-height: 400px !important;
    }
}