﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default (تم استثناء نموذج التواصل) */
/* تحديد أقصى عرض لعناصر الإدخال العامة عدا الموجودة داخل قسم التواصل */
input:not([type="submit"]):not([type="button"]),
select,
textarea {
    max-width: 280px;
}

#contact input,
#contact select,
#contact textarea {
    max-width: 100% !important;
}

/* 1. التنقل السلس عبر الصفحة */
html {
    scroll-behavior: smooth;
}

/* 2. تأثير الظهور الانزلاقي (يُستخدم مع كلاس .reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. تنسيق وتوحيد حقول نموذج التواصل بعرض كامل ومتناسق تماماً */
#contact .form-control,
#contact .uniform-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    box-shadow: none !important;
    text-align: right !important;
}

#contact .form-control:focus,
#contact .uniform-input:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

#contact .form-group {
    text-align: right;
    margin-bottom: 20px;
    width: 100% !important;
}

/* تنسيق قائمة كل الأقسام المنسدلة */
#allSectionsMenu .dropdown-item {
    transition: all 0.2s ease;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
}

#allSectionsMenu .dropdown-item:hover {
    background-color: #28a745;
    color: #fff !important;
    transform: translateX(-5px); /* حركة خفيفة لجهة اليمين في اللغة العربية */
}

#allSectionsMenu .dropdown-item:hover i {
    color: #fff !important;
}