
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;              /* يخلي المحتوى يتمدد و الفوتر ينزل تحت */
}


/* ===== الهيدر (الشريط العلوي) ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 50px;
    background-color: #d4b16a;   /* لون خلفية الهيدر */
    direction: rtl;              /* عربي من اليمين لليسار */
}
/* اسم الدكتور داخل الهيدر */
header h1 {
    margin: 0;
    font-size: 40px;      /* كبر/صغر زي ما تحبي */
    font-weight: bold;
    color: #1c3d8c;       /* الأزرق الملكي لاسم الدكتور */
}

/* الناف الرئيسية */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;                   /* مسافة بين العناصر */
}

/* الروابط العادية في الهيدر */
.main-nav > a {
    text-decoration: none;
    color: #333;
    font-size: 23px;
    font-weight: 600;
    position: relative;
    transition: 0.3s;
}

.main-nav > a:hover {
    color: #1c3d8c;              /* الأزرق الملكي عند المرور */
    cursor: pointer;
}

/* ===== القوائم المنسدلة (المؤهلات / الخبرات) ===== */
.dropdown {
    position: relative;
}

/* الزر اللي يكتب عليه: المؤهلات ▾ ، الخبرات ▾ */
.drop-trigger {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

.drop-trigger:hover {
    color: #1c3d8c;
}

/* قائمة العناصر المنسدلة نفسها */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;                     /* تفتح تحت وباتجاه اليمين (عربي) */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 200px;
    display: none;                /* مخفية افتراضياً – هنفعلها بالـ JS لاحقاً */
    z-index: 50;
}

/* الروابط داخل القائمة المنسدلة */
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f5eec8;
}

/* لما نضيف كلاس open للـ .dropdown (عن طريق JS) تفتح القائمة */
.dropdown.open .dropdown-menu {
    display: block;
}


/* ===== تغيير اللون عند مرور الماوس (Hover) ===== */
header nav a:hover {
    color: #1c3d8c;           /* <<< الأزرق الملكي */
    cursor: pointer;          /* شكل اليد عند الماوس */
}

/* ===== قسم الهيرو (الصورة + النص) ===== */
#home {
    display: flex;              /* يخلي النص والصورة جنب بعض */
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    min-height: 80vh;           /* يخلي القسم طويل شوي */
    direction: rtl;             /* عربي */
}

/* ===== نص الهيرو ===== */
#home .hero-text {
    max-width: 50%;            /* النص ياخذ نصف الشاشة */
}

#home .hero-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #1c3d8c;            /* الأزرق الملكي */
}

#home .hero-text p {
    font-size: 30px;
    line-height: 1.8;
    color: #333;
}

/* ===== أزرار الهيرو ===== */
.hero-buttons {
    margin-top: 20px;
}

.hero-buttons .btn {
    text-decoration: none;
    padding: 12px 22px;
    font-size: 18px;
    border-radius: 8px;
    margin-left: 10px;
    display: inline-block;
    transition: 0.3s;
    font-weight: 600;
}

.primary-btn {
    background-color: #1c3d8c;     /* الأزرق الملكي */
    color: #fff;
}

.primary-btn:hover {
    background-color: #162c66;
}

.secondary-btn {
    background-color: #b8860b;     /* ذهبي */
    color: #fff;
}

.secondary-btn:hover {
    background-color: #8a6909;
}

/* ===== صورة الهيرو ===== */
#home img {
    width: 420px;               /* حجم مناسب للصورة */
    border-radius: 20px;        /* خطوط ناعمة */
}
/* ===== حركة الارتقاء البطيئة للنصوص ===== */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
#home .hero-text h2,
#home .hero-text p {
    animation: fadeUp 1.5s ease-out;    /* <<< مدة الحركة */
}
/* ===== قسم من هو الدكتور ===== */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;                 /* مسافة بين الصورة والنص */
    padding: 60px 50px;
    background-color: #fdf9ee; /* خلفية خفيفة */
    flex-direction: row-reverse;

}

