<style>
/* ====== MODERN TAB UI ====== */
.tab-container { margin-top: 30px; }

.tab-buttons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 25px;
    scrollbar-width: none;
}
.tab-buttons::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

/* ====== TAB CONTENT ====== */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tab-content.active {
    display: block;
    opacity: 1;
}

/* ====== CARD UI ====== */
.content-card {
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* ====== QUESTIONS ====== */
.question-block {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    border-left: 5px solid #3b82f6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}

.question-block:hover {
    transform: translateY(-3px);
}

/* ====== ANSWERS ====== */
.answer-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
}

/* ====== TEXT ====== */
.q-text {
    font-weight: bold;
    color: #0f172a;
    font-size: 1.1rem;
}

.sol-heading {
    color: #22c55e;
    font-weight: bold;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .content-card {
        padding: 15px;
    }

    .question-block {
        padding: 12px;
    }
}
</style>