/* ======================================= */
/* ====== 1. التنسيقات الأساسية والعامة ====== */
/* ======================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0; 
    padding: 0;
    background-color: #f4f7f9; 
    color: #333; 
    direction: rtl; 
    text-align: right;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.cta-button {
    display: inline-block;
    background-color: #ff9900; 
    color: #fff !important;
    padding: 12px 25px;
    text-decoration: none; 
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #cc7a00;
    transform: translateY(-1px);
}

.cta-button.large {
    font-size: 1.4em;
    padding: 15px 40px;
}

footer {
    background-color: #333;
    color: #eee;
    text-align: center;
    /* تعديل المسافة السفلية ليتسع لروابط التواصل */
    padding: 15px 0 20px 0; 
    font-size: 0.9em;
    margin-top: 40px;
    
    /* تفعيل Flexbox للتوسيط الرأسي والأفقي */
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط المحتوى أفقياً */
    justify-content: center;
}

/* التنسيقات الخاصة بروابط التواصل الاجتماعي */
.social-links {
    margin-top: 15px;
    padding-top: 10px;
    /* خط فاصل خفيف يتماشى مع الخلفية الداكنة */
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    text-align: center;
    width: 100%; 
}

.social-links a {
    color: #eee;
    font-size: 1.8em; /* حجم الأيقونة */
    margin: 0 15px;
    display: inline-block;
    transition: color 0.3s, transform 0.2s;
}

.social-links a:hover {
    color: #ff9900; /* تغيير اللون إلى البرتقالي عند المرور */
    transform: scale(1.1);
}
/* ======================================= */
/* ====== 2. تنسيقات شريط التنقل (Navigation Bar) ====== */
/* ======================================= */

