:root{
  --primary:#0f4c5c;
  --card:#ffffff;
  --bg:#f5f7fa;
  --accent:#fff7ec;
  --soft:#eef7f7;
  --border:#dde7ea;
  --text:#2c3e50;
  --muted:#667085;
  --success:#eefaf2;
  --blue-soft:#f8fbff;
  --blue-border:#d7e8ff;
  --teacher:#7c3aed;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  padding:30px;
  font-family:Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.container{
  max-width:1200px;
  margin:auto;
}

.header{
  text-align:center;
  margin-bottom:36px;
}

.badge{
  display:inline-block;
  background:#e7f3f5;
  color:var(--primary);
  font-weight:700;
  padding:8px 14px;
  border-radius:999px;
  margin-bottom:14px;
  font-size:.95rem;
}

.teacher-badge{
  background:#f3ecff;
  color:var(--teacher);
}

.header h1{
  font-size:2.6rem;
  color:var(--primary);
  margin:0 0 12px;
}

.header p{
  color:#666;
  max-width:760px;
  margin:auto;
  line-height:1.7;
}

.mission-box{
  background:var(--accent);
  padding:22px;
  border-radius:18px;
  margin-bottom:28px;
  border:1px solid #f1e1c7;
}

.teacher-box{
  background:#f6f0ff;
  border-color:#dfd0ff;
}

.mission-box h2{
  margin-top:0;
  color:var(--primary);
}

.mission-box ol{
  margin:0;
  padding-left:22px;
  line-height:1.9;
}

.timeline{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:14px;
  margin:0 0 30px;
}

.timeline div{
  background:white;
  border:2px solid var(--border);
  border-radius:16px;
  padding:18px;
  text-align:center;
  font-weight:700;
  color:var(--primary);
}

.tip{
  background:#eef7ff;
  border:1px solid var(--blue-border);
  border-radius:18px;
  padding:20px;
  margin-bottom:30px;
  line-height:1.7;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
  gap:24px;
}

.card{
  background:var(--card);
  padding:24px;
  border-radius:18px;
  border:2px solid var(--border);
}

.card h2{
  margin-top:0;
  color:var(--primary);
}

.section{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid #e3e8ec;
}

.mini-mission{
  background:var(--accent);
  padding:18px;
  border-radius:14px;
  line-height:1.7;
}

.question-box{
  background:var(--blue-soft);
  padding:18px;
  border-radius:14px;
  display:grid;
  gap:12px;
}

.vocab-row{
  background:white;
  padding:14px;
  border-radius:10px;
  font-size:.96rem;
  color:#555;
  border:1px solid #edf2f7;
}

.safe-outcome{
  background:var(--success);
  padding:18px;
  border-radius:14px;
  line-height:1.8;
}

.payslip-table{
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
  overflow:hidden;
  border-radius:12px;
}

.payslip-table th,
.payslip-table td{
  padding:14px;
  text-align:left;
  border-bottom:1px solid #e8edf2;
}

.payslip-table th{
  background:#f4f8fb;
  color:var(--primary);
}

.payslip-table tr:last-child td{
  border-bottom:none;
}

.pill-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.pill{
  background:#f4f8fb;
  color:var(--primary);
  padding:10px 14px;
  border-radius:999px;
  font-size:.92rem;
  font-weight:600;
  border:1px solid #dbe7ef;
}

.glossary,
.expressions{
  margin-top:32px;
  background:white;
  padding:24px;
  border-radius:18px;
  border:2px solid var(--border);
}

.glossary h2,
.expressions h2{
  margin-top:0;
  color:var(--primary);
}

.vocab-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-top:18px;
}

.vocab-card{
  background:#f9fbfc;
  border:1px solid #e6edf2;
  border-radius:14px;
  padding:16px;
}

.vocab-card h3{
  margin:0 0 8px;
  color:var(--primary);
  font-size:1rem;
}

.vocab-card p{
  margin:0;
  color:#55606d;
  line-height:1.6;
  font-size:.95rem;
}

.expressions ul{
  margin:0;
  padding-left:20px;
  line-height:1.9;
}

.ielts-section{
  display:grid;
  gap:28px;
  margin-top:32px;
}

.ielts-part{
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid rgba(15,76,92,.16);
  border-radius:22px;
  padding:28px;
  box-shadow:0 12px 35px rgba(0,0,0,.04);
}

.ielts-part h3{
  margin:0;
  font-size:1.4rem;
  color:var(--primary);
}

.part-time{
  margin-top:10px;
  margin-bottom:18px;
  font-size:.95rem;
  color:#6b7280;
  font-style:italic;
}

.answer-template{
  margin-top:18px;
  background:#eef7ff;
  border:1px solid #d7e8ff;
  border-radius:16px;
  padding:16px;
}

.answer-template summary{
  cursor:pointer;
  font-weight:700;
  color:#2c7da0;
  margin-bottom:10px;
}

.answer-template p{
  line-height:1.9;
  margin-top:12px;
}

.sample-question{
  margin-bottom:18px;
}

.sample-question summary{
  padding:16px;
  background:#fafcff;
  border:1px solid #e7edf4;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
}

.sample-question p{
  padding:18px;
  margin-top:10px;
  background:#f8fbff;
  border-radius:14px;
  line-height:1.9;
}

.note-input-wrap{
  margin-top:24px;
}

.note-input-wrap label{
  display:block;
  margin-bottom:10px;
  font-weight:700;
  color:var(--primary);
}

.student-notes{
  width:100%;
  min-height:140px;
  border-radius:14px;
  border:1px solid #d7e8ff;
  padding:16px;
  font-size:1rem;
  line-height:1.7;
  resize:vertical;
}

.buttons{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:30px;
  flex-wrap:wrap;
}

.btn{
  padding:12px 22px;
  text-decoration:none;
  border-radius:10px;
  font-weight:bold;
  color:white;
}

.secondary{
  background:#6c757d;
}

.primary{
  background:#0d6efd;
}

@media (max-width: 600px){
  body{
    padding:18px;
  }

  .header h1{
    font-size:2rem;
  }

  .grid{
    grid-template-columns:1fr;
  }
}

.study-box{
  margin:32px 0;
  background:white;
  padding:24px;
  border-radius:18px;
  border:2px solid var(--border);
}

.study-box h2{
  margin-top:0;
  color:var(--primary);
}

.study-box p{
  color:#666;
  line-height:1.7;
  margin-bottom:20px;
}

.study-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:20px;
}

.word-card{
  background:#f9fbfc;
  border:1px solid #e6edf2;
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.word-card img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.word-content{
  padding:16px;
}

.word{
  font-size:1.1rem;
  font-weight:700;
  color:var(--primary);
  margin-bottom:8px;
  text-transform:lowercase;
}

.phonetic{
  font-size:.95rem;
  color:#7a5af8;
  margin-bottom:10px;
  font-style:italic;
}

.meaning{
  color:#55606d;
  line-height:1.6;
  font-size:.95rem;
}

.teacher-study{
  background:#fcfaff;
}