* {
    direction: rtl;
    box-sizing: border-box;
    font-family: IranSANS, Tahoma, Arial;
}
body {
    line-height:1.5;
    padding: 5px;
    margin: 0;
    /*background: linear-gradient(45deg, white, rgb(0, 22, 118));*/
}
body {
    margin: 0;
    background: linear-gradient(
        45deg,
        /*#00647a*/
        hsl(191, 100%, 65%),
        #b4eeff,
        #4edfff
        /*#00647a*/
    );

    background-size: 400% 400%;
    animation: gradientChange 10s ease infinite;
}

@keyframes gradientChange {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/*-------------------------------------- */
header, footer {
    background: #00647a;
    color: #ffffff;            
    padding: 20px;
    padding-bottom: 30px;
    font-size: 12px;
}
 header h1 {
    color: #ffffff;
    text-align: center;
    animation: moveSide 2s ease-in-out infinite alternate;
}

@keyframes moveSide {
    from {
        transform: translateX(-3px);
    }

    to {
        transform: translateX(3px);
    }
}
.matn {
    white-space: nowrap;
    animation: moveText 2s ease-in-out infinite alternate;
}

@keyframes moveText {
    from {
        transform: translateX(-1px);
    }

    to {
        transform: translateX(2px);
    }
}
/*h1 img {
    text-align: left;
    width: 5%
}*/
footer {
    clear: both;
    text-align: center;
    font-size: 17px;
}
/*------------------------------------*/
header {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;

    padding: 20px;
}

/* لوگوی اصلی */
header h6 {
    margin: 0;
    padding: 0;
}

header h6 img {
    width: 80px;
    height: auto;
    display: block;
}

/* گروه تصاویر */
.header-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 15px;
}

.header-menu a {
    display: block;
}

.header-menu img {  
    transition: transform 0.3s;
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}
.header-menu img:hover{
    transform: scale(1.3);  
}
/*-------------------------------------------*/
nav {
    padding: 5px 20px 10px 5px;            
    background-color: #00647a;
    margin: 5px 0px;     
    color: #fff;
    text-align: center;            
}
aside {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}
.tabligh { 
    text-align: center; 
    color: #000000;
    font-size: 30px;
}
section {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
    margin-bottom: 10px;
}
/*-------------------------------------- */
 h2 img {
    width: 52%;
    height: auto;
    float: left;
    padding: 20px;
}
/*.text {
    font-size:17px; 

}/*
/*-----------------------*/
.text{
    size: 30px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #ffffff, #545454);
    border-radius: 12px;
    border: 1px solid #00556f;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
    padding: 20px;
}
/* عنوان هر شعر */

.text h1{

    text-align:center;
    
    margin-top:0;

}


/* متن شعر */

.text p{

    text-align:center;

    line-height:2.5;
}
/*-------------------------------*/
nav a:hover {
    font-weight: bold;
    color: #fff;
}
nav ul{
    list-style-type: none;
    padding: 0;
    background-color: #00647a;
    display: flex;
    text-align: center;
}
nav li a{
    text-decoration: none;
    color: #fff;
    display: block;
    padding-right: 10px;
    padding-left: 10px;
    border-left: 1px solid #fff;
} 
.matn {
    color: #fff;

    text-align:center;
} 
      
/*-------------------------------------*/
@media (max-width: 1000px) {

    body {
        padding: 3px;
    }

     h2 {
        margin: 10px 0;
        text-align: center;
    }

    h2 img {
        width: 300%;
        max-width: 340px;
        height: auto;
        float: none;
    }

    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;

        width: 100%;
        padding: 15px;
    }

    /* لوگو */

    header h6 {
        width: 100%;
        text-align: center;
        margin: 0 0 15px 0;
    }

    header h6 img {
        width: 140px;
        height: auto;
        margin: 0 auto;
    }

    /* تصاویر بخش‌ها */

    .header-menu {
        width: 100%;

        display: flex;
        flex-wrap: wrap;

        justify-content: center;
        align-items: center;

        gap: 10px;
    }

    .header-menu img {
        width: 60px;
        height: 60px;

        object-fit: contain;
    }

    nav {
        width: 100%;
        box-sizing: border-box;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    aside {
        width: 100%;
        padding: 10px;
        float: none;
        box-sizing: border-box;
    }

    .text {
        width: 100%;
        box-sizing: border-box;
        padding: 0px;
    }

    footer {
        width: 100%;
        box-sizing: border-box;
    }
    .search-box {
        width: 200%;
        height: 20px;
        margin: 15px 0;
        float: left;
        padding-bottom: 7px;
    }

    #searchInput {
        width: 20px;
        box-sizing: border-box;
    }

    .search-box button {
        margin-top: 8px;
    }
    
    .site {
        text-align: center;
    }
}
/*----------------------------------------------------*/
/*نسخه توقف وسط*/
.slider {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#akses {
    cursor: pointer;
    display: block;
}

