/* Reset و فونت‌ها */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Naskh Arabic', serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* هدر */
header {
    background-color: #2c786c;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

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

.logo img {
    height: 60px;
    margin-left: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    width: 250px;
}

.search-box button {
    background-color: #ff9800;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

/* منوی ناوبری */
nav {
    background-color: #004445;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #2c786c;
}

nav ul li a i {
    margin-left: 8px;
}

/* اسلایدر */
.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-text {
    position: absolute;
    bottom: 50px;
    right: 50px;
    background-color: rgba(0, 68, 69, 0.7);
    color: white;
    padding: 20px;
    max-width: 500px;
    border-radius: 5px;
}

.slide-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
}

.prev {
    right: 20px;
}

.next {
    left: 20px;
}

/* محتوای اصلی */
main {
    padding: 30px 5%;
}

.news h2, .quick-links h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #004445;
    font-size: 1.8rem;
}

.news h2 i, .quick-links h2 i {
    margin-left: 10px;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news article {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news article:hover {
    transform: translateY(-5px);
}

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

.news article h3 {
    padding: 15px;
    color: #2c786c;
}

.news article p {
    padding: 0 15px 15px;
    color: #666;
}

.news article a {
    display: inline-block;
    padding: 0 15px 15px;
    color: #ff9800;
    text-decoration: none;
    font-weight: 500;
}

.quick-links {
    margin-top: 40px;
}

.link-box {
    background-color: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-box:hover {
    background-color: #004445;
    color: white;
    transform: translateY(-5px);
}

.link-box:hover h3, .link-box:hover p {
    color: white;
}

.link-box i {
    font-size: 2.5rem;
    color: #ff9800;
    margin-bottom: 15px;
}

.link-box:hover i {
    color: white;
}

.link-box h3 {
    color: #2c786c;
    margin-bottom: 10px;
}

.link-box p {
    color: #666;
}

/* فوتر */
footer {
    background-color: #004445;
    color: white;
    padding: 40px 5% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #ff9800;
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-section i {
    margin-left: 8px;
    color: #ff9800;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff9800;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    background-color: #2c786c;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #ff9800;
    transform: translateY(-3px);
}

.qr-code {
    width: 100px;
    height: 100px;
    border: 2px solid #ff9800;
    padding: 5px;
    background-color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #2c786c;
    font-size: 0.9rem;
    color: #ddd;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-text {
        right: 20px;
        bottom: 20px;
        max-width: 80%;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .slide-text h2 {
        font-size: 1.2rem;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
}