/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #eff6ff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon {
    width: 40px;
    height: 40px;
    color: white;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.last-updated {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.date {
    font-weight: 600;
    color: white;
}

/* Main Content */
.content {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
}

.content-wrapper {
    display: grid;
    gap: 2rem;
}

.article {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.description p {
    margin-bottom: 1.5rem;
}

.description h2,
.description h3,
.description h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.description h2 {
    font-size: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.description h3 {
    font-size: 1.4rem;
}

.description h4 {
    font-size: 1.15rem;
}

.description ul,
.description ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.description li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.description a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.description strong,
.description b {
    color: var(--text-primary);
    font-weight: 600;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, var(--bg-accent) 0%, #dbeafe 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.info-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.btn-contact {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-contact:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .container {
        border-radius: 16px;
    }

    .header {
        padding: 3rem 1.5rem 2rem;
    }

    .title {
        font-size: 2rem;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon {
        width: 30px;
        height: 30px;
    }

    .content {
        padding: 2rem 1rem;
    }

    .article {
        padding: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .description h2 {
        font-size: 1.5rem;
    }

    .description h3 {
        font-size: 1.25rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.75rem;
    }

    .header {
        padding: 2.5rem 1rem 1.5rem;
    }

    .article {
        padding: 1.25rem;
    }

    .btn-contact {
        width: 100%;
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .header {
        background: white;
        color: black;
        border-bottom: 2px solid #000;
    }

    .icon-wrapper {
        display: none;
    }

    .info-card,
    .footer {
        display: none;
    }

    .btn-contact {
        display: none;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[dir="rtl"] .description ul,
[dir="rtl"] .description ol {
    margin: 1rem 1.5rem 1.5rem 0;
}

[dir="rtl"] .description li {
    padding-right: 0.5rem;
    padding-left: 0;
}
