﻿/* متغيرات الألوان */
:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --dark-green: #1B5E20;
    --primary-yellow: #FFD600;
    --light-yellow: #FFEE58;
    --dark-yellow: #F9A825;
    --neutral-light: #f8f9fa;
    --neutral-dark: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

/* إعادة تعيين الأساسي */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Tahoma', Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-green);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--dark-yellow);
    }

/* الترويسة */
header {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

    .logo:hover {
        transform: scale(1.02);
    }

    .logo img {
        width: 90px;
        height: auto;
    }


.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* قائمة التنقل */
nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin-right: 20px;
    }

        nav ul li:last-child {
            margin-right: 0;
        }

        nav ul li a {
            color: var(--white);
            text-decoration: none;
            font-weight: 600;
            padding: 8px 15px;
            border-radius: 4px;
            transition: var(--transition);
            position: relative;
        }

            nav ul li a::after {
                content: '';
                position: absolute;
                bottom: 0;
                right: 50%;
                transform: translateX(50%);
                width: 0;
                height: 2px;
                background-color: var(--primary-yellow);
                transition: var(--transition);
            }

            nav ul li a:hover::after,
            nav ul li a.active::after {
                width: 80%;
            }

            nav ul li a:hover {
                color: var(--primary-yellow);
            }

            nav ul li a.active {
                color: var(--primary-yellow);
            }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

    .mobile-menu-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* القسم الرئيسي */
.hero {
    background: linear-gradient( rgba(46, 125, 50, 0.5), rgba(46, 125, 50, 0.8) ), url('../img/sheakhassen.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: radial-gradient(circle at 30% 50%, rgba(255, 214, 0, 0.1), transparent 70%);
    }

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.img img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-yellow);
    color: var(--dark-green);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(45deg, var(--light-yellow), var(--primary-yellow));
        z-index: -1;
        opacity: 0;
        transition: var(--transition);
    }

    .cta-button:hover::before {
        opacity: 1;
    }

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }

/* الأقسام */
.sections {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: var(--dark-green);
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 100px;
            height: 4px;
            background-color: var(--primary-yellow);
        }

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.section-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
}

    .section-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .section-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
    }

.card-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    transition: var(--transition);
}

.section-card:hover .card-icon {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
}
.card-image img {
    width: 100%;
    height: 140px; /* تم تقليل الارتفاع */
    object-fit: cover;
}
.card-content {
    padding: 25px;
}
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* عدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s;
}

    .card-text.show {
        -webkit-line-clamp: unset;
    }

    .card-content h3 {
        color: var(--dark-green);
        margin-bottom: 15px;
        font-size: 1.6rem;
    }

    .card-content p {
        color: #555;
        margin-bottom: 20px;
        line-height: 1.7;
    }

.card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-yellow);
    color: var(--dark-green);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

    .card-button:hover {
        background-color: var(--light-yellow);
        transform: translateX(-5px);
    }

/* أخبار وفعاليات */
.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    background: #fff;
    margin: 10px 0;
    padding: 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

    .news-item:hover {
        background: #f0f0f0;
    }

.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.news-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 400px;
    text-align: center;
}

    .news-modal-content img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
    }

.close-modal {
    cursor: pointer;
    float: left;
    font-size: 25px;
}
.news {
    background-color: #f0f7f0;
    padding: 80px 20px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

    .news-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

.news-date {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 15px;
    display: inline-block;
    border-radius: 0 0 5px 0;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

    .news-content h3 {
        color: var(--dark-green);
        margin-bottom: 15px;
        font-size: 1.4rem;
    }


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 15px;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

    .gallery-img:hover {
        transform: scale(1.05);
    }

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gallery-modal-content {
    max-width: 80%;
    max-height: 80%;
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

    .video-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.video-content {
    padding: 15px;
    text-align: center;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.video-modal-content {
    background: #000;
    padding: 10px;
    width: 60%;
}
.video-card .play-video {
    background-color: #2e7d32; /* غيّر اللون ليتناسق مع ألوان موقعك */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px; /* زوايا مستديرة */
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* مسافة بين الأيقونة والنص */
}

    .video-card .play-video i {
        font-size: 18px;
    }

    .video-card .play-video:hover {
        background-color: #08710f; /* لون أغمق عند المرور */
        transform: translateY(-2px);
    }


/* قسم عن المؤسسة */
.about {
    padding: 80px 20px;
    background-color: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--dark-green);
    margin: 25px 0 15px;
    font-size: 1.5rem;
    position: relative;
    padding-right: 15px;
}

    .about-text h3::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 20px;
        background-color: var(--primary-yellow);
    }

.about-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.goals-list {
    list-style: none;
    margin: 20px 0;
}

    .goals-list li {
        margin-bottom: 12px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .goals-list i {
        color: var(--primary-green);
        margin-top: 3px;
    }

.achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.achievement-item {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

    .achievement-item:hover {
        border-color: var(--primary-green);
        transform: translateY(-5px);
    }

.achievement-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.achievement-text {
    font-size: 0.9rem;
    color: #666;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
/* التذييل */
footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 3px;
        background-color: var(--primary-yellow);
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #ddd;
        text-decoration: none;
        transition: var(--transition);
        display: inline-block;
    }

        .footer-links a:hover {
            color: var(--primary-yellow);
            padding-right: 5px;
        }

.contact-info {
    list-style: none;
}

    .contact-info li {
        margin-bottom: 15px;
        display: flex;
        align-items: flex-start;
    }

    .contact-info i {
        color: var(--primary-yellow);
        margin-left: 10px;
        margin-top: 5px;
        min-width: 20px;
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
        border-radius: 50%;
        transition: var(--transition);
    }

        .social-links a:hover {
            background-color: var(--primary-yellow);
            color: var(--dark-green);
            transform: translateY(-3px);
        }

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

    .newsletter-form input {
        padding: 12px 15px;
        border: none;
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
        font-size: 1rem;
        transition: var(--transition);
    }

        .newsletter-form input:focus {
            outline: none;
            background-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 0 2px var(--primary-yellow);
        }

        .newsletter-form input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

.newsletter-btn {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-yellow);
    color: var(--dark-green);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

    .newsletter-btn:hover {
        background-color: var(--light-yellow);
    }

.newsletter-message {
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 20px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* زر العودة إلى الأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: var(--light-green);
        transform: translateY(-3px);
    }

/* التجاوب مع الهواتف المحمولة */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        padding: 15px 20px;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav {
        width: 100%;
    }

        nav ul {
            justify-content: center;
            flex-wrap: wrap;
        }

            nav ul li {
                margin: 5px 10px;
            }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }

        nav.active {
            display: block;
            animation: slideDown 0.3s ease;
        }

        nav ul {
            flex-direction: column;
            background-color: var(--light-green);
            border-radius: var(--border-radius);
            padding: 15px;
        }

            nav ul li {
                margin: 5px 0;
                width: 100%;
                text-align: center;
            }

                nav ul li a {
                    display: block;
                    padding: 10px;
                }

    .hero {
        padding: 70px 20px;
        background-attachment: scroll;
    }

        .hero h2 {
            font-size: 1.8rem;
        }

        .hero p {
            font-size: 1rem;
        }

    .section-title h2 {
        font-size: 2rem;
    }

    .sections, .news, .about {
        padding: 50px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .achievements {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* أنيميشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
