@font-face {
    font-family: 'IRANSans';
    font-display: swap;
    font-weight: 100;
    src: url('fonts/IRANSans/IRANSans-UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-display: swap;
    font-weight: 300;
    src: url('fonts/IRANSans/IRANSans-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-display: swap;
    font-weight: 400;
    src: url('fonts/IRANSans/IRANSans-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-display: swap;
    font-weight: 700;
    src: url('fonts/IRANSans/IRANSans-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-display: swap;
    font-weight: 800;
    src: url('fonts/IRANSans/IRANSans-ExtraBold.ttf') format('truetype');
}

body {
    font-family: 'IRANSans', sans-serif;
    overflow-x: hidden;
    font-size: 1rem;
    /* دسکتاپ (پیش‌فرض) */
}

/* در موبایل کوچیک‌تر بشه */
@media (max-width: 768px) {
    body {
        font-size: 0.8rem;
        /* یک لول کوچک‌تر */
    }
}

body a {
    text-decoration: none !important;
}


.navbar {
    height: 80px;
    font-weight: bold;
}

/* زیرمنوی مدرن */
.modern-dropdown {
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    animation: fadeDown 0.25s ease-in-out;
    border: none;
    min-width: 200px;
}

/* آیتم‌های زیرمنو */
.modern-dropdown .dropdown-item {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.modern-dropdown .dropdown-item:hover {
    background-color: #f1f5f9;
    /* خاکستری روشن */
    color: #0d6efd;
    /* آبی بوت‌استرپ */
    transform: translateX(5px);
    /* حرکت نرم */
}

/* انیمیشن باز شدن */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* منوی موبایل مدرن */
@media (max-width: 991.98px) {
    .mobile-modern-menu {
        position: relative;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
        border-radius: 5px;
        background: #f8f9fa;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        z-index: 100 !important;
    }

    @media (max-width: 991.98px) {
        .mobile-modern-menu .nav-link {
            background: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 5px;
            transition: all 0.3s ease;
        }

        .mobile-modern-menu .nav-link:hover {
            background: #e9ecef;
            color: #0d6efd;
        }

        .mobile-modern-menu .collapse {
            background: #fff;
            border-radius: 6px;
            margin: 5px 0;
            padding: 5px 10px;
        }
    }

    /* زیرمنو در موبایل */
    .mobile-modern-menu .dropdown-menu {
        position: static !important;
        float: none;
        background: #fff;
        border-radius: 8px;
        box-shadow: none;
        padding: 5px 0;
        margin-top: 5px;
        display: none;
    }

    .mobile-modern-menu .dropdown.show .dropdown-menu {
        display: block;
        animation: slideDown 0.25s ease;
    }

    .mobile-modern-menu .dropdown-item {
        padding: 10px 20px;
        border-radius: 6px;
        transition: background 0.2s ease;
    }

    .mobile-modern-menu .dropdown-item:hover {
        background: #f1f5f9;
        color: #0d6efd;
    }
}

/* انیمیشن */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 991.98px) {
    .navbar-nav .collapse {
        background: #f8f9fa;
        border-radius: 6px;
        margin-top: 5px;
        padding: 5px 10px;
    }

    .navbar-nav .collapse .nav-link {
        font-size: 14px;
        color: #495057;
    }
}

footer {
    background: url('../uploads/images/footer.svg') top center no-repeat;
    background-size: 100% auto;
    font-size: 14px;
    position: relative !important;
}


/* در موبایل فقط رنگ */
@media (max-width: 768px) {
    footer {
        background-color: #2C336A;
    }
}

@media (min-width: 768px) {
    .logo-fix {
        position: absolute;
        top: -10px;
        /* جایگزین margin-top بهتره */
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        /* برای اطمینان تصویر وسط باشه */
    }
}



.footer-logo {
    margin-top: -100px;
}

.copyright {
    width: 100%;
    background-color: #000;
    margin-bottom: -50px;
}


.container {
    max-width: 1920px;
    margin: 0 auto;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0px !important;
}


.col-4 .card{
    color: #fff;
    background : #303A6F;
}

.card {
    transition: all 0.3s ease;
    font-size: 12px !important;
}

.card h3 {
    margin-top: 10px;
    font-size: 16px !important;
}

.card-body {
    font-weight: bold;
    font-size: 14px !important;
}



.card svg {
    width: 70px;
    text-align: center;
    margin: auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.articles-box::-webkit-scrollbar {
    box-shadow: 0 0 0 transparent !important;
}

.articles-box::-webkit-scrollbar {
    width: 8px;
}

.articles-box::-webkit-scrollbar-thumb {
    background-color: #2c387e;
    border-radius: 10px;
}


.button {
    width: fit-content;
    padding: 0.5rem;
    margin: auto;
    margin-right: 3px;
    padding-right: 30px;
    padding-left: 30px;
    border-radius: 0.5rem;
    color: #fff;
    background: #303A6F;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
    float: left;
    user-select: none;
}

div {
    box-sizing: border-box !important;
}



input,
textarea,
select {
    font-family: 'IRANSans', sans-serif !important;
}

select,
select option {
    font-family: 'IRANSans', sans-serif !important;
}



input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ccc !important;
    /* یا هر رنگ دلخواه */
}

textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ccc !important;
    /* یا هر رنگ دلخواه */
}


select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ccc !important;
    /* یا هر رنگ دلخواه */
}


.text-primary {
    --bs-text-opacity: 1;
    color: #303A6F !important;
}


@media (min-width: 768px) {
    .div-page {
        max-width: 1200px;
        margin: 0 auto;
        /* وسط‌چین کردن */
    }
}

.circle-div {
    position: absolute;
    top: 150px !important;
    right: 180px !important;
    width: 350px;
    height: 350px;
    aspect-ratio: 1/1;
    /* دایره کامل */
    border-radius: 50%;
    background: rgba(0, 115, 230, 0.1);
    z-index: 0;
}

/* در موبایل دایره کوچیک‌تر و مخفی */
@media (max-width: 768px) {
    .circle-div {
        width: 100px;
        aspect-ratio: 1/1;
    }
}



@media (max-width: 768px) {
    div {
        overflow-x: hidden !important;
    }
}







.category-box {
    background: #eaf6fb;
    transition: all 0.3s ease-in-out;
    color: #222;
    text-decoration: none;
}

.category-box:hover {
    background: #d2eef7;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: #000;
}

.category-box img {
    display: block;
    margin: 0 auto;
}





.search-filter-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.search-filter-box .btn {
    min-width: 150px;
}

.search-filter-box form input {
    border-radius: 8px;
}

.search-filter-box form button {
    border-radius: 8px;
}












.category-box {
    background: #eaf6fb;
    transition: all 0.3s ease-in-out;
    color: #222;
    text-decoration: none;
}

.category-box:hover {
    background: #d2eef7;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.search-filter-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.article-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.article-card img {
    height: 200px;
    object-fit: cover;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.read-more-link {
    color: #0073e6;
    font-weight: 500;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
    color: #005bb5;
}

.gradient-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(89, 137, 151, 0) 0%, #86CEE4 55%, rgba(74, 114, 126, 0) 100%);
}




.article-card .article-img {
    width: 100%;
    height: 220px;
    /* ارتفاع ثابت برای همه عکس‌ها */
    object-fit: cover;
    /* برش و فیت شدن تصویر */
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}



#mainCarousel {
    z-index: 0 !important;
}



.navbar-brand {
    margin-right: 30px;
}

.navbar-toggler {
    margin-left: 30px;
}