/* ===== BRAND COLOR ===== */
:root {
  --brand: #FF6900;        /* Xiaomi လိမ္မော် */
  --brand-dark: #E05A00;
  --text: #222;
  --text-light: #666;
  --bg: #f9f9f9;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pyidaungsu', 'Padauk', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
  color: var(--brand);
}

.logo img {
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
}

.nav a:hover {
  color: var(--brand);
}

.btn-login {
  background: var(--brand);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--brand);
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: scale(1.05);
}

/* ===== STATS ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 120px;
}

.stat-card h3 {
  font-size: 28px;
  color: var(--brand);
}

.stat-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== LESSONS ===== */
.lessons {
  padding: 48px 24px;
}

.lessons h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 24px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.lesson-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.lesson-card:hover {
  transform: translateY(-4px);
}

.lesson-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #eee;
}

.lesson-card-body {
  padding: 16px;
}

.lesson-card-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.lesson-card-body p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== ABOUT ===== */
.about {
  padding: 48px 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: var(--white);
  text-align: center;
  padding: 24px;
  font-size: 14px;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 12px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== LESSON DETAIL PAGE ===== */
.lesson-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

.lesson-header h1 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--brand);
}

.lesson-image-container {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: #eee;
}

.lesson-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.lesson-content {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.lesson-content h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  padding-bottom: 4px;
}

.lesson-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.lesson-content ul {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 8px;
}

.lesson-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ===== ASK BOX ===== */
.ask-box {
  background: #fff8f3;
  border: 1px solid #ffe0cc;
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.ask-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.ask-box textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  margin-bottom: 12px;
  resize: vertical;
}

.ask-box button {
  background: var(--brand);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
}

.ask-box button:hover {
  background: var(--brand-dark);
}

.quiz-action {
  margin-bottom: 40px;
}
/* ===== QUIZ PAGE ===== */
.quiz-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 24px;
}

.quiz-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quiz-progress {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  font-weight: bold;
}

.quiz-card h3 {
  font-size: 18px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.option-label:hover {
  background: #f5f5f5;
}

.option-label input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
}

.result-score {
  font-size: 48px;
  font-weight: bold;
  color: var(--brand);
  margin: 20px 0;
}

.result-score span:last-child {
  font-size: 24px;
  color: var(--text-light);
}
/* ===== ADMIN PAGE ===== */
.admin-body {
  background: #f0f2f5;
}

.admin-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
}

.admin-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-section {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.admin-section h2 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* မေးခွန်း စာရင်း */
.question-item {
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.q-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.question-item p {
  font-size: 15px;
  margin-bottom: 12px;
}

.btn-small {
  background: var(--brand);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* ဇယား (Table) */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th, .admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: #f9f9f9;
  font-weight: bold;
}

.status-pass {
  color: #28a745;
  font-weight: bold;
}

.status-fail {
  color: #dc3545;
  font-weight: bold;
}
/* ===== LOGIN PAGE ===== */
.login-body {
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 24px;
}

.login-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-header h2 {
  color: var(--brand);
  margin-bottom: 8px;
}

.login-header p {
  font-size: 14px;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
}

.login-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: bold;
}

.login-footer a:hover {
  text-decoration: underline;
}
/* ===== PROFILE PAGE ===== */
.profile-body {
  background: #f0f2f5;
}

.profile-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

.profile-header-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: #ffe0cc;
  color: var(--brand);
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.profile-info h2 {
  color: var(--brand);
  margin-bottom: 4px;
}

.profile-info p {
  color: var(--text-light);
}

.profile-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-section {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-section h2 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.lesson-score-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.score-title {
  font-weight: bold;
  font-size: 15px;
}

.score-status {
  font-size: 14px;
  font-weight: bold;
}

.score-status.pass {
  color: #28a745;
}

.score-status.fail {
  color: #dc3545;
}

.score-status.not-taken {
  color: #888;
}