/* استيراد خط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
}
header {
    position: relative;
    width: 100%;
    height: 55vh;
    background: url('wi1.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    color: white;
}

.header-content {
    background-color: rgba(0, 0, 0, 0.878);
    padding: 100px;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.logo-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    width: 90px;
    height: auto;
    border-radius: 10px 10px 10px 10px;
    border-style: solid;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2rem; /* تصغير حجم العنوان */
    color: #df0b0b;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.6rem;
    color: #34495e;
    margin-bottom: 20px;
}

.content {
    margin-bottom: 30px;
}

/* فهرس المنهج */
.curriculum {
    margin-top: 10px;
}

.curriculum-item {
    font-size: 16px; /* تصغير حجم الخط */
    color: #ffffff;
    background: linear-gradient(135deg, #ff0000, #1d5fed);
    padding: 5px;
    font-weight: bold;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* إضافة تأثير الظل */
    transition: all 0.3s ease-in-out; /* تأثير عند التمرير على العناصر */
}




/* تنسيق قسم التنويه */
.alert-section {
    background-color: #1c1c1c; /* خلفية حمراء خفيفة */
    padding: 5px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.alert-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: right;
}

.alert-section h2 {
    color: #ff0019;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.alert-section p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
}

.alert-section p br {
    margin-bottom: 15px;
}

/* تأثير عند التمرير على التنويه */


.curriculum-item:hover {
    background: linear-gradient(135deg, #ff0000, #1d93ed);
    color: rgb(0, 0, 0);
    transform: translateY(-2px); /* تأثير التحريك عند التمرير */
}

.curriculum-item span {
    width: 45%;
}

.curriculum-item span:first-child {
    text-align: right; /* النص العربي على اليمين */
}

.curriculum-item span:last-child {
    text-align: left; /* النص الإنجليزي على اليسار */
}






.hacking-tools {
    background: linear-gradient(135deg, #ff0000, #1d93ed);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.hacking-tools h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
}

.hacking-tools .tool-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    width: calc(50% - 10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    text-align: right;
}

.hacking-tools .tool-item h3 {
    color: #ff0000;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hacking-tools .tool-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.hacking-tools .tool-item p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.hacking-tools .tool-item p strong {
    color: #1c58bf;
}


/* تنسيق الجدول العام */
.table-wrapper {
    margin: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Cairo', sans-serif;
}

.table-wrapper h3 {
    text-align: center;
    padding: 10px;
    background-color: #000000; /* لون أخضر جميل */
    color: #ff0000;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: 'Cairo', sans-serif;
    
}

th, td {
    padding: 12px;
    text-align: center; /* تم تغيير المحاذاة إلى الوسط */
    border: 1px solid #1c1c1c;
    font-size: 14px;
    color: #ffffff;
}

/* تلوين رأس الجدول */
th {
    background-color: #265e8f; /* لون رمادي داكن */
    color: white;
    font-weight: bold;
}

/* تلوين الصفوف بالتناوب */
tr:nth-child(even) {
    background-color: #2f2f2f; /* خلفية خفيفة للصفوف الزوجية */
}

tr:nth-child(odd) {
    background-color: #616161; /* خلفية بيضاء للصفوف الفردية */
}

/* إضافة تأثير عند التمرير على الصفوف */
tr:hover {
    background-color: #ddd; /* تغيير اللون عند التمرير على الصف */
    cursor: pointer;
}

/* تخصيص الأعمدة لعرض مناسب */
table td:nth-child(1), table th:nth-child(1) {
    width: 40%;
}

table td:nth-child(2), table th:nth-child(2) {
    width: 20%;
}

table td:nth-child(3), table th:nth-child(3) {
    width: 40%;
}

/* تخصيص الخلايا لتكون أكثر وضوحًا عند المرور */
table td, table th {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* تغيير اللون عند المرور بالماوس على الخلايا */
tr:hover td {
    background-color: #ff413b; /* لون أصفر عند المرور بالماوس */
    color: #ffffff; /* تغيير اللون إلى أسود عند المرور */
}


#downloads {
    margin: 50px 0;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;

}

#downloads h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
}

.downloads-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 بطاقات في صف واحد */
    gap: 20px;
    justify-items: center;
}

.download-item {
    background: linear-gradient(135deg, #ff0000, #1d5fed);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #ff3b3b; /* خلفية حمراء عند المرور */
    cursor: pointer;
    color: white;
}

.download-item:nth-child(odd):hover {
    background-color: #007BFF; /* خلفية زرقاء عند المرور للبعض */
}

.download-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
}

.download-item p {
    font-size: 16px;
    margin-top: 10px;
    color: white;
}

.download-item a {
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

.download-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

::selection{
    background-color: black;
    color: rgb(255, 0, 0);
}
/* الفوتر */
.footer {
    background-color: #1b1b1b; /* خلفية داكنة */
    color: white; /* لون النص */
    text-align: center; /* النص في المنتصف */
    padding: 35px; /* مسافة داخلية */
    font-size: 21px; /* حجم النص */
    bottom: 0; /* تثبيت في الأسفل */
}

/* نص الحقوق */
.footer p {
    margin: 0;
}

/* الروابط */
.social-links a {
    color: #ffffff; /* لون الروابط */
    text-decoration: none; /* إزالة التسطير */
    margin: 0 5px; /* مسافة بين الروابط */
    font-size: 17px; /* حجم النص */
    transition: color 0.3s ease; /* تأثير عند التحويم */
}

.social-links a:hover {
    color: #007bff; /* لون عند التحويم */
}

@media (max-width: 768px) {
    .library-table th, .library-table td {
        padding: 8px;
    }
    .library-table {
        font-size: 0.9rem;
    }
}



@media (max-width: 768px) {
    .hacking-tools .tool-item {
        flex-basis: 100%; /* 1 عنصر في السطر في الشاشات الصغيرة */
    }
}

/* استجابة للأجهزة المتوسطة والصغيرة */
@media (max-width: 1024px) {
    th, td {
        font-size: 1rem; /* تصغير حجم الخط */
    }
}

@media (max-width: 768px) {
    .wifi-encryption-table h2 {
        font-size: 1.5rem; /* تصغير حجم العنوان */
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px 10px; /* تقليل المسافات الداخلية */
    }
    
    /* تحويل الجدول إلى عرض عمودي على الشاشات الصغيرة */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        background-color: #f2f2f2;
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #ddd;
        margin-bottom: 10px;
    }
    
    td {
        position: relative;
        padding-left: 50%;
    }
    
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        color: #e74c3c;
    }
}

/* الاستجابة للأجهزة الصغيرة */
@media (max-width: 768px) {
    .curriculum-item {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.8rem; /* تصغير حجم العنوان في الشاشات الصغيرة */
    }

    h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    .curriculum-item {
        font-size: 0.9rem; /* تصغير الخط بشكل أكبر في الشاشات الأصغر */
    }
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 12px;  /* عرض الشريط */
    height: 12px; /* ارتفاع الشريط (للتخصيص العمودي والأفقي) */
}

/* تخصيص مقبض الشريط (الجزء الذي يتم سحبه) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff0000, #1d5fed);
    border-radius: 10px; /* جعل المقابض مستديرة */
    border: 3px solid #f1f1f1; /* إضافة حدود لتحديد شكل المقبض */
}

/* تخصيص منطقة المسار (الخلفية التي يتحرك عليها المقبض) */
::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* اللون */
    border-radius: 10px; /* شكل مستدير للزوايا */
}

/* تخصيص منطقة التمرير عند التمرير */
::-webkit-scrollbar-thumb:hover {
    background-color: #000000; /* تغيير اللون عند التمرير */
    cursor: pointer;
}