/* المسار: css/style.css */
:root {
    --primary-color: #2c3e50; /* اللون الأساسي - يمكن تغييره من لوحة التحكم لاحقاً */
    --secondary-color: #e67e22;
    --text-color: #333;
    --bg-color: #f4f6f7;
    --white: #ffffff;
    --font-main: 'IBM Plex Sans Arabic', sans-serif;
    --container-max-width: 1100px; /* العرض الثابت الموحد لكافة صفحات الموقع */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* --- الحاوية الموحدة للموقع --- */
.site-container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* --- Top Bar --- */
.top-bar-wrapper {
    background-color: var(--primary-color);
    width: 100%;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.top-bar .contact-info span, .top-bar .social-icons a { margin: 0 10px; color: var(--white); text-decoration: none; }
.search-box input { padding: 5px 10px; border-radius: 4px; border: none; }

/* --- Header & Nav --- */
.header-wrapper {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.main-header {
    background: var(--white);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.logo-area { display: flex; align-items: center; gap: 15px; font-weight: bold; font-size: 20px; color: var(--primary-color); }
.logo-area img { max-height: 60px; }

.main-nav ul { list-style: none; display: flex; gap: 20px; }
.main-nav ul li { position: relative; }
.main-nav ul li a { text-decoration: none; color: var(--primary-color); font-weight: bold; padding: 10px; display: block;}
.main-nav ul li a:hover { color: var(--secondary-color); }

/* Dropdown */
.dropdown-menu {
    display: none; position: absolute; background: var(--white); top: 100%; min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 1000;
}
.main-nav ul li:hover .dropdown-menu { display: block; }
.dropdown-menu li { border-bottom: 1px solid #eee; }

/* Language Switcher */
.lang-switcher img { width: 30px; cursor: pointer; margin: 0 5px; border: 1px solid #ddd; border-radius: 3px;}

/* --- Sections --- */
.section { 
    padding: 50px 15px; 
    text-align: center; 
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.section-title { margin-bottom: 30px; font-size: 28px; color: var(--primary-color); }

/* Slider Placeholder */
.slider-container { width: 100%; height: 400px; background: #ddd; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #777;}

/* Memberships */
.memberships { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.memberships img { max-width: 120px; filter: grayscale(100%); transition: 0.3s; }
.memberships img:hover { filter: grayscale(0%); }

/* About Section (ZigZag) */
.about-block { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; background: var(--white); padding: 20px; border-radius: 8px;}
.about-block.reverse { flex-direction: row-reverse; }
.about-block img { width: 40%; border-radius: 8px; }
.about-block .text { width: 60%; text-align: justify; }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); text-align: right; }
html[dir="ltr"] .news-card { text-align: left; }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card .content { padding: 15px; }

/* --- Footer --- */
.footer-wrapper {
    background: var(--primary-color);
    width: 100%;
    margin-top: 50px;
}

.main-footer { 
    background: var(--primary-color); 
    color: var(--white); 
    padding: 40px 15px 20px; 
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 20px; }
.footer-grid h3 { color: var(--secondary-color); margin-bottom: 15px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li a { color: var(--white); text-decoration: none; }
.footer-grid ul li a:hover { text-decoration: underline; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 20px; font-size: 14px; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .main-header { flex-direction: column; }
    .main-nav ul { flex-direction: column; text-align: center; width: 100%; gap: 10px; margin-top: 15px; display: none; /* يتم تفعيله بالجافاسكربت لاحقاً */ }
    .about-block, .about-block.reverse { flex-direction: column; }
    .about-block img, .about-block .text { width: 100%; }
}