/* assets/css/style.css */

/* --- تعريف متغيرات الألوان (Brand Colors) --- */
:root {
    --primary-green: #007a3d;  /* LIME GREEN */
    --strong-red: #ce1127;     /* STRONG RED */
    --dark-text: #4A4A4A;      /* Main Text */
    --light-text: #9E9E9E;     /* Secondary Text */
    --bg-color: #F5F5F5;       /* Background */
    --white: #FFFFFF;
    --accent-gold: #D8C9A3;    /* Accent Color */
    --footer-bg: #3D5D50;      /* Dark Grayish Cyan */
}

/* --- تنسيقات عامة --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- الرأس (Header) --- */
header {
    background: var(--white);
    padding: 10px 5%; /* تم تقليل البادينغ قليلاً ليناسب الصورة */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-green);
    height: 90px; /* تحديد ارتفاع ثابت للهيدر لضمان التناسق */
}

/* تنسيق حاوية الشعار */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

/* تنسيق صورة الشعار - هذا هو الجزء الأهم لحل المشكلة */
.logo-img {
    height: 70px; /* ارتفاع ثابت ومناسب */
    width: auto;  /* العرض يتغير تلقائياً للحفاظ على الأبعاد */
    object-fit: contain; /* يضمن ظهور الصورة كاملة دون قص أو تمطيط */
    display: block;
}

.header-btn {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}
.header-btn:hover { background-color: #006231; }

/* --- القسم الرئيسي (Hero) --- */
.hero {
    background: linear-gradient(135deg, var(--white) 0%, #e8f5e9 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.hero h1 {
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.status-badge {
    background-color: var(--accent-gold);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

/* شريط التحميل */
.progress-wrapper {
    max-width: 500px;
    margin: 30px auto;
}
.progress-container {
    background-color: #e0e0e0;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 85%;
    background-color: var(--strong-red);
    border-radius: 20px;
    animation: load 1.5s ease-out;
}
@keyframes load { from { width: 0; } to { width: 85%; } }

/* --- المحتوى (Main Content) --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 50px auto;
    flex: 1;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary-green);
}

.card h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- التذييل (Footer) --- */
footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}
footer a { color: var(--accent-gold); }

/* تنسيقات أيقونات التواصل الاجتماعي */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--footer-bg);
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}