:root {
    --color-main: #D2001A;
    --color-red: #D2001A;
    --color-green: #2B7A0B;
    --color-blue: #1644c5; /*Blue*/
    --font-main: peyda-Medium;
    --font-caption: peyda-Bold;
    --font-en: peyda-digi;
    --border-radius: 6px;
}



@font-face {
    font-family: "peyda-Medium";
    src: url("fonts/PeydaWeb-Medium.woff") format("woff");
    unicode-range: U+0-2f, U+40-10FFFF;
}

@font-face {
    font-family: 'peyda-Medium';
    src: url("fonts/iran-yekan-500.woff") format("woff");
    unicode-range: U+30-39;
}


@font-face {
    font-family: "peyda-Bold";
    src: url("fonts/PeydaWeb-Bold.woff") format("woff");
    unicode-range: U+0-2f, U+40-10FFFF;
}

@font-face {
    font-family: 'peyda-Bold';
    src: url("fonts/iran-yekan-700.woff") format("woff");
    unicode-range: U+30-39;
}

@font-face {
    font-family: "peyda-digi";
    src: url("fonts/PeydaWeb-Bold.woff") format("woff");
}


* {
    box-sizing: border-box;
}


body {
    direction: rtl;
    font-family: var(--font-main);
    font-size: 18px;
    padding: 0px;
    margin: 0px;
}

img{
    max-width:100%;
}

hr {
    background-color:#555;
    width:80%;
    margin:25px auto;
}

.font-big{
    font-size:2rem;
}
.red {
    color: var(--color-main);
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

.text {
    text-align: justify;
    line-height: 175%;
}

a {
    color: #000000;
    text-decoration: none;
}

.dir{
    direction:ltr;
    font-family:var(--font-en);
}



    a:hover {
        color: #1d1d1d;
        text-decoration: underline;
        text-decoration-color: #aaa;
    }

header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

    header .top {
        background-color: var(--color-main);
        color: #fff;
        font-size: 0.9rem;
        height: 30px;
        line-height: 33px;
    }

        header .top a {
            color: #fff;
            text-decoration: none;
            display: inline-block;
            padding: 0px 5px;
        }

    header .main {
        padding: 15px 0px;
    }

        header .main img {
            margin-left: 10px;
        }

    header .menu-box {
        padding: 10px 0px;
        text-align: center;
    }

        header .menu-box a {
            color: #000;
            text-decoration: none;
            display: inline-block;
            padding: 0px 20px;
        }

footer {
    margin-top: 20px;
    color: #fff;
}

    footer .main {
        background-color: #444644;
        padding: 30px 0px;
    }

    footer .copyright {
        background-color: var(--color-main);
        font-family: peyda-digi;
        direction: ltr;
        font-size: 0.9rem;
        padding: 10px 0px;
    }

    footer a {
        color: #fff;
        text-decoration: none;
    }

        footer a:hover {
            color: #fff;
            text-decoration: underline;
        }

    footer .icon-box {
        display: flex;
        margin-top: 20px;
        justify-content: space-evenly;
    }


.img-box {
    width: 100%;
    padding-top: 55%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-cart);
}

    .img-box img
     {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius);
    }


    .img-box .service
    {
        position: absolute;
        left: 10px;
        top: 10px;
        padding: 0 5px;
        color: #fff;
        font-size: 0.95rem;
        background-color: var(--color-main);
        border-radius: var(--border-radius);
    }


.caption-box {
    margin-bottom: 10px;
    font-family: var(--font-caption);
    font-size: 1.2rem;
    line-height: 44px;
    height: 40px;
    background-color: var(--color-main);
    color: #fff;
    border-radius: var(--border-radius);
    background: linear-gradient( to left, #D2001A, rgba(0,0,0,0) );
}

    .caption-box .fa-solid {
        padding:0px 10px;
    }




.marquee {
    display: inline-block;
    line-height: 42px;
    height: 40px;
    direction: ltr;
    width: 100%;
    overflow: hidden;
    margin-bottom: 5px;
}

    .marquee .fa-solid {
        margin-left: 20px;
        margin-right: 20px;
    }

.ads-photo
{
    text-align:center;
    display:inline-block;
    width:100%;
    margin-bottom:10px;
}
    .ads-photo img{
        border-radius:var(--border-radius);
    }


#show_photo {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transform:translateY(100%);
    transition-duration:0.5s;
}
    #show_photo img {
        max-height: calc(100% - 100px);
        max-width: calc(100% - 100px);
        border:2px solid #fff;
        border-radius:var(--border-radius);
    }



.news-v1,
.news-v2 {
    width: 100%;
    padding-top: 55%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-cart);
}

    .news-v1 .service,
    .news-v2 .service {
        position: absolute;
        left: 10px;
        top: 10px;
        padding: 0 5px;
        color: #fff;
        font-size: 0.95rem;
        background-color: var(--color-main);
        border-radius: var(--border-radius);
    }


    .news-v1 img,
    .news-v2 img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

    .news-v1 .title,
    .news-v2 .title {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 10px;
        color: #fff;
        font-weight: bold;
        background: linear-gradient( to top, rgba(0,0,0,0.85), rgba(0,0,0,0.85) );
        border-bottom-right-radius: var(--border-radius);
        border-bottom-left-radius: var(--border-radius);
    }

    .news-v1 .title
    {
        max-height:106px;
    }

    .news-v2 .title {
        max-height: 74px;
    }


.news-hor
{
        border-radius: var(--border-radius);
}

    .news-hor:hover {
        background-color: #f7f7f7;
    }

    .news-hor h2
    {
        font-size:1.3rem;
    }

    .news-hor .service {
        padding: 0 5px;
        color: #fff;
        font-size: 0.95rem;
        background-color: var(--color-main);
        border-radius: var(--border-radius);
        display: inline-block;
        margin-bottom:5px;
    }


    .news-hor .desc {
        font-size: 0.95rem;
        text-align:justify;
        line-height:175%;
        padding-left:10px;
    }


.news-list-v1 {
    padding: 0 10px;
    margin: 0;
}

    .news-list-v1 li {
        list-style: none;
        margin-bottom: 10px;
        list-style: none;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

        .news-list-v1 li i {
            color: var(--color-main);
            margin-top: 4px;
            flex-shrink: 0;
        }



.news-page .top  {
    margin-bottom:10px;
}

        .news-page .top [class *='fa-']{
            color:var(--color-main);
            margin-left:10px;
        }



.news-page h1 {
    font-size:1.7rem;
    font-weight:bold;
}
.news-page .uptitle {

}
.news-page .body {
    margin-top:30px;
    line-height:200%;
}


.tag{
    background-color:#E7E7E7;
    display:inline-block;
    margin:5px;
    padding:5px 10px;
    border-radius:var(--border-radius);
}


    .tag:before {
        content: "\f02b";
        font-weight: 900;
        font-family: 'Font Awesome 6 Free';
        color:var(--color-main);
        margin-left:10px;
    }



.pagination
{
    direction:ltr;
    display:flex;
    justify-content:space-between;
    margin:20px 0px;
}

.pagination a {
    background-color:#ddd;
    height:30px;
    width:30px;
    text-align:center;
    line-height:32px;
    border-radius:var(--border-radius);
}
    .pagination a.active {
        background-color: var(--color-main);
        color:#fff;
    }