:root {
    --primary-color: #0d6efd; /* Professional Blue */
    --secondary-color: #6c757d; /* Gray */
    --dark-color: #212529; /* Dark Gray for Text */
    --light-color: #f8f9fa; /* Light Gray Background for sections */
    --white-color: #ffffff;
    --accent-color: #fd7e14; /* Orange Accent */
    --font-family-headings: 'Merriweather', serif;
    --font-family-body: 'Lato', sans-serif;
    --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.07);
    --border-radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--white-color);
    color: var(--dark-color);
    line-height: 1.7;
    direction: rtl;
}

.page-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-header {
    text-align: center;
    padding: 2rem;
    background-color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 3rem;
}

.main-header h1 {
    font-family: var(--font-family-headings);
    font-size: 3.5rem;
    color: var(--dark-color);
}

.main-header .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.content-section {
    margin-bottom: 4rem;
    padding: 3rem 1rem;
}

.content-section:nth-of-type(odd) {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.hero-section {
    text-align: center;
}

.hero-content h2 {
    font-family: var(--font-family-headings);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    font-family: var(--font-family-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: #e67312;
    border-color: #d96d11;
    transform: translateY(-2px);
}

.quiz-card {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

#question-counter {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#question-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-btn {
    background-color: var(--white-color);
    border: 1px solid #ced4da;
    color: var(--dark-color);
    padding: 1rem;
    font-size: 1.1rem;
    text-align: right;
    transition: all 0.2s ease-in-out;
}

.answer-btn:hover { background-color: #e9ecef; border-color: #adb5bd; }
.answer-btn.correct { background-color: #d1e7dd; border-color: #badbcc; color: #0f5132; font-weight: 700; }
.answer-btn.wrong { background-color: #f8d7da; border-color: #f5c2c7; color: #842029; font-weight: 700; }

#fun-fact-card {
    background-color: #fff3cd;
    border-right: 4px solid #ffc107;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    text-align: right;
}

#fun-fact-card h3 { margin-bottom: 0.5rem; color: #664d03; }

.section-title {
    text-align: center;
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.fact-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 4px solid var(--accent-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}

.fact-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.fact-card h4 {
    font-family: var(--font-family-headings);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #dee2e6;
    color: var(--secondary-color);
}

.hidden { display: none; }

/* Responsive Design */
@media (max-width: 768px) {
    .main-header h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 2rem; }
    .answer-grid { grid-template-columns: 1fr; }
    #question-text { font-size: 1.5rem; }
}
