/* استایل کلی */
body {
    font-family: 'Vazir', Arial, sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
	background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    color: #333;
}

/* هدر */
header {
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 150px;
    height: auto;
    margin-left: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: black;
}

/* منوی ناوبری */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #333;
    padding: 10px 0;
    border-radius: 5px;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4CAF50;
}

/* بخش Hero */

/*.hero1 {*/
/*    position: relative;*/
/*    height: 500px;*/
    /*width: 100%;*/
/*    overflow: hidden;*/
/*    text-align: center;*/
/*    color: white;*/
/*}*/

/*.hero-background1 {*/
/*    position: absolute;*/
/*    top: 20;*/
/*    left: 0;*/
        /*height: 100px;*/
/*    width: 100%;*/
/*    height: 20%;*/
/*    z-index: 1;*/
/*}*/

.hero {
    position: relative;
    height: 800px;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* بخش ویژگی‌ها */
.features {
    text-align: center;
    /*background-color: #fff3e0;*/
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 20px;
    gap: 10px;
}

.feature {
    width: 300px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 40px;
    color: #4CAF50;
    margin-bottom: 10px;
    margin-top: 10px;
}

.feature h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    font-size: 16px;
    color: #666;
}

/* بخش آخرین مقاله‌ها */
.latest-articles {
    text-align: center;
    padding: 50px 20px;
    /*background-color: #fff3e0;*/
}

.latest-articles h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: white;
}

.articles-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.article-card {
    width: 300px;
    /*background-color: white;*/
	background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-summary {
    padding: 15px;
    text-align: right;
}

.article-summary h3,a {
    text-decoration:none;
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
}

.article-summary a:hover{
    text-decoration:underline;
    color: blue;
}
.article-summary p {
    font-size: 14px;
    color: white;
    line-height: 1.6;
}

/* فوتر */
footer {
    /*background-color: #333;*/
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 10px 0;
    font-size: 16px;
    color: white;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #45a049;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-links li {
    margin: 0 10px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4CAF50;
}

/* استایل Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}



.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: right;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.close {
    float: left;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #4CAF50;
}

/* استایل لینک‌های ایمیل */
a[href^="mailto:"] {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}
a[href^="tel:"] {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

a[href^="mailto:"]:hover {
    
    color: #45a049;
}

a[href^="tel:"]:hover {
    
    color: #45a049;
}


/* Media Queries برای موبایل */
@media (max-width: 768px) {
    
    /* هدر */
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .logo-container {
      
        flex-direction: row;
        align-items: center;
    }

    .logo {
        margin-left: 0;
        margin-bottom: 10px;
    }

    /* منوی ناوبری */
    nav ul {
        flex-direction: column;
        padding: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* بخش Hero */
    .hero {
        height: 300px;
    }

    .hero-content {
        padding-top: 50px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* بخش ویژگی‌ها */
    .features {
        flex-direction: column;
        padding: 20px;
    }

    .feature {
        width: 100%;
        margin-bottom: 20px;
    }

    /* بخش آخرین مقاله‌ها */
    .latest-articles {
        padding: 20px;
    }

    .articles-container {
        flex-direction: column;
        align-items: center;
    }

    .article-card {
        width: 90%;
        margin-bottom: 20px;
    }

    /* فوتر */
    footer {
        padding: 15px;
    }

    footer p {
        font-size: 14px;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .social-links li {
        margin: 5px;
    }

    /* Modal */
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
    .back-home {
    text-align: center;
    margin-top: 20px;
}

.back-btn {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #5a6268;
}

}
