/*
Theme Name: News
Theme URI: News
Author: morteza
Author URI: News
Description: طراحی اموزشی 
Version: 1.0
Text Domain: sima_td
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
@font-face {
    font-family: 'Vazir';
    src: url("contents/font/Vazir/Vazir.woff") format("woff");
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Vazir, sans-serif;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.bg-dark-blue {
    background-color: #0c3555;
}

.top-header .province-title {
    color: #ddd;
}

@media (max-width: 576px) {
    .date {
        display: none;
    }
}



.nav-bar {
    background-color: #0d47a1;
}

.main-menu a,
.main-menu-mobile a {
    color: white !important;
    transition: background 0.2s;
}

.main-menu a:hover,
.main-menu-mobile a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.main-menu-mobile a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    color: #fff;
}

.notification .badge {
    font-size: 1rem;
    min-width: 32px;
    padding: 6px 10px;
}

.search-btn {
    background: transparent;
    border: none;
    padding: 0 8px;
}

.search-btn img {
    filter: brightness(0) invert(1);
}


@media (max-width: 767px) {
    .main-menu {
        display: none !important;
    }

    .search-btn.d-md-block {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .logo img {
        max-height: 45px !important;
    }
}

.logo img {
    margin: 2px 0;
}

.menu-main-container ul li {
    margin: 0 2px !important;
}

.img-menu {
    margin-right: -11px;
    max-width: 175px;
    object-fit: cover;
}

.the-titel-text {
    display: flex;
    justify-content: space-between;
}

/* main */
.desc {
    background: #f1f1f1;
    padding: 5px 5px 0 11px;
    width: 345px;
}

.desc-img {
    max-width: 569px;
}

.desc h3 a {
    margin-top: 10px;
    font-size: 1.2rem;
    padding: 0 0 10px;
    font-weight: bold;
}

.desc h3 a {
    color: #0c3555;
}

.desc h3 a:hover {
    color: #860f10;
}

.desc P {
    color: #6c757d;
    margin-bottom: .5rem;
    font-size: .75rem;

}

.related-box {
    position: absolute;
    bottom: 0;
    padding-bottom: 10px;
    right: 3px;

}

.related-box-border {
    width: 80px;
    height: 0px;
    border: solid 1px #ced4da;
}

.news-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0c3555;
}

.related-box a {
    margin-right: 7px;
    font-size: 9px;
    color: #000000;
    margin: 0 1px;
}

.related-box a:hover {
    color: #860f10;
}

.desc-titel {
    padding: 2px 15px;
}

.desc-titel h3 a {
    font-size: 1rem;
}

.desc-titel p {
    font-size: 12px;
    color: #6c757d;
}

.box-item {
    background-color: #f1f1f1;

}

.box-item a {
    color: #0c3555;
}

.box-item h3 a:hover {
    color: #860f10 !important;
}

.box-item time a {
    font-size: 10px;
    color: #adb5bd;
}

.card-box {
    background-color: #f1f1f1;
}

.card-box {
    /* max-height: 92px; */
    padding: 11px 9px;
}

.card-box h3 a {
    font-size: 1rem;
    font-weight: bold;
    color: #000000;
}

.card-box h3 a:hover {
    color: #860f10;
}

.card-box p {
    font-size: 12px;
    padding: 0 !important;
}

@media (max-width: 576px) {
    .card-box {
        h3 a {
            font-size: 0.9rem
        }

        ;

        p {
            display: none;
        }
    }

}

@media (max-width: 576px) {
    .desc-titel {
        h3 a {
            font-size: 14px
        }

        ;

        p {
            display: none;
        }
    }

}

.card-img,
.card-img-top {
    max-height: 396px !important;
}

/* اخرین تغیراتت */
.card-body h4 a {
    font-size: 15px;
    font-weight: bold;
    color: #0c3555;
}

.card-body h4 a:hover {
    color: #860f10;
}

.card-body p {
    font-size: 12px;
    color: #6c757d;
}

.card-item {
    background-color: #f1f1f1;
    height: 100% !important;
}

.card-edit {
    height: 300px !important;
}

.card-item .cars {
    padding: 0 7px;
}

time {
    font-size: 10px;
}

@media (max-width: 576px) {
    .cars {
        h4 a {
            font-size: 13px
        }

        ;

        p {
            font-size: 11px;
        }
    }

    time {
        display: none;
    }

}


.card-box {
    padding: 0;
    margin: 0 0 11px 0;
}

@media (max-width: 576px) {
    .box-fit {
        margin-top: 10px;
    }

}

