@font-face {
    font-family: "YekanBakhFaNum";
    src: url("../fonts/YekanBakhFaNum-VF.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] body *:not(i):not(svg):not(path):not([class^="ph-"]):not([class*=" ph-"]):not(.ph):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-brands):not(.fa-regular):not(.fa-solid):not(.slick-arrow):not(.material-symbols-outlined),
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .btn,
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .modal,
html[dir="rtl"] .card,
html[dir="rtl"] .table {
    font-family: "YekanBakhFaNum", "Tahoma", "Arial", sans-serif !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] {
    --bs-font-sans-serif: "YekanBakhFaNum", "Tahoma", "Arial", sans-serif;
    --bs-body-font-family: "YekanBakhFaNum", "Tahoma", "Arial", sans-serif;
    --bs-heading-font-family: "YekanBakhFaNum", "Tahoma", "Arial", sans-serif;
    --bs-btn-font-family: "YekanBakhFaNum", "Tahoma", "Arial", sans-serif;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .main-banner-image {
    object-fit: cover;
    background: #eef5f4;
}

html[dir="rtl"] .banner-content-search-box .form-control,
html[dir="rtl"] .custom-input-group .form-control {
    text-align: right;
}

html[dir="rtl"] .service-price,
html[dir="rtl"] .service-duration,
html[dir="rtl"] .clinics-content .d-flex,
html[dir="rtl"] .instant-link .d-flex,
html[dir="rtl"] .footer-contact-info {
    direction: rtl;
}

html[dir="rtl"] .ph,
html[dir="rtl"] .fa,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] .fab {
    line-height: 1;
}

html[dir="rtl"] .persian-jalali-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

html[dir="rtl"] .persian-jalali-range-separator {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.875rem;
    white-space: nowrap;
}

html[dir="rtl"] .persian-jalali-input {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .datepicker-plot-area,
html[dir="rtl"] .datepicker-plot-area * {
    font-family: "YekanBakhFaNum", "Tahoma", "Arial", sans-serif !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view,
html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .month-grid-box {
    min-height: 0 !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .month-grid-box {
    margin: 4px 0 !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .month-grid-box .header {
    padding-bottom: 2px !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .month-grid-box .header .title {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .month-grid-box .header .header-row {
    height: 24px !important;
    margin-bottom: 2px !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .table-days {
    margin-top: 0 !important;
}

html[dir="rtl"] .datepicker-plot-area {
    border: 1px solid var(--bs-border-color, #e7e7ee) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(var(--bs-primary-rgb, 86, 112, 204), 0.08), transparent 96px),
        var(--bs-body-bg, #fff) !important;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden !important;
    padding: 12px !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-navigator {
    border-radius: 14px !important;
    margin-bottom: 8px !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-navigator .pwt-btn,
html[dir="rtl"] .datepicker-plot-area .toolbox .pwt-btn {
    border-radius: 10px !important;
    color: var(--bs-heading-color, #1f2937) !important;
    background: var(--bs-gray-900, #f6f7fb) !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-navigator .pwt-btn:hover,
html[dir="rtl"] .datepicker-plot-area .toolbox .pwt-btn:hover {
    color: var(--bs-primary, #5670cc) !important;
    background: rgba(var(--bs-primary-rgb, 86, 112, 204), 0.12) !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .month-grid-box .header .header-row-cell {
    color: var(--bs-primary, #5670cc) !important;
    font-weight: 800 !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .table-days td {
    border-radius: 12px !important;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .table-days td span {
    border-radius: 12px !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .table-days td.selected span,
html[dir="rtl"] .datepicker-plot-area .datepicker-day-view .table-days td span:hover {
    color: #fff !important;
    background: var(--bs-primary, #5670cc) !important;
    box-shadow: 0 8px 18px rgba(var(--bs-primary-rgb, 86, 112, 204), 0.24) !important;
}

@media (max-width: 767.98px) {
    html[dir="rtl"] .datepicker-plot-area {
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        max-width: calc(100vw - 2rem) !important;
        border-radius: 20px !important;
    }
}

html[dir="rtl"] .custom-card-table,
html[dir="rtl"] .custom-card-table tbody,
html[dir="rtl"] .custom-card-table tr,
html[dir="rtl"] .custom-card-table td {
    display: block;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
}

html[dir="rtl"] .custom-card-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

html[dir="rtl"] .custom-card-table td {
    padding: 0 !important;
}

html[dir="rtl"] .clinics-card,
html[dir="rtl"] .services-card,
html[dir="rtl"] .doctor-card,
html[dir="rtl"] .category-card {
    background: color-mix(in srgb, var(--bs-body-bg) 92%, #ffffff);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
    overflow: hidden;
}

html[dir="rtl"] .clinics-card:hover,
html[dir="rtl"] .services-card:hover,
html[dir="rtl"] .doctor-card:hover,
html[dir="rtl"] .category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--bs-primary-rgb), 0.22);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.075);
}

html[dir="rtl"] .clinics-img,
html[dir="rtl"] .services-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f6f5;
}

html[dir="rtl"] .clinics-img img,
html[dir="rtl"] .services-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

html[dir="rtl"] .clinics-card:hover .clinics-img img,
html[dir="rtl"] .services-card:hover .services-img img {
    transform: scale(1.035);
}

html[dir="rtl"] .clinics-meta,
html[dir="rtl"] .service-meta {
    top: 10px;
    right: 10px;
    left: auto;
}

html[dir="rtl"] .clinics-meta-box,
html[dir="rtl"] .service-meta .badge {
    border-radius: 999px !important;
    padding: 0.38rem 0.7rem;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

html[dir="rtl"] .clinics-title,
html[dir="rtl"] .service-title {
    min-height: 1.8rem;
    line-height: 1.7;
}

html[dir="rtl"] .clinics-title a,
html[dir="rtl"] .service-title a,
html[dir="rtl"] .doctor-name a {
    color: var(--bs-heading-color);
    text-decoration: none;
}

html[dir="rtl"] .clinics-content {
    color: var(--bs-secondary-color);
}

html[dir="rtl"] .clinics-content i,
html[dir="rtl"] .service-duration i {
    color: var(--bs-primary);
    flex: 0 0 auto;
}

html[dir="rtl"] .clinics-content a {
    color: inherit;
    text-decoration: none !important;
    line-height: 1.8;
}

html[dir="rtl"] .clinics-card > a.text-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bs-primary) !important;
    text-decoration: none;
}

html[dir="rtl"] .clinics-card > a.text-secondary::after {
    content: "←";
    font-weight: 700;
}

html[dir="rtl"] .doctor-card {
    padding: 1.2rem;
}

html[dir="rtl"] .doctor-img img {
    width: 112px;
    height: 112px;
    border: 4px solid rgba(var(--bs-primary-rgb), 0.12);
}

html[dir="rtl"] .dataTables_empty,
html[dir="rtl"] .select2-results__message {
    color: var(--bs-secondary-color);
    text-align: center;
    padding: 1rem;
}

html[dir="rtl"] #setting-main-content {
    min-width: 0;
}

html[dir="rtl"] #setting-main-content .table-responsive,
html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive {
    display: block;
    width: 100%;
    white-space: nowrap;
}

html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive th,
html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive td {
    vertical-align: middle;
}

html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive th:nth-child(1),
html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive td:nth-child(1),
html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive th:nth-child(2),
html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive td:nth-child(2) {
    min-width: 150px;
    white-space: normal;
}

html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive th:not(:nth-child(1)):not(:nth-child(2)),
html[dir="rtl"] #setting-main-content table.table-condensed.table-responsive td:not(:nth-child(1)):not(:nth-child(2)) {
    min-width: 82px;
    text-align: center;
}

html[dir="rtl"] .tabyar-disabled-gateway {
    opacity: 0.55;
}

html[dir="rtl"] .tabyar-disabled-gateway .form-check-input {
    cursor: not-allowed;
}

html[dir="rtl"] .tabyar-zarinpal-settings {
    background: rgba(var(--bs-primary-rgb), 0.035);
    border-radius: 8px;
    padding: 1rem;
}

html[dir="rtl"] .directory-page-doctors .custom-card-table tbody.row {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

html[dir="rtl"] .directory-page-clinics .custom-card-table tbody.row {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

html[dir="rtl"] .directory-page-services .custom-card-table tbody.row {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

html[dir="rtl"] .directory-page-doctors .custom-card-table tbody.row > tr {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

html[dir="rtl"] .directory-page-clinics .custom-card-table tbody.row > tr {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

html[dir="rtl"] .directory-page-services .custom-card-table tbody.row > tr {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

html[dir="rtl"] .directory-page-doctors .custom-card-table td {
    height: 100%;
}

html[dir="rtl"] .directory-page-clinics .custom-card-table td {
    height: 100%;
}

html[dir="rtl"] .directory-page-services .custom-card-table td {
    height: 100%;
}

html[dir="rtl"] .directory-page-doctors .doctor-card {
    height: 100%;
    overflow: visible;
}

html[dir="rtl"] .directory-page-clinics .clinics-card {
    height: 100%;
    overflow: visible;
    padding: 1rem;
    border-radius: 8px !important;
}

html[dir="rtl"] .directory-page-services .services-card {
    height: 100%;
    overflow: visible;
    padding: 1rem;
    border-radius: 8px !important;
}

html[dir="rtl"] .directory-page-doctors .doctor-inner-card {
    display: flex !important;
    flex-direction: column;
    min-height: 100%;
}

html[dir="rtl"] .directory-page-doctors .doctor-card-stats {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: .8rem 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
    border-radius: 0;
    box-shadow: none;
}

html[dir="rtl"] .directory-page-doctors .doctor-card-stats > span {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: auto;
    padding: 0 .58rem;
    gap: .34rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    justify-content: center;
}

html[dir="rtl"] .directory-page-doctors .doctor-card-stats > span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: .22rem;
    bottom: .22rem;
    left: 0;
    width: 1px;
    background: #e2e8f0;
}

html[dir="rtl"] .directory-page-doctors .doctor-card-stats > span > i {
    display: none;
}

html[dir="rtl"] .directory-page-clinics .clinic-card-stats {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: .8rem 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
    border-radius: 0;
    box-shadow: none;
}

html[dir="rtl"] .directory-page-clinics .clinic-card-stats > span {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: auto;
    padding: 0 .58rem;
    gap: .34rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    justify-content: center;
}

html[dir="rtl"] .directory-page-clinics .clinic-card-stats > span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: .22rem;
    bottom: .22rem;
    left: 0;
    width: 1px;
    background: #e2e8f0;
}

html[dir="rtl"] .directory-page-clinics .clinic-card-stats > span > i {
    display: none;
}

html[dir="rtl"] .directory-page-services .service-card-stats {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: 1rem;
    padding: .8rem 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
    border-radius: 0;
    box-shadow: none;
}

html[dir="rtl"] .directory-page-services .service-card-stats > span {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: auto;
    padding: 0 .58rem;
    gap: .34rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    justify-content: center;
}

html[dir="rtl"] .directory-page-services .service-card-stats > span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: .22rem;
    bottom: .22rem;
    left: 0;
    width: 1px;
    background: #e2e8f0;
}

html[dir="rtl"] .directory-page-services .service-card-stats > span > i {
    display: none;
}

html[dir="rtl"] .directory-page-clinics .clinics-meta {
    inset: .75rem .75rem auto .75rem;
    right: .75rem;
    left: .75rem;
    justify-content: space-between;
}

html[dir="rtl"] .directory-page-clinics .clinic-card-line {
    text-align: right;
}

@media (min-width: 768px) {
    html[dir="rtl"] .directory-page-doctors .custom-card-table tbody.row > tr {
        width: 50% !important;
        max-width: 50% !important;
    }

    html[dir="rtl"] .directory-page-clinics .custom-card-table tbody.row > tr {
        width: 50% !important;
        max-width: 50% !important;
    }

    html[dir="rtl"] .directory-page-services .custom-card-table tbody.row > tr {
        width: 50% !important;
        max-width: 50% !important;
    }
}

@media (min-width: 992px) {
    html[dir="rtl"] .directory-page-doctors .custom-card-table tbody.row > tr {
        width: 33.33333333% !important;
        max-width: 33.33333333% !important;
    }

    html[dir="rtl"] .directory-page-clinics .custom-card-table tbody.row > tr {
        width: 33.33333333% !important;
        max-width: 33.33333333% !important;
    }

    html[dir="rtl"] .directory-page-services .custom-card-table tbody.row > tr {
        width: 33.33333333% !important;
        max-width: 33.33333333% !important;
    }
}

@media (max-width: 991.98px) {
    html[dir="rtl"] .directory-page-doctors .doctor-card-stats {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0;
        overflow: hidden;
        padding: .72rem 0;
        scroll-snap-type: none;
    }

    html[dir="rtl"] .directory-page-doctors .doctor-card-stats > span {
        flex: 1 1 0;
        min-width: 0;
        min-height: auto;
        padding: 0 .35rem;
        gap: .28rem;
        scroll-snap-align: none;
    }

    html[dir="rtl"] .directory-page-clinics .clinic-card-stats {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0;
        overflow: hidden;
        padding: .72rem 0;
        scroll-snap-type: none;
    }

    html[dir="rtl"] .directory-page-clinics .clinic-card-stats > span {
        flex: 1 1 0;
        min-width: 0;
        min-height: auto;
        padding: 0 .35rem;
        gap: .28rem;
        scroll-snap-align: none;
    }

    html[dir="rtl"] .directory-page-services .service-card-stats {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0;
        overflow: hidden;
        padding: .72rem 0;
        scroll-snap-type: none;
    }

    html[dir="rtl"] .directory-page-services .service-card-stats > span {
        flex: 1 1 0;
        min-width: 0;
        min-height: auto;
        padding: 0 .35rem;
        gap: .28rem;
        scroll-snap-align: none;
    }
}

@media (max-width: 575.98px) {
    html[dir="rtl"] .custom-card-table tbody {
        grid-template-columns: 1fr;
    }

    html[dir="rtl"] .directory-page-doctors .doctor-card-stats {
        gap: 0;
        padding: .68rem 0;
    }

    html[dir="rtl"] .directory-page-doctors .doctor-card-stats > span {
        flex: 1 1 0;
        min-width: 0;
        min-height: auto;
        gap: .22rem;
        padding: 0 .2rem;
    }

    html[dir="rtl"] .directory-page-clinics .clinic-card-stats {
        gap: 0;
        padding: .68rem 0;
    }

    html[dir="rtl"] .directory-page-clinics .clinic-card-stats > span {
        flex: 1 1 0;
        min-width: 0;
        min-height: auto;
        gap: .22rem;
        padding: 0 .2rem;
    }

    html[dir="rtl"] .directory-page-clinics .clinics-card {
        padding: .95rem;
    }

    html[dir="rtl"] .directory-page-services .service-card-stats {
        gap: 0;
        padding: .68rem 0;
    }

    html[dir="rtl"] .directory-page-services .service-card-stats > span {
        flex: 1 1 0;
        min-width: 0;
        min-height: auto;
        gap: .22rem;
        padding: 0 .2rem;
    }

    html[dir="rtl"] .directory-page-services .services-card {
        padding: .95rem;
    }
}
