/* Practice for the other English tests (assets/js/exam.js) */
.ex-card { background: #fff; border: 1px solid var(--line, #dde2ea); border-radius: 20px; padding: 1.4rem 1.3rem 1.6rem; box-shadow: 0 10px 30px -18px rgba(11, 36, 71, .35); }
.ex-card h2 { color: var(--navy, #0b2447); font-size: 1.45rem; margin: 0 0 .4rem; }
.ex-muted { color: #5b6474; font-size: .95rem; }
.ex-ms { font-family: 'Material Symbols Outlined'; font-size: 1.15rem; line-height: 1; vertical-align: middle; font-weight: normal; font-style: normal; }
.ex-secs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 1rem; }
.ex-sec { text-align: left; display: grid; gap: .3rem; padding: 1rem 1.1rem; border-radius: 16px; border: 2px solid #e2e8f0; background: #f8fafc; cursor: pointer; font: inherit; color: #334155; }
.ex-sec b { color: var(--navy, #0b2447); font-size: 1.05rem; }
.ex-sec span { font-size: .85rem; }
.ex-sec small { color: #0e7490; font-weight: 700; }
.ex-sec:hover:not([disabled]) { border-color: var(--orange, #e87722); background: #fff7ed; }
.ex-sec[disabled] { opacity: .55; cursor: default; }
.ex-form { display: grid; gap: .9rem; max-width: 560px; margin-top: .8rem; }
.ex-form label { display: grid; gap: .35rem; font-weight: 700; color: var(--navy, #0b2447); }
.ex-form input:not([type=checkbox]), .ex-gap, .ex-text { width: 100%; padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; box-sizing: border-box; }
.ex-check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 500 !important; color: #475569 !important; font-size: .92rem; }
.ex-err { color: #b42318; font-weight: 700; min-height: 1em; margin: 0; }
.ex-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.ex-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 999px; padding: .85rem 1.4rem; font: 800 .95rem/1 Manrope, sans-serif; border: 2px solid var(--navy, #0b2447); background: var(--navy, #0b2447); color: #fff; cursor: pointer; text-decoration: none; }
.ex-btn.ghost { background: #fff; color: var(--navy, #0b2447); }
.ex-btn.small { padding: .55rem 1rem; font-size: .88rem; }
.ex-btn[disabled] { opacity: .6; cursor: default; }
.ex-btn.ex-fb { background: #e87722; border-color: #e87722; font-size: 1.05rem; padding: 1rem 1.6rem; box-shadow: 0 10px 24px -8px rgba(232, 119, 34, .8); }
.ex-top { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; padding: .4rem 0 .8rem; border-bottom: 1px solid #e2e8f0; z-index: 2; color: var(--navy, #0b2447); }
.ex-clock { font: 800 1.1rem Manrope, sans-serif; background: #eef2f8; border-radius: 999px; padding: .3rem .8rem; }
.ex-q { border-bottom: 1px solid #edf1f6; padding: 1.1rem 0; }
.ex-q.ok { border-left: 4px solid #16a34a; padding-left: .8rem; } .ex-q.bad { border-left: 4px solid #dc2626; padding-left: .8rem; }
.ex-qhead { display: flex; gap: .6rem; align-items: center; margin-bottom: .4rem; }
.ex-n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy, #0b2447); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: none; }
.ex-type { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0e7490; }
.ex-passage { background: #f6f8fb; border-radius: 12px; padding: .9rem 1rem; line-height: 1.7; color: #334155; margin: .4rem 0; max-height: 360px; overflow: auto; }
.ex-audio { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: .4rem 0; }
.ex-group { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: #f1f6fb; border: 1px solid #dbe5f0; }
.ex-group .ex-passage { background: #fff; }
.ex-bar { flex: 1 1 160px; height: 8px; border-radius: 99px; background: #dbe5f0; overflow: hidden; }
.ex-bar i { display: block; height: 100%; width: 0; background: var(--orange, #e87722); transition: width .25s linear; }
.ex-stem { font-weight: 700; color: #0f172a; margin: .5rem 0; line-height: 1.6; }
.ex-opts { display: grid; gap: .5rem; }
.ex-opt { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; }
.ex-opt:has(input:checked) { border-color: var(--orange, #e87722); background: #fff7ed; }
.ex-opt-r { padding: .5rem .8rem; border-radius: 10px; margin: .25rem 0; background: #f8fafc; }
.ex-opt-r.right { background: #e6f4ec; color: #127a4a; font-weight: 800; } .ex-opt-r.wrong { background: #fde8e6; color: #b42318; text-decoration: line-through; }
.ex-tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; }
.ex-tag.ok { background: #e6f4ec; color: #127a4a; } .ex-tag.bad { background: #fde8e6; color: #b42318; }
.ex-score { display: flex; align-items: baseline; gap: .8rem; padding: 1rem 1.2rem; border-radius: 16px; background: linear-gradient(135deg, #0b2447, #19376d); color: #fff; margin-bottom: 1rem; }
.ex-score b { font-size: 2.4rem; } .ex-score span { color: #c6d4ea; font-weight: 700; }
.ex-lock { display: flex; gap: 1rem; align-items: flex-start; background: #fff7ed; border: 2px solid #fed7aa; border-radius: 16px; padding: 1.2rem; }
.ex-lock h3 { margin: 0 0 .4rem; color: var(--navy, #0b2447); }
.ex-hub { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ex-hub a { display: grid; gap: .4rem; padding: 1.2rem; border-radius: 18px; border: 1px solid var(--line, #dde2ea); background: #fff; text-decoration: none; color: #334155; box-shadow: 0 8px 22px -16px rgba(11, 36, 71, .4); }
.ex-hub a b { color: var(--navy, #0b2447); font-size: 1.15rem; }
.ex-hub a:hover { border-color: var(--orange, #e87722); }
@media (max-width: 600px) { .ex-card { padding: 1.1rem .9rem 1.3rem; border-radius: 16px; } .ex-btn { width: 100%; } .ex-lock { flex-direction: column; } }
