/* ======== إعداد عام ======== */
body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    color: #222;
    scroll-behavior: smooth;
    background: #fff;
}

section {
    margin: 80px 0;
    padding: 0 20px;
}

/* ======== HERO ======== */
.hero-video {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 80px;
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

    .video-background iframe {
        width: 100%;
        height: 100%;
        border: none;
        pointer-events: none;
    }

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 40px 20px;
    border-radius: 12px;
    max-width: 90%;
}

    .hero-overlay h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }

    .hero-overlay p {
        font-size: 1.2rem;
    }

.hero-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn-main,
.btn-outline {
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-main {
    background-color: #00a651;
    color: #fff;
}

.btn-outline {
    border: 2px solid #00a651;
    color: #00a651;
}

    .btn-main:hover,
    .btn-outline:hover {
        background-color: #00a651;
        color: #fff;
        transform: translateY(-3px);
    }

/* ======== نبذة عن المشروع ======== */
.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
}

.about .text {
    flex: 1 1 400px;
}

.about img {
    flex: 1 1 400px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ======== لماذا المشروع ======== */
.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    width: 350px;
    transition: 0.3s;
}

    .card span {
        font-size: 2rem;
        display: block;
        margin-bottom: 10px;
    }

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

/* ======== ماذا نقدم ======== */
.offer {
    background: #fff;
    padding: 100px 0;
}

.offer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.offer-text {
    flex: 1 1 400px;
}

    .offer-text h2 {
        font-size: 2rem;
        color: #00a651;
        font-weight: 700;
        margin-bottom: 25px;
    }

    .offer-text li {
        font-size: 1.1rem;
        margin-bottom: 12px;
        transition: all 0.3s ease;
        cursor: default;
    }

        .offer-text li:hover {
            transform: translateX(-10px);
            color: #007c3b;
        }

.offer-media {
    flex: 1 1 400px;
    text-align: center;
}

.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

    .video-box iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.carousel {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .carousel img {
        width: 110px;
        height: 75px;
        border-radius: 10px;
        object-fit: cover;
        transition: 0.3s;
        opacity: 0.8;
    }

        .carousel img:hover {
            opacity: 1;
            transform: scale(1.08);
        }

/* ======== فريق المشروع ======== */
.team {
    background: #f9fafb;
    padding: 80px 0;
    text-align: center;
    direction: rtl;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.9;
    text-align: justify;
    text-align-last: center;
}

.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.member {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    width: 260px;
    transition: all 0.3s ease;
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #00a65120;
    transition: transform 0.3s ease;
}

.member:hover {
    transform: translateY(-6px);
}

    .member:hover .member-photo {
        transform: scale(1.08);
    }
.team-section {
    background: #f9fafb;
    padding: 80px 20px;
    text-align: center;
    direction: rtl;
}

.team-title {
    font-size: 2rem;
    color: #007c3b;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    text-align: center;
}

    .team-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        background: #00a651;
        margin: 10px auto;
        border-radius: 3px;
    }

.team-description {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.9;
    text-align: center;
}

.highlight {
    color: #00a651;
    font-weight: 700;
}

