@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --accent-color: #e0e7ff;
    --card-bg: #f3f4f6;
    --border-radius: 8px;
}

body.detail-page {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.chapter-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.chapter-header h1 {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.intro-text {
    font-size: 1.15rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #4b5563;
}

.glossary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.glossary-item {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    border-right: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glossary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-right: 4px solid var(--primary-color);
}

.term {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.term::before {
    content: "📌";
    font-size: 1rem;
}

.definition {
    font-size: 1rem;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .glossary-container {
        grid-template-columns: 1fr;
    }
    
    .chapter-header h1 {
        font-size: 2rem;
    }
}
