@font-face {
    font-family: iransans;
    src: url("fonts/IRANSansWeb(FaNum).eot");
    src: url("fonts/IRANSansWeb(FaNum).otf");
    src: url("fonts/IRANSansWeb(FaNum).ttf");
    src: url("fonts/IRANSansWeb(FaNum).woff");
}
body {
    font-family: iransans !important;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
    direction: rtl; /* تنظیم راست به چپ */
}
/*----------- INDEX PAGE---------*/
video#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1; /* پشت محتوا قرار می‌گیرد */
}
div.content {
    position: relative;
    color: white;
    font-size: 2rem;
    padding: 50px; /* فاصله داخلی */
    text-align: right; /* متن را به راست چین می‌کند */
    top: 90px; /* فاصله از بالا */
    right: 50px; /* فاصله از سمت راست */
}
.animate {
    opacity: 0; /* مخفی در ابتدا */
    animation: slideUp 2s ease-out 1s forwards; /* انیمیشن */
}
@keyframes slideUp {
    from {
        transform: translateY(100px); /* شروع از پایین */
        opacity: 0;
    }
    to {
        transform: translateY(0); /* حرکت به جای اصلی */
        opacity: 1;
    }
}
div.content span {
    font-size: 20px;
}

div.content h1 {
    font-size: 1.3em;
    color: white;
    font-family: iransans !important
}
div.content p {
    font-size: 1.1rem;
    color: white;
    line-height: 1.8rem;

}
.button {
    --color: #41affe;
    padding: 0.4em 1.8em;
    background-color: transparent;
    border-radius: .9em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
    font-weight: 400;
    font-size: 17px;
    border: 1px solid;
    font-family: inherit;
    text-transform: uppercase;
    color: var(--color);
    z-index: 1;
}
.button::before, .button::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background-color: var(--color);
    transition: 1s ease;
}
.button::before {
    top: -1em;
    left: -1em;
}

.button::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
}
.button:hover::before, .button:hover::after {
    height: 410px;
    width: 410px;
}
.button:hover {
    color: rgb(246, 247, 248);
}
.button:active {
    filter: brightness(.8);
}
/* From Uiverse.io by gharsh11032000 */
.cssbuttons-io-button {
    background-image: linear-gradient(19deg, #21D4FD 0%, #B721FF 100%);
    color: white;
    font-family: inherit;
    padding: 0.35em;
    padding-left: 1.2em;
    font-size: 17px;
    border-radius: 10em;
    border: none;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3.3em;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    box-shadow: 0 0 1.6em rgba(183, 33, 255, 0.3), 0 0 1.6em hsla(191, 98%, 56%, 0.3);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}
.cssbuttons-io-button .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 10em;
    right: 0.3em;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}
.cssbuttons-io-button:hover .icon {
    width: calc(100% - 0.6em);
}
.cssbuttons-io-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #B721FF;
}
.cssbuttons-io-button:hover .icon svg {
    transform: translateX(0.1em);
}
.cssbuttons-io-button:active .icon {
    transform: scale(0.9);
}
/* end style row 1 video back */
div.content2 {
    margin-top: 21rem;
}
/* حالت پیش‌فرض */
.image-animate, .text-animate, .animate3, .animate4, .animate5, .animate6 {
    opacity: 0;
    transform: translateY(100px); /* موقعیت اولیه */
    transition: all 0.8s ease-out;
}
/* وقتی عنصر فعال شد */
.image-animate.active, .animate3.active, .animate5.active, .animate6.active {
    opacity: 1;
    transform: translateY(0);
}
.text-animate.active, .animate4.active {
    opacity: 1;
    transform: none;
}
div.services div.row div.col-md-4 div.card img {
    height: 27em;
    border: 1px solid #0a53be
}

div.services div.row div.col-md-4 div.card div.text-right {
    padding-top: 305px;
}
div.services div.row div.col-md-4 div.card h1 {
    color: white !important;
    font-size: 2.3em;
    font-weight: bold
}