.cars p {
    margin: 0 !important;
    font-size: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-box .card-body {
    padding: 0 9px;
}

.card-box .card-body h5 a {
    font-size: 15px;
    color: #0d47a1;
    font-weight: bold;
}

@media (max-width: 576px) {
    .card-body {
        h5 a {
            font-size: 13px !important;
        }


        .related-box {
            display: none;
        }
    }

}

.card-box .card-body h5 a:hover {
    color: #860f10;

}


.card-box .card-body p {
    font-size: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.fixed-card {
    height: 400px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fixed-card img {
    height: 220px;
    object-fit: cover;
}

.fixed-card .card-body {
    flex: 1;
    overflow: hidden;
}


/* slide-card */
.slide-card .card-body {
    background-color: #dce6e3;
    padding: 5px 10px;

}

/* .carousel-item{
    height: 500px;
} */
.slide-card .carousel-item {
}

.slide-card .carousel-img {
    height: 237px !important;
    object-fit: cover;
}

.slide-card .carousel-body {
 height: 132px !important;
  max-height: 132px !important;
}


p {
    margin-top: 0;
    margin-bottom: 0 !important;
}

.card-item-post {
    border: none;
    border-radius: 0;
    background-color: #dce6e3 !important;
}

.card-item-post .card-body {
    padding: 4px 9px;
}
.card-body.box-size {
  height: 137px;
  max-height: 151px;
}
.card-text.m-0.p-0 {
  font-size: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  margin-bottom: 0px;
}

.card.card-item.mt-1.mb-3 {
  height: 397px !important;
  max-height: 398px !important;
}
@media (max-width: 576px) {
   .card.card-item.mt-1.mb-3{
    height: 520px !important;
    max-height: 520px !important;
   }

}



.card-item-post img {
    max-height: 240px;
    object-fit: cover;
}

.card-item-post .card-body p {
    padding-bottom: 10px;

}

.slid-card-carousel {
    position: relative;
}

.slid-card-carousel h5 {
    position: absolute;
    bottom: 0;
    left: 50px;
    text-align: center;
    /* align-content: center; */
}

.carousel .slide1 {
    position: relative;
}

/* owl-carousel */
.owl-hidden {
    opacity: 0;
    visibility: hidden;
}

.owl-carousel.owl-loaded {
    opacity: 1;
    visibility: visible;
}

.owl-bg {
    background-color: #333333;
    padding: 5px 0 20px;
}

.mask-content-sm {
    position: absolute;
    z-index: 7;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 5px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.img-overlay-70-c a {
    color: white !important;
    font-size: 1.5rem;
}

.img-overlay-70-c a {
    color: white !important;
    font-size: 1.5rem;
}

.owl-carousel .owl-item img {
    display: block;
    width: 100%;
    -webkit-transform-style: preserve-3d;
}

.img-overlay-70-c a {
    color: white !important;
    font-size: 1.5rem;
}

.owl-controls {
    display: none !important;
}

.dossier {
    position: relative;
    display: inline-block
}

.dossier img {
    display: block;
    max-height: 110px;
}

.shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-weight: 700;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.shade:hover {
    color: #ced4da !important;
}

@media (max-width: 600px) {
    .dossier {
        display: block
    }

    .shade {
        position: static;
        /* میاد زیر عکس */
        background: transparent;
        /* فقط نوشته، بدون لایه روی عکس */
        color: #0d2b5b;
        /* دلخواه؛ می‌تونی سفید کنی */
        justify-content: center;
    }
}

.card-box .card-body h6 a {
    font-size: 17px;
    color: #0d47a1;
    font-weight: bold;

}

.card-box img {
    max-height: 105px;
    object-fit: cover;
    width: 100%;
}

.card-box .card-body {
    margin: 3px 0 0 0;
}

.card-box .card-body h6 {
    /* padding: 5px 0; */
    margin: 4px 0 0 0;
}

.card-box .card-body h6 a:hover {
    color: #860f10;

}

.more button {
    font-size: 14px !important;


}

.more button:hover {
    color: #212529;
    background-color: #b1b1b1 !important;
    border-color: #b1bbc4;

}

.box.list.list-numbers>div ul li {
    counter-increment: list;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 70px;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
}

.box.list.list-numbers>div ul li::before {
    content: counter(list, persian);
    text-indent: -5px;
    text-align: center;
    float: right;
    color: #666;
    background: #f1f1f1;
    border-radius: 50%;
    width: 70px;
    min-width: 70px;
    height: 70px;
    font-family: iran-sans-web;
    font-size: 2.5rem;
    line-height: 70px;
    -webkit-transition: all .2s;
    transition: all .2s;
    display: inline-block;
}

.box.list>div ul li .desc::after {
    content: "";
    clear: both;
    width: 100%;
    height: 1px;
    display: table;
}

.box.list>div ul li::after {
    clear: both;
    content: "";
    display: block;
}

.box-color {
    padding: 10px 10px;
}

/* .nav-link {
    color: white !important;
    background-color: #0c3555;
} */
.nav-tabs .nav-link.active {
    color: white !important;
    background-color: #0c3555;
    border-color: var(--bs-nav-tabs-link-active-border-color);
}

.nav-tabs .nav-link {
    margin-bottom: calc(-1 * var(--bs-nav-tabs-border-width));
    border: var(--bs-nav-tabs-border-width) solid transparent;
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    background-color: #f1f1f1;
    color: #0c3555;
}

.rooyekhat-items2 {
    border-bottom: 1px solid #e6e7e8;
    position: relative;
    padding: 2px 0;
}

.rooyekhat-items2 div a {
    color: #0d47a1;
    font-weight: bold;
    font-size: 14px;
}

.rooyekhat-items2 div a:hover {
    color: #860f10;
}

/* footer */
.footer_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer {
    background-color: #073e69;
    padding: 5px 0;
}


.footer ul li {
    /* padding: 2px 0; */
}

.footer ul li a {
    color: #b3b3b3;
    font-size: 17px;
    font-weight: bold;
    margin: 0 5px;
}

.footer ul li a:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .logo-footer img {
        display: none !important;
    }

}

#scrollUp {
    background-image: url("scroll-top.png");
    bottom: 20px;
    margin-right: 0px;
    width: 45px;
    height: 45px;
    opacity: 0.7;
    right: 0px;
    float: right;
    -moz-opacity: 0.7;
    -khtml-opacity: 0.7;
    filter: alpha(opacity=70);
    background-size: contain;
    position: relative;
}

.logo-footer {
    /* position: relative; */
}

/* .logo-footer img{
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 100px;
} */
.footer-bottom {
    background-color: #0c3555;
    display: flex;
    justify-content: center;
}

.logo-vista {
    content: url('contents/img/footer/logo-vista/logo-vrnc1.png');
    max-width: 200px;
}

.logo-vista:hover {
    content: url('contents/img/footer/logo-vista/Logo-VistaRaya.Net2.png');
    max-width: 200px;
}

img {
    max-width: 100%;
}

.page-content {
    margin-top: 10px;
    box-shadow: 0.2px 0.2px 5px rgba(0 0 0 / 30%);
    padding: 15px;
    border-radius: 5px;
}

.card-list {
    display: flex;
}

.card-list h6 a {
    font-size: 14px !important;
}

.card-list .card-box {
    width: 222px;
}

/* ol.commentlist>li{
    box-shadow: 0.2px 0.2px 5px rgba(0, 0, 0, 60%);
    padding: 10000px;
    border-radius: 5px;
} */
.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.commentlist li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.comment-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-author img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.comment-author {
    font-size: 14px;
    color: #222;
}

.comment-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.comment-body p {
    margin: 5px 0 0;
    font-size: 14px;
    line-height: 1.7;
}

.reply a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.reply a:hover {
    color: #000;
}

.commentlist .children {
    list-style: none;
    margin-right: 20px;
    margin-top: 10px;
}

.avatar-letter {
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
}

.nav-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    margin: 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    text-decoration: none;
    line-height: 1;
}

/* صفحه فعال */
.nav-links .current {
    background: #073e69;
    color: #fff;
    border-color: #000;
}

.img-overlay-70-c img {
    width: 100%;
    height: 260px;
    /* اندازه ثابت */
    object-fit: cover;
    /* مهم‌ترین بخش */
    display: block;
}

.logo-footer img {
    width: 100% !important;
    height: 100px !important;
    object-fit: contain;

}

#comment {
    width: 100%;
}

