/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* الوضع الداكن والفاتح */
body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

body.dark-mode {
    background-color: #000000;
    color: #FFB800; /* اللون البرتقالي من الشعار */
}

/* السطر الأول */
.top-bar {
    background-color: #C0C0C0; /* اللون الفضي */
    color: #000000;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* السطر الثاني */
.navbar {
    background-color: #333333;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* التحكم */
.controls {
    display: flex;
    gap: 15px;
}

.control-icon {
    cursor: pointer;
    height: 24px;
}

/* تخصيص ألوان الأيقونات حسب الوضع */
body.light-mode #moon-icon, body.dark-mode #moon-icon {
    stroke: #fff; 
}

body.light-mode #language-icon, body.dark-mode #language-icon {
    stroke: #fff; 
}

/* شريط المواقع المتحرك */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%; /* تمدد العرض الكامل */
    padding: 0; /* إزالة الحواف */
}

.marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
    width: 100%; /* امتداد كامل */
}

.marquee a, .marquee img {
    display: inline-block;
    vertical-align: middle;
}

.marquee:hover {
    animation-play-state: paused;
}

/* حركة الشريط */
@keyframes marquee {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
    width: 100%;
}

/* روابط الشريط */
.marquee a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

.marquee a:hover {
    text-decoration: underline;
}

.marquee-icon {
    width: 16px;
    height: 16px;
    margin: 0 10px;
    vertical-align: middle;
}

/* التأقلم مع الشاشات */
@media (max-width: 768px) {
    .top-bar, .navbar {
        flex-direction: column;
        text-align: center;
    }

    .marquee-container {
        padding: 10px 0;
    }
}

/* زر واتساب عائم */
.whatsapp-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* تنسيق الحاوية */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-around;
        align-items: stretch; /* يجعل الأعمدة تأخذ نفس الارتفاع */
    }
}

/* الأعمدة */
.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f5f5f5;
    height: 100%; /* اجعل الأعمدة بنفس ارتفاع الحاوية */
    min-height: 350px; /* حدد ارتفاعًا أدنى لضمان أن تكون الأعمدة بنفس الارتفاع */
    box-sizing: border-box;
}

body.dark-mode .column {
    background-color: #333333;
}

.logo-column {
    display: flex;
    justify-content: center;
}

.logo-column .logo {
    width: 270px; /* عرض الصورة ليكون أقل من العمود بـ 15 بكسل من كل جهة */
    height: 320px; /* ارتفاع الصورة ليكون أقل من العمود بـ 15 بكسل من كل جهة */
    margin: 0 auto; /* توسيط الصورة داخل العمود */
    border-radius: 8px; /* إضافة حواف دائرية إذا كانت مطلوبة */
}


/* تنسيقات النماذج */
.contact-form, .login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

h2 {
    color: #FFB800;
}

input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

textarea {
    resize: none;
    height: 100px;
}

button {
    padding: 10px;
    background-color: #FFB800;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button:enabled:hover {
    background-color: #e0a700;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* زر الدخول في نموذج تسجيل الدخول */
.login-form button {
    padding: 10px;
    background-color: #FFB800;
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    max-width: 150px;
    margin: 55px auto;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

/* استجابة التصميم للشاشات الصغيرة */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-around;
    }
}
/* تنسيق الفوتر */
footer {
    background-color: #333333;
    color: #FFB800;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    position: fixed; /* لجعل الفوتر ثابتًا في الأسفل */
    bottom: 0;
    left: 0;
}

body {
    margin-bottom: 50px; /* ترك مساحة للفوتر الثابت */
}