/* تنظیم برای صفحه‌نمایش‌های بزرگ */
@media (min-width: 1024px) {

    div.content {
        right: 103px !important; /* افزایش فاصله از سمت راست */
        padding: 50px !important; /* پدینگ بیشتر */
    }
    div.content p {
        padding-right: 36px !important;

    }
    div.services {
        height: 52em;
        background-color: #0079C1;
        margin-top: 10.9rem !important;
    }
    div.services div.row div.col-md-4 div.card, div.services2 div.col-md-4 div.card {
        transform: translateY(-150px) translateZ(27PX);
    }

    div.help {
        padding-left: 7rem;
        padding-right: 7rem;
        padding-top: 2.9rem;
        padding-bottom: 2.9rem;
    }
    div.help_back {
        height: 41rem;
        background: url('img/image/MI_DE_Fa_Dogwood-Hospital-Team.jpg') center no-repeat;
        background-size: 100% 100%;
        padding-top: 9rem;
        border: 3px solid #0079C1;
    }

    div.help_back h1 {
        font-size: 4em;
        font-weight: bold
    }

    div.help_back p {
        font-size: 1.5rem
    }
}
/* تنظیم برای صفحه‌نمایش‌های کوچک */
@media (max-width: 768px) {
    .content {
        right: 10px !important; /* فاصله کمتر از سمت راست */
        padding: 10px !important; /* پدینگ کمتر */
    }
    div.content h1 {
        font-size: 1.4em;
    }

    div.services {
        min-height: 52em;
        background-color: white;
        margin-top: 5rem !important;
    }

    div.services div.row div.col-md-4 div.card {
        transform: none;
    }

    div.services2 p {
        color: blue !important;
        margin-top: 2rem;
    }

    div.services2 a {
        color: blue !important;

    }

    div.help_back {
        height: 38rem;
        background: url('img/image/MI_DE_Fa_Dogwood-Hospital-Team.jpg') center no-repeat;
        background-size: 100% 100%;
        padding-top: 9rem;
        border: 3px solid #0079C1;
    }

    div.help_back h1 {
        font-size: 2.8em;
        font-weight: bold;
    }

    div.help_back p {
        font-size: 1.5rem;
        font-weight: bold;
    }
}
/*----- slideshow-------*/
/* برای نمایش در صفحه‌های بزرگ */
.carousel-item {
    height: 75vh;
}
/* برای قسمت عکس که به عنوان بک‌گراند استفاده می‌شود */
.carousel-bg {
    height: 75vh;
    background-size: cover; /* تغییر اندازه عکس به صورت cover */
    background-position: center;
    background-repeat: no-repeat;
}
/* تغییر padding برای هدر */
.carousel-caption h1 {
    padding-bottom: 140px;
}

/* در صفحه‌های موبایل */
@media (max-width: 767px) {
    /* تنظیم ارتفاع عکس‌ها در موبایل */
    .carousel-item {
        height: auto; /* در موبایل ارتفاع خودکار باشد */
    }
    /* برای قسمت توضیحات */
    .carousel-description {
        padding: 1rem; /* فضای داخلی کمی برای متن */
    }
    /* در موبایل تصویر باید پوشش کامل صفحه باشد */
    .carousel-bg {
        height: 25em; /* ارتفاع کمتر برای عکس در موبایل */
        background-size: cover; /* اندازه عکس به صورت cover */
    }
}

/* افکت فید شدن بک‌گراند */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* انیمیشن متن */
@keyframes slideDown {
    from {
        transform: translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* اضافه کردن انیمیشن */
.animated.slideInDown {
    animation: slideDown 0.7s ease-in-out;
}

.animated.slideInUp {
    animation: slideUp 0.7s ease-in-out;
}

/*------ doctors page----------------->*/
.wave-container {
    width: 100%;
    overflow: hidden;
}

svg {
    display: block;
    width: 100%;
    height: auto;
}


.wave-container2 {
    width: 100%;
    overflow: hidden;
}

.wave-container2 > svg {
    display: block;
    width: 100%;
    height: auto;
}

h1.doctors-header {
    font-weight: bold;
    font-size: 3.3rem;
    color: black;
    margin-top: -191px;
}

div.doctors p {
    font-size: 17px;
}

div.doctors a {
    color: black;
    text-decoration: none;
}

@media (max-width: 767px) {
    h1.doctors-header {
        font-weight: bold;
        font-size: 2.3rem;
        color: black;
        margin-top: -50px;
    }
}
/*----------DOCTOR PAGE-----------*/
div#doctor-card, img.profile_doctor {
    transition: all 0.7s ease;
}

div#doctor-card:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    opacity: 0.6;
}

img.profile_doctor:hover {
    transform: scale(1.03);
    -webkit-transform: scale(1.03);
    -moz-transform: scale(1.03);
    -o-transform: scale(1.03);
}

/* تنظیم ارتفاع و اندازه تصاویر در اسلایدشو گالری */
.carousel-item img {
    width: 100%;
    height: 500px; /* ارتفاع استاندارد */
    object-fit: cover;
}

.modal .carousel-inner img {
    height: 80vh; /* استفاده از 80 درصد ارتفاع صفحه */
    object-fit: cover;
}
/* مات کردن محتویات پشت modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه نیمه شفاف */
}

/* تنظیم استایل modal */
.modal-content {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.modal-body {
    padding: 0; /* حذف padding داخلی modal */
}

.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه نیمه شفاف برای دکمه‌ها */
    border-radius: 50%;
}
/* انیمیشن اسلاید از راست فقط برای مدال خاص */
#view_profile_doctor.modal.fade .modal-dialog {
    transform: translateX(100%); /* مدال در ابتدا خارج از صفحه قرار دارد */
    transition: transform 0.5s ease-in-out; /* زمان انیمیشن */
}

