@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-UltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-DemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MiladClinicSans';
    src: url('../fonts/MiladClinicSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MiladClinicSans';
    src: url('../fonts/MiladClinicSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'IRANYekanX', Tahoma, sans-serif;
    direction: rtl;
    margin: 0;
}

body.ipd-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

input, button, textarea, select {
    font-family: inherit;
}

html[dir="ltr"] body {
    direction: ltr;
}

html[lang^="en"] body {
    font-family: 'MiladClinicSans', 'Segoe UI', Arial, sans-serif;
}

html[lang^="fa"] body {
    font-family: 'IRANYekanX', Tahoma, sans-serif;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1100;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

    .main-header.is-scrolled {
        background-color: rgba(212, 234, 255, 1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

.stat-item {
    text-align: center;
}

    .stat-item img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.main-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    position: relative;
}

    .main-menu a {
        text-decoration: none;
        color: #000;
        font-weight: 900;
        font-size: 22px;
        padding: 8px 14px;
        border-radius: 8px;
        border: 2px solid transparent;
        transform: scale(0.8);
        transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    }

        .main-menu a:hover {
            color: #2a7fff;
            background-color: #fff;
            border-color: #fff;
            transform: scale(1);
        }

* {
    box-sizing: border-box;
}

.hero-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 68px;
    box-sizing: border-box;
    margin-top: 20px;
}

.hero {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

    .hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

.stats-box {
    position: relative;
    margin: -35px auto 106px auto;
    width: calc(100% - 220px);
    height: 160px;
    background-color: #fff;
    border-radius: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #3498db;
    gap: 15px;
    flex-direction: row-reverse;
}

    .stat-item .text {
        display: flex;
        flex-direction: column;
        margin: 0;
        text-align: right;
    }

    .stat-item .number {
        font-size: 22px;
        padding-left: 5px
    }

    .stat-item .title {
        font-size: 22px;
        font-weight: 500;
    }

    .stat-item img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }

.divider {
    width: 2px;
    background-color: #3498db;
    margin: 20px 10px;
    align-self: stretch;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 70px;
    width: 100%;
    right: 0;
    background: #fff;
    padding: 20px 450px;
    z-index: 999;
    border-radius: 0;
}

.mega-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
    font-size: 29px;
    font-weight: bold;
}

.mega-menu .divider-line {
    height: 1px;
    background-color: #ccc;
    margin: 10px 0;
    width: 1060px;
    position: relative;
}


.mega-content {
    display: flex;
    justify-content: flex-start;
    gap: 204px;
    margin-top: 26px;
    position: relative;
}

    .mega-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }


    .mega-content li {
        padding: 6px 0;
        font-size: 16px;
        line-height: 1.8;
        cursor: pointer;
    }

        .mega-content li:hover {
            color: #2a7fff;
        }

.close-area {
    cursor: pointer;
    color: #555;
    font-size: 18px;
    position: absolute;
    left: 400px;
}

    .close-area:hover {
        color: #005f8d;
    }

.services-banner {
    background: linear-gradient(180deg,#0b93ff 0%, #0b7fe6 100%);
    padding: 80px 0 140px 0;
    color: #fff;
    position: relative;
}

.services-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.services-banner-top {
    padding: 10px 0
}

.services-banner-text {
    text-align: right
}

    .services-banner-text h2 {
        font-size: 34px;
        margin: 0 0 12px;
        font-weight: 800
    }

    .services-banner-text p {
        max-width: 920px;
        opacity: 0.95;
        line-height: 1.9;
        margin: 0;
        color: rgba(255,255,255,0.95);
        font-size: 15px
    }

.services-cards-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 34px;
    margin-top: -110px;
    padding-bottom: 40px
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 30px 60px rgba(3,12,34,0.12);
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 380px;
    position: relative;
    z-index: 20
}

    .service-card .card-image {
        width: 170px;
        height: 170px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f6f9fc;
        padding: 16px
    }

        .service-card .card-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain
        }

.card-body {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1
}

.card-desc {
    font-size: 14px;
    color: #6b7280;
    min-height: 64px;
    margin: 6px 0
}

.card-btn {
    display: inline-block;
    margin-top: 14px;
    background: #0b93ff;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(11,147,255,0.18)
}

.service-card:nth-child(2) .card-image, .service-card:nth-child(4) .card-image {
    background: #fff
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(3,12,34,0.18)
}

.services-cards-wrapper {
    position: relative;
    z-index: 10
}

.services-banner:after {
    content: '';
    display: block;
    height: 40px
}

@media (max-width:1100px) {
    .services-cards {
        grid-template-columns: repeat(2,1fr);
        gap: 22px;
        margin-top: -70px
    }
}

@media (max-width:700px) {
    .services-banner {
        padding: 60px 0 80px 0
    }

    .services-cards {
        grid-template-columns: 1fr;
        margin-top: -40px
    }
}

html[dir="rtl"] .services-banner {
    direction: rtl
}

.hero-inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    text-align: center;
    min-width: 110px;
}

    .stat strong {
        display: block;
        color: #0b93ff;
        font-size: 18px;
    }

    .stat span {
        font-size: 13px;
        color: #555;
    }


