/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #0A0A0A;
    color: #FFFFFF;
    line-height: 1.5;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== الألوان الذهبية واللمعان (تم تقليل اللمعان) ===== */
:root {
    --gold: #FFD700;
    --gold-dark: #C6A43F;
    --bg-dark: #0A0A0A;
    --bg-darker: #111111;
    --text-light: #FFFFFF;
    --text-gray: #CCCCCC;
}

/* تأثير اللمعان الذهبي (أقل حدة) */
@keyframes glow {
    0% { text-shadow: 0 0 2px #FFD700, 0 0 4px #FFD700, 0 0 6px #FFD700; }
    50% { text-shadow: 0 0 4px #FFD700, 0 0 8px #FFD700, 0 0 12px #FFD700; }
    100% { text-shadow: 0 0 2px #FFD700, 0 0 4px #FFD700, 0 0 6px #FFD700; }
}

@keyframes barGlow {
    0% { background-color: var(--gold); box-shadow: 0 0 5px var(--gold); }
    50% { background-color: #FFF5B0; box-shadow: 0 0 15px var(--gold), 0 0 25px var(--gold); }
    100% { background-color: var(--gold); box-shadow: 0 0 5px var(--gold); }
}

/* ===== القائمة الجانبية ===== */
.menu-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 20;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
    animation: barGlow 2s infinite ease-in-out;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-darker);
    border-left: 2px solid var(--gold);
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.close-sidebar {
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 20px;
}

.sidebar-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--gold);
    color: var(--bg-dark);
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.sidebar-social a {
    color: var(--gold);
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.sidebar-social a:hover {
    transform: scale(1.2);
}

/* ===== الهيدر ===== */
header {
    background-color: #0A0A0A;
    border-bottom: 1px solid #333;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.5px;
}

.desktop-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.desktop-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-gray);
    transition: color 0.2s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* ===== الأقسام الرئيسية ===== */
.hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: glow 3s infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: #0A0A0A;
}

.btn-primary:hover {
    background-color: #FFE55C;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,215,0,0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: #0A0A0A;
}

/* ===== الإحصائيات ===== */
.stats-bar {
    background-color: #111111;
    padding: 40px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.stats-flex {
    display: flex;
    justify-content: center;
    gap: 80px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== قسم من نحن مختصر ===== */
.about-summary {
    padding: 60px 0;
    background-color: #0A0A0A;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.read-more-about {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
    transition: border 0.2s;
}

.read-more-about:hover {
    border-bottom: 1px solid var(--gold);
}

/* ===== العناوين العامة ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 48px;
}

/* ===== البطاقات ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background-color: #111111;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #333;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,215,0,0.1);
    border-color: var(--gold);
}

.card-icon {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ===== المقالات ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background-color: #111111;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #333;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,215,0,0.1);
    border-color: var(--gold);
}

.article-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.article-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 20px 20px 8px;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    padding: 0 20px 16px;
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.2s;
    cursor: pointer;
}

.read-more:hover {
    border-bottom: 1px solid var(--gold);
}

/* ===== النافذة المنبثقة (Modal) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    background-color: #111111;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    color: var(--text-light);
    position: relative;
}

.close-modal {
    position: absolute;
    left: 20px;
    top: 10px;
    color: var(--gold);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #FFE55C;
}

/* ===== قسم التواصل مع المدير ===== */
.contact-manager {
    padding: 60px 0;
    background-color: #111111;
    text-align: center;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.whatsapp-btn:hover {
    background-color: #20B857;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37,211,102,0.3);
}

.whatsapp-btn i {
    margin-left: 10px;
}

.whatsapp-btn.large {
    padding: 20px 50px;
    font-size: 1.5rem;
}

/* ===== زر الواتساب الثابت ===== */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 5px 15px rgba(37,211,102,0.3);
    transition: all 0.2s;
    z-index: 100;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20B857;
}

/* ===== الفوتر ===== */
footer {
    background-color: #0A0A0A;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    color: var(--gold);
    font-size: 1.8rem;
    transition: transform 0.2s;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.copyright {
    color: #666;
    font-size: 0.95rem;
}

/* ===== صفحة من نحن كاملة ===== */
.about-full {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-content h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin: 30px 0 15px;
}

.about-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== صفحة القسم المدفوع ===== */
.premium-access {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.premium-info {
    text-align: center;
    margin-bottom: 50px;
}

.premium-lock {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.premium-info h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.premium-info p {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.password-form {
    max-width: 400px;
    margin: 0 auto 50px;
    background-color: #111111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
}

.password-form h3 {
    color: var(--gold);
    margin-bottom: 20px;
}

.password-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333;
    background-color: #1A1A1A;
    color: var(--text-light);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
}

.password-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.error-message {
    color: #ff4444;
    margin-top: 10px;
}

.premium-content {
    margin-top: 50px;
}

.premium-content h2 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 30px;
}

.premium-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== قسم الفيديو المخصص ===== */
.video-section {
    padding: 60px 0;
    background-color: #0A0A0A;
    text-align: center;
}

.video-wrapper {
    width: 320px;
    height: 266px;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--gold);
    margin: 0 auto;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* ===== التجاوب ===== */
@media (max-width: 992px) {
    .cards-grid,
    .articles-grid,
    .premium-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-flex {
        padding: 0 10px;
    }
    .stats-flex {
        gap: 40px;
        flex-wrap: wrap;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .cards-grid,
    .articles-grid,
    .premium-cards {
        grid-template-columns: 1fr;
    }
    .stats-flex {
        flex-direction: column;
        gap: 30px;
    }
}