#view_profile_doctor.modal.fade.show .modal-dialog {
    transform: translateX(0); /* مدال هنگام باز شدن به موقعیت اصلی می‌آید */
}
/* تنظیمات رنگی و استایل‌ها */
.modal-header {
    background-color: purple !important;
}

.modal-title {
    font-weight: bold;
    color: #fff;
}

.btn-dark {
    background-color: purple !important;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.doctor-image {
    border-radius: 15px;
}

/* تنظیمات سایه برای مدال */
.modal-content {
    box-shadow: 0 8px 30px rgba(111, 66, 193, 0.4);
}

.modal-body {
    font-size: 1rem;
}
.modal-footer {
    background-color: #f8f9fa;
    color: #6c757d;
}

.modal-footer .list-inline-item a {
    color: #6c757d;
}

.modal-footer .list-inline-item a:hover {
    color: purple;
}

/*------  SERVICE PAGE ------------*/

h1.service-header {
    font-weight: bold;
    font-size: 2.3rem;
    color: black;
    margin-top: -8px;
}

p.service-small-header {
    margin-top: -215px;
}

@media (max-width: 767px) {
    h1.service-header {
        font-weight: bold;
        font-size: 1.5rem;
        color: black;
        margin-top: 85px;
    }
}

/*-------- single-doctor-page----------------*/
.single-doctor-background {
    height: 53em !important; /* ارتفاع برای دسکتاپ */
    width: 100% !important; /* عرض کامل */
    background-repeat: no-repeat !important; /* عدم تکرار تصویر */
    background-size: 100% 100% !important; /* تصویر کل بخش را پر کند بدون کشیدگی */
    margin-top: -160px;
}

div.single-doctor-background h1 {
    padding-top: 10rem;
    padding-right: 6rem;
    color: white;
    font-weight: bold;
    font-size: 4rem;
}
div.single-doctor-background ul {
    padding-right: 8rem;
}


div.single-doctor-background ul li a {
    text-decoration: none;
    color: rgb(108 117 125);
    font-size: 20px;
}
div.doctor-random-image img {
    width: 100%;
    height: 30em !important;
    transform: translateY(-143px);
    -webkit-transform: translateY(-145px);
    -moz-transform: translateY(-145px);
    -o-transform: translateY(-145px);
    padding-right: 6.5rem;
}

div.other-page {
    margin-top: -8rem;
    padding-right: 4rem;
}

div.other-page ol li {
    list-style-type: none;
}

div.other-page ol li a {
    text-decoration: none;
    color: purple;
}
/* تنظیمات برای دستگاه‌های موبایل */
@media (max-width: 768px) {
    .single-doctor-background {
        height: 30em !important; /* ارتفاع کمتر برای موبایل */
        background-size: cover !important; /* جلوگیری از کشیدگی تصویر */
        background-position: center center !important; /* تصویر در مرکز قرار بگیرد */
    }


    div.single-doctor-background h1 {
        padding-top: 10rem;
        padding-right: 1.5rem;
    }

    div.single-doctor-background ul {
        padding-right: 2.5rem;
    }

    div.doctor-random-image img {
        transform: none;
    }

    div.other-page {
        margin-top: 2rem;
    }
}
/*-------- single service------*/
.single-service-background {
    height: 53em !important; /* ارتفاع برای دسکتاپ */
    width: 100% !important; /* عرض کامل */
    background-repeat: no-repeat !important; /* عدم تکرار تصویر */
    background-size: 100% 100% !important; /* تصویر کل بخش را پر کند بدون کشیدگی */
    margin-top: -160px;
}
div.single-service-background ul {
    padding-right: 8rem;
    padding-top: 10rem;
    font-size: 20px;
}
div.single-service-background h1 {
    padding-top: 1rem;
    padding-right: 6rem;
    color: white;
    font-weight: bold;
    font-size: 4rem;
}

div.single-service-background p {
    padding-top: -1rem;
    padding-right: 7rem;
    color: white;
    font-size: 1rem;

}
div.single-service-background a {
    padding-top: -1rem;
    padding-right: 7rem;
   text-decoration: none;
    font-size: 1.1rem;

}
/* تنظیمات برای دستگاه‌های موبایل */
@media (max-width: 768px) {

    .single-service-background {
        height: 40em !important; /* ارتفاع برای دسکتاپ */
        width: 100% !important; /* عرض کامل */
        background-repeat: no-repeat !important; /* عدم تکرار تصویر */
        background-size: 100% 100% !important; /* تصویر کل بخش را پر کند بدون کشیدگی */
    }
    div.single-service-background ul {
        padding-right: 2rem;
        padding-top:2rem ;

    }
    div.single-service-background h1 {
        padding-top: 0rem;
        padding-right: 2rem;
        color: white;
        font-weight: bold;
        font-size: 4rem;
    }
    div.single-service-background p {
        padding-top: -1rem;
        padding-right: 3rem;
    }
}
