body {
    font-family: 'Cairo',sans-serif;
    color: #222;
    scroll-behavior: smooth;
    background: #fff
}

.navbar {
    background: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,.15)
}

    .navbar .nav-link {
        color: #fff !important;
        font-weight: 600;
        margin: 0 .5rem
    }

        .navbar .nav-link:hover {
            color: #00a651 !important
        }

.brand-logo {
    height: 56px
}

.lang-btn {
    border: 1px solid #00a651;
    color: #00a651;
    background: transparent;
    margin: 0 .25rem;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 14px
}

    .lang-btn.active, .lang-btn:hover {
        background: #00a651;
        color: #fff
    }

.hero {
    background: linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)), url('/assets/images/hero.jpeg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 190px 20px 110px
}

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

    .hero p {
        font-size: 1.15rem
    }
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
    text-align: center; /* ← هذا هو المهم */
    display: flex;
    flex-direction: column;
    align-items: center; /* ← لتوسيط الأزرار أيضًا */
    justify-content: center;
}
    .hero-content h1,
    .hero-content p,
    .hero-buttons {
        text-align: center !important;
    }


.section {
    padding: 40px 0
}

    .section h2 {
        text-align: center;
        font-weight: 700;
        margin-bottom: 24px
    }

.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border-top: 5px solid #00a651;
    border-radius: 16px
}
.cardabout {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border-top: 5px solid #00a651;
    border-radius: 16px
}

.clamp-8 {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden
}

footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 24px;
    margin-top: 40px
}

    footer a {
        color: #00a651;
        text-decoration: none
    }

        footer a:hover {
            color: #e30613
        }

/* إصلاح تجاهل Bootstrap للـ RTL */
[dir="rtl"] .section,
[dir="rtl"] .container,
[dir="rtl"] .row,
[dir="rtl"] .col-12,
[dir="rtl"] .card-body {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .clamp-8 {
    text-align: right !important;
    direction: rtl !important;
}
/* 🌐 تصميم قائمة اللغة */
.dropdown {
    position: relative;
}

.dropbtn {
    background: transparent;
    color: #fff;
    border: 1px solid #00a651;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

    .dropbtn:hover {
        background: #00a651;
        color: #fff;
    }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #111;
    min-width: 160px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 8px;
    top: 40px;
    right: 0;
    z-index: 999;
    text-align: right;
}

    .dropdown-content a {
        color: #fff;
        padding: 10px 14px;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: 0.3s;
    }

        .dropdown-content a:hover {
            background-color: #00a651;
            color: #fff;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.btn-main {
    background: #00a651;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-main:hover {
        background: #008c47;
    }

.btn-outline {
    border: 2px solid #00a651;
    color: #00a651;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

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

.bg-light {
    background-color: #f9f9f9;
}

blockquote {
    font-size: 1.3rem;
    color: #333;
    font-style: italic;
    border-right: 4px solid #00a651;
    padding: 10px 20px;
    display: inline-block;
}

.cta {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/assets/images/hero1.jpeg') center/cover no-repeat;
    color: #fff;
    padding: 90px 20px;
}

.about-section {
    padding: 15px 0;
    background: #f9f9f9;
}

.about-text h2 {
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

.about-text blockquote {
    font-style: italic;
    border-right: 4px solid #00a651;
    padding-right: 15px;
    color: #444;
}

.values-list {
    list-style: none;
    padding: 0;
    font-size: 1.05rem;
    line-height: 2;
}

    .values-list li {
        transition: transform 0.3s ease, color 0.3s ease;
    }

        .values-list li:hover {
            color: #00a651;
            transform: translateX(-5px);
        }

.btn-outline {
    display: inline-block;
    border: 2px solid #00a651;
    color: #00a651;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.about-image img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

    .about-image img:hover {
        transform: scale(1.03);
    }
/* قسم المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 25px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: right;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 500px;
    min-height: 460px; /* 👈 توحيد الارتفاع */
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    }

.project-img {
    width: 100%;
    height: 300px; /* 👈 توحيد الصور */
    object-fit: cover;
}

.project-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .project-content h5 {
        font-weight: 700;
        color: #111;
        margin-bottom: 10px;
        font-size: 1.05rem;
    }

    .project-content p {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.7;
        flex-grow: 1; /* يملأ الفراغ لتوازن الأزرار أسفل البطاقة */
        height:20px;
    }

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.btn-main {
    background: #00a651;
    color: #fff;
    padding: 7px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-main:hover {
        background: #008b45;
    }

.btn-outline {
    border: 1.5px solid #00a651;
    color: #00a651;
    padding: 7px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

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

/* بطاقة المشروع المميزة */
.featured {
    grid-column: span 2; /* تجعلها أوسع في الشاشات الكبيرة */
}




/* 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);
    }
}

/* ===== 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%;
    }

/* ===== روابط السوشيال ميديا ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: #fff;
        border-radius: 50%;
        color: #00a651;
        font-size: 17px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background: #00a651;
            color: #fff;
            transform: translateY(-3px);
        }

/* ===== الأعمدة الأخرى ===== */
.footer-col h4 {
    color: #007c3b;
    border-bottom: 2px solid #00a651;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-col ul li {
        margin-bottom: 8px;
    }

        .footer-col ul li a {
            text-decoration: none;
            color: #333;
            transition: color 0.3s;
        }

            .footer-col ul li a:hover {
                color: #00a651;
            }

.footer-col.contact p {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* ===== الجزء السفلي ===== */
.footer-bottom {
    margin-top: 50px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding-top: 15px;
    color: #666;
    font-size: 0.9rem;
}
.contact-box {
    transition: all 0.3s ease;
    padding: 25px;
    border-radius: 12px;
}

    .contact-box:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        background: #fafafa;
    }

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

    .footer-col {
        width: 100%;
    }

        .footer-col.about {
            order: -1;
        }
}


/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .footer-container {
        justify-content: center;
        text-align: center;
    }

    .footer-col {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }

    .social-links {
        justify-content: center;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col h3::after {
        margin: 5px auto 0;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        width: 90px;
    }

    .footer p {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .featured {
        grid-column: span 1; /* على الموبايل تكون بنفس الحجم */
    }
}
