
/* =========================================
   Single Service - Full Width Layout
========================================= */

:root {
    --imm-primary: #EAB12B;
    --imm-primary-hover: #D99E18;
    --imm-primary-light: #FFF6DF;
    --imm-primary-dark: #B98412;

    --imm-text: #30434D;
    --imm-text-muted: #69777D;
    --imm-heading: #30434D;

    --imm-background: #FFFFFF;
    --imm-surface: #F5F6F6;
    --imm-surface-hover: #ECEFF0;

    --imm-border: #B4BBC0;
    --imm-border-light: #E8EBED;

    --imm-shadow: 0 8px 25px rgba(35, 49, 57, 0.10);

    --imm-footer-bg: #29395D;
    --imm-footer-bg-deep: #263657;

    --imm-font: "yekan-bakh-fn", "IRANYekan", Tahoma, sans-serif;
}

/* جلوگیری از ایجاد اسکرول افقی */
body.single-service {
    overflow-x: clip;
}

body.single-service .imm-single-service-fullwidth,
body.single-service .imm-single-service-fullwidth * {
    box-sizing: border-box;
}

body.single-service .imm-single-service-fullwidth {
    direction: rtl;
    position: relative;

    width: 100vw;
    max-width: none;

    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);

    padding: 0;
    background: var(--imm-background);
    color: var(--imm-text);

    font-family: var(--imm-font);
    text-align: right;
}

/* =========================================
   Independent Full Width Header
========================================= */

body.single-service .imm-service-page-header {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    width: 100%;
    max-width: none;
    min-height: 245px;

    margin: 0;
    padding: 48px clamp(22px, 5vw, 90px);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(234, 177, 43, 0.13),
            transparent 28%
        ),
        linear-gradient(
            115deg,
            #263657 0%,
            #29395D 58%,
            #34486B 100%
        );

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.single-service .imm-service-page-header::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: 270px;
    height: 270px;

    left: -80px;
    top: -130px;

    border: 1px solid rgba(234, 177, 43, 0.25);
    border-radius: 50%;
}

body.single-service .imm-service-page-header::after {
    content: "";
    position: absolute;
    z-index: -1;

    width: 190px;
    height: 190px;

    left: -35px;
    top: -90px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

body.single-service .imm-service-header-inner {
    position: relative;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.single-service .imm-service-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0 0 25px;
    padding: 0;

    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.9;
}

body.single-service .imm-service-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.single-service .imm-service-breadcrumb a:hover {
    color: var(--imm-primary);
}

body.single-service .imm-service-breadcrumb-separator {
    color: var(--imm-primary);
    opacity: 0.9;
}

body.single-service .imm-service-breadcrumb-current {
    color: #FFFFFF;
}

body.single-service .imm-service-header-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 12px;
    padding: 0;

    color: var(--imm-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

body.single-service .imm-service-header-label::before {
    content: "";
    display: inline-block;

    width: 22px;
    height: 2px;

    background: var(--imm-primary);
    border-radius: 3px;
}

body.single-service .imm-service-page-title {
    margin: 0;
    padding: 0;

    color: #FFFFFF;
    font-family: var(--imm-font);
    font-size: clamp(27px, 3vw, 43px);
    font-weight: 800;
    line-height: 1.6;

    border: 0;
    box-shadow: none;
    background: transparent;
}

body.single-service .imm-service-title-line {
    display: block;

    width: 62px;
    height: 4px;

    margin-top: 20px;

    background: var(--imm-primary);
    border-radius: 10px;
}

/* =========================================
   Main Content - True Full Width
========================================= */

body.single-service .imm-service-main {
    display: block;

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 55px clamp(22px, 5vw, 90px) 85px;

    background: var(--imm-background);
}

body.single-service .imm-service-layout {
    display: grid;

    /*
     * در حالت RTL:
     * ستون اول، سمت راست صفحه است؛ بنابراین سایدبار سمت راست قرار می‌گیرد.
     */
    grid-template-columns: 300px minmax(0, 1fr);

    align-items: start;
    gap: clamp(25px, 3vw, 48px);

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}

/* =========================================
   Services Sidebar
========================================= */

body.single-service .imm-service-sidebar {
    display: block;

    width: 100%;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 0;

    background: #FFFFFF;
    border: 1px solid var(--imm-border-light);
    border-radius: 16px;

    box-shadow: var(--imm-shadow);
    overflow: hidden;

    position: sticky;
    top: 25px;
}

body.single-service .imm-service-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 0;
    padding: 23px 20px;

    background: linear-gradient(
        135deg,
        #29395D,
        #34486B
    );

    border: 0;
}

body.single-service .imm-service-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    color: var(--imm-primary);
    background: rgba(234, 177, 43, 0.13);
    border: 1px solid rgba(234, 177, 43, 0.25);
    border-radius: 12px;
}