.nav-bar {
    background-color: #1a4e66;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-logo a {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #f4f7f9;
    text-decoration: none;
    font-size: 1em;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.nav-active {
    color: #ff9900;
    border-bottom: 2px solid #ff9900;
}

.nav-lang-switch button {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 4px;
    /* تحسين Touch Target لـ Accessibility */
    min-height: 40px;
    min-width: 40px; 
}

.nav-lang-switch .active {
    background: #007bff;
    border-color: #007bff;
}

/* ======================================= */
/* ====== 3. تنسيقات الواجهة الرئيسية (index.html) ====== */
/* ======================================= */

section {
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.hero-section {
    background-color: #1a4e66;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
}

.countdown-container {
    background: #007bff; 
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto 30px auto;
    max-width: 600px;
}

.timer {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ff9900; 
    color: #1a4e66;
    padding: 10px;
    border-radius: 6px;
    min-width: 70px;
}

.time-box span:first-child {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.package-list {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.package-section h2 {
    width: 100%;
    text-align: center;
    color: #1a4e66;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.package-group {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
}

.package-group h3 {
    color: #ff9900;
    border-bottom: 2px solid #1a4e66;
    padding-bottom: 10px;
    margin-top: 0;
    text-align: right;
    font-size: 1.5em;
}

.package-group ul {
    list-style: none; 
    padding: 0;
}

.package-group li {
    padding: 8px 0; 
    line-height: 1.8;
    border-bottom: 1px dotted #eee;
    padding-right: 30px; 
    position: relative;
}

.challenges-section {
    text-align: center;
    background-color: #e9f7ff;
    padding: 40px 20px;
    border-radius: 10px;
}

.challenges-list {
    max-width: 700px;
    margin: 30px auto;
    text-align: right;
}

.challenge-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.challenge-item input[type="checkbox"] {
    margin-left: 15px; 
    transform: scale(1.5);
    cursor: pointer;
}

.challenge-item input[type="checkbox"]:checked + label {
    text-decoration: line-through; 
    color: #007bff; 
    opacity: 0.8;
}

/* ======================================= */
/* ====== 4. تنسيقات صفحة الشراء (buy.html) ====== */
/* ======================================= */

.buy-page-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.buy-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.checkout-form-section {
    flex: 2; 
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.order-summary-section {
    flex: 1; 
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    position: sticky;
    top: 20px; 
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.1em;
}

.product-price, .currency-symbol, .total-price {
    font-weight: bold;
    color: #ff9900;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    font-size: 1.4em;
    color: #1a4e66;
    font-weight: bold;
}

/* ======================================= */
/* ====== 5. تنسيقات صفحة التوثيق (guide.html) ====== */
/* ======================================= */
.guide-container {
    padding: 40px 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.guide-section {
    margin-bottom: 25px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guide-header h1 {
    font-size: 2.5em;
    color: #1a4e66;
    text-align: center;
}

.guide-title {
    font-size: 1.4em;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
    padding: 15px 20px;
    background: #f0f6ff;
    border-radius: 8px 8px 0 0;
}
.guide-content-list {
    list-style: none;
    padding: 15px 30px;
    margin: 0;
}

/* ======================================= */
/* ====== 6. تنسيقات صفحة الموارد (resources.html) ====== */
/* ======================================= */

.resources-page-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.resources-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #e9f7ff;
    border-radius: 10px;
}

.resources-page-content h2 {
    text-align: right;
    font-size: 2em;
    color: #1a4e66;
    margin-bottom: 25px;
    border-right: 4px solid #ff9900;
    padding-right: 10px;
    display: inline-block;
}

.tools-grid, .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 30px;
}

.tool-card, .content-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #007bff;
    display: flex;
    flex-direction: column;
}

/* ======================================= */
/* ====== 7. تنسيقات صفحة الأعضاء (members.html) ====== */
/* ======================================= */

.members-page-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.members-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #1a4e66;
    color: white;
    border-radius: 10px;
}

.content-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.content-card.restricted {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ff9900;
    display: flex;
    flex-direction: column;
    opacity: 0.8;
}

.access-status.locked {
    text-align: center;
    padding: 10px;
    background-color: #ffe6cc;
    color: #cc6600;
    font-weight: bold;
    border-radius: 4px;
    margin-top: auto;
}

/* ======================================= */
/* ====== 8. تنسيقات الأداة التفاعلية (tool-value.html) ====== */
/* ======================================= */

.tool-page-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.tool-section h2 {
    color: #1a4e66;
    text-align: right;
    border-right: 4px solid #ff9900;
    padding-right: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.value-option {
    display: block;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #eee;
    transition: all 0.3s;
    font-size: 1.1em;
    font-weight: 600;
}

.value-option input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.value-option:has(input:checked) {
    background-color: #e6f7ff;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.result-box {
    background: #e9ffed;
    border: 2px solid #28a745;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* ======================================= */
/* ====== 9. تنسيقات التعهد (covenant.html) ====== */
/* ======================================= */

.covenant-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.covenant-header h1 {
    font-size: 2.2em;
    color: #1a4e66;
    text-align: center;
    margin-bottom: 30px;
}

.covenant-page .preamble {
    text-align: center;
    color: #666;
    font-style: italic;
}

.covenant-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.covenant-content input[type="text"] {
    border: none;
    border-bottom: 2px dashed #007bff;
    text-align: center;
    width: 200px;
    padding: 5px;
    font-size: 1.1em;
}

.covenant-list {
    list-style: decimal;
    padding-right: 25px;
    margin-bottom: 40px;
}

.covenant-list li {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.covenant-signature-area {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.signature-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1em;
}

.signature-line span {
    font-weight: bold;
    width: 60%;
    border-bottom: 1px solid #333;
    text-align: left;
}

.print-cta {
    display: block;
    margin: 30px auto 0 auto;
    width: 80%;
    max-width: 350px;
}

/* ======================================= */
/* ====== 10. التجاوبية (Responsive Design) ====== */
/* ======================================= */

@media (max-width: 992px) {
    
    .nav-links {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .package-list {
        flex-direction: column;
        gap: 20px;
    }

    .checkout-grid {
        flex-direction: column;
        gap: 20px;
    }
    .checkout-form-section, .order-summary-section {
        flex: auto;
        width: 100%;
        position: static;
    }
    
    .content-access-grid, .tools-grid, .content-grid, .values-grid {
        grid-template-columns: 1fr;
    }

    .nav-lang-switch button, .nav-links a {
        min-height: 40px;
        min-width: 40px;
    }
    
    .hero-section h1 {
        font-size: 2em;
    }
}/* ======================================= */
/* ====== 11. تنسيقات التواصل الاجتماعي (Social Links) ====== */
/* ======================================= */
.social-links {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* خط فاصل خفيف */
    text-align: center;
    width: 100%; /* ضمان أن يأخذ العرض الكامل */
}

.social-links a {
    color: #eee; /* لون فاتح ليتناسب مع خلفية Footer الداكنة */
    font-size: 1.8em; /* حجم الأيقونة */
    margin: 0 15px;
    display: inline-block;
    transition: color 0.3s, transform 0.2s;
}

.social-links a:hover {
    color: #ff9900; /* تغيير اللون إلى البرتقالي عند المرور */
    transform: scale(1.1);
}

/* تحديث Footer ليناسب الأيقونات */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px; /* زيادة مسافة للأسفل */
}