﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cairo", "Inter", sans-serif;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.header-icon {
    font-size: 3rem;
    color: #2563eb;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #2563eb;
    background: white;
    color: #2563eb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .lang-btn:hover {
        background: #f0f8ff;
        transform: translateY(-2px);
    }

    .lang-btn.active {
        background: #2563eb;
        color: white;
    }

/* Main Content */
.main-content {
    width: 100%;
}

.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 40px;
}

    .content-section.active {
        display: block;
    }

/* Arabic Content Styling */
#arabic-content {
    direction: rtl;
    text-align: right;
}

    #arabic-content * {
        font-family: "Cairo", sans-serif;
    }

/* English Content Styling */
#english-content {
    direction: ltr;
    text-align: left;
}

    #english-content * {
        font-family: "Inter", sans-serif;
    }

/* Title Section */
.title-section {
    border-bottom: 3px solid #e5e7eb;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

    .page-title i {
        color: #2563eb;
        font-size: 2rem;
    }

.last-updated {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Introduction Section */
.intro-section {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #2563eb;
    margin-bottom: 40px;
}

#english-content .intro-section {
    border-left: 5px solid #2563eb;
    border-right: none;
}

#arabic-content .intro-section {
    border-right: 5px solid #2563eb;
    border-left: none;
}

.intro-section p {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* Sections Container */
.sections-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Policy Sections */
.policy-section {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .policy-section:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .policy-section h2 {
        color: #2563eb;
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .policy-section p {
        color: #374151;
        margin-bottom: 15px;
        line-height: 1.8;
    }

    .policy-section ul {
        list-style: none;
        padding: 0;
    }

    .policy-section li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
        color: #374151;
        line-height: 1.7;
    }

        .policy-section li::before {
            content: "";
            width: 8px;
            height: 8px;
            background: #2563eb;
            border-radius: 50%;
            margin-top: 8px;
            flex-shrink: 0;
        }

/* Contact Information */
.contact-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #374151;
}

    .contact-item:last-child {
        margin-bottom: 0;
    }

    .contact-item i {
        color: #2563eb;
        width: 20px;
        text-align: center;
    }

    .contact-item a {
        color: #2563eb;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .contact-item a:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }

/* Footer */
.footer {
    border-top: 1px solid #e5e7eb;
    padding: 30px 40px;
    text-align: center;
    background: #f9fafb;
}

    .footer p {
        color: #6b7280;
        font-size: 0.9rem;
    }

.footer-rights {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-icon {
        font-size: 2.5rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .content-section {
        padding: 25px;
    }

    .page-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .policy-section {
        padding: 20px;
    }

    .language-toggle {
        flex-direction: column;
        align-items: center;
    }

    .lang-btn {
        width: 200px;
        justify-content: center;
    }

    .footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .content-section {
        padding: 20px;
    }

    .policy-section {
        padding: 15px;
    }

    .intro-section {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .language-toggle {
        display: none;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .policy-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Smooth Transitions */
.content-section {
    transition: opacity 0.3s ease-in-out;
}

    .content-section:not(.active) {
        opacity: 0;
    }

    .content-section.active {
        opacity: 1;
    }
