/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ===== Main Container ===== */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 40px 20px;
}

/* ===== Level Boxes (Cards) ===== */
.level-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px 25px;
    width: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.words{
    color: hotpink;
}
.level-box h1 {
    text-align: center;
    color: #2980b9;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.level-box ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.level-box li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}

.level-box li:last-child {
    border-bottom: none;
}

.level-box a {
    text-decoration: none;
    color: #34495e;
    transition: color 0.2s;
}

.level-box a:hover {
    color: #e67e22;
}
.notice-banner {
    background-color: rgba(41, 128, 185, 0.1);
    border-left: 5px solid #2980b9;
    padding: 20px;
    margin: 40px auto 20px;
    max-width: 1000px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.notice-banner h1 {
    font-size: 1.3rem;
    color: #2c3e50;
}

.notice-banner strong {
    color: #2980b9;
}
.ads-wrapper {
    display: flex;
    justify-content: center; /* iwe katikati */
    margin: 0px auto;       /* nafasi juu & chini */
    width: 100%;
    border-top: 1px solid #ccc;
}

.ads-container {
    max-width: 100%;
    min-height: 90px;        /* epuka kuruka layout kabla ad iload */
    overflow: hidden;        /* zuia kuvunja flex/grid */
    text-align: center;
}

.adsbygoogle {
    max-width: 100%;         /* responsive */
}
footer {
    text-align: center;
    background: #1a202c;
    color: #cbd5e0;
    padding: 20px;
    margin-top: 50px;
}
:root{
    --bg:#f6f8fa;
    --card:hotpink;
    --muted:#6b7280;
    --accent:#0f62fe;
    --success:#10b981;
    --shadow: 0 6px 18px rgba(15,22,39,0.06);
    --radius:12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
.qa-section{
    max-width:1100px;
    margin:0 auto;
    background-color: white;
    border: 1px solid #ccc;
}

.qa-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.qa-title{
    display:flex;
    flex-direction:column;
}
.qa-title h1{
    margin:0;
    font-size:20px;
    letter-spacing:-0.2px;
}
.qa-title p{
    margin:4px 0 0;
    color:var(--muted);
    font-size:13px;
}

.controls{
    display:flex;
    gap:8px;
    align-items:center;
}

.select-subject, .btn{
    padding:8px 12px;
    border-radius:10px;
    border:1px solid rgba(11,18,32,0.06);
    background:var(--card);
    font-size:14px;
    cursor:pointer;
    }

.btn-primary{
    background:linear-gradient(180deg,var(--accent),#074bd9);
    color:white;
    border:0;
    box-shadow:var(--shadow);
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:14px;
}

.card{
    background:var(--card);
    border-radius:var(--radius);
    padding:14px;
    box-shadow:var(--shadow);
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.meta{
    display:flex;
    gap:8px;
    align-items:center;
    font-size:12px;
    color:var(--muted);
}

.badge{
    background:rgba(15,98,254,0.08);
    color:var(--accent);
    padding:4px 8px;
    border-radius:999px;
    font-weight:600;
    font-size:12px;
}

.question{
    font-weight:600;
    font-size:15px;
    margin-top:6px;
}

.actions{
    margin-top:auto;
    display:flex;
    gap:8px;
    align-items:center;
}

.show-answer{
    background:transparent;
    border:1px solid rgba(11,18,32,0.06);
    padding:8px 10px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
}

.answer{
    margin-top:8px;
    padding:10px;
    border-radius:8px;
    background:#fbfdff;
    color:#072146;
    border:1px solid rgba(7,33,70,0.06);
    display:none;
    font-size:14px;
    line-height:1.45;
    white-space:pre-wrap;
}

.answer.visible{
    display:block;
    animation:fadeSlide .22s ease;
}

@keyframes fadeSlide{
    from{opacity:0; transform:translateY(6px)}
    to{opacity:1; transform:translateY(0)}
}

/* small helper */
.small{
    font-size:13px;
    color:var(--muted);
}
    
/* ===== Responsive Design (Simu) ===== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }

    .level-box {
        width: 95%;
        max-width: 400px;
    }
}

/* Simu */
@media (max-width: 600px) {
    .notice-banner h1 {
        font-size: 1rem;
    }
}
@media (max-width:520px){
    body{padding:14px}
    .qa-header{flex-direction:column;align-items:flex-start;gap:10px}
    .controls{width:100%;justify-content:space-between}
}