/* ============================================================================
   ملف التنسيقات الرئيسي (Main CSS) - الإصدار الاحترافي المحدث
   المشروع: Dr. Yousef Portfolio & Blog
   ============================================================================ */

/* ==========================================
   1. متغيرات الألوان والخطوط (CSS Variables)
   ========================================== */
:root {
    /* الألوان الأساسية */
    --primary: #1B3A5C;
    --primary-light: #2A5F8F;
    --primary-dark: #0F2640;
    --secondary: #C9A84C; /* اللون الذهبي الموحد الاحترافي */
    --secondary-light: #E8D5A0;
    --secondary-dark: #A8892E;
    --sand: #E8D5B7;
    --cream: #F5F0E8;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #555555;
    --light-gray: #E0DCD4;
    --danger: #e74c3c;
    --success: #2ecc71;
    --info: #3498db;

    /* التأثيرات والحدود */
    --shadow: 0 8px 32px rgba(27, 58, 92, 0.15);
    --shadow-hover: 0 12px 48px rgba(27, 58, 92, 0.25);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* الخطوط الأساسية */
    --font-ar: 'Montserrat', sans-serif;
    --font-en: 'Cinzel', serif;

    /* ألوان عناصر الواجهة (الوضع الفاتح الافتراضي) */
    --bg-body: var(--cream);
    --bg-card: var(--white);
    --text-primary: var(--black);
    --text-secondary: var(--gray);
    --border-color: var(--light-gray);
    --nav-bg: rgba(27, 58, 92, 0.92);
    --nav-text: var(--white);
    --input-bg: var(--white);
    --input-border: var(--light-gray);
}

/* الوضع الداكن المطور (High-Contrast Dark Mode) */
[data-theme="dark"] {
    --bg-body: #101926;
    --bg-card: #1C2638;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --border-color: rgba(201, 168, 76, 0.22);
    --nav-bg: rgba(16, 25, 38, 0.96);
    --nav-text: #F8FAFC;
    --input-bg: #152030;
    --input-border: rgba(201, 168, 76, 0.3);
    --sand: #243247;
    --cream: #141F2E;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.6);
}

/* دعم الخط العربي والاتجاه من اليمين لليسار */
html[lang="ar"],
html[dir="rtl"],
html[dir="rtl"] body {
    font-family: 'Cairo', 'Montserrat', sans-serif !important;
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .animated-name,
html[dir="rtl"] .animated-name,
html[lang="ar"] .section-title,
html[dir="rtl"] .section-title,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
    font-family: 'Cairo', 'Montserrat', sans-serif !important;
}

/* ==========================================
   2. التهيئة العامة (Reset & Base Styles)
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background: var(--bg-body);
    color: var(--text-primary);
    transition: var(--transition);
    line-height: 1.85;
    overflow-x: hidden;
    
    /* حماية المحتوى من التظليل والنسخ */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}