/* الصورة في اليسار */
.about-photo img {
    width: 420px;                          /* كبر/صغر الصورة براحتك */
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);

    /* الحركة هنا */
    animation: photoFadeUp 2s ease-out forwards;
}


/* النص في اليمين */
.about-text {
    flex: 1;
    text-align: right;
    direction: rtl;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1c3d8c;            /* نفس الأزرق الملكي */
}

.about-text p {
    font-size: 20px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 12px;
}

/* استجابة للموبايل */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: right;
    }

    .about-photo img {
        width: 260px;
    }
}
@keyframes photoFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);   /* نبدأ نازل شوية */
    }
    100% {
        opacity: 1;
        transform: translateY(0);      /* يرجع لمكانه */
    }
}
/* ===== الأدوار داخل الملخص الوظيفي ===== */
.roles-intro {
    font-weight: 600;
    color: #555;
}

/* الكلمات القابلة للضغط */
.role-trigger {
    color: #1c3d8c;
    cursor: pointer;
    text-decoration: underline;
    margin: 0 4px;
    font-weight: 700;
}

.role-trigger:hover {
    color: #162c66;
}

/* التفاصيل المخفية */
.role-details {
    display: none;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #f7f3e8;
    border-right: 4px solid #1c3d8c;
    font-size: 16px;
    line-height: 1.8;
}

/* تظهر عند الضغط */
.role-details.active {
    display: block;
}
/* ===== قسم المؤهلات الأكاديمية ===== */
.academic-section {
    padding: 80px 50px;
    background: #faf7f0;
}

.academic-section h2 {
    font-size: 36px;
    color: #b8860b;        /* الأزرق الملكي */
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
}

/* شبكة البطاقات */
.academic-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* البطاقات نفسها */
.academic-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: 0.3s;
    direction: rtl;
}

/* الحركة عند المرور */
.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* عنوان الدرجة */
.academic-card .degree-title {
    font-size: 22px;
    font-weight: 700;
    color: #1c3d8c;
    margin-bottom: 8px;
}

/* الجامعة */
.academic-card .degree-university {
    font-size: 18px;
    color: #555;
    margin-bottom: 6px;
}

/* سنة التخرج */
.academic-card .degree-year {
    font-size: 16px;
    font-weight: bold;
    color: #b8860b;    /* الذهبي */
}
/* ===== قسم المؤهلات الاحترافية ===== */
.professional-section {
    padding: 80px 50px;
    background: #ffffff; /* خلفية ناعمة */
}

.professional-section h2 {
    font-size: 36px;
    color: #1c3d8c;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 800;
}

.section-intro {
    text-align: center;
    font-size: 20px;
    color: #444;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.9;
    direction: rtl;
}

/* شبكة المجموعات */
.pro-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* كل مجموعة */
.pro-group {
    background-color: #faf7f0;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    direction: rtl;
}

/* حركة hover */
.pro-group:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* عنوان المجموعة */
.pro-group h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1c3d8c;
    margin-bottom: 12px;
}

/* عناصر النقاط */
.pro-group ul {
    padding-right: 20px;
    margin: 0;
}

.pro-group ul li {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
}
/* ===== قسم الخبرات (أزرار عادية) ===== */
.experiences-section {
    padding: 80px 50px;
    background-color: #ffffff;
}

.experiences-section h2 {
    text-align: center;
    font-size: 36px;
    color: #1c3d8c;
    margin-bottom: 30px;
    font-weight: 800;
}