.ipd-header-bar {
    background: transparent;
    padding: 12px 24px;
    height: 65px;
    position: relative;
    z-index: 1305;
    box-shadow: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

    .ipd-header-bar.is-scrolled {
        background: rgba(212, 234, 255, 1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

.ipd-body.ipd-service-mode .ipd-topbar-hero-wrap,
.ipd-body.ipd-service-mode .ipd-topbar,
.ipd-body.ipd-service-mode .ipd-topbar.is-scrolled {
    background: rgba(240, 238, 234, 1);
    box-shadow: none;
}

.ipd-header-inner {
    margin: 0 auto;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ipd-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

.ipd-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.ipd-header-bar .ipd-icon-svg {
    color: #1f5fa8;
    opacity: 0.95;
}

.ipd-icon-svg {
    flex: none;
    flex-grow: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0.95;
}

.ipd-contact-item .ipd-icon-svg {
    width: 15px;
    height: 15px;
}

    .ipd-contact-item .ipd-icon-svg svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.ipd-header-sep {
    width: 0;
    height: 65px;
    border-left: 0.75px dashed rgba(31, 95, 168, 0.4);
    flex: none;
    order: 0;
    flex-grow: 0;
    align-self: center;
}

.ipd-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #1f5fa8;
    font-size: 14px;
    font-weight: 500;
    direction: rtl;
}

.ipd-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ipd-contact-icon-img {
    width: 25px;
    height: 25px;
    padding: 4px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(31, 95, 168, 0.2);
    object-fit: contain;
    display: block;
}

.lang-dropdown {
    position: relative;
}

.lang-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #1f5fa8;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

    .lang-trigger:hover,
    .lang-trigger[aria-expanded="true"] {
        background: rgba(31, 95, 168, 0.12);
    }

    .lang-trigger .ipd-icon-svg.ipd-icon-globe-btn,
    .lang-trigger .ipd-icon-globe-btn {
        width: 32px;
        height: 32px;
        display: block;
        object-fit: contain;
    }

        .lang-trigger .ipd-icon-svg.ipd-icon-globe-btn svg {
            width: 32px;
            height: 32px;
        }

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 90px;
    padding: 6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
}

.lang-dropdown.open .lang-menu {
    display: flex;
}

.lang-menu .lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    text-align: center;
    color: #1f5fa8;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-menu .lang-btn:hover,
.lang-menu .lang-btn.active {
    background: rgba(41,152,255,0.15);
    color: #1f5fa8;
}

.ipd-body .ipd-page-bg {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ipd-topbar-hero-wrap {
    background: transparent;
}

.ipd-body .ipd-topbar-hero-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ipd-topbar {
    padding: 18px 0 14px 0;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1200;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.ipd-topbar.is-scrolled {
    background: rgba(212, 234, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    margin: 0 auto;
    max-width: 95%;
    padding: 0 24px;
}

.ipd-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 32px;
    background: #fff;
    border-radius: 20px;
}

.ipd-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

    .ipd-nav a,
    .ipd-nav .ipd-nav-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 700;
        padding: 10px 18px;
        font-size: 14px;
        color: #267ACC;
        border-radius: 10px;
        text-align: center;
        transition: background 0.2s, color 0.2s;
        border: none;
        background: transparent;
        font-family: inherit;
        cursor: pointer;
    }

        .ipd-nav a.active,
        .ipd-nav a:hover,
        .ipd-nav .ipd-nav-trigger.active,
        .ipd-nav .ipd-nav-trigger:hover {
            background: #2998ff;
            color: #fff;
            box-shadow: 0 4px 12px rgba(11,147,255,0.25);
        }

.ipd-nav-item {
    position: relative;
}
.ipd-nav-trigger[data-nav-key="services"]:hover + .submenu,
.ipd-nav-trigger[data-nav-key="services"]:hover ~ .submenu {
    display: block !important;
}

.ipd-nav-dropdown {
    min-width: 250px;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(31, 95, 168, 0.16);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(3, 12, 34, 0.15);
    padding: 8px;
    display: none;
    z-index: 1300;
}

.ipd-nav-item.is-open .ipd-nav-dropdown {
    display: block;
    margin-top: 9px;
}

.ipd-nav-item.is-open .ipd-nav-dropdown.ipd-nav-dropdown-services {
    display: flex;
    margin-top: 9px;
}

.ipd-menu-action {
    width: 100%;
    border: none;
    background: #fff;
    color: #267ACC;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ipd-menu-action:hover {
    background: rgba(41, 152, 255, 0.12);
}

.ipd-menu-parent {
    color: #267ACC;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 14px;
}

.ipd-menu-parent-toggle {
    width: 100%;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    cursor: pointer;
    text-align: start;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ipd-menu-parent-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    margin-inline-start: auto;
    transition: transform 0.2s ease;
    transform: rotate(45deg);
}

html[dir="ltr"] .ipd-menu-parent-toggle::after {
    transform: rotate(45deg);
}

html[dir="rtl"] .ipd-menu-parent-toggle::after {
    transform: rotate(-135deg);
}

.ipd-menu-parent-toggle:hover,
.ipd-menu-parent-toggle.is-active {
    background: rgba(41, 152, 255, 0.12);
}

.ipd-nav-dropdown-services {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    gap: 10px;
    align-items: flex-start;
}

.ipd-services-parent-list {
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(31, 95, 168, 0.16);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(3, 12, 34, 0.15);
}

.ipd-services-parent-list .ipd-menu-parent + .ipd-menu-parent {
    margin-top: 4px;
}

.ipd-services-side-panel {
    display: none;
    min-width: 220px;
    margin-top: 0;
    transition: margin-top 0.18s ease;
}


.ipd-services-side-panel.is-visible {
    display: block;
/*    width: 100%;*/
}

.ipd-services-side-box {
    display: none;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(31, 95, 168, 0.16);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(3, 12, 34, 0.15);
}

.ipd-services-side-box.is-open {
    display: block;
}

.ipd-menu-child {
    width: 100%;
    margin-inline-start: 0;
    justify-content: flex-start;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 12px;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-inline-start: 12px;
    padding: 6px;
    background: #f4f7fb;
    border-radius: 999px;
}

.lang-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #1f5fa8;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

    .lang-btn.active,
    .lang-btn:hover {
        background: #2998ff;
        color: #fff;
        border-color: #2998ff;
        box-shadow: 0 6px 16px rgba(11,147,255,0.18);
    }

.ipd-page-bg {
    min-height: 100vh;
    position: relative;
    padding-top: 0;
    background: linear-gradient(1.07deg, #FFFFFF 5.77%, rgba(56, 159, 255, 0.534368) 156.33%, rgba(41, 152, 255, 0.5) 173.49%);
    background-size: 100% 950px;
    background-repeat: no-repeat;
    background-position: 0 0;
}


@media (max-width:800px) {
    .ipd-nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center
    }

    .ipd-nav-item {
        position: static;
    }

    .ipd-nav-dropdown {
        top : 92%;
        right: auto;
        left: 70%;
        transform: translateX(-50%);
/*        width: min(360px, calc(100vw - 48px));*/
    }

    .ipd-nav-dropdown-services {
/*        flex-direction: column;*/
        width: min(360px, calc(100vw - 48px));
    }

    .ipd-services-parent-list,
    .ipd-services-side-panel,
    .ipd-services-side-box {
        min-width: 0;
        width: 100%;
    }

    .ipd-topbar {
        padding: 18px 0 8px
    }
}

@media screen and (max-device-width: 800px) {
    .ipd-nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ipd-nav-item {
        position: static;
    }

    .ipd-nav-dropdown {
        right: auto;
        left: 66%;
        transform: translateX(-50%);
/*        width: min(360px, calc(100vw - 20px));*/
    }

    .ipd-nav-dropdown-services {
        flex-direction: row;
        left: 43%;
        top: 92%;
        width: min(360px, calc(100vw - 48px));
    }

    .ipd-services-parent-list,
    .ipd-services-side-panel,
    .ipd-services-side-box {
        min-width: 0;
    }
}


.hero-ipd {
    padding: 60px 0 40px;
    background: transparent;
    position: relative;
}

    .hero-ipd::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(31,95,168,0.15);
        z-index: 0;
        pointer-events: none;
        box-shadow: 0 0 0 0 rgba(31,95,168,0.15), 18px 0 0 0 rgba(31,95,168,0.15), 36px 0 0 0 rgba(31,95,168,0.15), 54px 0 0 0 rgba(31,95,168,0.15), 72px 0 0 0 rgba(31,95,168,0.15), 90px 0 0 0 rgba(31,95,168,0.15), 108px 0 0 0 rgba(31,95,168,0.15), 126px 0 0 0 rgba(31,95,168,0.15), 144px 0 0 0 rgba(31,95,168,0.15), 0 18px 0 0 rgba(31,95,168,0.15), 18px 18px 0 0 rgba(31,95,168,0.15), 36px 18px 0 0 rgba(31,95,168,0.15), 54px 18px 0 0 rgba(31,95,168,0.15), 72px 18px 0 0 rgba(31,95,168,0.15), 90px 18px 0 0 rgba(31,95,168,0.15), 108px 18px 0 0 rgba(31,95,168,0.15), 126px 18px 0 0 rgba(31,95,168,0.15), 144px 18px 0 0 rgba(31,95,168,0.15), 0 36px 0 0 rgba(31,95,168,0.15), 18px 36px 0 0 rgba(31,95,168,0.15), 36px 36px 0 0 rgba(31,95,168,0.15), 54px 36px 0 0 rgba(31,95,168,0.15), 72px 36px 0 0 rgba(31,95,168,0.15), 90px 36px 0 0 rgba(31,95,168,0.15), 108px 36px 0 0 rgba(31,95,168,0.15), 126px 36px 0 0 rgba(31,95,168,0.15), 0 54px 0 0 rgba(31,95,168,0.15), 18px 54px 0 0 rgba(31,95,168,0.15), 36px 54px 0 0 rgba(31,95,168,0.15), 54px 54px 0 0 rgba(31,95,168,0.15), 72px 54px 0 0 rgba(31,95,168,0.15), 90px 54px 0 0 rgba(31,95,168,0.15), 108px 54px 0 0 rgba(31,95,168,0.15), 126px 54px 0 0 rgba(31,95,168,0.15), 36px 72px 0 0 rgba(31,95,168,0.15), 54px 72px 0 0 rgba(31,95,168,0.15), 72px 72px 0 0 rgba(31,95,168,0.15), 90px 72px 0 0 rgba(31,95,168,0.15);
    }

.hero-ipd-inner {
    margin: 0 100px;
    display: flex;
    gap: 150px;
    flex-direction: row-reverse;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-top: 0;
    margin:140px -100px 60px 128px;
}

    .hero-text h1 {
        font-size: 32px;
        color: #1f5fa8;
        margin: 10px 0 16px 0;
        text-shadow: 0 2px 6px rgba(31,95,168,0.25);
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 16px;
        line-height: 1.9;
        max-width: 100%;
        color: #333;
        margin-top: 20px;
    }

.hero-image {
    flex: 1;
    position: relative;
    margin-right: 224px
}

    .hero-image img {
        width: 100%;
        height: 650px;
        object-fit: cover;
        border-radius: 12px 68px;
        border: 6px solid white;

    }

.glass {
    position: absolute;
    width: 243px;
    height: 90px;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid white;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
}

html[dir="ltr"] .glass {
    text-align: left;
    align-items: revert;
}

.glass strong {
    display: block;
    font-size: 23px;
    color: #0b93ff;
}

.glass span {
    font-size: 23px;
    color: #333;
    font-weight: 600;
}

/* surgery */
.stat-1 {
    top: 53px;
    left: -160px;
}

/* patient satisfaction */
.stat-2 {
    top: 400px;
    right: -70px;
}

/* beds */
.stat-3 {
    bottom: 53px;
    left: -160px;
}

.ipd-white {
    background: #fff;
    padding: 56px 0 48px;
}

.ipd-white-inner {
    margin: 100px 360px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 144px;
    align-items: stretch;
}


.ipd-white-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ipd-white-title {
    font-size: 25px;
    font-weight: 800;
    color: #1f5fa8;
    line-height: 1.4;
    margin-top:80px;
}

.ipd-white-desc {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    margin: 0;
    text-align: justify;
}

.ipd-white-image {
    position: relative;
    isolation: isolate;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0px 2px 8px 0px rgba(41, 152, 255, 1);
    margin-top: 70px;
    align-self: start;
}

.ipd-white-image::before,
.ipd-white-image::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D4EAFF;
    pointer-events: none;
    z-index: -1;
    box-shadow: 0 0 0 0 rgba(31, 95, 168, 0.15), 18px 0 0 0 rgba(31, 95, 168, 0.15), 36px 0 0 0 rgba(31, 95, 168, 0.15), 54px 0 0 0 rgba(31, 95, 168, 0.15), 72px 0 0 0 rgba(31, 95, 168, 0.15), 90px 0 0 0 rgba(31, 95, 168, 0.15), 108px 0 0 0 rgba(31, 95, 168, 0.15), 126px 0 0 0 rgba(31, 95, 168, 0.15), 144px 0 0 0 rgba(31, 95, 168, 0.15), 162px 0 0 0 rgba(31, 95, 168, 0.15), 0 18px 0 0 rgba(31, 95, 168, 0.15), 18px 18px 0 0 rgba(31, 95, 168, 0.15), 36px 18px 0 0 rgba(31, 95, 168, 0.15), 54px 18px 0 0 rgba(31, 95, 168, 0.15), 72px 18px 0 0 rgba(31, 95, 168, 0.15), 90px 18px 0 0 rgba(31, 95, 168, 0.15), 108px 18px 0 0 rgba(31, 95, 168, 0.15), 126px 18px 0 0 rgba(31, 95, 168, 0.15), 144px 18px 0 0 rgba(31, 95, 168, 0.15), 162px 18px 0 0 rgba(31, 95, 168, 0.15), 0 36px 0 0 rgba(31, 95, 168, 0.15), 18px 36px 0 0 rgba(31, 95, 168, 0.15), 36px 36px 0 0 rgba(31, 95, 168, 0.15), 0 54px 0 0 rgba(31, 95, 168, 0.15), 18px 54px 0 0 rgba(31, 95, 168, 0.15), 0 72px 0 0 rgba(31, 95, 168, 0.15), 18px 72px 0 0 rgba(31, 95, 168, 0.15), 0 90px 0 0 rgba(31, 95, 168, 0.15), 18px 90px 0 0 rgba(31, 95, 168, 0.15), 0 108px 0 0 rgba(31, 95, 168, 0.15), 18px 108px 0 0 rgba(31, 95, 168, 0.15), 0 126px 0 0 rgba(31, 95, 168, 0.15), 18px 126px 0 0 rgba(31, 95, 168, 0.15), 0 144px 0 0 rgba(31, 95, 168, 0.15), 18px 144px 0 0 rgba(31, 95, 168, 0.15);
}

.ipd-white-image::before {
    top: -42px;
    left: -42px;
}

.ipd-white-image::after {
    right: -42px;
    bottom: -42px;
    transform: scale(-1);
}

    .ipd-white-image img {
        width: 100%;
        height: auto;
        display: block;
        vertical-align: bottom;
        border-radius: 12px;
    }

.ipd-white-cert {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipd-cert-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: block;
}

.ipd-cert-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    background: #ffffff;
    border: 1px solid #e2ecf8;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: block;
}

