* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-container h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header-container p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.container {
    display: flex;
    flex: 1;
    max-width: 1200px;
    margin: 20px auto;
    width: 100%;
    padding: 0 20px;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1e3c72;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.nav-btn {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    border: none;
    background: #f8f9fa;
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #e2e8f0;
    color: #1e3c72;
}

.nav-btn.active {
    background: #1e3c72;
    color: white;
}

.quiz-tab {
    background: #e6fffa !important;
    color: #234e52 !important;
    font-weight: 600;
}

.quiz-tab.active {
    background: #319795 !important;
    color: white !important;
}

/* Content Area */
.content {
    flex: 1;
}

.section-card {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    animation: fadeIn 0.4s ease-in-out;
}

.section-card.active {
    display: block;
}

.section-card h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #eef2f7;
    padding-bottom: 10px;
}

.section-card p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.info-box {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.styled-list {
    margin-left: 20px;
    line-height: 1.8;
    color: #555;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.card-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.card-box h3 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.card-box ul {
    margin-left: 20px;
    color: #555;
    line-height: 1.6;
}

.step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: #fafbfc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
}

.step-num {
    background: #1e3c72;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.step-item h3 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 5px;
}

/* Quiz Styling */
.question-block {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.question-block p {
    margin-bottom: 10px;
    color: #2d3748;
}

.question-block label {
    display: inline-block;
    margin-bottom: 5px;
    cursor: pointer;
    color: #4a5568;
}

.submit-btn {
    background: #319795;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #2c7a7b;
}

.result-box {
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #2d3748;
    color: white;
    font-size: 0.85rem;
    margin-top: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}