.Social_icon {
    margin: 0 !important;
}

.Social_icon img {
    height: 30px !important;
    margin: 0 10px !important;
}

@media (max-width: 576px) {
    .card-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .card-list .card {
        width: calc(50% - 5px);
    }

    .card-titel {
        margin: 0 !important;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }




}
@media (max-width: 576px){
 .nav-bar{
    display: none !important;
 }   
}

.bg-dark-blue{
    background:#002b5b;
}

.nav-bar{
    background:#1c517c;
    min-height:44px;
}

.img-menu{
    max-width:170px;
    height:80px;
    object-fit:contain;
}

.main-menu{
    list-style:none;
}

.main-menu li a{
    color:#fff !important;
    padding:10px 15px;
    display:block;
    transition:.2s;
}

.main-menu li a:hover{
    background:rgba(255,255,255,.08);
}

.mobile-logo{
    height:28px;
}

/* موبایل */

.offcanvas{
    width:280px !important;
}

.main-menu-mobile li{
    border-bottom:1px solid rgba(255,255,255,.08);
}

.main-menu-mobile li a{
    color:#fff !important;
    display:block;
    padding:14px 16px;
}

.main-menu-mobile li a:hover{
    background:rgba(255,255,255,.08);
}

.navbar-toggler{
    box-shadow:none !important;
}