.ipd-cert-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ipd-team-section {
    position: relative;
    background: #fff;
    padding: 56px 24px 64px;
    padding-top: 48px;
    margin-top: 0;
    overflow: hidden;
}

.ipd-team-decor {
    content: "";
    position: absolute;
    right: 0;
    top: 150px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(31,95,168,0.15);
    z-index: 0;
    pointer-events: none;
    transform: scaleX(-1) scaleY(-1);
    box-shadow: 0 0 0 0 rgba(31,95,168,0.15), 18px 0 0 0 rgba(31,95,168,0.15), 36px 0 0 0 rgba(31,95,168,0.15), 54px 0 0 0 rgba(31,95,168,0.15), 72px 0 0 0 rgba(31,95,168,0.15), 90px 0 0 0 rgba(31,95,168,0.15), 108px 0 0 0 rgba(31,95,168,0.15), 126px 0 0 0 rgba(31,95,168,0.15), 144px 0 0 0 rgba(31,95,168,0.15), 0 18px 0 0 rgba(31,95,168,0.15), 18px 18px 0 0 rgba(31,95,168,0.15), 36px 18px 0 0 rgba(31,95,168,0.15), 54px 18px 0 0 rgba(31,95,168,0.15), 72px 18px 0 0 rgba(31,95,168,0.15), 90px 18px 0 0 rgba(31,95,168,0.15), 108px 18px 0 0 rgba(31,95,168,0.15), 126px 18px 0 0 rgba(31,95,168,0.15), 144px 18px 0 0 rgba(31,95,168,0.15), 0 36px 0 0 rgba(31,95,168,0.15), 18px 36px 0 0 rgba(31,95,168,0.15), 36px 36px 0 0 rgba(31,95,168,0.15), 54px 36px 0 0 rgba(31,95,168,0.15), 72px 36px 0 0 rgba(31,95,168,0.15), 90px 36px 0 0 rgba(31,95,168,0.15), 108px 36px 0 0 rgba(31,95,168,0.15), 126px 36px 0 0 rgba(31,95,168,0.15), 0 54px 0 0 rgba(31,95,168,0.15), 18px 54px 0 0 rgba(31,95,168,0.15), 36px 54px 0 0 rgba(31,95,168,0.15), 54px 54px 0 0 rgba(31,95,168,0.15), 72px 54px 0 0 rgba(31,95,168,0.15), 90px 54px 0 0 rgba(31,95,168,0.15), 108px 54px 0 0 rgba(31,95,168,0.15), 126px 54px 0 0 rgba(31,95,168,0.15), 36px 72px 0 0 rgba(31,95,168,0.15), 54px 72px 0 0 rgba(31,95,168,0.15), 72px 72px 0 0 rgba(31,95,168,0.15), 90px 72px 0 0 rgba(31,95,168,0.15);
}

.ipd-team-inner {
    margin: 200px 250px 0px 250px;
    position: relative;
    z-index: 1;
}

.ipd-team-title {
    font-size: 30px;
    font-weight: 800;
    color: rgba(0, 76, 178, 1);
    text-align: center;
    line-height: 1.35;
}

.ipd-team-desc {
    font-size: 18px;
    line-height: 1.9;
    text-align: justify;
    margin: 58px 135px;
    text-align: center;
}

.ipd-team-contact-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 26px 18px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ipd-team-contact-card > * {
    margin: 0;
}

.ipd-team-contact-card > * + * {
    margin-top: 16px;
}

.ipd-team-contact-role {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #1e1e1e;
    line-height: 1.35;
}

.ipd-team-contact-name {
    margin: 0;
    font-size: 21px;
    font-weight: 500;
    color: #202020;
    line-height: 1.5;
}

.ipd-team-contact-row {
    margin: 0;
    padding-block: 2px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ipd-team-contact-label {
    font-size: 20px;
    font-weight: 500;
    color: #1f1f1f;
    line-height: 1.45;
}

.ipd-team-contact-value {
    font-size: 18px;
    font-weight: 400;
    color: #262626;
    line-height: 1.45;
    word-break: break-word;
}

.ipd-team-contact-value-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    margin-right: 18px;
}

.ipd-team-website-label {
    margin-right: 18px;
}

.ipd-team-address-label {
    margin-right: 18px;
}

.ipd-team-slider {
    width: 100%;
}

.ipd-team-cards-viewport {
    overflow: hidden;
    width: 100%;
}

.ipd-team-cards {
    display: flex;
    gap: 60px;
    padding:15px 140px;
    transition: transform 0.35s ease;
    will-change: transform;
}

.ipd-team-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 16, 0.25);
    flex: 0 0 calc((100% - 48px) / 3);
    gap: 10px;
}

.ipd-team-card > * + * {
    margin-top: 14px;
}

    .ipd-team-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

.ipd-team-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid #eee;
    background: linear-gradient(180deg, #e8f4fc 0%, #c5e0f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

    .ipd-team-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.ipd-team-card-placeholder {
    display: none;
    font-size: 2rem;
    font-weight: 700;
    color: #5ba3e8;
}

.ipd-team-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    flex: 1;
}

.ipd-team-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #333;
    margin-bottom: 0;
}

.ipd-team-card-spec {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 0;
}

.ipd-team-card-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 0;
}

    .ipd-team-card-btn:hover {
        background: rgba(41, 88, 255, 1);
        color: #fff;
    }

.ipd-team-controls {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 36px;
}

.ipd-team-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(41, 152, 255, 1);
    color: #fff;
    font-size: 56px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

    .ipd-team-arrow span {
        display: inline-block;
        line-height: 1;
        font-size: 43px;
        font-weight: 800;
        transform: translateY(5px);
    }

.ipd-team-arrow-prev span {
    transform: translateY(-5px) scaleY(-1);
}

.ipd-team-arrow-next span {
    transform: translateY(4px) scaleX(-1);
}

html[dir="ltr"] .ipd-team-arrow-prev span {
    transform: translateY(-1px) scaleX(-1);
}

html[dir="ltr"] .ipd-team-arrow-next span {
    transform: translateY(-1px) scaleY(-1);
}

.ipd-team-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 992px) {
    .ipd-team-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 576px) {
    .ipd-team-cards {
        gap: 20px;
    }

    .ipd-team-card {
        flex-basis: 100%;
    }

    .ipd-team-arrow {
        width: 72px;
        height: 72px;
        font-size: 42px;
    }
}

.ipd-divider-section {
    background: transparent;
    padding: 0 24px;
    margin-top: 100px;
    margin-bottom: 100px;
}

.ipd-divider {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    direction: ltr;
}

.ipd-divider-line {
    flex: 1;
    height: 2px;
    border-radius: 1px;
}

.ipd-divider-line-left {
    background: linear-gradient(90deg, transparent 0%, rgba(41, 152, 255, 0.25) 50%, #2998FF 100%);
}

.ipd-divider-line-right {
    background: linear-gradient(90deg, #2998FF 0%, rgba(41, 152, 255, 0.25) 50%, transparent 100%);
}

.ipd-divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2998FF;
    flex-shrink: 0;
    margin: 0 2px;
}

.ipd-divider-title {
    margin: 0 12px;
    padding: 14px 36px;
    background: #fff;
    color: #1f5fa8;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    .ipd-divider-title:hover {
        color: #1d4ed8;
        box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
    }

@media (max-width: 900px) {
    .ipd-white-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

        .ipd-white-inner .ipd-white-text {
            order: 1;
        }
        
        .ipd-white-inner .ipd-white-image {
            order: 2;
            margin-top: 0;
        }

        .ipd-white-inner .ipd-white-cert {
            order: 3;
        }
}

@media screen and (max-device-width: 900px) {
    .ipd-white-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 80px;
        text-align: center;
    }

    .ipd-white-inner .ipd-white-text {
        order: 1;
    }

    .ipd-white-inner .ipd-white-image {
        order: 2;
        margin-top: 50px;
    }

    .ipd-white-inner .ipd-white-cert {
        order: 3;
    }
}

