/* ============================================================
   PrepHK: IIQE — SEO Pages Stylesheet
   Amber gradient theme, mobile-first, no JS, no external fonts
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #FBBF24, #FCD34D, #FDE68A, #FEF3C7);
  background-attachment: fixed;
  min-height: 100vh;
  color: #7C2D12;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #D97706; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 720px; margin: 0 auto; padding: 48px 20px 64px; }

h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; color: #7C2D12; }
h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: #92400E; }
.subtitle { font-size: 14px; color: #4B5563; margin-bottom: 24px; }
.breadcrumb { font-size: 13px; color: #4B5563; margin-bottom: 14px; }
.intro { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.intro-en { font-size: 13px; color: #4B5563; line-height: 1.6; margin-bottom: 28px; }

.paper-section { margin: 28px 0 12px; }
.paper-en { font-size: 12px; color: #4B5563; margin-bottom: 12px; }

/* --- Badge & free tag --- */
.badge {
  display: inline-block; background: #D97706; color: #fff;
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
  margin-bottom: 12px; letter-spacing: 0.3px;
}
.free-tag {
  display: inline-block; margin-left: 6px; margin-bottom: 12px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px;
  color: #7C2D12; background: rgba(217,119,6,0.18);
  border: 1px solid rgba(217,119,6,0.4);
}

/* --- Question Card --- */
.question-card {
  background: rgba(255,255,255,0.78); border-radius: 16px; padding: 24px;
  margin-bottom: 20px; border: 1px solid rgba(252,211,77,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.question-text { font-size: 16px; font-weight: 500; line-height: 1.7; margin-bottom: 6px; white-space: pre-wrap; }
.question-text-en { font-size: 13px; color: #4B5563; line-height: 1.6; margin-bottom: 16px; white-space: pre-wrap; }

.options-list { list-style: none; padding: 0; margin: 0 0 16px; }
.option-item {
  font-size: 15px; line-height: 1.6; padding: 10px 14px; margin-bottom: 8px;
  background: rgba(255,255,255,0.55); border-radius: 10px;
  border: 1px solid rgba(252,211,77,0.4);
}
.option-item:last-child { margin-bottom: 0; }
.options-en { list-style: none; padding: 0; margin: 8px 0 16px; font-size: 13px; color: #4B5563; line-height: 1.5; }
.options-en li { padding: 4px 14px; }

/* --- Answer Reveal --- */
.answer-reveal { margin-top: 12px; border-radius: 12px; overflow: hidden; }
.answer-reveal summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: #D97706;
  padding: 10px 14px; background: rgba(217,119,6,0.10);
  border-radius: 12px; list-style: none; user-select: none;
  transition: background 0.2s ease;
}
.answer-reveal summary::-webkit-details-marker { display: none; }
.answer-reveal summary::before {
  content: "\25B6\FE0E"; display: inline-block; margin-right: 8px;
  font-size: 11px; transition: transform 0.25s ease;
}
.answer-reveal[open] summary::before { transform: rotate(90deg); }
.answer-reveal summary:hover { background: rgba(217,119,6,0.18); color: #C9A24A; }
.answer-reveal[open] summary { border-radius: 12px 12px 0 0; }

.answer-reveal .answer-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.answer-reveal[open] .answer-body { grid-template-rows: 1fr; }
.answer-reveal .answer-body > div { overflow: hidden; }
.answer-reveal .answer-content {
  padding: 14px; background: rgba(217,119,6,0.05);
  border-radius: 0 0 12px 12px; border: 1px solid rgba(252,211,77,0.4); border-top: none;
}

.correct-answer { font-size: 15px; font-weight: 600; color: #92400E; margin-bottom: 10px; }
.key-knowledge { font-size: 14px; line-height: 1.7; color: #1F2937; margin-bottom: 6px; padding-left: 18px; }
.key-knowledge li { margin-bottom: 4px; }
.key-knowledge-en { font-size: 13px; line-height: 1.6; color: #4B5563; padding-left: 18px; }
.key-knowledge-en li { margin-bottom: 3px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #7C2D12; border-radius: 20px; padding: 28px; margin: 32px 0; text-align: center;
  border: 1px solid rgba(217,119,6,0.2);
}
.cta-banner h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #7C2D12; }
.cta-banner p { font-size: 15px; line-height: 1.6; color: #92400E; margin-bottom: 6px; }
.cta-banner p:last-of-type { margin-bottom: 18px; }
.cta-link {
  display: block; background: #0B1426; color: #fff; font-size: 16px;
  font-weight: 600; padding: 16px 24px; border-radius: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cta-link:hover { text-decoration: none; background: #1E293B; transform: translateY(-1px); }
.cta-link .arrow { display: inline-block; margin-left: 4px; transition: transform 0.15s ease; }
.cta-link:hover .arrow { transform: translateX(2px); }

/* --- Nav --- */
.nav-links {
  display: flex; justify-content: space-between; align-items: center;
  margin: 24px 0 16px; font-size: 14px; gap: 12px; flex-wrap: wrap;
}
.nav-links a { color: #D97706; font-weight: 500; }
.nav-links span { flex: 1; }

/* --- Part Grid --- */
.part-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 12px 0 24px; }
.part-card {
  display: block; background: rgba(255,255,255,0.78); border-radius: 14px;
  padding: 20px 16px; border: 1px solid rgba(252,211,77,0.6);
  text-decoration: none; color: #7C2D12;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.part-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(217,119,6,0.15); }
.part-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: #7C2D12; }
.part-en { font-size: 12px; color: #4B5563; line-height: 1.4; margin-bottom: 8px; }
.part-count { font-size: 12px; color: #D97706; font-weight: 600; }

.links { margin-top: 28px; text-align: center; }
.links a { display: inline-block; margin: 0 8px; font-size: 14px; }

.disclaimer { font-size: 12px; color: #4B5563; margin-top: 36px; line-height: 1.6; text-align: center; }

/* --- Responsive --- */
@media (max-width: 480px) {
  .container { padding: 32px 16px 48px; }
  h1 { font-size: 22px; }
  .part-grid { grid-template-columns: 1fr; gap: 10px; }
  .question-card { padding: 18px; }
  .option-item { padding: 8px 12px; font-size: 14px; }
  .cta-banner { padding: 20px 16px; }
  .nav-links { font-size: 13px; gap: 8px; }
}

@media print {
  body { background: #fff; }
  .cta-banner, .nav-links { display: none; }
  .question-card, .part-card { background: #fff; border: 1px solid #d1d5db; backdrop-filter: none; }
}
