/* أنماط عامة لمظهر نيون أزرق سايبربانك */
:root {
    --primary-color: #00f0ff;
    --secondary-color: #0077b6;
    --accent-color: #ff007a;
    --dark-color: #0a0c1a;
    --light-color: #e0f7ff;
    --danger-color: #ff004d;
    --success-color: #00ff88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* تأثيرات النيون المحسنة */
.neon-glow {
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
}

/* أنماط الهيدر */
.header {
    background-color: rgba(10, 12, 26, 0.9);
    color: var(--light-color);
    padding: 0.6rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative; /* مطلوب لعمل right بشكل صحيح */
}

.logo img {
    height: 50px;
    width: 50px;
    max-width: 100%; 
    right: 0%; /* من .hero-image-right */
    border-radius: 60px; /* من .hero-image-right */
    box-shadow: 0 0 50px var(--primary-color), 0 0 20px rgb(0, 255, 115); /* من .hero-image-right مع تعديل */
    opacity: 0.8; /* من .hero-image-right */
    filter: drop-shadow(0 0 5px var(--primary-color));
    object-fit: contain;
    --rotation-angle: 0deg; /* تحكم بزاوية الدوران */
    transform: rotate(var(--rotation-angle)); /* تطبيق الزاوية */
    transition: transform 0.3s ease; /* انتقال سلس */
}

.logo h1 {
    font-size: 1.3rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.navbar a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar a:hover, .navbar a.active {
    color: var(--accent-color);
    background-color: rgba(0, 240, 255, 0.1);
    text-shadow: 0 0 10px var(--accent-color);
}

.auth-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 0.3rem;
}

.btn {
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    background-color: #24292e; 
    color: white;
}

.btn:hover {
    background-color: #333; 
    color: #ffffff;
}

.login-btn {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--primary-color);
        box-shadow: 0 0 50px var(--primary-color), 0 0 15px rgb(21, 255, 0);

}

.login-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    text-shadow: none;
    box-shadow: 0 0 15px var(--primary-color);
        box-shadow: 0 0 50px var(--primary-color), 0 0 15px rgb(21, 255, 0);

}

.register-btn {
    background-color: var(--accent-color);
    color: var(--dark-color);
        box-shadow: 0 0 50px var(--primary-color), 0 0 15px rgb(4, 154, 223);

}

.register-btn:hover {
    background-color: #e6006e;
    box-shadow: 0 0 15px var(--accent-color);
    box-shadow: 0 0 50px var(--primary-color), 0 0 15px rgb(21, 255, 0);

}

/* أنماط المحتوى الرئيسي */
.main-content {
    margin-top: 120px;
    padding: 1rem 0;
}

.hero-section {
    background: linear-gradient(rgba(10, 12, 26, 0.8), rgba(10, 12, 26, 0.8));
    color: var(--light-color);
    padding: 1rem 60px; /* زيادة الحشوة على الجانبين لإفساح المجال للصور */
    text-align: center;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-color);
    animation: neon-pulse 2s infinite;
    position: relative;
    min-height: 180px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0.8rem 50px; 
    }
}

@media (max-width: 400px) {
    .hero-section {
        padding: 0.6rem 40px; 
    }
}

.hero-image-right, .hero-image-left {
    height: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.hero-image-right {
    max-width: 9%;
    right: 0%;
    border-radius: 60px;
    box-shadow: 0 0 50px var(--primary-color), 0 0 15px rgb(21, 255, 0);
    opacity: 0.8;
}

.hero-image-left {
    max-width: 11%;
    left: 0%;
    border-radius: 60px;
    box-shadow: 0 0 50px var(--primary-color), 0 0 15px rgb(21, 255, 0);
    opacity: 0.8;
}
@keyframes neon-pulse {
    0% { box-shadow: 0 0 10px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color), 0 0 25px var(--primary-color); }
    100% { box-shadow: 0 0 8px var(--primary-color); }
}

.hero-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    text-shadow: 0 0 12px var(--primary-color);
    line-height: 1.2;
    z-index: 2;
    white-space: normal;
}

.hero-section p {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 2;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}

.primary-btn:hover {
    background-color: #00ccff;
    box-shadow: 0 0 12px var(--primary-color);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--primary-color);
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}

.secondary-btn:hover {
    background-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.mission-section {
    padding: 1.5rem 0;
}

.mission-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.mission-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
    animation: neon-pulse 2s infinite; /* إضافة تأثير التوهج النيون */
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px var(--primary-color);
}

.mission-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.mission-card p {
    font-size: 0.75rem;
}

.latest-news {
    padding: 1.5rem 0;
    background-color: rgba(0, 119, 182, 0.1);
}

.latest-news h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.news-ticker {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    box-sizing: border-box;
    direction: ltr;
    text-align: right;
}