@media (max-width: 768px) {
    .ipd-white-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }

        .ipd-white-inner .ipd-white-text {
            grid-column: 1 / -1;
        }

        .ipd-white-inner .ipd-white-image {
            grid-column: 1 / -1;
            justify-self: center;
            width: 50%;
        }
}

@media screen and (max-device-width: 768px) {
    .ipd-white-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }

    .ipd-white-inner .ipd-white-text {
        grid-column: 1 / -1;
    }

    .ipd-white-inner .ipd-white-image {
        grid-column: 1 / -1;
        justify-self: center;
        width: 50%;
    }
}

.equipment-cards-section {
    width: 100%;
    background: url('../images/ipd/equipment-cards-section.webp') center center / cover no-repeat;
}

.equipment-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 100px 48px;
    margin: 75px 318px;
}

.equipment-card {
    background: #f4f4f4;
    width: 278px;
    height: 426px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 24px rgba(25, 49, 86, 0.12);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.equipment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 28px rgba(25, 49, 86, 0.18);
}

.equipment-card-text-box {
    min-height: 62px;
    position: absolute;
    top: 28px;
    left: 41px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.equipment-card-image {
    width: 270px;
    height: 248px;
    position: absolute;
    top: 174px;
    left: 4px;
    overflow: hidden;
    border-radius: 20px;
}

.equipment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.equipment-card-title {
    font-family: IRANYekanX, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    text-align: right;
    color: #111111;
    margin: 0;
}

.equipment-card-subtitle {
    font-family: IRANYekanX, sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    text-align: right;
    color: #6f6f6f;
    margin: 0;
}

.equipment-card-btn {
    height: 34px;
    position: absolute;
    top: 132px;
    left: 14px;
    border: 0;
    border-radius: 20px;
    background: #2f93f6;
    color: #ffffff;
    font-family: IRANYekanX, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    text-align: right;
    padding: 0 14px 0 42px;
    cursor: pointer;
}

.equipment-card-btn::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.equipment-card-btn::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid #2f93f6;
    border-right: 2px solid #2f93f6;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(225deg);
}

.equipment-card-btn:hover {
    background: #1986ef;
}

@media (max-width: 900px) {
    .equipment-cards-section {
        padding: 40px 28px 48px;
    }

    .equipment-cards-container {
        gap: 22px;
    }
}

@media (max-width: 560px) {
    .equipment-cards-section {
        padding: 32px 16px 40px;
    }

    .equipment-cards-container {
        gap: 14px;
    }
}