/* السماح بالكتابة وتظليل النصوص داخل حقول الإدخال فقط */
input, textarea {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    font-family: var(--font-ar) !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* تخصيص شريط التمرير (Scrollbar) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

/* ==========================================
   3. الخطوط والطباعة (Typography Identity)
   ========================================== */
h1, h2, h3, h4, h5, h6,
.section-title,
.logo,
.pharaonic-divider,
.hero-badges span,
.post-title {
    font-family: var(--font-en);
    letter-spacing: 0.5px;
}

/* تخصيص الخط العربي لكافة العناوين والنصوص عند اختيار العربية */
html[lang="ar"],
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .animated-name,
html[dir="rtl"] .logo-link,
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .hero-badges span,
html[dir="rtl"] .btn-primary, html[dir="rtl"] .btn-secondary, html[dir="rtl"] .btn-outline,
html[dir="rtl"] .hl-value, html[dir="rtl"] .hl-label,
html[dir="rtl"] .about-lead-statement p,
html[dir="rtl"] .about-narrative p,
html[dir="rtl"] .pillar-header h4,
html[dir="rtl"] .about-pillar p,
html[dir="rtl"] .fact-item span,
html[dir="rtl"] .portrait-badge-top span,
html[dir="rtl"] .tag-info h4, html[dir="rtl"] .tag-info p,
html[dir="rtl"] .timeline-card h3, html[dir="rtl"] .timeline-card p, html[dir="rtl"] .tl-date, html[dir="rtl"] .tl-subtitle,
html[dir="rtl"] .competency-header h3, html[dir="rtl"] .competency-header p, html[dir="rtl"] .skill-chip,
html[dir="rtl"] .focus-card h3, html[dir="rtl"] .focus-card p,
html[dir="rtl"] .quote-banner blockquote, html[dir="rtl"] .quote-author, html[dir="rtl"] .quote-title,
html[dir="rtl"] .faq-question, html[dir="rtl"] .faq-answer p,
html[dir="rtl"] .cta-box-card h3, html[dir="rtl"] .cta-box-card p,
html[dir="rtl"] .cv-top-bar h2, html[dir="rtl"] .cv-summary-card h3, html[dir="rtl"] .cv-summary-card li,
html[dir="rtl"] .method-card-content h4, html[dir="rtl"] .method-card-content p,
html[dir="rtl"] .contact-form-wrapper h3, html[dir="rtl"] .form-group label, html[dir="rtl"] .contact-detail-card h3, html[dir="rtl"] .contact-detail-card p,
html[dir="rtl"] .footer-grid h4, html[dir="rtl"] .footer-brand-col p, html[dir="rtl"] .footer-links-col a, html[dir="rtl"] .footer-bottom p {
    font-family: 'Cairo', 'Montserrat', sans-serif !important;
    letter-spacing: 0px !important;
}

p, .about-text p, .post-content p, .hobby-card p, .excerpt {
    font-size: 16.5px;
    color: var(--text-secondary);
}

.about-text p {
    font-size: 16.5px;
    line-height: 1.95;
    text-align: justify;
}

[dir="rtl"] .about-text p {
    text-align: right;
}

/* ==========================================
   تنسيق الكلمات البارزة (Strong / Bold)
   تمت إزالة التظليل والمستطيلات المزعجة تماماً
   واستبدالها بنمط خط نقي عالي التباين
   ========================================== */
strong, b {
    font-weight: 700;
    color: var(--text-primary);
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    display: inline;
}

/* إبراز ذهبي خفيف وأنيق جداً للكلمات المفتاحية في السرد والفقرات في الوضعين الفاتح والداكن */
.about-narrative strong,
.about-lead-statement strong,
.timeline-card strong,
.cv-summary-card strong,
.contact-response-note strong {
    color: var(--secondary) !important;
    font-weight: 700;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

[data-theme="dark"] .about-narrative strong,
[data-theme="dark"] .about-lead-statement strong,
[data-theme="dark"] .timeline-card strong,
[data-theme="dark"] .cv-summary-card strong,
[data-theme="dark"] .contact-response-note strong {
    color: var(--secondary-light) !important;
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.25);
}

/* ==========================================
   4. الحركات التفاعلية (Animations)
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientTextMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* الفئة الخاصة بتأثير الاسم في الصفحة الرئيسية */
.animated-name {
    background: linear-gradient(270deg, var(--secondary), #ffffff, var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientTextMove 4s ease infinite;
}

/* ==========================================
   5. الزخارف الفرعونية (Pharaonic Decorations)
   ========================================== */
.pharaonic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
    color: var(--secondary);
    font-size: 18px;
    opacity: 0.5;
}
.pharaonic-divider::before,
.pharaonic-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    max-width: 80px;
}
[dir="rtl"] .pharaonic-divider::before {
    background: linear-gradient(90deg, var(--secondary), transparent);
}
[dir="rtl"] .pharaonic-divider::after {
    background: linear-gradient(90deg, transparent, var(--secondary));
}
.ankh-icon {
    display: inline-block;
    color: var(--secondary);
    font-size: 1.2em;
    margin: 0 4px;
}

.ankh_1-icon {
    display: inline-block;
    color: var(--secondary);
    font-size: 1.2em;
    margin: 0 4px;
}

