@font-face {
    font-family: 'BNazanin';
    src: url('/static/B Nazanin_p30download.com.ttf') format('woff'),
    url('/static/B Nazanin_p30download.com.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BTabassom';
    src: url('/static/B Tabssom_p30download.com.ttf') format('woff'),
    url('/static/B Tabssom_p30download.com.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "BTabassom", sans-serif;
    background-color: #ffffff; /* پس‌زمینه سفید */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333; /* متن تیره‌تر */
}

header {
    font-family: "BTabassom", sans-serif;
    background-color: #0056b3;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

header h1 {
    font-family: "BTabassom", sans-serif;
    margin: 0;
    color: #fff;
}

nav {
    margin-top: 15px;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #007BFF;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 10px;
    text-align: center;
}

p {
    font-size: 1.2em;
}

#about p {
    max-width: 1000px;
    margin: 0 auto;
    direction: rtl;
}

#partners ul {
    text-align: center;
    list-style: none;
    padding: 0;
    direction: rtl;
}

#partners li {
    margin: 10px 0;
    font-size: 1.2em;
    display: inline-block;
    padding: 50px;
}

/* گالری تصاویر */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* فرم تماس */
#contact {
    text-align: center;
    direction: rtl;
}

#contact table {
    width: 1200px;
}

#contact td {
    width: 33%;
}

/*#contact form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

#contact input, #contact textarea {
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 1em;
}

#contact button {
    padding: 15px;
    background-color: #ffd700;
    color: #007BFF;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact button:hover {
    background-color: #e6c200;
}*/

/* فوتر */
footer {
    background-color: #0056b3;
    padding: 20px;
    text-align: center;
    font-size: 1em;
    position: relative;
}

/* دکمه بازگشت به بالا */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    transition: background-color 0.3s;
}

#scrollTopBtn:hover {
    background-color: #0056b3;
}

#organization {
    text-align: center;
}

#organization button {
    padding: 15px;
    background-color: #ffd700;
    color: #007BFF;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#organization button:hover {
    background-color: #e6c200;
}

/* ریسپانسیو */
@media(max-width: 768px){
    header h1 {
        font-size: 2em;
    }
    .gallery {
        flex-direction: column;
        align-items: center;
    }
    .gallery img {
        width: 90%;
    }
}