/* Mobile-first fallback: keep equipment cards swipeable even if JS toggle is unavailable. */
@media (max-width: 768px) {
    .equipment-cards-section {
        padding: 32px 16px 40px;
    }

    .equipment-cards-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding: 0 4px 12px;
        touch-action: auto;
    }

    .equipment-cards-container::-webkit-scrollbar {
        display: none;
    }

    .equipment-cards-container .equipment-card {
        flex: 0 0 min(86vw, 278px);
        min-width: min(86vw, 278px);
        max-width: 278px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

.equipment-cards-container.equipment-cards-mobile-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 80px;
    padding: 0 4px 12px;
    cursor: grab;
    touch-action: pan-y;
}

    .equipment-cards-container.equipment-cards-mobile-slider .equipment-card {
        flex: 0 0 min(86vw, 278px);
        min-width: min(86vw, 278px);
        max-width: 278px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .equipment-cards-container.equipment-cards-mobile-slider::-webkit-scrollbar {
        display: none;
    }

    .equipment-cards-container.equipment-cards-mobile-slider.is-dragging {
        cursor: grabbing;
    }

html[dir="ltr"] .hero-text,
html[dir="ltr"] .hero-text h1,
html[dir="ltr"] .hero-text p,
html[dir="ltr"] .ipd-white-text,
html[dir="ltr"] .ipd-white-title,
html[dir="ltr"] .ipd-white-desc,
html[dir="ltr"] .ipd-features-inner,
html[dir="ltr"] .ipd-contact-inner,
html[dir="ltr"] .features-grid {
    text-align: left;
}

html[dir="ltr"] .hero-image {
    margin-left: 170px;
}

html[dir="ltr"] .hero-ipd-inner {
    flex-direction: row-reverse;
    gap: 0;
}

html[dir="ltr"] .hero-text {
    margin-right: 0;
    margin-left: 32px;
}

html[dir="ltr"] .ipd-header-inner {
    flex-direction: row-reverse;
}

html[dir="ltr"] .lang-menu {
    right: auto;
    left: 0;
}

html[dir="ltr"] .ipd-team-title,
html[dir="ltr"] .ipd-team-desc {
    text-align: center;
}

html[dir="ltr"] .ipd-team-inner {
    margin: 200px auto 0;
}

html[dir="ltr"] .ipd-team-desc {
    margin: 0 auto 40px;
}

html[dir="ltr"] .equipment-card-title,
html[dir="ltr"] .equipment-card-subtitle {
    text-align: left;
}

html[dir="ltr"] .equipment-card-btn {
    text-align: left;
    padding: 0 42px 0 14px;
}

html[dir="ltr"] .equipment-card-btn::before {
    left: auto;
    right: 3px;
}

html[dir="ltr"] .equipment-card-btn::after {
    left: auto;
    right: 13px;
    transform: translateY(-50%) rotate(45deg);
}

html[dir="ltr"] .amenities-title,
html[dir="ltr"] .amenities-desc {
    text-align: center;
}


html[dir="ltr"] .ipd-divider-title {
    margin-left: 12px;
    margin-right: 12px;
}

.amenities-section {
    padding: 56px 24px 64px;
    margin-top: 48px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.ipd-amenities-decor {
    content: "";
    position: absolute;
    left: 0;
    bottom: 74px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(31,95,168,0.15);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(31,95,168,0.15), 18px 0 0 0 rgba(31,95,168,0.15), 36px 0 0 0 rgba(31,95,168,0.15), 54px 0 0 0 rgba(31,95,168,0.15), 72px 0 0 0 rgba(31,95,168,0.15), 90px 0 0 0 rgba(31,95,168,0.15), 108px 0 0 0 rgba(31,95,168,0.15), 126px 0 0 0 rgba(31,95,168,0.15), 144px 0 0 0 rgba(31,95,168,0.15), 0 18px 0 0 rgba(31,95,168,0.15), 18px 18px 0 0 rgba(31,95,168,0.15), 36px 18px 0 0 rgba(31,95,168,0.15), 54px 18px 0 0 rgba(31,95,168,0.15), 72px 18px 0 0 rgba(31,95,168,0.15), 90px 18px 0 0 rgba(31,95,168,0.15), 108px 18px 0 0 rgba(31,95,168,0.15), 126px 18px 0 0 rgba(31,95,168,0.15), 144px 18px 0 0 rgba(31,95,168,0.15), 0 36px 0 0 rgba(31,95,168,0.15), 18px 36px 0 0 rgba(31,95,168,0.15), 36px 36px 0 0 rgba(31,95,168,0.15), 54px 36px 0 0 rgba(31,95,168,0.15), 72px 36px 0 0 rgba(31,95,168,0.15), 90px 36px 0 0 rgba(31,95,168,0.15), 108px 36px 0 0 rgba(31,95,168,0.15), 126px 36px 0 0 rgba(31,95,168,0.15), 0 54px 0 0 rgba(31,95,168,0.15), 18px 54px 0 0 rgba(31,95,168,0.15), 36px 54px 0 0 rgba(31,95,168,0.15), 54px 54px 0 0 rgba(31,95,168,0.15), 72px 54px 0 0 rgba(31,95,168,0.15), 90px 54px 0 0 rgba(31,95,168,0.15), 108px 54px 0 0 rgba(31,95,168,0.15), 126px 54px 0 0 rgba(31,95,168,0.15), 36px 72px 0 0 rgba(31,95,168,0.15), 54px 72px 0 0 rgba(31,95,168,0.15), 72px 72px 0 0 rgba(31,95,168,0.15), 90px 72px 0 0 rgba(31,95,168,0.15);
}

.amenities-dots-pattern {
    position: absolute;
    right: 62.3%;
    top: 22%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D4EAFF;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(31, 95, 168, 0.15), 18px 0 0 0 rgba(31, 95, 168, 0.15), 36px 0 0 0 rgba(31, 95, 168, 0.15), 54px 0 0 0 rgba(31, 95, 168, 0.15), 72px 0 0 0 rgba(31, 95, 168, 0.15), 90px 0 0 0 rgba(31, 95, 168, 0.15), 108px 0 0 0 rgba(31, 95, 168, 0.15), 126px 0 0 0 rgba(31, 95, 168, 0.15), 144px 0 0 0 rgba(31, 95, 168, 0.15), 162px 0 0 0 rgba(31, 95, 168, 0.15), 0 18px 0 0 rgba(31, 95, 168, 0.15), 18px 18px 0 0 rgba(31, 95, 168, 0.15), 36px 18px 0 0 rgba(31, 95, 168, 0.15), 54px 18px 0 0 rgba(31, 95, 168, 0.15), 72px 18px 0 0 rgba(31, 95, 168, 0.15), 90px 18px 0 0 rgba(31, 95, 168, 0.15), 108px 18px 0 0 rgba(31, 95, 168, 0.15), 126px 18px 0 0 rgba(31, 95, 168, 0.15), 144px 18px 0 0 rgba(31, 95, 168, 0.15), 162px 18px 0 0 rgba(31, 95, 168, 0.15), 0 36px 0 0 rgba(31, 95, 168, 0.15), 18px 36px 0 0 rgba(31, 95, 168, 0.15), 36px 36px 0 0 rgba(31, 95, 168, 0.15), 0 54px 0 0 rgba(31, 95, 168, 0.15), 18px 54px 0 0 rgba(31, 95, 168, 0.15), 0 72px 0 0 rgba(31, 95, 168, 0.15), 18px 72px 0 0 rgba(31, 95, 168, 0.15), 0 90px 0 0 rgba(31, 95, 168, 0.15), 18px 90px 0 0 rgba(31, 95, 168, 0.15), 0 108px 0 0 rgba(31, 95, 168, 0.15), 18px 108px 0 0 rgba(31, 95, 168, 0.15), 0 126px 0 0 rgba(31, 95, 168, 0.15), 18px 126px 0 0 rgba(31, 95, 168, 0.15), 0 144px 0 0 rgba(31, 95, 168, 0.15), 18px 144px 0 0 rgba(31, 95, 168, 0.15);
}

html[dir="ltr"] .amenities-dots-pattern {
    right: 61%;
    top: 21.5%;
}

.amenities-inner {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.amenities-title {
    font-size: 30px;
    font-weight: 800;
    color: rgba(0, 25, 128, 1);
    text-align: center;
    margin: 0 0 8px;
}

.amenities-desc {
    font-size: 18px;
    text-align: center;
    margin: 20px 0 40px;
    line-height: 1.6;
}

.amenities-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px 16%;
    margin-top: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin-top: 85px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    font-size: 17px;
    color: #267ACC;
    line-height: 1.5;
}

    .amenities-list li {
        display: flex;
        align-items: center;
        gap: 32px;
    }

.amenities-list-right li {
    flex-direction: row-reverse;
}

.amenities-list-left li {
    flex-direction: row;
}

.amenities-item-icon {
    flex-shrink: 0;
    line-height: 0;
}

    .amenities-item-icon img {
        display: block;
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

.amenities-list-right {
    text-align: center;
}

.amenities-list-left {
    text-align: center;
    margin-right: -2%;
}

.amenities-stack {
    position: relative;
    height: 400px;
    padding: 0 0 48px;
    margin-top: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amenities-card {
    position: absolute;
    width: 333px;
    height: 500px;
    left: 50%;
    top: 39.5%;
    margin-left: -150px;
    margin-top: -180px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, z-index 0s;
    pointer-events: none;
}

    .amenities-card.in-front {
        z-index: 2;
        transform: translate(0, -50%);
        pointer-events: auto;
    }

    .amenities-card.in-back {
        z-index: 1;
        transform: translate(-24px, calc(-50% - 24px));
        opacity: 1;
    }

    .amenities-card.behind {
        z-index: 0;
        transform: translate(-24px, calc(-50% - 24px));
        opacity: 0;
    }

.amenities-slide-inner {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: #f0f4f8;
}

    .amenities-slide-inner img {
        width: 333px;
        height: 500px;
        object-fit: cover;
        display: block;
        vertical-align: bottom;
    }

.ipd-placeholder-section {
    background: transparent;
}

.ipd-placeholder-inner {
    margin: 0 auto;
    background: url('../images/ipd/ipd-placeholder-inner.webp') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 318px;
}

.ipd-placeholder-card {
    width: 100%;
    min-height: 382px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.ipd-placeholder-content {
    order: 2;
    border-radius: 8px;
    padding: 34px 38px 28px;
    display: flex;
    flex-direction: column;
}

.ipd-placeholder-title {
    margin: 0;
    color: #0f172a;
    font-size: 37px;
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
}

.ipd-placeholder-text {
    margin: 36px 0 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.8;
    text-align: right;
}

.ipd-placeholder-btn {
    margin-top: auto;
    align-self: flex-end;
    min-width: 240px;
    padding: 14px 28px;
    border-radius: 12px;
    background: #2f91e9;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    transition: background-color 0.2s ease;
}

.ipd-placeholder-btn:hover {
    background: #1e79cc;
    color: #ffffff;
}

.ipd-placeholder-image-wrap {
    order: 1;
    border-radius: 18px;
    overflow: hidden;
}

.ipd-placeholder-image {
    width: 541px;
    height: 405px;
    min-height: 382px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

html[dir="ltr"] .ipd-placeholder-title,
html[dir="ltr"] .ipd-placeholder-text {
    text-align: left;
}

.ipd-testimonials-section {
    width: 100%;
    margin-top: 354px;
    padding: 0 0 48px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.ipd-testimonials-inner {
    max-width: 100%;
    margin: 0 auto;
}

.ipd-testimonials-divider {
    max-width: calc(100% - 64px);
    padding: 0;
}

.ipd-testimonials-divider-title {
    margin: 0 14px;
    min-width: 260px;
    padding: 14px 44px;
    border: 1.5px solid #5aa9ff;
    background: #f8fcff;
    color: #0b4da2;
    box-shadow: none;
    text-align: center
}

    .ipd-testimonials-divider-title:hover {
        color: #0b4da2;
        box-shadow: none;
    }

.ipd-testimonials-title {
    margin: 0;
    text-align: center;
    color: #0b4da2;
    font-size: 38px;
    font-weight: 800;
}

.ipd-testimonials-desc {
    margin: 38px auto 44px;
    text-align: center;
    color: #111827;
    font-size: 26px;
    line-height: 1.9;
    max-width: 88%;
}

.ipd-testimonials-rail {
    overflow: hidden;
}

.ipd-testimonials-track {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 10px 32px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    margin-top: 68px;
}

.ipd-testimonial-card {
    width: 520px;
    flex: 0 0 auto;
    min-height: 196px;
    background: #fff;
    padding: 0 126px 16px 18px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 0 20px rgba(0, 0, 0, 0.12);
    scroll-snap-align: start;
    position: relative;
}

.ipd-testimonial-head {
    margin-top: 42px;
}

.ipd-testimonial-name {
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    text-align: right;
    line-height: 1.4;
    display: block;
}

.ipd-testimonial-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #dbeafe;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

    .ipd-testimonial-avatar::before {
        content: "";
        position: absolute;
        top: 15px;
        left: 50%;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #3b82f6;
        transform: translateX(-50%);
    }

    .ipd-testimonial-avatar::after {
        content: "";
        position: absolute;
        bottom: 13px;
        left: 50%;
        width: 60px;
        height: 30px;
        border-radius: 30px 30px 15px 15px;
        background: #3b82f6;
        transform: translateX(-50%);
    }

.ipd-testimonial-text {
    margin-top: 18px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.9;
    text-align: right;
}

html[dir="ltr"] .ipd-testimonial-name,
html[dir="ltr"] .ipd-testimonial-text {
    text-align: left;
}

html[dir="ltr"] .ipd-testimonial-card {
    padding: 0 18px 16px 126px;
}

html[dir="ltr"] .ipd-testimonial-avatar {
    left: 18px;
    right: auto;
}

.ipd-testimonials-track.is-dragging {
    cursor: grabbing;
}

@media (max-width: 992px) {
    .ipd-placeholder-section {
        height: auto;
    }

    .ipd-team-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ipd-team-contact-card {
        min-height: 0;
        padding: 18px 14px;
    }

    .ipd-team-contact-role {
        font-size: 24px;
    }

    .ipd-team-contact-name {
        font-size: 20px;
    }

    .ipd-team-contact-label,
    .ipd-team-contact-value {
        font-size: 18px;
    }

    .ipd-placeholder-inner {
        height: auto;
        padding: 32px 18px;
    }

    .ipd-placeholder-card {
        max-width: 760px;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ipd-placeholder-content {
        padding: 22px 18px 20px;
    }

    .ipd-placeholder-title {
        font-size: 30px;
    }

    .ipd-placeholder-text {
        margin-top: 20px;
        font-size: 20px;
        line-height: 1.8;
    }

    .ipd-placeholder-btn {
        margin-top: 24px;
        min-width: 180px;
        font-size: 16px;
        padding: 12px 18px;
    }

    .ipd-placeholder-image {
        min-height: 260px;
        max-height: 320px;
    }

    .ipd-testimonials-section {
        margin-top: 180px;
        padding-bottom: 30px;
    }

    .ipd-testimonials-title {
        font-size: 32px;
    }

    .ipd-testimonials-divider {
        max-width: calc(100% - 24px);
    }

    .ipd-testimonials-divider-title {
        min-width: 200px;
        padding: 12px 28px;
        font-size: 24px;
    }

    .ipd-testimonials-desc {
        margin-top: 26px;
        font-size: 20px;
        max-width: 92%;
    }

    .ipd-testimonials-track {
        gap: 20px;
        padding: 10px 18px 14px;
    }

    .ipd-testimonial-card {
        width: 360px;
        min-height: 176px;
        padding: 14px 104px 14px 14px;
    }

    .ipd-testimonial-name {
        font-size: 20px;
        top: 20px;
    }

    .ipd-testimonial-avatar {
        width: 70px;
        height: 70px;
        right: 14px;
        top: 60px;
    }

    .ipd-testimonial-head {
        top: 60px;
        margin-top: 0px;
    }

    .ipd-team-inner {
        margin: 200px 10px 0px 10px;
    }

    html[dir="ltr"] .ipd-testimonial-card {
        padding: 14px 14px 14px 104px;
    }

    html[dir="ltr"] .ipd-testimonial-avatar {
        left: 14px;
        right: auto;
    }

        .ipd-testimonial-avatar::before {
            top: 12px;
            width: 27px;
            height: 27px;
        }

        .ipd-testimonial-avatar::after {
            bottom: 10px;
            width: 50px;
            height: 24px;
            border-radius: 25px 25px 12px 12px;
        }

    .ipd-testimonial-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .ipd-placeholder-section {
        height: auto;
    }

    .ipd-team-contact-grid {
        grid-template-columns: 1fr;
    }

    .ipd-team-contact-role {
        font-size: 20px;
    }

    .ipd-team-contact-name {
        font-size: 18px;
    }

    .ipd-team-contact-label,
    .ipd-team-contact-value {
        font-size: 15px;
    }

    .ipd-placeholder-inner {
        padding: 16px 12px;
    }

    .ipd-placeholder-content {
        padding: 16px 14px 14px;
    }

    .ipd-placeholder-title {
        font-size: 24px;
        line-height: 1.45;
    }

    .ipd-placeholder-text {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.8;
    }

    .ipd-placeholder-btn {
        width: 100%;
        min-width: 0;
        font-size: 14px;
        padding: 10px 14px;
    }

    .ipd-placeholder-image {
        min-height: 200px;
        max-height: 240px;
    }

    .ipd-testimonials-divider {
        max-width: calc(100% - 8px);
    }

    .ipd-testimonials-divider-title {
        min-width: 150px;
        padding: 10px 18px;
        font-size: 18px;
    }

    .ipd-testimonials-section {
        margin-top: 120px;
        padding-bottom: 24px;
    }

    .ipd-testimonials-track {
        gap: 12px;
        padding: 8px 12px 14px;
    }

    .ipd-testimonial-card {
        width: calc(100vw - 44px);
        min-height: 160px;
        padding: 12px 88px 12px 12px;
    }

    .ipd-testimonial-name {
        margin-top: 20px;
    }

    .ipd-testimonial-avatar {
        width: 66px;
        height: 66px;
        right: 12px;
        margin-top: 20px;
    }

    html[dir="ltr"] .ipd-testimonial-card {
        padding: 12px 12px 12px 88px;
    }

    html[dir="ltr"] .ipd-testimonial-avatar {
        left: 12px;
        right: auto;
    }

        .ipd-testimonial-avatar::before {
            top: 10px;
            width: 22px;
            height: 22px;
        }

        .ipd-testimonial-avatar::after {
            bottom: 8px;
            width: 42px;
            height: 20px;
            border-radius: 21px 21px 10px 10px;
        }

    .ipd-testimonial-text {
        font-size: 14px;
        line-height: 1.85;
    }
}
@media (max-width: 992px) {
    .ipd-page-bg {
        background-size: 100% 1000px;
    }

    .hero-ipd .hero-ipd-inner {
        flex-direction: column-reverse !important;
        gap: 24px;
    }

    html[dir="ltr"] .hero-ipd .hero-ipd-inner {
        flex-direction: column-reverse !important;
    }

    .hero-ipd .hero-image {
        order: 1;
        max-width: 85%;
        margin: 0 auto;
    }

        .hero-ipd .hero-image img {
            max-height: 380px;
            width: 100%;
            object-fit: cover;
        }

    .hero-ipd .hero-text {
        order: 2;
        margin: 50px
    }
    .ipd-team-cards {
        padding: 20px;
    }
    html[dir="ltr"] .hero-ipd .hero-text {
        margin-left: 0;
    }

    .amenities-section .amenities-dots-pattern {
        right: 72% !important;
        top: 23% !important;
    }

    html[dir="ltr"] .amenities-section .amenities-dots-pattern {
        right: auto !important;
        left: 29% !important;
    }

    .hero-ipd .hero-image .stat-2,
    .hero-ipd .stat-2.glass {
        top: 150px !important;
    }

    .amenities-row {
        gap: 50px 29%;
    }

    .amenities-list {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .ipd-page-bg {
        background-size: 100% 1000px;
    }

    .hero-ipd .hero-ipd-inner {
        flex-direction: column-reverse !important;
        gap: 24px;
    }

    html[dir="ltr"] .hero-ipd .hero-ipd-inner {
        flex-direction: column-reverse !important;
    }

    .hero-ipd .hero-image {
        order: 1;
        max-width: 90%;
        margin: 0 auto;
    }

        .hero-ipd .hero-image img {
            max-height: 280px;
            width: 100%;
            object-fit: cover;
        }

        .hero-ipd .hero-image .stat-2,
        .hero-ipd .stat-2.glass,
        .hero-ipd .stat-2 {
            top: 150px !important;
        }

    .hero-ipd .hero-text {
        order: 2;
        margin-right: 0;
    }

    .amenities-section {
        padding: 40px 16px 48px;
    }

    .amenities-inner {
        max-width: 100% !important;
    }

    .amenities-title {
        font-size: 20px !important;
    }

    .amenities-desc {
        font-size: 14px !important;
        margin: 12px 0 24px;
    }

    .amenities-item-icon img {
        width: 32px !important;
        height: 32px !important;
    }

    .amenities-row {
        flex-direction: column;
        margin-top: 24px;
        gap: 50px 29%;
    }

    .amenities-list {
        max-width: 100%;
        text-align: center;
        font-size: 16px !important;
    }

        .amenities-list li {
            gap: 16px !important;
        }

    .amenities-list-right,
    .amenities-list-left {
        text-align: center;
    }

    html[dir="ltr"] .amenities-list-right,
    html[dir="ltr"] .amenities-list-left {
        text-align: center;
    }

    .amenities-stack {
        height: 360px;
        order: 1;
    }

    .amenities-list-right {
        order: 2;
    }

    .amenities-list-left {
        order: 3;
    }

    .amenities-card {
        width: 260px;
        margin-left: -130px;
        margin-top: -140px;
    }

    .amenities-dots-pattern {
        right: 72% !important;
        top: 23% !important;
    }

    html[dir="ltr"] .amenities-dots-pattern {
        right: auto !important;
        left: 29% !important;
    }

    .amenities-card.in-back,
    .amenities-card.behind {
        transform: translate(-18px, calc(-50% - 18px));
    }

    html[dir="ltr"] .amenities-card.in-back,
    html[dir="ltr"] .amenities-card.behind {
        transform: translate(18px, calc(-50% - 18px));
    }

    .amenities-slide-inner img {
        width: 200px;
        height: 260px;
        object-fit: cover;
    }
}

.ipd-footer {
    margin-top: auto;
    margin-bottom: 0;
    padding: 78px 48px 64px;
    color: #ffffff;
    background: rgba(0, 16, 52, 1);
    border-top: 4px solid #1695f5;
}

.ipd-footer-inner {
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(560px, 1.15fr);
    gap: 56px;
    align-items: start;
    direction: ltr;
}

.ipd-footer-map-column {
    width: 100%;
}

.ipd-footer-map-wrap {
    width: 100%;
    padding: 0;
    border: 2px solid rgba(16, 161, 255, 0.95);
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}

.ipd-footer-map {
    width: 100%;
    height: 398px;
    border-radius: 4px;
    overflow: hidden;
}

.ipd-footer-content {
    direction: rtl;
    text-align: right;
}

.ipd-footer-contact-list {
    max-width: 100%;
}

.ipd-footer-contact-item {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.9;
    font-weight: 400;
}

.ipd-footer-contact-label {
    font-weight: 500;
}

.ipd-footer-contact-value {
    font-weight: 400;
    word-break: break-word;
    unicode-bidi: plaintext;
}

.ipd-contact-ltr-value {
    direction: ltr;
    display: inline-block;
}

.ipd-footer-links-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    direction: rtl;
}

.ipd-footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ipd-footer-links-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
}

.ipd-footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    width: fit-content;
}

.ipd-footer-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.85);
}

.ipd-footer-link-static {
    border-bottom: 0;
    cursor: default;
    pointer-events: none;
}

.ipd-footer-map-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ipd-footer-map-action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(41, 152, 255, 1);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(41, 152, 255, 1);
    border-radius: 16px;
    padding: 14px 12px;
    line-height: 1.2;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ipd-footer-map-action:hover,
.ipd-footer-map-action:focus-visible {
    background: rgba(41, 152, 255, 1);
    color: #ffffff;
}

.ipd-footer-map .leaflet-control-attribution {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 4px;
}

html[dir="ltr"] .ipd-footer-content {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .ipd-footer-links-grid {
    direction: ltr;
}

html[dir="ltr"] .ipd-footer-link {
    width: fit-content;
}

html[dir="ltr"] .ipd-footer-map-actions {
    justify-content: flex-start;
}

@media (max-width: 992px) {
    .ipd-footer {
        margin-top: auto;
        padding: 28px 16px 34px;
    }

    .ipd-footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .ipd-footer-map {
        height: 300px;
    }

    .ipd-footer-map-actions {
        margin-top: 10px;
    }

    .ipd-footer-map-action {
        min-height: 56px;
        font-size: 10px;
    }

    .ipd-footer-contact-item {
        font-size: 15px;
        line-height: 1.85;
        margin-bottom: 10px;
    }

    .ipd-footer-links-grid {
        margin-top: 24px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .ipd-footer-links-title {
        font-size: 15px;
    }

    .ipd-footer-link {
        font-size: 13px;
        line-height: 1.6;
    }
}

.ipd-service-page {
    background: rgba(240, 238, 234, 1);
    padding: 24px 0 58px;
}

.ipd-service-grid {
    margin: 0 318px;
    display: grid;
    grid-template-columns: 964px 340px;
    gap: 28px;
    align-items: start;
    direction: ltr;
}

.ipd-service-left-column,
.ipd-service-right-column {
    direction: rtl;
}

.ipd-service-left-column {
    width: 964px;
    display: grid;
    gap: 16px;
}

.ipd-service-hero-panel,
.ipd-service-description-card,
.ipd-service-side-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
}

.ipd-service-hero-panel,
.ipd-service-description-card {
    width: 964px;
}

.ipd-service-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 430px;
    background: rgba(33, 33, 33, 1);
    border-radius: 18px;
    overflow: hidden;
    direction: ltr;
}

.ipd-service-hero-image-pane {
    min-height: 100%;
    grid-column: 1;
}

.ipd-service-hero-image {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.ipd-service-hero-image-right {
    object-position: right center;
}

.ipd-service-hero-overlay {
    grid-column: 2;
    background: rgba(33, 33, 33, 1);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 34px;
    text-align: right;
}

.ipd-service-hero-kicker {
    margin: 0 0 12px;
    font-size: 38px;
    font-weight: 700;
}

.ipd-service-hero-title {
    margin: 0;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
}

.ipd-service-description-card {
    background: rgba(245, 245, 245, 1);
}

.ipd-service-content {
    padding: 100px 30px;
    color: #222;
    font-size: 18px;
    line-height: 1.95;
}

.ipd-service-content p {
    margin: 0;
}

.ipd-service-heading {
    margin: 34px 0 10px;
    font-size: 28px;
    color: #267ACC;
    font-weight: 800;
}

.ipd-service-right-column {
    width: 340px;
    display: grid;
    gap: 16px;
}

.ipd-service-side-card {
    width: 340px;
    overflow: hidden;
}

.ipd-service-search-card {
    padding: 0 0 12px;
}

.ipd-service-side-title {
    margin: 0;
    background: linear-gradient(180deg, #315cff 0%, #2d53eb 100%);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    padding: 12px 14px;
    text-align: center;
}

.ipd-service-search-card .ipd-service-side-title,
.ipd-service-summary-card .ipd-service-side-title {
    font-size: 20px;
    font-weight: 600;
}

.ipd-service-search-dropdown {
    position: relative;
    padding: 14px;
}

.ipd-service-search-trigger {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    background: #2998ff;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 14px 0 34px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    text-align: right;
}

.ipd-service-search-trigger::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-58%) rotate(45deg);
    transition: transform 0.18s ease;
}

.ipd-service-search-dropdown.is-open .ipd-service-search-trigger::before {
    transform: translateY(-35%) rotate(225deg);
}

.ipd-service-search-menu {
    display: none;
    margin-top: 8px;
    background: #fff;
    border: 1px solid rgba(31, 95, 168, 0.16);
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(3, 12, 34, 0.12);
    overflow: hidden;
}

.ipd-service-search-dropdown.is-open .ipd-service-search-menu {
    display: block;
}

.ipd-service-search-item {
    display: block;
    width: 100%;
    padding: 11px 12px;
    text-decoration: none;
    color: #1f2d3d;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ipd-service-search-item + .ipd-service-search-item {
    border-top: 1px solid rgba(15, 47, 89, 0.08);
}

.ipd-service-search-item:hover {
    background: rgba(123, 92, 255, 0.14);
    color: rgba(123, 92, 255, 1);
}

.ipd-service-search-item:focus-visible {
    outline: none;
    background: rgba(123, 92, 255, 0.16);
    color: rgba(123, 92, 255, 1);
}

.ipd-service-mini-info-card {
    padding: 14px;
}

.ipd-subservice-slider {
    position: relative;
    overflow: hidden;
}

.ipd-subservice-track {
    display: flex;
    transition: transform 0.55s ease;
    direction: ltr;
}

.ipd-subservice-slide {
    flex: 0 0 100%;
    padding: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ipd-subservice-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(41, 152, 255, 0.16);
}

.ipd-service-mini-image-wrap {
    border-radius: 16px;
    overflow: hidden;
}

.ipd-service-mini-image {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
}

.ipd-service-mini-title {
    margin: 10px 0 4px;
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    color: #1d2a3a;
}

.ipd-service-mini-subtitle {
    margin: 0;
    text-align: right;
    font-size: 16px;
    color: #4d5a6b;
}

.ipd-service-bullets {
    margin: 10px 0 0;
    padding: 0 22px 0 0;
}

.ipd-service-bullets li {
    margin-bottom: 8px;
}

.ipd-service-download {
    margin-top: 12px;
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: #2998ff;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.ipd-service-download:hover {
    color: #fff;
    background: #1f82e0;
}

.ipd-service-summary-card {
    padding-bottom: 10px;
}

.ipd-service-summary-card .ipd-service-side-title {
    margin-bottom: 10px;
}

.ipd-service-summary-list {
    list-style: none;
    margin-top: 8px;
    padding: 33px 60px;
    display: grid;
    gap: 20px;
}

.ipd-service-summary-list li {
    padding: 0;
    color: #2d3a48;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.6;
}

.ipd-service-summary-list span {
    color: #267ACC;
    font-weight: 700;
}

.ipd-service-summary-list strong {
    color: #202a35;
    font-size: 13px;
    font-weight: 600;
}

html[dir="ltr"] .ipd-service-left-column,
html[dir="ltr"] .ipd-service-right-column {
    direction: ltr;
}

html[dir="ltr"] .ipd-service-content,
html[dir="ltr"] .ipd-service-content p,
html[dir="ltr"] .ipd-service-heading,
html[dir="ltr"] .ipd-service-mini-title,
html[dir="ltr"] .ipd-service-mini-subtitle,
html[dir="ltr"] .ipd-service-summary-list li,
html[dir="ltr"] .ipd-service-search-trigger,
html[dir="ltr"] .ipd-service-search-item {
    text-align: left;
}

html[dir="ltr"] .ipd-service-download { 
    text-align: center;
    padding-inline: 0;
}

.ipd-empty-service-page {
    background: rgba(240, 238, 234, 1);
    min-height: 70vh;
}

@media (max-width: 1400px) {
    .ipd-service-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .ipd-service-left-column,
    .ipd-service-hero-panel,
    .ipd-service-description-card {
        width: 100%;
    }

    .ipd-service-right-column,
    .ipd-service-side-card {
        width: 320px;
    }

    .ipd-service-content { font-size: 16px; }
    .ipd-service-heading { font-size: 24px; }
}

@media (max-width: 1100px) {
    .ipd-service-page {
        padding: 18px 0 34px;
    }

    .ipd-service-grid {
        margin: 0px;
        grid-template-columns: 1fr;
        gap: 14px;
        direction: rtl;
    }

    .ipd-service-right-column,
    .ipd-service-side-card {
        width: 100%;
    }

    .ipd-service-right-column {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important; 
        justify-content: center !important; 
        align-items: stretch !important; 
        width: 100% !important;
        padding: 10px !important;
    }

        .ipd-service-hero-image {
            min-height: 240px;
        }

    .ipd-service-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ipd-service-hero-image-pane,
    .ipd-service-hero-overlay {
    }

    .ipd-service-hero-overlay {
        padding: 16px;
    }

    .ipd-service-hero-kicker {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .ipd-service-hero-title {
        font-size: 32px;
    }

    .ipd-service-content {
        padding: 100px 30px;
        font-size: 16px;
    }

    .ipd-service-heading {
        margin-top: 18px;
        font-size: 19px;
    }

    .ipd-service-side-title {
        font-size: 18px;
    }

    .ipd-service-mini-info-card {
        padding: 18px 14px 26px;
    }

    .ipd-subservice-slide {
        min-height: 430px;
        display: flex;
        flex-direction: column;
    }

    .ipd-service-mini-image {
        height: 220px;
    }

    .ipd-service-mini-title {
        margin-top: 14px;
    }

    .ipd-service-mini-subtitle {
        min-height: 44px;
    }
}

.ipd-body.ipd-gallery-mode .ipd-topbar-hero-wrap,
.ipd-body.ipd-gallery-mode .ipd-topbar,
.ipd-body.ipd-gallery-mode .ipd-topbar.is-scrolled {
    background: #d8e3ee;
    box-shadow: none;
}

.ipd-body.ipd-gallery-mode .ipd-nav-wrapper {
    border: 2px solid rgba(41, 152, 255, 0.45);
    box-shadow: 0 8px 20px rgba(21, 86, 150, 0.12);
}

.ipd-gallery-page {
    position: relative;
    padding: 42px 0 70px;
    min-height: calc(100vh - 210px);
    background: #d8e3ee;
    overflow: hidden;
}

.ipd-gallery-container {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ipd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ipd-gallery-card {
    margin: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(29, 88, 145, 0.2);
    box-shadow: 0 10px 20px rgba(17, 60, 103, 0.12);
    background: #fff;
    aspect-ratio: 1 / 1;
}

.ipd-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(217, 217, 217, 0) 65.57%, #2998FF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ipd-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ipd-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: none;
}

.ipd-gallery-card:hover::after {
    opacity: 1;
}

.ipd-gallery-empty {
    margin: 0;
    padding: 30px 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(29, 88, 145, 0.2);
    border-radius: 14px;
    color: #1f5fa8;
    font-size: 15px;
    font-weight: 600;
}

.ipd-gallery-dots {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(31,95,168,0.15);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(31,95,168,0.15), 18px 0 0 0 rgba(31,95,168,0.15), 36px 0 0 0 rgba(31,95,168,0.15), 54px 0 0 0 rgba(31,95,168,0.15), 72px 0 0 0 rgba(31,95,168,0.15), 90px 0 0 0 rgba(31,95,168,0.15), 108px 0 0 0 rgba(31,95,168,0.15), 126px 0 0 0 rgba(31,95,168,0.15), 144px 0 0 0 rgba(31,95,168,0.15), 0 18px 0 0 rgba(31,95,168,0.15), 18px 18px 0 0 rgba(31,95,168,0.15), 36px 18px 0 0 rgba(31,95,168,0.15), 54px 18px 0 0 rgba(31,95,168,0.15), 72px 18px 0 0 rgba(31,95,168,0.15), 90px 18px 0 0 rgba(31,95,168,0.15), 108px 18px 0 0 rgba(31,95,168,0.15), 126px 18px 0 0 rgba(31,95,168,0.15), 144px 18px 0 0 rgba(31,95,168,0.15), 0 36px 0 0 rgba(31,95,168,0.15), 18px 36px 0 0 rgba(31,95,168,0.15), 36px 36px 0 0 rgba(31,95,168,0.15), 54px 36px 0 0 rgba(31,95,168,0.15), 72px 36px 0 0 rgba(31,95,168,0.15), 90px 36px 0 0 rgba(31,95,168,0.15), 108px 36px 0 0 rgba(31,95,168,0.15), 126px 36px 0 0 rgba(31,95,168,0.15), 0 54px 0 0 rgba(31,95,168,0.15), 18px 54px 0 0 rgba(31,95,168,0.15), 36px 54px 0 0 rgba(31,95,168,0.15), 54px 54px 0 0 rgba(31,95,168,0.15), 72px 54px 0 0 rgba(31,95,168,0.15), 90px 54px 0 0 rgba(31,95,168,0.15), 108px 54px 0 0 rgba(31,95,168,0.15), 126px 54px 0 0 rgba(31,95,168,0.15), 36px 72px 0 0 rgba(31,95,168,0.15), 54px 72px 0 0 rgba(31,95,168,0.15), 72px 72px 0 0 rgba(31,95,168,0.15), 90px 72px 0 0 rgba(31,95,168,0.15);
}
.ipd-gallery-dots-left {
    left: 14px;
    bottom: 80px;
}

@media (max-width: 1100px) {
    .ipd-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ipd-gallery-page {
        padding: 28px 0 40px;
    }

    .ipd-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ipd-gallery-dots {
        display: none;
    }
}

@media (max-width: 520px) {
    .ipd-gallery-container {
        width: calc(100% - 26px);
    }

    .ipd-gallery-grid {
        grid-template-columns: 1fr;
    }
}




    .ipd-team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.ipd-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

    .ipd-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ipd-card-content-right {
    width: 100%;
    text-align: right;
    padding-right: 5px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ipd-card-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.ipd-card-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 3px 0;
}

.ipd-card-role {
    font-size: 0.85rem;
    color: #3498db;
    margin-top: 25px;
}

/* لیست اطلاعات */
.ipd-card-info-list {
    width: 100%;
    text-align: right;
    padding-right: 5px;
    flex-grow: 1;
}

.ipd-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #555;
}

/* دکمه */
.ipd-card-action-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    width: 100%;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

    .ipd-card-action-btn:hover {
        background-color: #2980b9;
    }

/* تنظیمات بخش اصلی */
.doctors-section {
    max-width: 1200px;
    margin: 0 350px; 
    position: relative;
    padding: 20px 0 60px 0;
}

    /* دکوراسیون نقطه‌چین سمت چپ */
    .doctors-section::before {
        content: '';
        position: absolute;
        left: -350px; 
        top: 0;
        width: 100px;
        height: 300px;
        background-image: radial-gradient(#5cacee 4px, transparent 2px);
        background-size: 20px 20px;
        opacity: 0.5;
        z-index: -1;
    }

/* عنوان بخش */
.section-title {
    text-align: center;
    color: rgba(0, 76, 178, 1);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
}

/* گرید کارت‌ها */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    justify-content: center;
}

/* استایل کارت */
.doctor-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* برای انیمیشن محو شدن */
    transition: opacity 0.5s ease, transform 0.3s ease;
}

    .doctor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    /* حالت انتخاب شده */
    .doctor-card.active {
        border: 2px solid #0080ff;
    }

/* کلاس مخفی کردن کارت‌ها */
.hidden-card {
    display: none;
}

.show-card {
    display: flex; /* برگرداندن به حالت نمایش گرید */
}

.card-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.doctor-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 6px;
}

.doctor-specialty {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.btn-resume {
    background-color: rgba(41, 152, 255, 1);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-resume:hover {
        background-color: #1a7edb;
    }

/* لینک مشاهده بیشتر */
.see-more-container {
    text-align: center;
    margin-top: 50px;
}

.see-more-link {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    cursor: pointer;
}

    .see-more-link span {
        font-size: 1.2rem;
    }

/* تنظیمات واکنش‌گرا */
@media (max-width: 1200px) {
    .doctors-section::before {
        left: -50px;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-section::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   IPD Service Rate Page - FIXED VERSION 3
   ========================================= */

.ipd-service-rate-page {
    background-color: #fff;
}

.ipd-service-rate-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 70px 20px;
}

/* کارت اصلی */
.ipd-service-rate-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

    .ipd-service-rate-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    }

/* تصویر */
.ipd-service-rate-image-wrap {
    height: 180px;
    overflow: hidden;
}

.ipd-service-rate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* محتوای داخلی */
.ipd-service-rate-content {
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- HEADER (Title & Price) --- */
.ipd-service-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ipd-service-rate-title-group {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.ipd-service-rate-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2b3c;
    margin: 0;
    line-height: 1.2;
}

.ipd-service-rate-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.ipd-service-rate-price-box {
    text-align: left;
}

.ipd-service-rate-price {
    font-size: 22px;
    font-weight: 700;
    color: #1a2b3c;
}

/* --- USER FEEDBACK (👍 90% پیشنهاد کاربران) --- */
.ipd-service-rate-user-feedback {
    display: flex;
    justify-content: flex-end; /* چپ‌چین */
    margin-bottom: 10px;
}

.ipd-service-rate-feedback-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    direction: rtl;
}

.ipd-service-rate-thumb {
    color: #3b9bff;
    font-size: 16px;
}

.ipd-service-rate-percent {
    font-weight: bold;
    color: #1a2b3c;
}

.ipd-service-rate-feedback-text {
    color: #888;
}

/* --- SUMMARY ROW (چکیده درمان) - بدون خط زیر آن --- */
.ipd-service-rate-summary-row {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* راست‌چین */
    padding-bottom: 8px;
    margin-bottom: 10px;
    /* حذف border-bottom که خط اضافی ایجاد می‌کرد */
}

.ipd-service-rate-summary-label {
    font-size: 14px;
    color: #888;
    margin-left: 15px; /* فاصله از خط */
}

.ipd-service-rate-summary-line {
    flex-grow: 1;
    height: 1px;
    background-color: #e0e0e0;
}

/* --- INFO ROWS --- */
.ipd-service-rate-info {
    margin-bottom: 15px;
}

.ipd-service-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #333;
}

.ipd-service-rate-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.ipd-service-rate-value {
    color: #555;
}

/* آیکون چک مارک آبی دایره‌ای */
.ipd-service-rate-check {
    color: #fff;
    background-color: #3b9bff;
    border-radius: 50%;
    min-width: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

/* --- BUTTON --- */
.ipd-service-rate-footer {
    margin-top: auto;
}

.ipd-service-rate-btn {
    display: block;
    width: 100%;
    background: #3b9bff;
    color: white;
    text-align: center;
    padding: 12px 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s;
    border: none;
}

    .ipd-service-rate-btn:hover {
        background: #2a85e0;
        color: white;
    }

/* ==================== */
/* RESPONSIVE - FIXED   */
/* ==================== */

@media (max-width: 1024px) {
    .ipd-service-rate-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ipd-service-rate-container {
        grid-template-columns: 1fr;
        /* وسط‌چین کردن کارت‌ها در موبایل */
        justify-items: center;
    }

    /* محدود کردن عرض کارت در موبایل برای زیبایی بهتر */
    .ipd-service-rate-card {
        max-width: 400px;
        width: 100%;
    }
}