/* Reset أساسي */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HTML و body يملأان الشاشة بالكامل */
html, body {
        display: flex;
    flex-direction: column;
    min-height: 100vh; /* يملأ ارتفاع الشاشة بالكامل */
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #E6FAF8;
    color: #333;

}

main, .about,  .contact {
        flex: 1 0 auto;
    margin-top: 120px;
}

/* Flex layout للموقع */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* header ثابت */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.center-text {
    flex: 1;
    text-align: center;
    font-size: 14px;
}
.center-text h1 { font-size: 18px; }
.center-text p { font-size: 12px; }

/* Navigation */
.nav-menu { position: relative; }
.menu-btn { background:none; border:none; color:#333; font-size:20px; cursor:pointer; padding:0 8px; }

/* Dropdown */
.dropdown {
    list-style: none;
    margin: 0;
    padding: 8px;
    background-color: #7FD8E2;
    position: absolute;
    top: 50px;
    right: 0;
    display: none;
    flex-direction: column;
    border-radius: 6px;
}

.dropdown a {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap; /* تمنع النص من الالتفاف */
}

.dropdown a:hover {
    background-color: #9CE0D0;
}

.dropdown.show {
    display: flex; /* يظهر عند إضافة كلاس show */
}

/* Main content */
main {
    flex: 1 0 auto;
}

/* Hero image */
.hero { text-align:center; margin:20px 0; }
.main-image { max-width:90%; height:auto; border-radius:10px; }

/* Sections */
section { padding:20px; text-align:center; }
.about { background-color:#E0F7F4; border-radius:10px; padding:20px; margin:20px auto; max-width:700px; }
.services ul { list-style: none; padding-left: 0; }
.services li { padding: 5px 0; }

/* Contact form */
.contact { padding:40px 20px; background-color:#EEF7F7; border-radius:10px; max-width:500px; margin:20px auto; text-align:center; }
.contact h2 { font-size:28px; margin-bottom:25px; }
.contact-form { display:flex; flex-direction:column; gap:15px; }
.form-group { display:flex; flex-direction:column; text-align:left; }
.form-group label { margin-bottom:5px; font-weight:bold; }
.form-group input, .form-group textarea {
    padding:12px 10px; font-size:16px; border:1px solid #ccc; border-radius:6px; resize:vertical;
}
.form-group input:focus, .form-group textarea:focus {
    outline:none; border-color:#5CB3FF; box-shadow:0 0 5px rgba(92,179,255,0.5);
}
.contact-form button {
    padding:12px 20px; background-color:#5CB3FF; color:white; font-size:16px;
    border:none; border-radius:6px; cursor:pointer; transition:background-color 0.3s ease;
}
.contact-form button:hover { background-color:#6EC2E6; }


/* Styles for services list */

.services {
    flex: 1 0 auto;
    
}
.services ul {
    list-style: none; 
    padding-left: 0;
    text-align: left; /* العناصر تبدأ من أول السطر */
    max-width: 700px; /* عرض محدد للقائمة */
    margin: 0 auto 20px auto; /* منتصف الصفحة أفقياً */
}


.services h2 {
    margin-bottom: 20px; /* مسافة بين العنوان والقائمة */
}


.services li {
    margin-bottom: 20px; /* مسافة بين كل عنصر */
    line-height: 1.6;    /* ارتفاع السطر لقراءة أسهل */
    text-align: left;    /* اجعل النص يبدأ من أول السطر */
    font-size: 16px;
}

.services li strong {
    display: block; /* يجعل العنوان في سطر منفصل */
    margin-bottom: 5px; /* مسافة صغيرة بين العنوان والوصف */
    color: #007B8A; /* لون العنوان */
    font-size: 18px;
}


.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* المسافة بين المقالات، يمكن تعديلها */
}

.tips-list .tip {
    margin: 0; /* إزالة أي هوامش خارجية */
    padding: 10px 0; /* مسافة داخلية بسيطة إذا أحببت */
    border-bottom: 1px solid #cceeee; /* اختياري: فاصل بين المقالات */
}

.tips-list .tip h3 {
    margin: 0 0 5px 0; /* إزالة الهامش العلوي، مسافة صغيرة أسفل العنوان */
}

/* Styles for privacy page */
.privacy {
    max-width: 800px;       /* عرض محدود للنصوص */
    margin: 40px auto;      /* المسافة من الأعلى والأسفل، والتمركز في المنتصف */
    padding: 20px;
    background-color: #E0F7F4;
    border-radius: 10px;
    line-height: 1.8;       /* ارتفاع السطر لراحة القراءة */
    font-size: 16px;
}

.privacy h2 {
    text-align: center;     /* عنوان الصفحة في الوسط */
    margin-bottom: 30px;
    color: #007B8A;
}

.privacy article {
    margin-bottom: 25px;    /* مسافة بين المقالات */
    padding-bottom: 10px;   /* مسافة داخلية بسيطة */
    border-bottom: 1px solid #B2E0DD; /* خط فاصل خفيف */
}

.privacy article:last-child {
    border-bottom: none;    /* إزالة الخط في المقال الأخير */
}

.privacy h3 {
    margin-bottom: 10px;    /* مسافة بين العنوان والنص */
    color: #005F66;
}

.privacy p {
    margin-bottom: 10px;    /* مسافة بين الفقرات داخل المقال */
}



/* Footer */
.site-footer {
    background-color:#9CE0D0;
    color:#333;
    padding:20px 10px;
    border-top:1px solid #E0F7F4;
    flex-shrink: 0;
}
.footer-content {
    max-width:1000px;
    margin:0 auto;
    display:flex;
    gap:20px;
    justify-content:space-between;
    flex-wrap:wrap;
    text-align:left;
}
.footer-contact, .footer-copy { min-width:200px; }
