/* mahaexam-theme.css - Unified Styling for MahaExam Study Notes & Topics */

/* Sidebar Hover & Active Styles */
.hover-bg-light:hover {
    background-color: #eef4ff !important;
    color: #174ea6 !important;
}

.sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Topic List Items (Category & Subject Index Pages) */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.topic-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.topic-item span:last-child {
    color: #94a3b8;
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
}

.topic-item:hover span:last-child {
    color: #1d4ed8;
    transform: translateX(3px);
}

/* Content Boxes: Definitions, Examples, Tips, Warnings */
.explanation {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.definition {
    background: #f0f7ff;
    border-left: 4px solid #2563eb;
    padding: 14px 18px;
    margin: 14px 0;
    border-radius: 0 8px 8px 0;
    color: #1e293b;
}

.definition strong {
    color: #1d4ed8;
}

.definition p {
    margin-bottom: 0;
}

.example {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 15px 18px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    color: #1e293b;
}

.example strong {
    color: #15803d;
}

.exam-tip {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    color: #1e293b;
}

.exam-tip strong {
    color: #b45309;
}

.warning {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    color: #1e293b;
}

.warning strong {
    color: #b91c1c;
}

/* Practice Questions (MCQs) */
.question-count {
    color: #64748b;
    font-size: 14px;
}

.question {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 18px 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease;
}

.question:hover {
    border-color: #cbd5e1;
}

.question-title {
    font-weight: 700;
    font-size: 16.5px;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.6;
}

.option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 14.5px;
    color: #334155;
    transition: all 0.15s ease;
}

.option:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.option-letter {
    display: inline-block;
    font-weight: 700;
    width: 28px;
    color: #2563eb;
}

.answer {
    margin-top: 14px;
    padding: 14px 16px;
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    border-radius: 0 8px 8px 0;
    font-size: 14.5px;
    color: #065f46;
}

.answer strong {
    color: #047857;
}

/* Bottom Navigation Buttons */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 30px 0 10px 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.nav-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Card Section Titles */
.content section {
    margin-bottom: 28px;
}