/* الأزرار */
.exp-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.exp-btn {
    padding: 14px 30px;
    border: 2px solid #1c3d8c;
    background-color: #ffffff;
    color: #1c3d8c;
    font-size: 20px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

/* زر مفعّل */
.exp-btn.active {
    background-color: #1c3d8c;
    color: #ffffff;
}

/* حركة */
.exp-btn:hover {
    transform: translateY(-3px);
}

/* محتوى الأقسام */
.exp-panel {
    display: none;
}

.exp-panel.active {
    display: block;
}

.exp-content {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
    direction: rtl;
}
/* قائمة الخبرات العملية (بدون كروت) */
.practical-list {
    list-style: none;
    padding-right: 0;
    direction: rtl;
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.practical-list li {
    margin-bottom: 6px;
    position: relative;
    padding-right: 20px;
}

.practical-list li::before {
    content: "•";
    position: absolute;
    right: 0;
    top: 0;
    color: #1c3d8c;
    font-weight: bold;
}
.practical-list,
.technical-list {
    font-size: 25px;
    line-height: 1.8;
    max-width: 950px;
    margin: 0 auto;
}
/* تكبير عنوان الخبرات العملية والفنية */
.exp-panel h3 {
    font-size: 28px;   /* عدّليه للقياس البناسبك */
    color: #1c3d8c;    /* الأزرق الملكي */
    font-weight: 800;  /* سماكة قوية */
    margin-bottom: 20px;
    text-align: right; /* لأنو RTL */
}
#technical-exp h3 {
    text-align: right !important;
    direction: rtl !important;
}
/* ضبط اتجاه وعرض أقسام الخبرات */
.exp-panel {
    direction: rtl;      /* الكتابة من اليمين لليسار */
    text-align: right;   /* كل النص يمين */
}
/* ===== قسم العضويات الاحترافية ===== */
.members-section {
    padding: 80px 50px;
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
}

/* عنوان القسم */
.members-section h2 {
    text-align: center;
    font-size: 36px;
    color: #1c3d8c;
    margin-bottom: 30px;
    font-weight: 800;
}

/* قائمة نص العضويات من السيرة */
.members-list {
    list-style: none;
    padding-right: 0;
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 25px;
    line-height: 2;
    color: #444;
  
}

.members-list li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
}

.members-list li::before {
    content: "•";
    position: absolute;
    right: 0;
    top: 0;
    color: #1c3d8c;
    font-weight: bold;
}
/* إصلاح قلب النص */
.memberships-section ul, 
.memberships-section li {
    direction: rtl;         /* النص عربي من اليمين */
    unicode-bidi: plaintext; /* يمنع قلب النص المختلط عربي/إنجليزي */
    text-align: right;
    list-style-position: inside; 
}

/* تصغير المسافة بين السطور */
.memberships-section li {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.8;
}

/* تنسيق الرصاصات بشكل جميل */
.memberships-section ul {
    padding-right: 0;
}

/* شعارات العضويات */
.members-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.logo-item {
    text-align: center;
}

.logo-item img {
    width: 200px;      /* لو كبيرة/صغيرة عدّلي الرقم */
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px auto;
}

.logo-item span {
    font-size: 16px;
    font-weight: 600;
    color: #1c3d8c;
}
.members-section{
    background-color: #faf7f0;
    border-radius: 0%;
    width: 100%;
}
/* ===== قسم الاعتمادات (المتقدمة + التخصصية) ===== */
.credentials-section {
    padding: 80px 50px;
    background-color: #ffffff;
    direction: rtl;
}

/* عنوان القسم الرئيسي */
.credentials-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1c3d8c;
    margin-bottom: 40px;
}

/* شبكة العمودين */
.credentials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* الصندوق لكل مجموعة اعتمادات */
.credential-box {
    background-color: #faf7f0;      /* نفس اللون الدافئ في الصورة */
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* عنوان كل عمود */
.credential-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1c3d8c;
    margin-bottom: 15px;
    text-align: right;
}

/* قائمة النقاط */
.credential-box ul {
    list-style: none;
    margin: 0;
    padding-right: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.credential-box ul li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 6px;
}

/* نقطة قبل كل سطر */
.credential-box ul li::before {
    content: "•";
    position: absolute;
    right: 0;
    top: 0;
    color: #1c3d8c;
    font-weight: bold;
}
/* ===== قسم صور الدورات التدريبية ===== */

/* خلفية عامة خفيفة للقسم */
.training-section {
    padding: 60px 0 40px;
    background-color: #fdf7e6; /* قريب من لون الموقع */
}

