/* ===============================
   READING PAGE STYLE
   =============================== */

:root{
  --primary:#7c0a02; /* đỏ nâu như đề thi */
  --bg:#f5f6fa;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
}

*{
  box-sizing:border-box;
}

body{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  background:var(--bg);
  color:var(--text);
  margin:0;
  line-height:1.75;
}

/* ===== LAYOUT ===== */
.container{
  display:flex;
  max-width:1400px;
  margin:24px auto;
  gap:24px;
  padding:0 16px;
}

.main{
  flex:3;
  background:#ffffff;
  padding:32px;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
}

.sidebar{
  flex:1;
  background:#ffffff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
  position:sticky;
  top:100px;
  height:fit-content;
}

/* ===== TITLE ===== */
h2{
  text-align:center;
  font-size:26px;
  letter-spacing:.5px;
  color:#7c0a02;
  margin-bottom:28px;
}

h3{
  margin:0 0 12px;
  color:#7c0a02;
}

/* ===== PASSAGE ===== */
.passage{
  background:#fafafa;
  border-left:5px solid var(--primary);
  padding:18px 22px;
  border-radius:8px;
  margin:28px 0;
}

.passage p{
  margin:10px 0;
  font-size:15.5px;
  color:#374151;
  text-align:justify;
}

/* ===== QUESTION ===== */
.question{
  padding:14px 0;
  border-bottom:1px dashed var(--border);
}

.question:last-child{
  border-bottom:none;
}

.question p{
  font-weight:600;
  margin-bottom:8px;
}

label{
  display:block;
  margin:6px 0;
  cursor:pointer;
  font-size:15px;
  color:#374151;
}

input[type="radio"]{
  margin-right:6px;
  transform:scale(1.05);
}

/* ===== ANSWER STATE ===== */
.correct{
  margin-top:6px;
  color:#15803d;
  font-weight:600;
}

.wrong{
  margin-top:6px;
  color:#b91c1c;
  font-weight:600;
}

/* ===== BUTTON ===== */
button{
  display:block;
  margin:36px auto 10px;
  background:var(--primary);
  color:#fff;
  border:none;
  padding:12px 36px;
  font-size:16px;
  border-radius:8px;
  cursor:pointer;
}

button:hover{
  opacity:.9;
}

/* ===== SIDEBAR PROGRESS ===== */
.sidebar h3{
  font-size:18px;
  margin-bottom:12px;
}

.stat{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
}

.stat div{
  padding:8px 0;
  background:#e5e7eb;
  border-radius:6px;
  text-align:center;
  font-size:14px;
}

.stat .done{
  background:#22c55e;
  color:#fff;
  font-weight:600;
}

/* ===== RESPONSIVE ===== */
@media (max-width:1024px){
  .container{
    flex-direction:column;
  }
  .sidebar{
    position:relative;
    top:0;
  }
}