body.single-service .imm-service-sidebar-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

body.single-service .imm-service-sidebar-heading h2 {
    margin: 0 0 4px;
    padding: 0;

    color: #FFFFFF;
    font-family: var(--imm-font);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.7;

    border: 0;
    background: transparent;
}

body.single-service .imm-service-sidebar-heading p {
    margin: 0;
    padding: 0;

    color: rgba(255, 255, 255, 0.70);
    font-family: var(--imm-font);
    font-size: 11px;
    line-height: 1.8;
}

body.single-service .imm-service-sidebar-list {
    list-style: none;

    width: 100%;
    margin: 0;
    padding: 10px;

    background: #FFFFFF;
}

body.single-service .imm-service-sidebar-list li {
    list-style: none;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;
}

body.single-service .imm-service-sidebar-list li + li {
    border-top: 1px solid #F0F1F2;
}

body.single-service .imm-service-sidebar-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    min-height: 53px;

    margin: 0;
    padding: 13px 12px;

    color: var(--imm-text);
    background: #FFFFFF;

    border: 0;
    border-radius: 9px;
    box-shadow: none;

    font-family: var(--imm-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;

    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding 0.2s ease;
}

body.single-service .imm-service-sidebar-link-text {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.single-service .imm-service-sidebar-arrow {
    display: block;
    flex: 0 0 18px;

    width: 18px;
    height: 18px;

    color: #A6ADB1;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

body.single-service .imm-service-sidebar-list li a:hover {
    padding-right: 17px;
    color: var(--imm-primary-dark);
    background: #FFFAED;
}

body.single-service .imm-service-sidebar-list li a:hover .imm-service-sidebar-arrow {
    color: var(--imm-primary-dark);
    transform: translateX(-3px);
}

body.single-service .imm-service-sidebar-list li.is-active > a {
    color: #29395D;
    background: var(--imm-primary-light);
    font-weight: 800;
}

body.single-service .imm-service-sidebar-list li.is-active > a::before {
    content: "";
    flex: 0 0 3px;
    align-self: stretch;

    width: 3px;
    min-height: 20px;

    order: 2;

    background: var(--imm-primary);
    border-radius: 5px;
}

body.single-service .imm-service-sidebar-list li.is-active .imm-service-sidebar-arrow {
    color: var(--imm-primary-dark);
}

body.single-service .imm-service-sidebar-empty {
    margin: 0;
    padding: 20px;

    color: var(--imm-text-muted);
    font-family: var(--imm-font);
    font-size: 13px;
    line-height: 2;
}

/* =========================================
   Main Article
========================================= */

body.single-service .imm-service-content {
    display: block;

    width: 100%;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: var(--imm-text);
    background: #FFFFFF;

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.single-service .imm-service-featured-image {
    display: block;

    width: 100%;
    margin: 0 0 32px;
    padding: 0;

    overflow: hidden;
    border-radius: 16px;
    background: var(--imm-surface);
}

body.single-service .imm-service-featured-image img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 16px;
    box-shadow: none;
    object-fit: cover;
}

body.single-service .imm-service-content-body {
    width: 100%;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: var(--imm-text);
    font-family: var(--imm-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 2.2;

    overflow-wrap: anywhere;
}

body.single-service .imm-service-content-body > :first-child {
    margin-top: 0;
}

body.single-service .imm-service-content-body > :last-child {
    margin-bottom: 0;
}

body.single-service .imm-service-content-body p {
    margin: 0 0 22px;
    padding: 0;

    color: var(--imm-text);
    font-family: var(--imm-font);
    font-size: 16px;
    line-height: 2.2;
}

body.single-service .imm-service-content-body h2 {
    position: relative;

    margin: 38px 0 20px;
    padding: 0 17px 0 0;

    color: var(--imm-heading);
    font-family: var(--imm-font);
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 800;
    line-height: 1.8;

    border: 0;
    background: transparent;
    box-shadow: none;
}

body.single-service .imm-service-content-body h2::before {
    content: "";
    position: absolute;

    right: 0;
    top: 10px;

    width: 4px;
    height: 28px;

    background: var(--imm-primary);
    border-radius: 5px;
}

body.single-service .imm-service-content-body h3 {
    margin: 30px 0 15px;
    padding: 0;

    color: var(--imm-heading);
    font-family: var(--imm-font);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.9;

    border: 0;
    background: transparent;
    box-shadow: none;
}

body.single-service .imm-service-content-body h4 {
    margin: 25px 0 12px;
    padding: 0;

    color: var(--imm-heading);
    font-family: var(--imm-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
}

body.single-service .imm-service-content-body ul,
body.single-service .imm-service-content-body ol {
    margin: 0 0 25px;
    padding-right: 25px;
    padding-left: 0;
}

body.single-service .imm-service-content-body li {
    margin-bottom: 10px;
    padding-right: 3px;

    color: var(--imm-text);
    line-height: 2.1;
}

body.single-service .imm-service-content-body a {
    color: var(--imm-primary-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.single-service .imm-service-content-body a:hover {
    color: var(--imm-primary-hover);
}

body.single-service .imm-service-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

body.single-service .imm-service-content-body blockquote {
    margin: 25px 0;
    padding: 20px 24px;

    color: var(--imm-text);
    background: #FFFAED;

    border: 0;
    border-right: 4px solid var(--imm-primary);
    border-radius: 10px;
}

body.single-service .imm-service-content-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

body.single-service .imm-service-content-body th,
body.single-service .imm-service-content-body td {
    padding: 12px 15px;
    border: 1px solid var(--imm-border-light);
    text-align: right;
    vertical-align: top;
}

body.single-service .imm-service-content-body th {
    background: var(--imm-surface);
    color: var(--imm-heading);
    font-weight: 800;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1024px) {
    body.single-service .imm-service-main {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    body.single-service .imm-service-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 24px;
    }

    body.single-service .imm-service-page-header {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    body.single-service .imm-service-page-header {
        min-height: auto;
        padding: 32px 20px 36px;
    }

    body.single-service .imm-service-breadcrumb {
        gap: 7px;
        margin-bottom: 22px;
        font-size: 12px;
    }

    body.single-service .imm-service-page-title {
        font-size: 27px;
        line-height: 1.7;
    }

    body.single-service .imm-service-main {
        padding: 28px 18px 45px;
    }

    body.single-service .imm-service-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    body.single-service .imm-service-sidebar {
        position: static;
        order: 0;
    }

    body.single-service .imm-service-content {
        order: 1;
    }

    body.single-service .imm-service-sidebar-heading {
        padding: 18px 16px;
    }

    body.single-service .imm-service-sidebar-list {
        padding: 8px;
    }

    body.single-service .imm-service-content-body,
    body.single-service .imm-service-content-body p {
        font-size: 15px;
        line-height: 2.15;
    }

    body.single-service .imm-service-content-body h2 {
        margin-top: 30px;
        font-size: 22px;
    }

    body.single-service .imm-service-content-body h3 {
        font-size: 19px;
    }

    body.single-service .imm-service-featured-image {
        margin-bottom: 24px;
        border-radius: 12px;
    }

    body.single-service .imm-service-featured-image img {
        border-radius: 12px;
    }
}
