
:root {
    --primary-color: #2c5364;
    --secondary-color: #0f2027;
    --accent-color: #ff7e5f;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}


nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: var(--primary-color);
    color: var(--white);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 1.5rem;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    top: 2rem;
    border-radius: 50%;
    z-index: 1;
}

.right::after {
    left: -12px;
}


.quran-verse {
    background: rgba(44, 83, 100, 0.05);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.arabic {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    text-align: right;
    line-height: 2.5rem;
    margin-bottom: 1rem;
}

.translation {
    font-size: 1rem;
    color: var(--light-text);
}


.quiz-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.quiz-question {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    background: var(--background-color);
}

.quiz-option {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.quiz-option:hover {
    background: rgba(44, 83, 100, 0.05);
}

.quiz-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 4px;
    font-weight: 600;
}


.references {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.references ul {
    list-style: none;
    columns: 2;
}

.references li {
    padding: 0.5rem 0;
    color: var(--light-text);
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    animation: modalOpen 0.3s ease;
}

@keyframes modalOpen {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}


@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-item::after {
        left: 18px;
    }

    .references ul {
        columns: 1;
    }
}