/* عنوان القسم */
.training-section .section-title {
    text-align: center;
    font-size: 32px;
    color: #1c3d8c;
    margin-bottom: 30px;
    font-weight: 800;
}

/* الصندوق الذهبي حول الصور */
.training-gallery {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background: #f6e1b8;          /* ذهبي فاتح */
    border-radius: 24px;
    padding: 30px 30px 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    overflow: hidden;             /* يمنع ظهور أسهم السكروول داخل الصندوق */
}

/* شبكة الصور داخل الصندوق */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    justify-items: center;
}

/* شكل كل صورة */
.gallery-grid img {
    width: 100%;
    max-width: 210px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* حركة بسيطة عند المرور */
.gallery-grid img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* استجابة للموبايل */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* إخفاء أي سكرول أفقي في الصفحة كلها (عشان السهم اللي تحت) */
body {
    overflow-x: hidden;
}

#galleryGrid {
    overflow: hidden !important;
}
/* ===== الفوتر / قسم التواصل ===== */
.site-footer {
    background-color: #d4b16a;   /* نفس اللون الذهبي بتاع الهيدر */
    padding: 30px 90px;
    text-align: center;
    color: #fff;
    margin-top: 60px;
    width: 100%;
}

.site-footer .footer-title {
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #1c3d8c; /* الأزرق الملكي */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* خلي أيقونة باللون الأبيض */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: .3s;
}

.contact-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.26);
    background-color: #162f6a; /* درجة أغمق شوية للهوفر */
}


.contact-icon svg {
    width: 28px;
    height: 28px;
}

/* تأثير hover خفيف */



.footer-copy {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
    padding-right: 40px;
    color: #333;
}


.footer-contact {
    text-align: center;
    padding: 40px 20px;     /* كان 30 مثلاً خليه أكبر */
}

.footer-contact .social-icons {
    margin-top: 25px;       /* تنزل الأيقونات شوية تحت */
}
.scroll-top {
    position: fixed;
    right: 20px;      /* على طرف الشاشة اليمين */
    bottom: 20px;     /* تحت */
    z-index: 999;     /* فوق كل العناصر */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #1c3d8c;   /* الأزرق الملكي */
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
/* حاوية موحدة لكل الأقسام */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}



/* ===== استمارة الحجز (صفحة منفصلة) ===== */

.booking-section {
    padding: 80px 40px;
    background-color: #fef8e9;
    direction: rtl;
    text-align: right;
}

.booking-section .section-title {
    text-align: center;
    font-size: 34px;
    color: #1c3d8c;
    font-weight: 800;
    margin-bottom: 10px;
}

.booking-intro {
    text-align: center;
    font-size: 20px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

.booking-card {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* شبكة الحقول */
.booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1c3d8c;
    box-shadow: 0 0 0 2px rgba(28,61,140,0.2);
}

/* الرابط بتاع الدورات */
.hint-text {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 5px;
}

.hint-text a {
    color: #1c3d8c;
    font-weight: 600;
    text-decoration: underline;
}

/* زر الإرسال */
.booking-submit {
    display: block;
    margin: 30px auto 0 auto;
    padding: 12px 40px;
    border: none;
    border-radius: 999px;
    background-color: #1c3d8c;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.booking-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* للموبايل */
@media (max-width: 768px) {
    .booking-section {
        padding: 60px 20px;
    }

    .booking-card {
        padding: 25px 20px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* حاوية الأزرار */
.booking-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* الزر الأساسي */
.booking-submit {
    padding: 12px 26px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

/* زر الواتساب */
.whatsapp-btn {
    background-color: #25d366;
    color: #fff;
}

.whatsapp-btn:hover {
    background-color: #1eac52;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* زر البريد */
.email-btn {
    background-color: #1c3d8c; /* الأزرق الملكي */
    color: #fff;
}

.email-btn:hover {
    background-color: #162f6a;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* رسالة تحت الأزرار */
.booking-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #146d66;
}
