﻿
@font-face {
    font-family: 'vazir';
    src: url('fonts/vazir/Vazir.woff2') format('woff2'), url('fonts/vazir/Vazir.woff') format('woff');
}
a {
    text-decoration: none;
    color: inherit;
}

body {
    background-color: #f8f9fa;
    font-family: vazir;
    line-height: 2;
    direction: rtl;
    text-align: justify;
    direction: rtl;
}
.text-justify {
    text-align: justify;
    white-space: normal; /* یا nowrap */
    word-wrap: break-word; /* اجازه شکستن کلمات طولانی */
    overflow-wrap: break-word;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
    word-spacing: normal;
    hyphens: auto;
    word-spacing: 0;
    letter-spacing: 0;
}
.p {
    text-align: justify;
    word-spacing: 0;
    letter-spacing: 0;
}
.navbar {
    background-color: #fff !important;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.navbar-brand-box {
    width: 120px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-left: 1rem;
    font-weight: 700;
}

.navbar-nav .nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #000 !important;
}

    .nav-link i {
        margin-left: 5px;
    }

.dropdown-menu {
    text-align: right;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100%;
        margin-right: .1rem;
        margin-left: 0;
        display: none;
        position: absolute;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

.carousel-container {
    direction: ltr;
}
.social-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
    display: inline-block;
}
#sliderText {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    #sliderText h3 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    #sliderText p {
        font-size: 0.98rem;
        line-height: 1.6;
        padding-right: 5px;
    }

.news-cards .card {
    border-radius: 8px;
}

.news-cards .card-body h6 {
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 5px;
}

.news-cards .card-body p {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-right: 5px;
}

.news-section {
    margin-top: 20px;
}

.lower-cards .card {
    margin-top: 20px;
}

.btn-bottom {
    align-self: flex-start;
    margin-top: auto;
}



.panel-link {
    display: block;
    width: 100%;
    font-size: 13px;
    line-height: 1.6;
    text-align: right; /* بهتر از justify */
    color: #333;
}

.bullet {
    float: right;
    margin-left: 6px; /* فاصله بین بولت و متن */
}

.general-news {
    margin-top: 30px;
}

    .general-news .card {
        border-radius: 8px;
    }

    .general-news .news-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
    }

        .general-news .news-item img {
            width: 200px;
            height: 140px;
            object-fit: cover;
            margin-left: 15px;
            border-radius: 6px;
        }

        .general-news .news-item .news-text {
            text-align: right;
        }

            .general-news .news-item .news-text h6 {
                font-size: 1rem;
                font-weight: 600;
                padding-bottom: 3px;
                margin: 0;
                text-align: right;
            }

            .general-news .news-item .news-text p {
                font-size: 0.9rem;
                line-height: 1.5;
                padding-right: 5px;
                margin: 0;
                text-align: right;
            }

.media-section .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
}

.media-section .img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

    .media-section .img-wrap img {
        width: 100%;
        display: block;
        height: auto;
    }

.img-title {
    position: absolute;
    bottom: 6px;
    right: 6px;
    left: 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.15));
    color: #fff;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 4px;
    text-align: center;
    backdrop-filter: blur(2px);
}
footer {
    background-color: #343a40;
    color: #fff;
    padding: 40px 0;
}
    footer a {
        color: #fff;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

.footer-links h6 {
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-social i {
    font-size: 1.5rem;
    margin-left: 10px;
    color: #fff;
}
.carousel-inner .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
}
.latest-news h5 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.latest-news-link {
    transition: all 0.3s;
    padding: 5px;
    border-radius: 5px;
}

    .latest-news-link:hover {
        background-color: #e7f1ff;
        color: #0d6efd;
        text-decoration: none;
    }

header {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-width: 120px;
}

.social-icons a {
    font-size: 1.2rem;
    margin-left: 10px;
    color: #0d6efd;
}

    .social-icons a:hover {
        color: #0056b3;
    }

.latest-news .card {
    transition: transform 0.3s;
}

    .latest-news .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.post-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.tags .badge {
    margin-left: 5px;
    font-size: 0.85rem;
}

.print-btn {
    cursor: pointer;
    color: #0d6efd;
}

footer {
    background-color: #212529;
    color: #fff;
    margin-top: 30px;
}

    footer a {
        color: #ffc107;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

.media-section .card {
    transition: transform 0.3s;
}

    .media-section .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
.latest-news h5 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.latest-news-link {
    transition: all 0.3s;
}

    .latest-news-link:hover {
        background-color: #e7f1ff;
        color: #0d6efd;
        text-decoration: none;
    }
.cke_notification,
.cke_notification_warning {
    display: none !important;
}

.news-content {
    font-family: vazir;
    text-align: justify;
    line-height: 2;
    color: #333;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}
.list-group-item a {
    font-family: Vazir, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
    direction: rtl;
}

