.title {
    text-align: center;
    margin: 30px auto 20px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    max-width: fit-content;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subtitle {
	text-align: left;
    margin: 20px 0 15px;
    padding: 10px 18px;
    background: #eef2f7;
    border-left: 6px solid #2563eb;
    border-radius: 0 8px 8px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Individual Question & Answer cards */
.qa-card {
    background: #f9fbfd;
    border-left: 5px solid #3498db;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Question text styling */
.question {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* The number span inside the question */
.question span {
    color: #e74c3c;
    margin-right: 8px;
}

/* Answer text styling */
.answer {
    color: #555;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #e1e8ed;
}

.answer strong {
    color: #27ae60;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .qa-container {
        padding: 20px;
    }
    .qa-card {
        padding: 15px;
    }
}

        /* সেকশন হেডিং (যোগ/বিয়োগ) */
        .section-heading {
            background: #e0e7ff;
            color: #3730a3;
            padding: 10px 20px;
            border-radius: 8px;
            border-left: 5px solid #4f46e5;
            font-size: 22px;
            font-weight: 700;
            margin-top: 30px;
            margin-bottom: 20px;
        }
        .section-heading:first-child {
            margin-top: 0;
        }

        /* প্রতিটি অংকের কার্ড */
        .math-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
            transition: box-shadow 0.3s ease;
        }

        /* প্রশ্নের স্টাইল */
        .math-question {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 15px;
            line-height: 1.5;
        }
        .math-question span {
            color: #d97706;
            margin-right: 8px;
        }

        /* সমাধানের স্টাইল */
        .solution-title {
            font-weight: 700;
            color: #10b981;
            margin-bottom: 8px;
        }

        /* অংক কষার টেবিল */
        .calc-table {
            border-collapse: collapse;
            color: #475569;
            margin-bottom: 12px;
            margin-left: 10px;
        }
        .calc-table td {
            padding: 4px 10px;
            vertical-align: bottom;
        }
        /* লেখার কলাম */
        .text-col {
            text-align: left;
        }
        /* সংখ্যার কলাম (ডানে এলাইন করা যাতে সংখ্যা বরাবর থাকে) */
        .num-col {
            text-align: right;
            font-weight: 600;
            width: 50px;
        }
        /* এককের কলাম (টাকা/টি) */
        .unit-col {
            text-align: left;
            width: 70px;
        }
        /* যোগ/বিয়োগের দাগ */
        .total-row td {
            border-top: 2px solid #94a3b8;
            padding-top: 6px;
            font-weight: 700;
            color: #0f172a;
        }

        /* ফাইনাল উত্তরের স্টাইল */
        .final-answer {
            background-color: #f1f5f9;
            display: inline-block;
            padding: 6px 15px;
            border-radius: 6px;
            font-weight: 600;
            color: #0369a1;
            border-left: 4px solid #0284c7;
            margin-top: 5px;
        }
.class-test {
  display: inline-block;
  background-color: #8e44ad;
  color: #ffffff;
  font-size: 15px;
  padding: 8px 8px;
  text-align: center;
  border-radius: 50px;
}

body.dark-mode .title { background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%); border-color: var(--ens-line, #444444); color: var(--ens-ink, #ffffff); }
body.dark-mode .subtitle { background: var(--ens-bg-soft, #2c2c2c); border-left-color: #66b2ff; color: var(--ens-ink, #ffffff); }
body.dark-mode .qa-card { background: var(--ens-bg-soft, #2c2c2c); border-left-color: #6c757d; }
body.dark-mode .question { color: var(--ens-ink, #ffffff); }
body.dark-mode .question span { color: #ff6b6b; }
body.dark-mode .answer { background-color: var(--ens-bg, #1a1a1a); border-color: var(--ens-line, #444444); color: var(--ens-ink, #f5f5f5); }
body.dark-mode .answer strong { color: #4ade80; }
body.dark-mode .section-heading { background: #1e293b; color: #93c5fd; border-left-color: #6366f1; }
body.dark-mode .math-card { background: var(--ens-bg-soft, #2c2c2c); border-color: var(--ens-line, #444444); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); }
body.dark-mode .math-question { color: var(--ens-ink, #ffffff); }
body.dark-mode .math-question span { color: #f59e0b; }
body.dark-mode .solution-title { color: #34d399; }
body.dark-mode .calc-table { color: var(--ens-ink, #f5f5f5); }
body.dark-mode .total-row td { border-top-color: var(--ens-line, #64748b); color: var(--ens-ink, #ffffff); }
body.dark-mode .final-answer { background-color: var(--ens-bg, #1a1a1a); color: #38bdf8; border-left-color: #0284c7; }
body.dark-mode .class-test { background-color: #6b21a8; color: #ffffff; }