/* ================= إعدادات الخطوط والمتغيرات ================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&display=swap');

:root {
    --primary: #00a651;          /* الأخضر الأساسي */
    --primary-dark: #008f45;     /* أخضر غامق عند تمرير الماوس */
    --secondary: #ffb300;        /* الأصفر الذهبي للأزرار */
    --secondary-dark: #ffa000;   /* أصفر غامق عند تمرير الماوس */
    --dark: #222222;             /* رمادي داكن للنصوص (بدلاً من الأزرق الكحلي) */
    --light: #f8f9fa;            /* رمادي فاتح جداً للخلفيات */
    --white: #ffffff;            /* الأبيض */
    --whatsapp: #25D366;         /* لون الواتساب */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* ظل ناعم */
    --transition: all 0.3s ease; /* حركة انتقالية ناعمة */
}

/* ================= الإعدادات العامة ================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Cairo', sans-serif; 
    line-height: 1.8;
    color: var(--dark);
    background-color: var(--white);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: auto; 
}

/* ================= العناوين الرئيسية ================= */
.section-title { 
    text-align: center; 
    color: var(--primary); 
    font-size: 2.5rem; 
    font-weight: 800;
    margin-bottom: 50px; 
    position: relative;
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 80px; 
    height: 4px; 
    background: linear-gradient(90deg, var(--secondary), var(--primary)); 
    margin: 15px auto; 
    border-radius: 5px;
}

section { 
    padding: 90px 0; 
}

/* ================= الأزرار ================= */
.btn { 
    padding: 12px 28px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: var(--transition); 
    display: inline-flex; 
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-primary { 
    background: var(--primary); 
    color: var(--white); 
    border: 2px solid var(--primary); 
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: translateY(-3px);
}

/* أزرار إصدار الهوية (اللون الأصفر) */
.btn-secondary {
    background: var(--secondary); 
    color: var(--dark); 
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4); 
}

.btn-secondary:hover { 
    background: var(--secondary-dark); 
    border-color: var(--secondary-dark);
    color: #000; 
    transform: translateY(-3px);
}

.nav-apply-btn { 
    background: linear-gradient(45deg, var(--secondary), var(--secondary-dark)); 
    color: var(--dark) !important; 
    padding: 8px 20px; 
    border-radius: 30px; 
    box-shadow: 0 4px 10px rgba(255, 179, 0, 0.3); 
    font-weight: 800;
}

.nav-apply-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(255, 179, 0, 0.5); 
    color: #000 !important;
}

/* زر شفاف بحدود */
.btn-outline { 
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(5px);
    color: var(--white); 
    border: 2px solid var(--white); 
}

.btn-outline:hover { 
    background: var(--white); 
    color: var(--primary); 
    transform: translateY(-3px);
}