/* ==========================================
   6. القائمة العلوية (Header & Navigation)
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 2px solid rgba(201, 168, 76, 0.2);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--nav-text);
}

.logo span {
    color: var(--secondary);
}

.logo .ankh {
    font-size: 18px;
    margin-right: 6px;
}

.logo .ankh_1 {
    font-size: 18px;
    margin-right: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--nav-text);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    text-transform: capitalize;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(201, 168, 76, 0.2);
    color: var(--secondary);
}

.nav-links a i {
    margin-right: 6px;
    font-size: 13px;
}

[dir="rtl"] .nav-links a i {
    margin-right: 0;
    margin-left: 6px;
}

/* القائمة المنسدلة (Dropdown) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary);
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #fff !important;
    font-size: 14px !important;
}

.dropdown-menu li a:hover {
    background-color: rgba(201, 168, 76, 0.2);
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

.dropdown a i.fa-caret-down {
    margin-left: 5px;
    font-size: 14px;
}

/* أزرار الإجراءات في القائمة (Nav Actions) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* زر تبديل اللغة المبهر (Language Switcher Button) */
.lang-btn {
    background: rgba(201, 168, 76, 0.12) !important;
    border: 1px solid rgba(201, 168, 76, 0.35) !important;
    color: var(--secondary) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    width: auto !important;
    height: 38px !important;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.lang-btn:hover {
    background: var(--secondary) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.lang-btn i {
    font-size: 14px;
    color: currentColor;
    transition: transform 0.4s ease;
}

.lang-btn:hover i {
    transform: rotate(180deg);
}

/* زر الوضع الليلي المطور */
#themeToggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

#themeToggle:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--secondary);
    transform: rotate(20deg) scale(1.05);
}

/* زر القائمة للهواتف (Menu Toggle) */
.menu-toggle,
#header .menu-toggle {
    display: none;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-toggle:hover,
#header .menu-toggle:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .menu-toggle,
    #header .menu-toggle {
        display: inline-flex !important;
    }
    
    #header .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 20px;
        gap: 6px;
        border-bottom: 2px solid rgba(201, 168, 76, 0.2);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    }
    
    #header .nav-links.open {
        display: flex !important;
    }
    
    #header .nav-links a {
        padding: 10px 16px;
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }
    
    .dropdown {
        width: 100%;
    }

    .dropdown > a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }

    .dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none !important;
        background: rgba(11, 19, 43, 0.7) !important;
        border: 1px solid rgba(201, 168, 76, 0.35);
        border-radius: 12px;
        margin: 6px 0 10px 0;
        padding: 8px !important;
        width: 100% !important;
        animation: fadeIn 0.25s ease;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none; 
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown.active > a i.fa-caret-down,
    .dropdown.active > a i.dropdown-caret {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
        color: var(--secondary);
    }

    .dropdown-menu li {
        width: 100%;
        margin-bottom: 4px;
    }

    .dropdown-menu a {
        padding: 11px 18px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center !important;
        color: #F8FAFC !important;
        border-radius: 8px !important;
        border-bottom: 1px solid rgba(201, 168, 76, 0.12);
        background: rgba(255, 255, 255, 0.04);
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: var(--transition) !important;
    }

    .dropdown-menu a i {
        color: var(--secondary) !important;
        font-size: 15px !important;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu a:hover {
        background: rgba(201, 168, 76, 0.22) !important;
        color: var(--secondary) !important;
    }
}

/* أدوات التحكم المدمجة بالقائمة للهواتف الصغيرة */
.mobile-nav-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 10px 6px 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    width: 100%;
}

.mobile-lang-btn {
    background: rgba(201, 168, 76, 0.14) !important;
    border: 1px solid rgba(201, 168, 76, 0.4) !important;
    color: var(--secondary) !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
    cursor: pointer;
    font-weight: 700;
    font-size: 13.5px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.mobile-lang-btn:hover {
    background: var(--secondary) !important;
    color: var(--primary-dark) !important;
}

.mobile-theme-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.mobile-theme-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--secondary);
    transform: rotate(20deg) scale(1.05);
}

/* في الشاشات الصغيرة جداً (الهواتف <= 576px): إخفاء أزرار الترجمة والوضع الليلي من الهيدر العلوي ونقلها لداخل القائمة */
@media (max-width: 576px) {
    .nav-actions #langToggle,
    .nav-actions #themeToggle {
        display: none !important;
    }

    .mobile-nav-controls {
        display: flex !important;
    }
}

