/* الألوان المستوحاة من هوية الإحسان وأحمد الشقيري */
:root {
    --primary-color: #0d2c40;   /* أزرق نيلي داكن يعبر عن العمق والجدية */
    --accent-color: #1a936f;    /* أخضر زمردي هادئ يرمز للنمو والإحسان */
    --accent-light: #e8f5f1;   /* خلفية خضراء خفيفة جداً للبطاقات */
    --bg-light: #f4f7f6;        /* خلفية عامة مريحة ومائلة للبرودة */
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* القائمة العلوية */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* قسم الـ Hero */
.hero-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef2f5 100%);
    padding: 100px 8%;
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1.2;
}

.welcome-badge {
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 46px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 22px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-text .quote {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-style: italic;
    border-right: 4px solid var(--accent-color);
    padding-right: 15px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-image img {
    width: 350px;
    height: 350px;
    border-radius: 30px; /* زوايا منحنية حديثة */
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(13, 44, 64, 0.15);
}

/* عناوين الأقسام */
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* قسم نبذة ورسالتي */
.about-section {
    background-color: var(--white);
}

.about-card {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 19px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-dark);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.01);
}

/* شبكة البطاقات (Grid) للبرامج والكتب */
.programs-section {
    background-color: var(--bg-light);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 147, 111, 0.1);
}

.card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* قسم الكتب */
.books-section {
    background-color: var(--white);
}

.book-card {
    border: 1px solid #eef2f5;
}

.book-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

/* الفوتر */
footer {
    background-color: var(--primary-color);
    color: #a0aec0;
    text-align: center;
    padding: 25px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* التجاوب والتوافق مع الشاشات المختلفة */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text .quote {
        margin: 0 auto 35px;
        border-right: none;
        border-bottom: 3px solid var(--accent-color);
        padding-bottom: 15px;
        padding-right: 0;
    }
    .hero-buttons {
        justify-content: center;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .hero-image img {
        width: 280px;
        height: 280px;
    }
}