/* أزرار المقر العام (الأخضر المتدرج) */
.btn-hq, .nav-hq-btn {
    background: linear-gradient(45deg, #2ecc71, #27ae60) !important; 
    color: var(--white) !important; /* تغيير النص للأبيض ليكون أوضح */
    border: none !important;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transition: var(--transition);
}

.btn-hq:hover, .nav-hq-btn:hover {
    background: linear-gradient(45deg, #27ae60, #2ecc71) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.nav-hq-btn {
    padding: 8px 15px !important;
    border-radius: 30px !important;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ================= الترويسة والقائمة العلوية ================= */
header { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0; 
}

.logo-group { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.logo-img { 
    height: 65px; 
    transition: var(--transition); 
}

.logo-img:hover { 
    transform: scale(1.05); 
}

.logo-text h1 { 
    font-size: 1.3rem; 
    color: var(--dark); 
    font-weight: 800; 
    line-height: 1.2; 
}

.logo-text p { 
    font-size: 0.9rem; 
    color: var(--primary); 
    font-weight: 600; 
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    align-items: center; 
}

nav a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    transition: var(--transition); 
    font-size: 1.05rem; 
}

nav a:hover { 
    color: var(--primary); 
}

/* ================= الواجهة الرئيسية ================= */
.hero { 
    background: linear-gradient(135deg, rgba(0,166,81,0.9), rgba(34,34,34,0.8)), url('../assets/hero-bg.jpg');
    background-size: cover; 
    background-position: center; 
    padding: 180px 0; 
    text-align: center; 
    color: var(--white);
    position: relative;
}

.hero h2 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); 
}

.hero p { 
    font-size: 1.3rem; 
    margin-bottom: 40px; 
    opacity: 0.9; 
}

.hero-buttons { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

/* ================= قسم كلمة النقيب ================= */
.president-section { background-color: var(--light); }

.president-grid { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 50px; 
    background: var(--white); 
    padding: 50px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
}

.president-profile { text-align: center; }

.image-wrapper img { 
    width: 100%; 
    max-width: 420px; 
    border-radius: 15px; 
    border: 5px solid var(--light); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.image-wrapper img:hover { transform: scale(1.03); }

.president-profile h3 { 
    color: var(--primary); 
    font-size: 1.4rem; 
    margin-top: 20px; 
    font-weight: 800; 
}

.title-badge { 
    display: inline-block;
    background: var(--light);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.president-speech { 
    position: relative; 
    padding: 20px 0; 
}

.quote-icon { 
    position: absolute; 
    top: -20px; 
    right: -20px; 
    font-size: 5rem; 
    color: var(--primary); 
    opacity: 0.05; 
}

.greeting { 
    color: var(--secondary); 
    font-size: 1.5rem; 
    margin-bottom: 20px; 
    font-weight: 800; 
}

.president-speech p { 
    text-align: justify; 
    margin-bottom: 18px; 
    color: #555; 
    font-size: 1.1rem; 
    line-height: 2; 
}

.signature { 
    margin-top: 40px; 
    border-top: 2px dashed #eee; 
    padding-top: 20px; 
}

/* ================= قسم من نحن ================= */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 50px; 
}

.about-card { 
    background: var(--white); 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    border-bottom: 5px solid var(--primary);
    transition: var(--transition);
}

.about-card:hover { transform: translateY(-10px); }

.card-icon { 
    width: 60px; 
    height: 60px; 
    background: var(--light); 
    color: var(--primary); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.8rem; 
    margin-bottom: 20px; 
}

.about-card h3 { 
    color: var(--dark); 
    margin-bottom: 15px; 
    font-size: 1.5rem; 
    font-weight: 800; 
}

.about-card p { 
    color: #555; 
    text-align: justify; 
    line-height: 1.9; 
}

/* ================= قسم شروط الهوية ================= */
.id-requirements { 
    background: linear-gradient(to right, #ffffff, #fdfdfd); 
    padding: 50px; 
    border-radius: 20px; 
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.sub-title { 
    text-align: center; 
    color: var(--primary); 
    margin-bottom: 20px; 
    font-size: 1.8rem; 
    font-weight: 800; 
}

.intro-text { 
    text-align: center; 
    color: #555; 
    margin-bottom: 40px; 
    font-size: 1.1rem; 
}

.req-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
}

.req-list { list-style: none; }

.req-list li { 
    padding: 15px 0; 
    border-bottom: 1px solid #f0f0f0; 
    position: relative; 
    padding-right: 35px; 
    color: var(--dark); 
    font-weight: 600; 
}

.req-list li::before { 
    content: '\f00c'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900;
    position: absolute; 
    right: 0; 
    color: var(--primary); 
    background: rgba(0,166,81,0.1);
    width: 25px; 
    height: 25px;
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 0.8rem;
}

.apply-now-box { 
    text-align: center; 
    margin-top: 40px; 
    padding-top: 30px; 
    border-top: 1px solid #eee; 
}

.apply-now-box p { 
    color: var(--secondary); 
    font-weight: bold; 
    margin-bottom: 20px; 
}

/* ================= قسم الأخبار ================= */
.news-section { background: var(--light); }

.fb-container { 
    display: flex; 
    justify-content: center; 
    background: var(--white); 
    padding: 20px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
}

/* ================= قسم اتصل بنا ================= */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px; 
    background: var(--white); 
    padding: 50px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
}

.contact-info h3 { 
    color: var(--primary); 
    margin-bottom: 20px; 
    font-size: 1.6rem; 
    font-weight: 800; 
}

.contact-info p { margin-bottom: 30px; color: #666; }

.contact-list { list-style: none; }

.contact-list li { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    font-size: 1.1rem; 
    font-weight: 600; 
}

.contact-list li i { 
    width: 40px; 
    height: 40px; 
    background: var(--light); 
    color: var(--primary); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 50%; 
}

.contact-list a { 
    color: var(--dark); 
    text-decoration: none; 
    transition: var(--transition); 
}

.contact-list a:hover { color: var(--primary); }

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.input-group { position: relative; }

.input-group i { 
    position: absolute; 
    right: 15px; 
    top: 18px; 
    color: #aaa; 
}

.textarea-group i { top: 20px; }

.contact-form input, .contact-form textarea { 
    width: 100%; 
    padding: 15px 15px 15px 45px; 
    border: 2px solid #eee; 
    border-radius: 10px; 
    font-family: inherit; 
    font-size: 1rem; 
    transition: var(--transition); 
    background: var(--light);
}

.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--primary); 
    background: var(--white); 
    outline: none; 
}

/* ================= تأثيرات الظهور ================= */
.reveal { 
    opacity: 0; 
    transform: translateY(50px); 
    transition: all 0.8s ease-out; 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* ================= زر الواتساب العائم ================= */
.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    left: 30px; 
    background: var(--whatsapp); 
    color: white;
    width: 65px; 
    height: 65px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); 
    z-index: 1000; 
    font-size: 2rem; 
    transition: var(--transition); 
}

.whatsapp-float:hover { 
    transform: scale(1.1) rotate(10deg); 
}

/* ================= التذييل ================= */
footer { 
    background: var(--dark); 
    color: var(--white); 
    text-align: center; 
    padding: 25px 0; 
    font-weight: 600; 
}

/* ================= التجاوب مع الشاشات (الهواتف والتابلت) ================= */
@media (max-width: 992px) {
    .president-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-bar { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .about-grid, .req-grid { grid-template-columns: 1fr; }
    .whatsapp-float { bottom: 20px; left: 20px; width: 55px; height: 55px; font-size: 1.8rem; }
    .quote-icon { display: none; }
    .id-requirements { padding: 30px 20px; }
}