/* ==========================================
   7. القسم الترحيبي العلوي (Hero Section)
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '𓂀 𓃥 𓃠 𓃰 ☥';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    opacity: 0.05;
    color: var(--secondary);
    letter-spacing: 20px;
    pointer-events: none;
    transform: rotate(10deg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to top, var(--bg-body), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-content .subtitle {
    font-size: 20px;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.hero-content .tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    border-left: 3px solid var(--secondary);
    padding-left: 16px;
}

[dir="rtl"] .hero-content .tagline {
    border-left: none;
    border-right: 3px solid var(--secondary);
    padding-left: 0;
    padding-right: 16px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-badges span {
    background: rgba(201, 168, 76, 0.15);
    color: var(--secondary);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-image .profile-frame {
    width: 420px;
    height: 420px;
    max-width: 88vw;
    max-height: 88vw;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    padding: 10px;
    background: rgba(201, 168, 76, 0.12);
    box-shadow: 0 0 80px rgba(201, 168, 76, 0.25), 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image .profile-frame:hover {
    transform: scale(1.03);
    box-shadow: 0 0 100px rgba(201, 168, 76, 0.4), 0 25px 60px rgba(0, 0, 0, 0.45);
}

.hero-image .profile-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-image .profile-frame .ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--secondary);
    border-right-color: var(--secondary);
    animation: spin 8s linear infinite;
    pointer-events: none;
}

/* ==========================================
   8. الأزرار العامة للموقع (Global Buttons)
   ========================================== */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary, .btn-secondary {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: capitalize;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-light);
    box-shadow: 0 8px 24px rgba(27, 58, 92, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: capitalize;
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ==========================================
   9. عناوين وتنسيق الأقسام (Section Styles)
   ========================================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.section-title span {
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 48px;
}

/* ==========================================
   10. قسم عنّي المطور (Modern Luxury About Section)
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

/* بطاقة البيان الافتتاحي الملهم */
.about-lead-statement {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(27, 58, 92, 0.03));
    border-left: 4px solid var(--secondary);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[dir="rtl"] .about-lead-statement {
    border-left: none;
    border-right: 4px solid var(--secondary);
}

.about-lead-statement p {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.85;
    color: var(--text-primary);
    margin: 0;
    font-style: italic;
}

.about-lead-statement p strong {
    font-style: normal;
}

/* النصوص والسرد التعريفي */
.about-narrative {
    margin-bottom: 28px;
}

.about-narrative p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* شبكة ركائز وقيم العمل */
.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}

.about-pillar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    transition: var(--transition);
    border-left: 3px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

[dir="rtl"] .about-pillar {
    border-left: 1px solid var(--border-color);
    border-right: 3px solid var(--secondary);
}

.about-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
    background: linear-gradient(135deg, var(--bg-card), rgba(201, 168, 76, 0.04));
}

.about-pillar .pillar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.about-pillar .pillar-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(27, 58, 92, 0.08));
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.about-pillar h4 {
    font-family: var(--font-en);
    font-size: 15px;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

[data-theme="dark"] .about-pillar h4 {
    color: var(--secondary);
}

.about-pillar p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* شريط البيانات السريعة المحدث */
.about-facts-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: linear-gradient(135deg, rgba(27, 58, 92, 0.04), rgba(201, 168, 76, 0.06));
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.fact-item i {
    color: var(--secondary);
    font-size: 15px;
    flex-shrink: 0;
}

.fact-item strong {
    background: none;
    border: none;
    padding: 0;
    font-size: 13.5px;
    color: var(--text-primary) !important;
}

/* أزرار الإجراءات داخل قسم النبذة */
.about-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ------------------------------------------
   طريقة العرض الفاخرة للصورة في قسم About Me
   (Luxury Pharaonic Sculptural Portrait Display)
   ------------------------------------------ */
.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.about-portrait-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: 35px 120px 35px 35px;
    overflow: hidden;
    background: var(--primary-dark);
    box-shadow: 0 20px 50px rgba(27, 58, 92, 0.2), 0 0 0 3px var(--secondary), 0 0 50px rgba(201, 168, 76, 0.25);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-portrait-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 65px rgba(27, 58, 92, 0.3), 0 0 0 4px var(--secondary), 0 0 70px rgba(201, 168, 76, 0.4);
}

.about-portrait-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.6s ease;
}

.about-portrait-card:hover img {
    transform: scale(1.06);
}

/* الشارة العائمة في أعلى بطاقة الصورة */
.portrait-badge-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 38, 64, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--secondary);
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

[dir="rtl"] .portrait-badge-top {
    right: auto;
    left: 20px;
}

.portrait-badge-top i {
    font-size: 13px;
}

/* الشريط الزجاجي الفاخر أسفل بطاقة الصورة */
.portrait-footer-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 38, 64, 0.95) 0%, rgba(15, 38, 64, 0.75) 70%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(201, 168, 76, 0.3);
    z-index: 2;
}

.portrait-footer-tag .ankh-symbol {
    font-size: 28px;
    color: var(--secondary);
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.5));
}

.portrait-footer-tag .tag-info h4 {
    font-family: var(--font-en);
    font-size: 17px;
    color: var(--white);
    margin: 0;
    font-weight: 700;
}

.portrait-footer-tag .tag-info p {
    font-size: 12px;
    color: var(--secondary);
    margin: 2px 0 0 0;
    font-weight: 600;
}

