
.claerfix{
    clear: both;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: rgb(2,0,36);
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 0%, rgba(0,76,149,1) 41%, rgba(0,212,255,1) 100%);
}
/* هدر */
/* هدر */
header img {
    width: 80%;
    height: auto;
    align-items:center;
}
.left-img {
    width: 30%;
}
.right-img {
    width: 30%;
    align-items:right,
}
/**ریسپانسیو هدر**/
@media (max-width: 768px) {
 header{
    display: flex;
    height: 200px;
    align-items: center;
 }
    /* هدر */
.header img {
    width: 104%;
    height: auto;
    align-items:center;
}
.left-img img {
    width: 97%;
}
.center-img img{
    width: 105%;
}
.right-img img {
    opacity: 0;
}
}

/* چیدمان فلکس‌باکس برای بخش‌های علمی */
.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.box {
    width: 200px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.box img {
    width: 100%;
    border-radius: 5px;
}

.box p {
    margin-top: 10px;
    font-weight: bold;
}



  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Tahoma', Arial, sans-serif;
            background: linear-gradient(135deg, #fdfdff 0%, #eedeff 100%);
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            direction: rtl;
        }

        .header2 {
            text-align: center;
            margin-bottom: 40px;
            color: rgb(7, 42, 97);
            margin-top: 50px;
            font-family: 'sahel';
        }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .search-container {
            max-width: 600px;
            margin: 0 auto 40px;
            position: relative;
        }

        .search-box {
            width: 100%;
            padding: 15px 50px 15px 20px;
            font-size: 20px;
            font-family: 'b nazanin';
            border: none;
            border-radius: 25px;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.46);
            transition: all 0.2s ease;
        }

        .search-box:focus {
            outline: none;
            transform: scale(1.02);
            box-shadow: 0 12px 30px rgba(0,0,0,0.2);
        }

        .search-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: #666;
        }

        .section {
            margin-bottom: 50px;
        }

        .section-title {
            text-align: center;
            font-size: 1.8rem;
            font-family: 'rey black';
            color: white;
            margin-bottom: 30px;
            padding: 15px;
            background: rgb(67, 189, 255);
            border-radius: 15px;
            backdrop-filter: blur(10px);
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            max-width: 100%;
        }

        .item-card {
            background: rgba(255,255,255,0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.418);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.152);
            backdrop-filter: blur(10px);
            cursor: pointer;
        }

        .item-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
            background: rgba(255,255,255,1);
        }

        .item-title {
            font-size: 1.7rem;
            font-family: 'Noor nazanin';
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
            border-bottom: 2px solid #667eea;
            padding-bottom: 8px;
        }

        .item-description {
            color: #666;
            line-height: 1.6;
            margin-bottom: 15px;
            font-size: 1.1rem;
            font-family: 'Noor nazanin';
        }

        .item-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: #888;
            font-family: 'rey black';
        }

        .download-btn, .view-btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .download-btn:hover, .view-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(102,126,234,0.4);
        }

        .no-results {
            text-align: center;
            font-family: 'b nazanin';
            color: rgb(21, 21, 21);
            font-size: 1.2rem;
            margin: 50px 0;
            padding: 20px;
            background: rgba(255,255,255,0.1);
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }

        @media (max-width: 768px) {
            .items-grid {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .section-title {
                font-size: 1.5rem;
            }
        }

        /* لودینگ انیمیشن */
        .loading {
            display: none;
            text-align: center;
            color: white;
            margin: 20px 0;
        }

        .spinner {
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top: 3px solid white;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

  
@font-face{
    font-family: 'b nazanin','Neirizi';
    src: url(images/BNaznnBd.ttf) format('woff2'),
         url(images/BNaznnBd.ttf) format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Neirizi';
    src: url(font/Neirizi.ttf) format('woff2'),
         url(font/Neirizi.ttf) format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'B Titr Bold';
    src: url(font/B\ Titr\ Bold-.ttf) format('woff2'),
         url(font/B\ Titr\ Bold-.ttf) format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Noor nazanin';
    src: url(font/Noor_Nazanin.ttf) format('woff2'),
         url(font/Noor_Nazanin.ttf) format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'rey black';
    src: url(font/Ray-Black.ttf) format('woff2'),
         url(font/Ray-Black.ttf) format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'vazir';
    src: url(font/Vazir.ttf) format('woff2'),
         url(font/Vazir.ttf) format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face{
    font-family: 'sahel';
    src: url(font/Sahel-Black.ttf) format('woff2'),
         url(font/Sahel-Black.ttf) format('woff');
    font-weight: normal;
    font-style: normal;
}
