/* الإعدادات الأساسية */
:root { --primary: #0A2342; --secondary: #F39C12; --light: #F8F9FA; --dark: #212529; --text: #333333; }
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; line-height: 1.7; color: var(--text); background-color: #fff; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: auto; }

/* الهيدر والشعار */
header { background: rgba(10, 35, 66, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; padding: 15px 0; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
header .container { display: flex; justify-content: space-between; align-items: center; }

/* تنسيق قسم الشعار الجديد */
.logo-container { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.site-logo { width: 60px; height: auto; border-radius: 5px; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-text h1 { color: #fff; font-size: 1.6rem; font-weight: 900; line-height: 1.2; }
.logo-text h1 span { color: var(--secondary); }
.logo-text .slogan { color: #e0e0e0; font-size: 0.85rem; font-weight: 600; }

.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; position: relative; transition: 0.3s; }
.nav-links a:not(.nav-login-btn)::after { content: ''; position: absolute; bottom: -5px; right: 0; width: 0; height: 2px; background: var(--secondary); transition: 0.3s; }
.nav-links a:not(.nav-login-btn):hover::after { width: 100%; }
.nav-links a:not(.nav-login-btn):hover { color: var(--secondary); }

.nav-login-btn { background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 5px; border: 1px solid var(--secondary); color: var(--secondary) !important; }
.nav-login-btn:hover { background: var(--secondary); color: #fff !important; }

/* قسم البداية (Hero) */
.hero { height: 100vh; position: relative; background: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1920&q=80') center/cover fixed; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(10,35,66,0.85), rgba(10,35,66,0.6)); }
.hero-content { position: relative; z-index: 1; color: #fff; max-width: 800px; padding: 20px; }
.hero h2 { font-size: 3.5rem; margin-bottom: 20px; color: var(--secondary); text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; margin-bottom: 30px; }

.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn { padding: 12px 30px; text-decoration: none; font-size: 1.2rem; border-radius: 30px; font-weight: bold; transition: all 0.3s ease; display: inline-block; }
.btn-primary { background: var(--secondary); color: #fff; border: 2px solid var(--secondary); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4); background: #e67e22; border-color: #e67e22; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }

/* الأقسام العامة */
.section { padding: 100px 0; }
.bg-light { background-color: var(--light); }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 15px; color: var(--primary); font-weight: 900; }
.subtitle { text-align: center; font-size: 1.2rem; margin-bottom: 50px; color: #666; }

/* التخطيط الشبكي */
.content-grid { display: flex; gap: 50px; align-items: center; }
.content-grid .text-box, .content-grid .image-box { flex: 1; }
.text-box h3 { color: var(--secondary); font-size: 2rem; margin-bottom: 20px; }
.text-box p { font-size: 1.1rem; margin-bottom: 15px; text-align: justify; }
.image-box img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: 0.3s; }
.image-box img:hover { transform: scale(1.02); }

/* البطاقات */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #fff; padding: 40px 30px; border-radius: 15px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--secondary); transition: 0.4s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-icon { font-size: 3rem; margin-bottom: 20px; }
.card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.5rem; }

/* خط الزمن (القرى) */
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.timeline-item { background: var(--light); padding: 30px; border-radius: 10px; border-right: 4px solid var(--primary); }
.timeline-item h3 { color: var(--secondary); margin-bottom: 10px; }

/* الفوتر */
footer { background: #061528; color: #fff; text-align: center; padding: 40px 0 20px; }
footer h3 { color: var(--secondary); font-size: 1.8rem; margin-bottom: 10px; }
.footer-bottom { margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; color: #aaa; }

/* الأنيميشن والتمرير */
.fade-in { opacity: 0; transition: opacity 1s ease-out; }
.fade-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.slide-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.slide-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.show-anim { opacity: 1; transform: translateY(0) translateX(0); }

/* الهواتف الذكية */
@media (max-width: 768px) {
    .content-grid, .timeline { grid-template-columns: 1fr; flex-direction: column; }
    .nav-links { display: none; } 
    .hero h2 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .site-logo { width: 45px; }
    .logo-text h1 { font-size: 1.3rem; }
    .logo-text .slogan { font-size: 0.75rem; }
}
