@font-face {
    font-family: 'IRANSans';
    src: url('/dl/f/IRANSans-UltraLight-web?v=1') format('truetype');
    font-weight: 200;
    /* UltraLight */
}

@font-face {
    font-family: 'IRANSans';
    src: url('/dl/f/IRANSans-Light-web?v=1') format('truetype');
    font-weight: 300;
    /* Light */
}

@font-face {
    font-family: 'IRANSans';
    src: url('/dl/f/IRANSans-web?v=1') format('truetype');
    font-weight: 400;
    /* Regular */
}

@font-face {
    font-family: 'IRANSans';
    src: url('/dl/f/IRANSans-Medium-web?v=1') format('truetype');
    font-weight: 500;
    /* Medium */
}

@font-face {
    font-family: 'IRANSans';
    src: url('/dl/f/IRANSans-Bold-web?v=1') format('truetype');
    font-weight: 700;
    /* Bold */
}


.h-100 {
    height: 100%;
}

.h-90 {
    height: 90%;
}

.h-80 {
    height: 80%;
}

.h-70 {
    height: 70%;
}

.h-60 {
    height: 60%;
}

.h-50 {
    height: 50%;
}

.h-40 {
    height: 40%;
}

.h-30 {
    height: 30%;
}

.h-20 {
    height: 20%;
}

.h-10 {
    height: 10%;
}

.w-100 {
    width: 100%;
}

.w-90 {
    width: 90%;
}

.w-80 {
    width: 80%;
}

.w-70 {
    width: 70%;
}

.w-60 {
    width: 60%;
}

.w-50 {
    width: 50%;
}

.w-40 {
    width: 40%;
}

.w-30 {
    width: 30%;
}

.w-20 {
    width: 20%;
}

.w-10 {
    width: 10%;
}

button,
a {
    cursor: pointer;
}

html {
    font-family: 'IRANSans', sans-serif;
    font-size: 16px;
    background-color: #f8fafd;
    color: #222;
    word-spacing: -1px !important;
}

header {
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    box-shadow: #dde3ea 0px 1px 4px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo i {
    font-size: 34px;
    color: #47348b;
    /* --fa-primary-color: #907ad6; */
}

.header-logo img {
    max-height: 55px;
}

.header-link-container {
    display: flex;
    gap: 22px;
}

.header-link-container a {
    color: #222;
    font-weight: 400;

    &:hover {
        transform: scale(1.05);
        color: #907ad6;
    }
}

.header-active-link {
    font-weight: 700 !important;
    color: #907ad6 !important;
}

.reserve-btn {
    background-color: #907ad6;
    padding: 8px 16px;
    border-radius: 6px;
    color: #ffffff;
    font-family: 'IRANSans', sans-serif;
    animation: pulse-reserve-btn 2s infinite;

    &:hover {
        scale: 1.03;
    }
}

@keyframes pulse-reserve-btn {
    0% {
        box-shadow: #dabfff 0 0 0 0;
    }

    80% {
        box-shadow: #dabfff00 0 0 0 10px;
    }
}


.splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}


#main-carousel div ul li img {
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 1 !important;
    object-position: center center;
}

.splide__track--nav>.splide__list>.splide__slide.is-active {
    border-color: transparent !important;
}

@media (max-width: 991px) {
    #main-carousel div ul li img {
        height: 370px !important;
    }
}

@media (max-width: 499px) {
    #main-carousel div ul li img {
        height: 300px !important;
    }
}

.card {
    background-color: #ffffff;
    box-shadow: #dde3ea 0px 0px 6px 0px;
}

.top-items {
    background-color: #f0f4f9;
    justify-content: end;
    gap: 20px;
    font-size: 16px;
    align-items: center;
    border: #d0d7de 1px solid;
    cursor: pointer;
    transition: all 0.3s;
    color: #222;

    &:hover {
        background-color: #907ad6;
        transform: translateY(-3px);
        color: white;
    }

    &:hover .ico-top-items {
        box-shadow: #dde3ea 0px 0px 2px 0px;
    }
}

.top-items .ico-top-items {
    font-size: 28px;
    height: 50px;
    width: 50px;
    background-color: #fff;
    color: #907ad6;
    box-shadow: #dde3ea 0px 0px 6px 0px;
}


/* overlay sidebar effect */
.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    right: -250px;
    background-color: #f8fafd;
    color: #222;
    padding-top: 60px;
    transition: right 0.2s ease-in-out;
    z-index: 9999;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li a {
    color: #222;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    position: relative;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.49);
    display: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 9999;
}

.header-content {
    direction: rtl;
}

.sidebar ul li {
    display: block;
    width: 90%;
    text-align: right;
    margin: 4px auto;
    border-bottom: 1px solid var(--border-github);
}

#closeBtnSidebarOverlay {
    position: absolute;
    top: 10px;
    color: #47348b;
    font-size: 24px;
    left: 15px;
}

/* overlay sidebar effect */


/* last article */
.article-card {
    padding: 10px;
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-github);
    cursor: pointer;

    &:hover {
        box-shadow: #dde3ea 0px 0px 6px 0px;
    }
}

.article-card-width {
    width: 300px;
    margin: 10px !important;
    margin-top: 20px;
}