/* الزوايا الفرعونية الذهبية التجميلية */
.pharaonic-corner {
    position: absolute;
    color: var(--secondary);
    font-size: 20px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.pharaonic-corner.corner-tl { top: -15px; left: -15px; }
.pharaonic-corner.corner-br { bottom: -15px; right: -15px; }

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-portrait-card {
        max-width: 340px;
    }
    .about-portrait-card img {
        height: 420px;
    }
}
@media (max-width: 576px) {
    .about-pillars-grid {
        grid-template-columns: 1fr;
    }
    .about-facts-strip {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   11. قسم السيرة الذاتية (CV Section)
   ========================================== */
.cv-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.cv-container .cv-icon {
    font-size: 64px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.cv-container h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cv-container p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cv-container .cv-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   12. قسم الهوايات (Hobbies Section)
   ========================================== */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.hobby-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(201, 168, 76, 0.4);
}

.hobby-card .icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 12px;
    transition: var(--transition);
}

.hobby-card:hover .icon {
    transform: scale(1.1);
}

.hobby-card h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--primary);
}

/* ==========================================
   13. شبكة المقالات (Blog Grid & Cards)
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-card img {
    border-bottom: 3px solid var(--secondary);
    transition: transform 0.6s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
}

.blog-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-body h3 a {
    color: var(--primary);
    transition: var(--transition);
}

.blog-card .card-body h3 a:hover {
    color: var(--secondary);
}

.blog-card .card-body .excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .card-body .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
/* ==========================================
   14. المقال الفردي والتعليقات (Single Post & Comments)
   ========================================== */
.article-header {
    padding: 140px 20px 40px;
    background: var(--bg-body);
    text-align: center;
}

.back-btn-container {
    margin-bottom: 25px;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(201,168,76,0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    border: 1px solid rgba(201,168,76,0.3);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-blog:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(201,168,76,0.2);
}

.article-cover {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 auto 50px;
    display: block;
    box-shadow: var(--card-shadow);
}

.article-body {
    max-width: 780px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 2.2;
    color: var(--text-primary);
}

.comments-section {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

/* ==========================================
   15. صفحة التواصل (Contact Section)
   ========================================== */
.contact-hero {
    position: relative;
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    text-align: center;
    color: var(--white);
    overflow: hidden;
    border-bottom: 3px solid var(--secondary);
}

.advanced-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: -30px; 
    position: relative;
    z-index: 5;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.method-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.4);
}

.method-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.method-card:hover .icon-wrapper {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 16px 16px 0 0;
}

.form-group label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    display: block;
    margin-bottom: 8px;
}

/* ==========================================
   16. الفوتر (Footer)
   ========================================== */
footer {
    background: #0B132B;
    color: #F8FAFC;
    padding: 60px 0 24px;
    border-top: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] footer {
    background: #0F2640;
}

.footer-top-symbol {
    text-align: center;
    margin-bottom: 35px;
    font-size: 24px;
    color: var(--secondary);
    letter-spacing: 12px;
    opacity: 0.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-brand-col p {
    font-size: 14px;
    line-height: 1.7;
    color: #94A3B8;
    margin-bottom: 16px;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-light);
}

.status-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.footer-links-col h4,
.footer-newsletter-col h4 {
    font-family: var(--font-en);
    font-size: 17px;
    color: var(--secondary-light);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links-col h4::after,
.footer-newsletter-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

[dir="rtl"] .footer-links-col h4::after,
[dir="rtl"] .footer-newsletter-col h4::after {
    left: auto;
    right: 0;
}

.footer-nav-list {
    list-style: none;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    color: #94A3B8;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-nav-list a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

[dir="rtl"] .footer-nav-list a:hover {
    transform: translateX(-4px);
}

.footer-newsletter-col p {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 12px;
}

.newsletter-modern-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 30px;
    padding: 4px 6px 4px 14px;
    margin-bottom: 14px;
}

[dir="rtl"] .newsletter-modern-form {
    padding: 4px 14px 4px 6px;
}

.newsletter-modern-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 13px;
}

.newsletter-modern-form button {
    background: var(--secondary);
    color: var(--primary-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-modern-form button:hover {
    background: var(--secondary-light);
    transform: scale(1.05);
}

.footer-social-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.social-label {
    font-size: 12.5px;
    color: #94A3B8;
}

.footer-social-icons {
    display: flex;
    gap: 8px;
}

.footer-social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.footer-social-icons a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary-dark);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-light);
    transform: translateY(-4px);
}

.pharaonic-up-icon {
    font-size: 22px;
    line-height: 1;
}

