﻿.font-iransans {
     font-family: "IRANSans", sans-serif;
 }

@keyframes gradientMove {
     0% {
         background-position: 0% 50%;
     }

     50% {
         background-position: 100% 50%;
     }

     100% {
         background-position: 0% 50%;
     }
 }

.bg-gradient-moving {
    background: linear-gradient(270deg, #001f3f, #868686, #fff, #001f3f);
    background-size: 600% 600%;
    animation: gradientMove 6s linear infinite;
}

.notyf__wrapper {
    gap: 5px;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    min-height: 70vh;
    box-sizing: border-box;
}

.error-page img {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.error-page h1 {
    font-size: 28px;
    color: #d9534f;
    margin: 15px 0;
    line-height: 1.3;
}

.error-page p {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
}

.error-page a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.error-page a:hover {
    text-decoration: underline;
}

/* Media Queries برای موبایل و تبلت */
@media (max-width: 1024px) {
    .error-page {
        padding: 40px 15px;
        margin-top: 50px;
    }

    .error-page h1 {
        font-size: 24px;
    }

    .error-page p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .error-page {
        margin-top: 100px;
    }
    .error-page img {
        max-width: 100%;
    }

    .error-page h1 {
        font-size: 20px;
    }

    .error-page p {
        font-size: 14px;
    }
}

.scrollable {
    overflow: hidden;
}

.scrollable:hover {
    overflow-y: auto;
}

.scrollable::-webkit-scrollbar {
    width: 6px;
}

.scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.5);
    border-radius: 3px;
}
#PopularArticles , #LatestArticles {
    height: 800px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    #PopularArticles, LatestArticles {
        height: 400px;
    }
}
article img{
object-fit: fill !important;
}