.splide__slide-article {
    width: fit-content !important;
}

.article-image-container {
    width: 100%;
    height: 200px;
    display: block;
}

.article-image-container img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-summary {
    font-size: 14px;
    line-height: 1.618;
    margin-bottom: 5px;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.article-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #907ad6;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #47348b;
}

/* last article */

.title-link-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 10px;

    & a.view-all-link {
        color: #907ad6;

        &:hover {
            color: #47348b;
        }
    }
}

.clinic-card {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3a3a3a;
    border-bottom: 2px solid #d0d7de;
    padding-bottom: 10px;
}

.clinic-content {
    display: flex;
    gap: 20px;
}

.clinic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    line-height: 1.618;
}

.info-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #4a4a4a;
}

.info-dscp {
    font-size: 0.95rem;
    line-height: 1.618;
    color: #616161;
    text-align: justify;
}

.info-services {
    background-color: #f9fafc;
    list-style: none;
    border: 1px solid var(--border-github);
    border-radius: 10px;
    padding: 0;
    margin: 0;
}

.info-services li {
    font-size: 0.95rem;
    color: #616161;
    padding: 5px 0;
    border-bottom: 1px solid #62626211;

    & i {
        color: #907ad6;
    }
}

.info-services li:last-child {
    border: 0;
}

.map-card {
    background-color: #f9fafc;
    width: 45%;
    font-size: 16px;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    overflow: hidden;
}

.map-card iframe {
    height: 100%;
    width: 100%;
    border: none;
    border-radius: 12px;
}


.doctor-card {
    padding: 10px;
    background-color: #fff;
    border-radius: 15px;
    border: 1px solid var(--border-github);
    cursor: pointer;

    &:hover {
        box-shadow: #dde3ea 0px 0px 6px 0px;
    }
}

.doctor-card-width {
    width: 240px;
    margin: 10px !important;
    margin-top: 20px;
}

.doctor-img-container {
    width: 100%;
    height: 180px;
    display: block;
}

.doctor-img-container img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.doctor-name {
    margin: 10px 0 5px 0;
}

.doctor-expertise {
    margin: 0;
    font-size: 14px;
}

.doctor-reserve {
    padding-top: 10px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    & a {
        border: 1px solid #907ad6;
        width: 100%;
        color: #907ad6;
        font-size: 14px;
        text-align: center;

        &:hover {
            border-color: #47348b;
            color: #47348b;
        }
    }

    & a.button {
        background-color: #907ad6;
        color: white;
        width: 100%;
        font-size: 14px;
        font-family: 'IRANSans';

        &:hover {
            background-color: #47348b;
        }
    }
}

.footer {
    width: 100%;
    background-color: #e9eef6;
    font-size: 15px;
    border-top: 1px solid var(--border-github);
}

.sub-footer {
    background-color: #000;
    color: white;
    width: 100%;

    & .phicorp-content {
        width: fit-content;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

        & img {
            width: 48px;
            height: 48px;
        }

        & span a {
            color: white;
            font-weight: bolder;
        }
    }
}

@media (max-width: 991px) {
    .clinic-content {
        flex-direction: column;
    }

    .map-card {
        width: 100%;
    }

    .footer {
        font-size: 13px;
    }
}

.search-article-box {
    width: 100%;
    height: 60px;
    background-color: white;
    border: 1px solid var(--dt-surface-container-high);
    border-right: 0;
    border-left: 0;

    & form {
        height: 100%;
        display: flex;
        align-items: center;

        & input {
            border-radius: 0 10px 10px 0;
            width: 250px;
            font-family: 'IRANSans', sans-serif;
            background-color: #f0f4f9;
            height: 40px;
        }

        & button {
            border-radius: 10px 0 0 10px;
            font-size: 18px;
            color: #47348b;
            background-color: #f0f4f9;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }
}

.cont-image-article {
    width: 100%;
    display: block;

    & img {
        width: 96%;
        display: block;
        margin: 0 auto;
        height: 400px;
        object-fit: cover;
        border-radius: 10px;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 991px) {
    .cont-image-article img {
        height: 250px;
    }
}

.cont-image-doctor {
    width: 100%;
    display: block;

    & img {
        width: 200px;
        display: block;
        margin: 0 auto;
        height: 200px;
        border-radius: 999px;
    }
}

@media (max-width: 991px) {
    .cont-image-doctor img {
        height: 150px;
        width: 150px;
    }
}

.cont-article {
    padding: 20px;

    & h1 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #3a3a3a;
        margin-bottom: 20px;
    }

    & p {
        font-size: 1.1rem;
        line-height: 1.618;
        color: #4a4a4a;
    }
}

.hr {
    width: 85%;
    display: block;
    margin: 0 auto;
    border: 1px solid #d0d7de;
}

@media (max-width: 991px) {
    .hr {
        width: 100%;
    }
}

.reserve-card {
    width: 100%;
    border: 1px solid #d0d7de;
    background-color: #f9fafc;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    color: #111;

    &:hover {
        border-color: #907ad6;
        background-color: #dabfff;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
        color: #222;
    }

    & div {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
}

.appointment-confirm-item {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
}