/* ==========================================
   17. التجاوب مع الشاشات (Responsive Design)
   ========================================== */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    .hero::after {
        display: none !important;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .about-grid, .advanced-contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-image {
        margin: 20px auto 25px auto;
    }
    .hero-image .profile-frame {
        width: 300px;
        height: 300px;
        max-width: 75vw;
        max-height: 75vw;
        margin: 0 auto;
    }
    .highlights-strip {
        margin-top: 0 !important;
    }
    .hero-badges, .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 110px 0 50px;
    }
    .hero::after {
        display: none !important;
    }
    .hero-content h1 { font-size: 34px; }
    .section-title { font-size: 28px; }
    .blog-grid { grid-template-columns: 1fr; }
    .hobbies-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .cv-container, .article-body { padding: 24px; }
    .hero-image {
        margin: 20px auto 30px auto;
    }
    .hero-image .profile-frame { 
        width: 270px; 
        height: 270px; 
        max-width: 72vw;
        max-height: 72vw;
        margin: 0 auto;
    }
    .highlights-strip {
        margin-top: 0 !important;
    }
    
    .footer-top { flex-direction: column; text-align: center; }
    .footer-brand-links { text-align: center !important; margin-top: 20px; }
    .footer-newsletter form { flex-direction: column; }
    .footer-social-icons { justify-content: center; }
    
    .article-title { font-size: 30px !important; }
    .article-cover { height: 250px !important; margin-top: 20px !important; }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 45px;
    }
    .hobbies-grid { grid-template-columns: 1fr 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 28px; }
    .hero-badges span { font-size: 11px; padding: 4px 12px; }
    .btn-primary, .btn-outline, .btn-secondary { padding: 10px 20px; font-size: 13px; }
    .hero-image {
        margin: 15px auto 25px auto;
    }
    .hero-image .profile-frame {
        width: 240px;
        height: 240px;
        max-width: 68vw;
        max-height: 68vw;
        margin: 0 auto;
    }
    .highlights-strip {
        margin-top: 0 !important;
    }
}
/* ==========================================
   18. تأثيرات اللوجو المتحرك (Animated Logo)
   ========================================== */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.animated-logo-text {
    background: linear-gradient(270deg, var(--secondary), #ffffff, var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineEffect 3s linear infinite;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
}

@keyframes shineEffect {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* حركة دوران الرمز الفرعوني عند مرور الماوس */
.logo-link .ankh {
    display: inline-block;
    color: var(--secondary);
    font-size: 20px;
    margin-right: 6px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="rtl"] .logo-link .ankh { margin-right: 0; margin-left: 6px; }

.logo-link:hover .ankh {
    transform: rotate(360deg) scale(1.1);
}

.logo-link .ankh_1 {
     background: linear-gradient(270deg, var(--secondary), #ffffff, var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineEffect 3s linear infinite;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="rtl"] .logo-link .ankh_1 { margin-right: 0; margin-left: 6px; }

.logo-link:hover .ankh_1 {
    transform: rotate(360deg) scale(1.1);
}

/* ==========================================
   19. تصميم الفوتر الاحترافي المطور (Modern Luxury Footer)
   ========================================== */
footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0c1827 100%);
    color: var(--white);
    padding: 60px 0 25px;
    position: relative;
    border-top: 3px solid var(--secondary);
    overflow: hidden;
}

[data-theme="dark"] footer {
    background: linear-gradient(180deg, #0d1522 0%, #070c14 100%);
    border-top-color: var(--secondary);
}

.footer-top-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    color: var(--secondary);
    font-size: 20px;
    opacity: 0.6;
    letter-spacing: 4px;
}

.footer-top-symbol::before,
.footer-top-symbol::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
    max-width: 150px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.1fr 1.1fr 1.6fr;
    gap: 40px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-col p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12.5px;
    color: var(--secondary-light);
    font-weight: 600;
}

.status-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.footer-grid h4 {
    font-family: var(--font-en);
    color: var(--white);
    font-size: 17px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--secondary);
}

[dir="rtl"] .footer-grid h4::after {
    left: auto;
    right: 0;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-list li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-list li a i {
    font-size: 11px;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.footer-nav-list li a:hover {
    color: var(--secondary);
    transform: translateX(6px);
}

[dir="rtl"] .footer-nav-list li a:hover {
    transform: translateX(-6px);
}

[dir="rtl"] .footer-nav-list li a i.fa-chevron-right {
    transform: rotate(180deg);
}

.footer-newsletter-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.newsletter-modern-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 10px;
    padding: 4px;
    transition: var(--transition);
}

.newsletter-modern-form:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.25);
}

.newsletter-modern-form input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13.5px;
    outline: none;
}

