/* تخصيص CSS */

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #006400, #FFD700);
    padding-top: 100px; /* تقليل المساحة لتناسب الشريط العلوي الجديد */
    overflow-x: hidden; /* لمنع ظهور شريط التمرير الأفقي أثناء التحريك */
}

/* الشريط العلوي مع لون أخضر باهت وإطار أحمر داكن */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #90EE90; /* أخضر باهت */
    padding: 20px 0;
    z-index: 2000;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.2);
    text-align: center;
    color: #006400; /* لون النص الأخضر الداكن */
    border: 3px solid #8B0000; /* إطار أحمر داكن */
}
.logo-container {
    text-align: center; /* توسيط المحتويات داخل الحاوية */
    margin: 20px 0; /* تباعد الحاوية عن العناصر الأخرى */
}
/* تنسيق الشعار */
.logo {
 
    width: 80px; /* حجم الشعار */
    height: 80px;
    border: 4px solid #006400; /* إطار دائري أخضر */
    border-radius: 50%;
       animation: none;
    margin: 20px auto; /* مركز الشعار وتباعده عن الشريط العلوي */
   text-align: center; /* توسيط المحتويات داخل الحاوية */
}

        

/* عناوين الشريط العلوي */
nav h2 {
    color: #006400;
    margin: 0;
    font-size: 2rem; /* حجم خط ثابت */
    font-weight: bold;
}
nav h5 {
    color: #8B0000; /* أحمر داكن */
    margin: 10px 0 0 0;
    font-size: 1.5rem; /* زيادة حجم الخط */
    font-weight: normal;
}
nav p {
    color: #8B0000; /* أحمر داكن */
    margin: 5px 0 0 0;
    font-size: 1.2rem; /* زيادة حجم الخط */
    font-weight: 500;
}

/* تصميم الإطارات */
.card-number {
    width: 80px; /* زيادة حجم الدائرة */
    height: 80px; /* زيادة حجم الدائرة */
    background-color: #006400; /* أخضر داكن */
    color: #FFD700; /* ذهبي */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem; /* زيادة حجم الرقم */
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-hover:hover {
    transform: translateY(-10px);
    transition: transform 0.3s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 1.8rem; /* زيادة حجم الخط */
    font-weight: bold;
    color: #006400; /* أخضر داكن */
    margin-bottom: 10px;
}

.card-description {
    font-size: 1.4rem; /* زيادة حجم الخط */
    color: #555;
    margin-bottom: 20px;
}

/* تخصيص الأزرار */
.btn-primary-custom {
    background-color: #FFD700; /* أصفر */
    border-color: #FFD700; /* أصفر */
    color: #006400; /* أخضر داكن */
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 1.2rem; /* زيادة حجم الخط */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #FFC107; /* أصفر أفتح عند التحويم */
    border-color: #FFC107; /* أصفر أفتح عند التحويم */
    color: #fff;
}

/* تحريك الإطارات */
.animate-slide-in {
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تحسين استجابة الصفحة */
@media (max-width: 768px) {
    nav h2 {
        font-size: 1.5rem;
    }
    nav h5 {
        font-size: 1rem;
    }
    nav p {
        font-size: 0.9rem;
    }
    .logo {
        width: 60px;
        height: 60px;
    }
    .card-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .card-title {
        font-size: 1.5rem;
    }
    .card-description {
        font-size: 1.1rem;
    }
    .btn-primary-custom {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* تداخل الألوان وتحسين المظهر */
.card {
    background: linear-gradient(135deg, #ffffff, #f0f8ff); /* تدرج خلفية ناعم */
    border: 3px solid #006400; /* أخضر داكن */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* إضافة تداخل من الألوان الخضراء والصفراء */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 100, 0, 0.1); /* أخضر داكن شفاف */
    z-index: 1;
}

.card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 215, 0, 0.1); /* أصفر شفاف */
    z-index: 1;
}

.card-body {
    position: relative;
    z-index: 2; /* لضمان ظهور المحتوى فوق التداخل */
}