/* 🔥 صندوق الرؤية */
.vision-box {
    background: linear-gradient(135deg, #00a65115, #007c3b20);
    border: 2px solid #00a65130;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

    .vision-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 166, 81, 0.2);
    }

    .vision-box h3 {
        color: #007c3b;
        margin-bottom: 15px;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .vision-box p {
        color: #333;
        font-size: 1.15rem;
        font-style: italic;
    }

/* 📱 Responsive */
@media (max-width: 768px) {
    .team-title {
        font-size: 1.6rem;
    }

    .team-description {
        font-size: 1rem;
    }

    .vision-box {
        padding: 25px 15px;
    }

        .vision-box h3 {
            font-size: 1.4rem;
        }
}


/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }

    .about .container {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .hero-video {
        height: 80vh;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .card {
        width: 90%;
    }

    .offer-text h2 {
        text-align: center;
    }

    .team-intro {
        font-size: 1rem;
        padding: 0 10px;
    }

    .member {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .hero-overlay h1 {
        font-size: 1.6rem;
    }

    .hero-overlay p {
        font-size: 0.9rem;
    }

    .offer-text li {
        font-size: 1rem;
    }

    .carousel img {
        width: 90px;
        height: 60px;
    }

    .team {
        padding: 60px 0;
    }
}

/* ====== ABOUT SECTION ====== */
.about {
    /*padding: 100px 20px;*/
    background: #fff;
    direction: rtl;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 50%;
}

    .about-text h2 {
        font-size: 2rem;
        color: #007c3b;
        margin-bottom: 20px;
        position: relative;
    }

        .about-text h2::after {
            content: "";
            position: absolute;
            bottom: -8px;
            right: 0;
            width: 60px;
            height: 3px;
            background: #00a651;
            border-radius: 4px;
        }

    .about-text p {
        font-size: 1.1rem;
        line-height: 1.9;
        color: #333;
        text-align: justify;
        text-align-last: right;
    }

.about-image {
    flex: 1 1 45%;
    text-align: center;
}

    .about-image img {
        width: 100%;
        max-width: 480px;
        border-radius: 16px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
        transition: transform 0.5s ease;
    }

        .about-image img:hover {
            transform: scale(1.03);
        }

/* ===== Text ===== */
.footer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

/* ===== Titles ===== */
.footer-col h3 {
    font-weight: 700;
    color: #00984d;
    margin-bottom: 20px;
    position: relative;
}

    .footer-col h3::after {
        content: "";
        display: block;
        width: 40px;
        height: 2px;
        background: #00a651;
        margin-top: 5px;
    }

/* ===== Links ===== */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.3s;
}

    .footer-col li:hover {
        color: #007c3b;
        transform: translateX(-5px);
    }

.footer-col a {
    color: inherit;
    text-decoration: none;
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

    .social-links a {
        background: #fff;
        color: #007c3b;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

        .social-links a:hover {
            background: #007c3b;
            color: #fff;
            transform: scale(1.1);
        }

/* ===== Footer Bottom ===== */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e2e2;
    font-size: 0.9rem;
    color: #555;
}

footer .footer-logo {
    width: 170px !important;
    height: auto !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

    footer .footer-logo:hover {
        transform: scale(1.05);
    }
/* ===== FOOTER STYLING ===== */
.custom-footer {
    background: #f7f7f5;
    padding: 70px 0 30px;
    color: #222;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    overflow: hidden;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ===== Footer General ===== */
.footer {
    background: #f8f6f2;
    color: #222;
    padding: 60px 0 25px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    overflow: hidden;
}

/* ===== Container ===== */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== Columns ===== */
.footer-col {
    /* text-align: right;*/
}

/* العمود العام */
.footer-col {
    /* flex: 1 1 300px;*/
    min-width: 260px;
}

    /* ===== العمود الأول ===== */
    .footer-col.about {
        text-align: center;
        background: transparent; /* إزالة الخلفية البيضاء */
    }

.footer-logo {
    width: 170px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

    .footer-logo:hover {
        transform: scale(1.05);
    }

.footer-col.about p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}
/* تحسين مظهر العناوين في الفوتر */
.footer-col h3 {
    font-size: 1.3rem;
    color: #007c3b;
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

    /* الخط الأخضر تحت العنوان */
    .footer-col h3::after {
        content: "";
        display: block;
        width: 60%;
        height: 3px;
        background: #00a651;
        margin: 6px auto 0 !important; /* ✅ يوسّط الخط تحت الكلمة */
        border-radius: 5px;
        transition: width 0.3s ease;
    }

    /* حركة بسيطة عند التمرير أو الظهور */
    .footer-col h3:hover::after {
        width: 80%;
    }


/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .about-text p {
        text-align: center;
    }

    .about-image img {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 60px 15px;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .footer-logo {
        width: 110px;
    }
}

@media (max-width: 600px) {
    .footer-logo {
        width: 90px;
        margin-bottom: 10px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}