.newsletter-modern-form button {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.newsletter-modern-form button:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.footer-social-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-wrapper .social-label {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social-icons a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(201, 168, 76, 0.35);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
}

.footer-bottom p {
    margin: 0;
}

/* التجاوب مع الشاشات للفوتر */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* ==========================================
   20. زر العودة للأعلى (Scroll to Top Button)
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: var(--primary-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    z-index: 9999;
    /* إخفاء الزر افتراضياً */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

/* الفئة التي ستتم إضافتها برمجياً لإظهار الزر */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

/* ضبط موقع الزر في الصفحات الداعمة للغة العربية (RTL) */
[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}
/* تنسيق الرمز الفرعوني داخل زر العودة للأعلى */
.pharaonic-up-icon {
    font-size: 26px; /* تكبير الرمز ليظهر بوضوح */
    line-height: 1;
    display: inline-block;
    transform: translateY(-2px); /* تعديل طفيف لضبط التوسيط البصري للرمز */
    transition: transform 0.3s ease;
}

/* إضافة تأثير طيران خفيف للصقر عند مرور الماوس على الزر */
.scroll-to-top:hover .pharaonic-up-icon {
    transform: translateY(-5px) scale(1.1);
}
/* ==========================================
   21. تنسيق رسالة حالة الاشتراك
   ========================================== */
.status-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: none; /* مخفية افتراضياً */
    text-align: center;
    transition: all 0.3s ease;
}

/* تنسيق حالة النجاح */
.status-success {
    display: block;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* تنسيق حالة الخطأ */
.status-error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ============================================================================
   22. تنسيقات التطوير الشامل للصفحة الرئيسية (New Modern & Rich Sections)
   ============================================================================ */

/* --- أ. شارة الحالة الحية في الهيرو (Hero Status Chip) --- */
.hero-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.35);
    padding: 7px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-status-chip .live-dot {
    width: 9px;
    height: 9px;
    background-color: #2ecc71;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.hero-status-chip .live-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: rgba(46, 204, 113, 0.6);
    animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    70% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* --- ب. شارات وبطاقات الهيرو العائمة التفاعلية (Floating Badges) --- */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-badge.badge-top-left {
    top: 5%;
    left: -20px;
    animation-delay: 0s;
}

.floating-badge.badge-bottom-right {
    bottom: 5%;
    right: -20px;
    animation-delay: 2s;
}

.floating-badge .badge-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(27, 58, 92, 0.1));
    color: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.floating-badge .badge-text span {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

@media (max-width: 992px) {
    .floating-badge { display: none; }
}

/* --- ج. شريط الإحصائيات والأرقام البارزة (Key Highlights Strip) --- */
.highlights-strip {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .highlights-strip {
        margin-top: 0 !important;
    }
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.15);
    background: rgba(201, 168, 76, 0.08);
}

.highlight-card .hl-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.highlight-card .hl-info .hl-value {
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

[data-theme="dark"] .highlight-card .hl-info .hl-value {
    color: var(--secondary);
}

.highlight-card .hl-info .hl-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
}

@media (max-width: 992px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* --- هـ. المسيرة الأكاديمية والخط الزمني (Academic Journey Timeline) --- */
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary), var(--secondary));
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-end;
    width: 50%;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    margin-left: auto;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    right: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 11px;
    z-index: 2;
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
    transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -14px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background: var(--secondary);
    color: var(--primary-dark);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    width: 100%;
}

.timeline-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-hover);
}

.timeline-card .tl-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(201, 168, 76, 0.12);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.timeline-card h3 {
    font-family: var(--font-en);
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 6px;
}

[data-theme="dark"] .timeline-card h3 {
    color: var(--secondary);
}

.timeline-card .tl-subtitle {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tags span {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(27, 58, 92, 0.08);
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .timeline-tags span {
    background: rgba(201, 168, 76, 0.15);
    color: var(--secondary);
}

/* قواعد الخط الزمني في الوضع العربي (Timeline RTL) */
[dir="rtl"] .timeline-wrapper {
    direction: rtl;
}

[dir="rtl"] .timeline-item {
    padding-right: 0;
    padding-left: 40px;
    justify-content: flex-start;
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .timeline-dot {
    right: auto;
    left: -14px;
}

[dir="rtl"] .timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    padding-right: 40px;
    justify-content: flex-end;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-dot {
    left: auto;
    right: -14px;
}

[dir="rtl"] .timeline-card {
    text-align: right;
}

[dir="rtl"] .timeline-card .tl-subtitle {
    justify-content: flex-start;
}

[dir="rtl"] .timeline-tags {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 20px;
    }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 55px;
        padding-right: 0;
        margin-left: 0;
    }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 6px;
        right: auto;
    }

    /* التجاوب في الوضع العربي للهواتف */
    [dir="rtl"] .timeline-wrapper::before {
        left: auto;
        right: 20px;
        transform: none;
    }
    [dir="rtl"] .timeline-item, 
    [dir="rtl"] .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 55px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }
    [dir="rtl"] .timeline-dot,
    [dir="rtl"] .timeline-item:nth-child(even) .timeline-dot {
        left: auto !important;
        right: 6px !important;
    }
}