.news-ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 80s linear infinite;
}

.news-item {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
    gap: 0.5rem;
    color: var(--light-color);
    font-size: 0.95rem;
    white-space: nowrap;
}

.news-item img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.news-ticker-track {
    display: inline-block;
    animation: scroll-loop linear infinite;
}

@keyframes scroll-loop {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}




.see-more {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.see-more:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px var(--primary-color);
}

.articles-section {
    padding: 1.5rem 0;
}

.articles-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.article-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px var(--primary-color);
}

.article-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.article-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #d60a2c; /* لون نيوني أزرق خاص */
    text-decoration: none;
    font-weight: 700;
}

.read-more:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px #00e64d; /* نفس اللون للنص اللامع */
}


.news-section {
    padding: 1.5rem 0;
}

.news-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.news-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px var(--primary-color);
}

.news-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.news-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-date {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 0.5rem;
}

.about-section {
    padding: 1.5rem 0;
}

.about-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.about-content {
    max-width: 90%;
    margin: 0 auto;
}

.about-text {
    text-align: justify;
}

.about-text h3 {
    font-size: 1.2rem;
    margin: 0.8rem 0 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.contact-section {
    padding: 1.5rem 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--light-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--light-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.report-section {
    padding: 1.5rem 0;
}

.report-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.report-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.report-info {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.report-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.security-tips {
    list-style: none;
    padding-left: 0;
}

.security-tips li {
    margin-bottom: 0.5rem;
    color: var(--light-color);
}

.report-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.confirmation-section {
    padding: 1.5rem 0;
    text-align: center;
}

.confirmation-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--success-color);
    text-shadow: 0 0 8px var(--success-color);
}

.login-section, .register-section {
    padding: 1.5rem 0;
    text-align: center;
}

.login-section h2, .register-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.login-form, .register-form {
    max-width: 90%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

/* أنماط الفوتر */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem 0 0.8rem;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.social-link i {
    font-size: 1.2rem;
}
.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--primary-color);
}

.footer-bottom p {
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    color: var(--light-color);
}

.disclaimer {
    font-size: 0.65rem;
    color: #777;
}

/* أنماط متجاوبة للشاشات المتوسطة */
@media (max-width: 992px) {
    .mission-grid, .articles-grid, .news-grid, .contact-content, .report-content {
        grid-template-columns: 1fr;
    }
}

/* أنماط متجاوبة للشاشات المتوسطة إلى الصغيرة */
@media (max-width: 768px) {
    .header .container {
        gap: 0.2rem;
    }

    .navbar ul {
        gap: 3px;
    }

    .navbar a {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }

    .auth-buttons {
        margin-bottom: 0.2rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-content {
        margin-top: 140px;
    }

    .hero-section {
        padding: 0.8rem 0.4rem;
        min-height: 160px;
    }

    .hero-section h2 {
        font-size: 1.1rem;
    }

    .hero-section p {
        font-size: 0.6rem;
    }

    .cta-buttons {
        gap: 3px;
        flex-direction: column;
    }

    .btn, .primary-btn, .secondary-btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
        width: 100%;
        text-align: center;
    }

    .mission-section h3, .latest-news h3, .articles-section h2, .news-section h2, .about-section h2, .contact-section h2, .report-section h2 {
        font-size: 1.3rem;
    }

    .mission-card, .article-card, .news-card {
        padding: 0.8rem;
    }

    .news-ticker div {
        font-size: 0.8rem;
    }
}

/* أنماط متجاوبة للشاشات الصغيرة جدًا */
@media (max-width: 400px) {
    .container {
        width: 95%;
        padding: 0 8px;
    }

    

    .logo img {
        height: 20px;
        width: 20px;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .navbar a {
        font-size: 0.65rem;
        padding: 0.1rem 0.2rem;
    }

    .btn {
        font-size: 0.6rem;
    }

    .main-content {
        margin-top: 160px;
    }

    .hero-section {
        padding: 0.6rem 0.3rem;
        min-height: 180px;
    }

    .hero-section h2 {
        font-size: 0.9rem;
    }

    .hero-section p {
        font-size: 0.55rem;
    }

    .mission-section, .latest-news, .articles-section, .news-section, .about-section, .contact-section, .report-section {
        padding: 1rem 0;
    }

    .mission-grid, .articles-grid, .news-grid, .contact-content, .report-content {
        gap: 0.6rem;
    }

    .mission-card, .article-card, .news-card, .contact-info, .report-info, .contact-form, .report-form {
        padding: 0.8rem;
    }

    .form-group input, .form-group textarea {
        padding: 0.2rem;
        font-size: 0.8rem;
    }

    .news-ticker {
        animation: ticker 12s linear infinite;
    }

    .news-ticker div {
        font-size: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section h4 {
        font-size: 0.9rem;
    }


}