/* ملف الأنماط المتجاوبة لجمعية إدراك التعليمية */

/* شاشات كبيرة (أكبر من 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* شاشات متوسطة (992px إلى 1199px) */
@media (max-width: 1199px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .nav-links li {
        margin-right: 15px;
    }
}

/* أجهزة لوحية (768px إلى 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content,
    .volunteer-content,
    .join-content,
    .support-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .programs-grid,
    .mission-vision-grid,
    .goals-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 2000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0 0 25px 0;
        width: 100%;
    }
    
    .nav-links a {
        padding: 15px 0;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 2001;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* الهواتف الكبيرة (576px إلى 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-grid,
    .programs-grid,
    .mission-vision-grid,
    .goals-grid,
    .team-grid,
    .news-grid,
    .benefits-grid,
    .contact-methods,
    .departments-grid,
    .alternative-options {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input {
        border-radius: 8px;
        width: 100%;
    }
    
    .newsletter-form button {
        border-radius: 8px;
        width: 100%;
    }
    
    .page-header-content h1 {
        font-size: 2.2rem;
    }
}

/* الهواتف الصغيرة (أقل من 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar {
        padding: 12px 0;
    }
    
    .main-header {
        top: 0; /* على الجوال، top-bar قد يكون مخفياً أو أصغر */
    }
    
    body {
        padding-top: 100px; /* تعديل padding-top للجوال */
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .contact-info .contact-item {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.95rem;
    }
    
    .contact-info .contact-item i {
        font-size: 1rem;
    }
    
    .logo {
        max-width: 220px;
        flex: 1;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        margin-left: 12px;
    }
    
    .logo-text h1 {
        font-size: 1.15rem;
        line-height: 1.3;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .mobile-menu-btn {
        font-size: 1.5rem;
        padding: 8px;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .program-stats-detail {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 70px 0;
    }
    
    .page-header-content h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
}

/* شاشات صغيرة جداً (أقل من 400px) */
@media (max-width: 400px) {
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .stat-number,
    .impact-number {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .nav-links {
        width: 100%;
    }
}
