/* ═══════════════════════════════════════════════════════════ */
/* ═══ Hero الصفحة ═══ */
/* ═══════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.page-hero-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    backdrop-filter: blur(10px);
}

.page-hero h1 {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-updated {
    font-size: 0.95em;
    opacity: 0.9;
    margin-top: 10px;
}

.page-updated i {
    margin-inline-end: 5px;
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ تخطيط الصفحة ═══ */
/* ═══════════════════════════════════════════════════════════ */
.page-content-section {
    padding: 50px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ القائمة الجانبية ═══ */
/* ═══════════════════════════════════════════════════════════ */
.page-sidebar {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
}

.page-sidebar h3 {
    color: #1a1a2e;
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.page-sidebar h3 i {
    color: #667eea;
    margin-inline-end: 8px;
}

.page-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-nav li {
    margin-bottom: 5px;
}

.page-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95em;
}

.page-nav a:hover {
    background: #f0f4ff;
    color: #667eea;
    transform: translateX(5px);
}

[dir="rtl"] .page-nav a:hover {
    transform: translateX(-5px);
}

.page-nav a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.page-nav a i {
    font-size: 1em;
    width: 20px;
    text-align: center;
}

/* ═══ زر WhatsApp في الشريط الجانبي ═══ */
.sidebar-contact {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.sidebar-contact h4 {
    color: #1a1a2e;
    font-size: 1em;
    margin-bottom: 12px;
}

.sidebar-contact h4 i {
    color: #25d366;
    margin-inline-end: 5px;
}

.sidebar-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s;
}

.sidebar-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ المحتوى الرئيسي ═══ */
/* ═══════════════════════════════════════════════════════════ */
.page-main-content {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.page-body {
    color: #444;
    line-height: 1.9;
    font-size: 1.05em;
}

.page-body h2 {
    color: #1a1a2e;
    font-size: 1.8em;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body h3 {
    color: #1a1a2e;
    font-size: 1.3em;
    margin: 25px 0 12px;
}

.page-body p {
    margin-bottom: 15px;
}

.page-body ul, .page-body ol {
    margin: 15px 0;
    padding-inline-start: 25px;
}

.page-body li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.page-body strong {
    color: #e74c3c;
    font-weight: 700;
}

.page-body a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #667eea;
}

.page-body a:hover {
    color: #764ba2;
}

/* ═══ أزرار التنقل ═══ */
.page-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.btn-page-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-page-action:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-page-action.btn-whatsapp {
    background: #25d366;
}

.btn-page-action.btn-whatsapp:hover {
    background: #128c7e;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ التجاوب ═══ */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .page-sidebar {
        position: static;
    }
    
    .page-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.8em; }
    .page-hero-icon { width: 70px; height: 70px; font-size: 2em; }
    .page-main-content { padding: 25px 20px; }
    .page-body h2 { font-size: 1.4em; }
    .page-body h3 { font-size: 1.15em; }
    .page-body { font-size: 1em; }
    .page-actions { flex-direction: column; }
    .btn-page-action { justify-content: center; }
    .page-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .page-nav { grid-template-columns: 1fr; }
}