/* Class 9 Science Exploration chapter pages */
.science-hero {
    background: linear-gradient(135deg, #ecfeff 0%, #f7fee7 55%, #fff7ed 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: clamp(20px, 4vw, 34px);
    margin-bottom: 22px;
}
.science-hero .eyebrow { color: #047857; font-weight: 800; letter-spacing: 0; text-transform: uppercase; font-size: 0.82rem; }
.science-hero h1 { color: #0f172a; line-height: 1.14; margin: 10px 0 12px; }
.science-hero p { max-width: 840px; color: #475569; line-height: 1.75; }
.science-coin-btn { border: 0; border-radius: 8px; background: #16a34a; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; font-weight: 800; text-decoration: none; margin: 8px 8px 0 0; box-shadow: 0 10px 20px rgba(22, 163, 74, 0.18); }
.science-coin-btn:hover { background: #15803d; transform: translateY(-1px); }
.science-download-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 10px; padding: 16px; margin: 18px 0 24px; }
.science-download-panel strong { display: block; color: #14532d; font-size: 1rem; }
.science-download-panel span { display: block; color: #166534; margin-top: 4px; line-height: 1.55; }
.science-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 22px 0; }
.science-fact { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 14px; }
.science-fact span { display: block; color: #64748b; font-size: 0.82rem; font-weight: 700; }
.science-fact strong { display: block; color: #111827; line-height: 1.35; margin-top: 6px; }
.science-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; }
.science-toc a { border: 1px solid #bfdbfe; border-radius: 999px; color: #1d4ed8; background: #eff6ff; padding: 8px 12px; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.science-list { padding-left: 1.2rem; line-height: 1.8; }
.science-question { border: 1px solid #dbeafe; border-radius: 10px; background: #ffffff; margin: 18px 0; overflow: hidden; }
.science-question h3 { background: #f8fafc; color: #0f172a; font-size: 1rem; line-height: 1.45; margin: 0; padding: 14px 16px; }
.science-answer { padding: 14px 16px; color: #334155; line-height: 1.72; }
.science-answer p { margin: 0 0 10px; }
.science-answer p:last-child { margin-bottom: 0; }
.science-complete-text { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: clamp(16px, 3vw, 24px); line-height: 1.78; }
.science-complete-text h3 { color: #075985; margin-top: 22px; }
.science-inline-question { border-left: 4px solid #2563eb; background: #eff6ff; border-radius: 8px; padding: 12px; margin-top: 14px; color: #1e3a8a; }
.science-inline-answer { border-left: 4px solid #16a34a; background: #f0fdf4; border-radius: 8px; padding: 12px; margin: 8px 0 12px; color: #14532d; }
.science-step-line { background: #fff7ed; border-left: 4px solid #f97316; border-radius: 8px; padding: 10px 12px; }
.science-bullet-line { position: relative; padding-left: 18px; }
.science-bullet-line::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.science-note { border-left: 4px solid #f59e0b; background: #fffbeb; border-radius: 8px; padding: 16px; color: #78350f; line-height: 1.7; }
.science-chapter-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 18px; }
.science-chapter-nav a { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; text-decoration: none; color: #1f2937; background: #fff; font-weight: 700; }
.science-chapter-nav a.active, .science-chapter-nav a:hover { border-color: #16a34a; color: #166534; background: #f0fdf4; }
.faq-accordion { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; margin: 12px 0; }
.faq-accordion summary { cursor: pointer; font-weight: 800; padding: 14px 16px; color: #111827; }
.faq-answer { padding: 0 16px 16px; color: #334155; line-height: 1.7; }
body.dark-mode .science-hero, body.dark-theme .science-hero { background: linear-gradient(135deg, #0f172a 0%, #102a2a 55%, #1f2937 100%); border-color: #334155; }
body.dark-mode .science-hero h1, body.dark-theme .science-hero h1, body.dark-mode .science-download-panel strong, body.dark-theme .science-download-panel strong { color: #f8fafc; }
body.dark-mode .science-hero p, body.dark-theme .science-hero p, body.dark-mode .science-download-panel span, body.dark-theme .science-download-panel span { color: #cbd5e1; }
body.dark-mode .science-fact, body.dark-theme .science-fact, body.dark-mode .science-question, body.dark-theme .science-question, body.dark-mode .science-complete-text, body.dark-theme .science-complete-text, body.dark-mode .faq-accordion, body.dark-theme .faq-accordion, body.dark-mode .science-chapter-nav a, body.dark-theme .science-chapter-nav a { background: #111827; border-color: #334155; }
body.dark-mode .science-fact strong, body.dark-theme .science-fact strong, body.dark-mode .science-question h3, body.dark-theme .science-question h3, body.dark-mode .faq-accordion summary, body.dark-theme .faq-accordion summary { color: #f8fafc; }
body.dark-mode .science-fact span, body.dark-theme .science-fact span, body.dark-mode .science-answer, body.dark-theme .science-answer, body.dark-mode .science-complete-text, body.dark-theme .science-complete-text, body.dark-mode .faq-answer, body.dark-theme .faq-answer, body.dark-mode .science-chapter-nav a, body.dark-theme .science-chapter-nav a { color: #cbd5e1; }
body.dark-mode .science-question h3, body.dark-theme .science-question h3 { background: #1f2937; }
body.dark-mode .science-download-panel, body.dark-theme .science-download-panel { background: #102a2a; border-color: #166534; }
body.dark-mode .science-note, body.dark-theme .science-note { background: #29200b; color: #fde68a; }
@media (max-width: 720px) {
    .science-download-panel { display: block; }
    .science-download-panel .science-coin-btn { width: 100%; margin-top: 12px; }
    .science-toc { display: grid; grid-template-columns: 1fr 1fr; }
    .science-toc a { text-align: center; border-radius: 8px; }
    .science-facts { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .science-toc { grid-template-columns: 1fr; } .science-coin-btn { width: 100%; } }
