/* ==================================================
   الشيخ الروحاني شهاب الدين - (v6.0 - XYZ Domain Update)
   ================================================== */

:root {
    --primary-dark: #050505;
    --secondary-dark: #0F0F0F;
    --accent-gold: linear-gradient(145deg, #D4AF37, #C09A2E, #AE8625);
    --accent-gold-static: #C09A2E;
    --text-light: #FDFBF5;
    --text-muted: #b0b0b0;
    --whatsapp-green: #128C7E;
    --border-color: rgba(192, 154, 46, 0.25);
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif; /* توحيد الخط للقراءة الأفضل */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Header & Nav --- */
.main-header {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img { height: 60px; width: auto; }

.desktop-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--accent-gold-static);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold-static);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.7), var(--primary-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    background: var(--accent-gold);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--accent-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--accent-gold);
    color: #000;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s;
    display: inline-block;
    border: none;
}

.btn-primary:hover { transform: scale(1.05); }

/* --- Services Grid --- */
.services-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; color: var(--accent-gold-static); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-10px); }
.service-icon { font-size: 3rem; color: var(--accent-gold-static); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; color: var(--text-light); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Footer --- */
footer {
    background: #000;
    padding: 60px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-logo { height: 50px; margin-bottom: 20px; }
.footer-links { margin: 20px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.social-links a { color: var(--accent-gold-static); font-size: 1.5rem; margin: 0 10px; }
.copyright { color: #555; margin-top: 30px; font-size: 0.9rem; }

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(18, 140, 126, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(18, 140, 126, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 140, 126, 0); }
}

/* --- Mobile Nav --- */
.mobile-nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    height: 100%;
    background: var(--secondary-dark);
    z-index: 2000;
    transition: 0.3s;
    padding: 50px 20px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}
.mobile-nav-menu.active { right: 0; }
.mobile-nav-menu ul { list-style: none; }
.mobile-nav-menu li { margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 10px; }
.mobile-nav-menu a { color: var(--text-light); text-decoration: none; font-size: 1.2rem; display: block; }
.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 1500;
    display: none;
}
.nav-overlay.active { display: block; }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
}

/* --- Article Specific --- */
.article-page { max-width: 900px; margin: 40px auto; padding: 20px; display: flex; flex-direction: column; gap: 30px; }
.article-content { background: var(--secondary-dark); padding: 30px; border-radius: 15px; border: 1px solid #222; }
.article-content h2 { margin-top: 30px; margin-bottom: 15px; font-size: 1.8rem; }
.article-content p { margin-bottom: 20px; color: #ddd; font-size: 1.1rem; }
.sidebar { background: #111; padding: 20px; border-radius: 15px; border: 1px solid var(--border-color); }
.toc-container { background: #1a1a1a; padding: 20px; border-radius: 10px; margin-bottom: 30px; border-right: 4px solid var(--accent-gold-static); }
.toc-container ul { list-style: none; }
.toc-container li { margin-bottom: 10px; }
.toc-container a { color: #ccc; text-decoration: none; transition: 0.3s; }
.toc-container a:hover { color: var(--accent-gold-static); padding-right: 5px; }