@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 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: #C8102E;
    }
}

.header-active-link {
    font-weight: 700 !important;
    color: #C8102E !important;
}

.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 {
    position: relative;
    background-color: var(--neo-bg-alert);
    justify-content: end;
    gap: 20px;
    font-size: 16px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #222;
    border-radius: 10px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;

    &:hover {
        background-color: var(--neo-color-alert-hover);
        transform: translateY(-5px);
        color: white;
    }

    &:hover .top-items-img {
        transform: scale(1.05);
    }

    &:hover .top-items-title {
        transform: scale(1.05) translateX(-50%);
    }
}

.top-items-title {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #C8102E;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    width: max-content;
    max-width: 90%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* 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);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    &:hover {
        transform: translateX(-5px);
    }
}

#openBtn {
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s;
    color: #C8102E;

    &:hover {
        transform: scale(1.05);
    }
}

#closeBtnSidebarOverlay {
    position: absolute;
    top: 10px;
    color: #C8102E;
    font-size: 24px;
    left: 15px;
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
        transform: scale(1.05);
    }
}

/* overlay sidebar effect */

.site-inf-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;
    width: max-content;
    border-bottom: 2px solid var(--neo-color-alert);
    padding-bottom: 10px;
}

.site-inf-content {
    display: flex;
    gap: 20px;
}

.site-inf-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;
}

.logo-card {
    /* background-color: #f9fafc;
    border: 1px solid #d0d7de; */
    width: 45%;
    font-size: 16px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-card img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    object-position: center center;
}

.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) {
    .site-inf-content {
        flex-direction: column;
    }

    .logo-card {
        margin: 20px 0;
        width: 100%;
    }

    .footer {
        font-size: 13px;
    }
}

.hr {
    width: 85%;
    display: block;
    margin: 0 auto;
    border: 1px solid #d0d7de;
}

@media (max-width: 991px) {
    .hr {
        width: 100%;
    }
}

@media (max-width: 499px) {
    .service-card-title {
        font-size: 15px;
    }

    .card-title {
        font-size: 14px;
    }
}

/*  */

.sponsor-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;

    & img {
        width: 100px; /* یا درصد مثل 80% */
        height: auto; /* یا مثلاً height: 80px برای سایز دقیق */
        object-fit: contain; /* یا cover بسته به نیاز */
        margin: auto;
    }
}


.all-services-link {
    color: var(--neo-color-alert);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: max-content;
    padding: 4px 8px;
    border-radius: 99px;

    &:hover {
        background-color: var(--neo-bg-alert);
    }

}

.service-card {
    background-color: var(--neo-color-foreground-extra);
    border-radius: 20px;
    padding: 12px;
    cursor: pointer;
    will-change: auto;
    transition: all 0.3s;
    color: var(--neo-color-text);
}

.service-card h3{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card:hover {
    transform: scale(1.03);
}

.top-items-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ihit-contactfooter-container {
    padding: 20px 20px;
}

.ihit-contactfooter-title {
    border-bottom: 2px solid navy;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 20px;
    color: navy;
}
.footer-email{
    color: deepskyblue;
}
.ihit-contactfooter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ihit-contactfooter-list li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.8;
}

.ihit-contactfooter-icon {
    color: navy;
    margin-left: 8px;
}

.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-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%;
    }
}
.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;
        }
    }
}
