/* إعدادات الخطوط والألوان العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #f9f8f6; /* خلفية عاجية دافئة ومريحة للعين */
    --card-color: #ffffff; /* بطاقات بيضاء صافية */
    --text-main: #2c3e50; /* كحلي/رمادي داكن للنصوص الرئيسية */
    --text-muted: #7f8c8d; /* رمادي ناعم للنصوص الثانوية */
    --accent-color: #8e7355; /* لون دافئ ثقافي (ذهبي ترابي/برونزي خفيف) */
    --border-color: #eae7e2;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* شريط التنقل */
.main-header {
    background-color: rgba(249, 248, 246, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-right: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--accent-color);
}

/* قسم الترحيب المشرق */
.hero-section {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at top, #ffffff 0%, var(--bg-color) 70%);
}

.main-title {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 700;
}

.central-message {
    font-size: 1.6rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hero-desc {
    max-width: 650px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* الأزرار */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #755e45;
}

.btn-secondary {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* مفهوم الـ White Card الفخم النظيف */
.white-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02); /* ظل ناعم جداً يكاد لا يُرى */
    margin-bottom: 30px;
}

/* قسم عن مجاز */
.about-section {
    padding: 60px 0;
}

.about-card h2 {
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    padding-bottom: 10px;
}

.about-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.about-card p {
    font-size: 1.1rem;
    color: var(--text-main);
    text-align: justify;
}

/* شبكة البرامج */
.programs-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.program-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover:not(.muted) {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.program-card.muted {
    background-color: #fcfbfa;
    opacity: 0.7;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 0.75rem;
    padding: 2px 8px;
    background-color: #edf7ed;
    color: #2e7d32;
    border-radius: 4px;
    font-weight: 600;
}

.card-badge.blueprint {
    background-color: #f5f5f5;
    color: #616161;
}

.program-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-main);
}

.program-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
}

/* قسم الفعاليات */
.events-section {
    padding: 60px 0;
}

.no-events {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* الفوتر */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9rem;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
}