/* إعدادات عامة للموقع */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d1b2a; /* الخلفية الزرقاء الداكنة الأساسية */
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* تنسيق الهيدر والقائمة العلوية */
header {
    background-color: #0d1b2a; 
    padding: 20px 5%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #e5c16b; /* شعار ذهبي */
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links a {
    color: #e5c16b;
    text-decoration: underline; /* خط أسفل الروابط */
    margin: 0 15px;
    font-size: 16px;
    font-weight: 500;
}

/* أزرار اللغات ثابتة ومستقلة تماماً باليسار */
.languages {
    display: flex;
    gap: 8px;
    direction: ltr !important;
}

.lang-btn {
    color: #e5c16b;
    background: transparent;
    border: 1px solid #e5c16b;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    background-color: #e5c16b;
    color: #0d1b2a;
    font-weight: bold;
}

/* تنسيق الواجهة الرئيسية */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 50px;
    gap: 60px;
}

/* عمود الصورة (الجهة اليمنى) */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-image-container {
    width: 100%;
    max-width: 400px;
    border: 2px solid #e5c16b; /* إطار ذهبي رقيق ومتناسق */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* عمود النصوص (الجهة اليسرى) - تمركز كامل لجميع العناصر بالوسط */
.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* تمركز الأزرار والحاويات أفقياً */
    text-align: center; /* تمركز النصوص في الوسط تماماً */
}

.country-tag {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}

/* عنوان تيموريا باللون الأزرق الفاتح المتناسق */
.main-title {
    color: #4a90e2; 
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 25px;
    line-height: 1;
}

.hero-description {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 35px;
}

/* تنسيق حاوية القولة المحدثة لتصبح فوق الزر مباشرة */
.quote-container {
    width: 100%;
    max-width: 500px; 
    border-top: 1px solid rgba(229, 193, 107, 0.2); /* خط فاصل ذهبي خفيف علوي */
    border-bottom: 1px solid rgba(229, 193, 107, 0.2); /* خط فاصل ذهبي خفيف سفلي */
    padding: 25px 0;
    margin-bottom: 40px; /* مسافة واضحة بين القولة والزر الذي تحتها */
}

.quote-text {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quote-author {
    color: #e5c16b; /* اسم الأستاذ بالذهبي */
    font-size: 15px;
    font-weight: bold;
    display: block;
    letter-spacing: 1px;
}

/* زر Entrer باللون الأزرق بالأسفل */
.enter-btn {
    background-color: #4a90e2; 
    color: #ffffff; 
    border: none;
    padding: 12px 45px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.enter-btn:hover {
    background-color: #357abd; 
    transform: translateY(-2px);
}

/* التوافق مع الشاشات الصغيرة والهواتف */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0 20px;
        gap: 40px;
    }
    .main-title {
        font-size: 55px;
    }
    header {
        padding: 20px 2%;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}
/* تثبيت أزرار اللغات في مكانها */
header {
  direction: ltr !important;
}

.languages {
  direction: ltr !important;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

/* تغيير الاتجاه داخل محتوى الصفحة فقط */
#page-content.rtl-layout {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}
.navbar {
    direction: ltr !important;
}

.languages {
    direction: ltr !important;
    flex-direction: row !important;
}

#page-content.rtl-layout {
    direction: rtl;
    text-align: right;
}