/* --- و. مجالات الكفاءة والمهارات (Core Competencies Matrix) --- */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.competency-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.competency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    opacity: 0.8;
}

.competency-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-hover);
}

.competency-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.competency-header .comp-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(27, 58, 92, 0.1));
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.competency-header h3 {
    font-family: var(--font-en);
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 4px;
}

[data-theme="dark"] .competency-header h3 {
    color: var(--secondary);
}

.competency-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.competency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.skill-chip i {
    color: var(--secondary);
    font-size: 12px;
}

.skill-chip:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    border-color: var(--secondary);
}

.skill-chip:hover i {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .competencies-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ز. الاهتمامات البحثية والمستقبلية (Research & Clinical Focus) --- */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.focus-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.focus-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-hover);
}

.focus-card .focus-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 2px solid var(--secondary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.focus-card:hover .focus-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--secondary);
    color: var(--primary-dark);
}

.focus-card h3 {
    font-family: var(--font-en);
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

[data-theme="dark"] .focus-card h3 {
    color: var(--secondary);
}

.focus-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 992px) {
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ح. لوحة الاقتباس والرؤية الملهمة (Pharaonic Medical Wisdom Banner) --- */
.quote-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #153350 100%);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(27, 58, 92, 0.25);
    border: 2px solid rgba(201, 168, 76, 0.3);
    margin: 40px 0;
}

.quote-banner::before {
    content: '𓂀 𓃥 𓃠 ☥ 𓉴';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 110px;
    opacity: 0.04;
    color: var(--secondary);
    letter-spacing: 30px;
    white-space: nowrap;
    pointer-events: none;
}

.quote-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.quote-content .quote-icon {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.quote-content blockquote {
    font-family: var(--font-en);
    font-size: 22px;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 20px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.quote-content .quote-author {
    font-size: 15px;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.quote-content .quote-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* --- ط. أكورديون الأسئلة الشائعة (Interactive FAQ Accordion) --- */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
    border-color: rgba(201, 168, 76, 0.5);
}

.faq-item.active {
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.12);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-en);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-item.active .faq-question {
    color: var(--primary);
    background: rgba(201, 168, 76, 0.05);
}

[data-theme="dark"] .faq-item.active .faq-question {
    color: var(--secondary);
}

.faq-icon-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 12px;
}

[dir="rtl"] .faq-icon-arrow {
    margin-left: 0;
    margin-right: 12px;
}

.faq-item.active .faq-icon-arrow {
    transform: rotate(180deg);
    background: var(--secondary);
    color: var(--primary-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

/* --- ي. بطاقة الدعوة للتواصل السريع (Quick CTA Banner) --- */
.cta-box-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(201, 168, 76, 0.05));
    border: 2px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-top: 50px;
}

.cta-box-card h3 {
    font-family: var(--font-en);
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 12px;
}

[data-theme="dark"] .cta-box-card h3 {
    color: var(--secondary);
}

.cta-box-card p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- ك. حركات ظهور العناصر عند التمرير (Scroll Reveal Animations) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero-status-chip .live-dot::after,
    .floating-badge,
    .animated-name {
        animation: none !important;
    }
}

/* ==========================================
   16. إشعارات التنبيه ورسائل الحالة الفاخرة لصفحة التواصل والموقع
   ========================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0F2640;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    border-left: 5px solid var(--secondary);
    font-size: 14.5px;
    font-weight: 700;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    line-height: 1.5;
}

[dir="rtl"] .toast {
    right: auto;
    left: 30px;
    border-left: none;
    border-right: 5px solid var(--secondary);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.toast-success {
    border-color: #10B981 !important;
}

.toast.toast-error {
    border-color: #EF4444 !important;
}

/* صندوق رسائل حالة النموذج المباشرة داخل بطاقة التواصل */
.contact-status-box {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.6;
    display: none;
    animation: fadeIn 0.35s ease-out;
}

.contact-status-box.status-success {
    display: block !important;
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.contact-status-box.status-error {
    display: block !important;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