#akses.slide-out {
    animation: slideOut 0.5s ease forwards;
}

#akses.slide-in {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}
/*نسخه توقف راست*/
/*#akses {
    position: relative;
    right: 0;
}

#akses.slide-out {
    animation: slideOut 0.5s ease forwards;
}

#akses.slide-in {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideOut {
    from {
        right: 0;
    }
    to {
        right: 70%;
    }
}

@keyframes slideIn {
    from {
        right: -70%;
    }
    to {
        right: 0;
    }
}*/
.site h1{
    color:#0065bc;
    font-size: 50px;
}
.site p {
    color: #000000;
    font-size: 25px;
}
.site h3{
    color: #000000;
    font-size: 30px;
}
.site h3 b {
    color: #0065bc;
}
.site {
    padding: 6px;
    font-weight: bold;
}
#jomle h3{
    color: #000000;
    font-size: 30px;
}
#jomle h3 b {
    color: #0065bc;
}
#jomle {
    padding: 6px;
    font-weight: bold;
}
/*------------------------------------------*/
.search-box {
    margin: 30px auto;
    display: flex;
}

#searchInput {
    width: 200px;
    max-width: 500px;
    padding: 12px;
    height: 40px;
    font-size: 17px;

    border: 2px solid #00647a;
    border-radius: 20px;

    direction: rtl;
}

.search-box button {
    
    padding: 12px 20px;

    margin-right: 5px;

    border: none;
    border-radius: 10px;

    background: #00647a;
    color: white;

    font-size: 16px;

    cursor: pointer;
}

.search-box button:hover {
    background: #001676;
}


#searchResults {

    width: 80%;
    max-width: 800px;

    margin: 20px auto;

}


.search-result {

    background: white;

    padding: 15px;

    margin: 15px 0;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.15);

}


.search-result h3 {
    margin-top: 0;
}


.search-result a {

    color: #00647a;

    text-decoration: none;

}


.search-result a:hover {

    color: #001676;

    text-decoration: underline;

}


.search-result p {

    line-height: 1.8;

}
mark {
    background: #4edfff;
    color: #001676;
    padding: 2px 5px;
    border-radius: 5px;
    font-weight: bold;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #00647a;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    color: #001676;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-content {
    display: flex;
    align-items: center;
}

.search-box {
    margin-left: auto;
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-info {
    text-align: right;
}

.search-box {
    margin-left: auto;
    text-align: center;
}
@media (max-width: 1000px) {

    header {
        height: auto;
        min-height: 450px;
    }

    header h6 {
        position: static;
        text-align: center;
        padding-top: 20px;
    }

    header h6 img {
        width: 120px;
        margin: auto;
    }

    header h1 {
        position: static;
        text-align: center;
        margin-top: 10px;
    }

    header .matn {
        position: static;
        white-space: normal;
        text-align: center;
        margin: 10px;
    }


    /* =========================
       جست‌وجو در موبایل
    ========================= */

    .search-box {
        position: static;

        transform: none;

        width: 100%;
        max-width: 100%;

        margin: 30px 0 0 0;
        padding: 0 10px;

        box-sizing: border-box;

        display: flex;
        align-items: center;
    }


    #searchInput {
        flex: 1;

        min-width: 0;

        width: auto;
        max-width: none;

        height: 45px;

        padding: 8px 12px;

        font-size: 15px;

        box-sizing: border-box;
    }


    .search-box button {
        flex-shrink: 0;

        height: 45px;

        margin-right: 5px;

        padding: 0 10px;

        font-size: 14px;

        white-space: nowrap;
    }
}
