/* Course pages (askteko.com/courses/<subject>/stage-N): units, films, sample questions, papers.
   Loaded after site.css and blog.css. */
.course-head .lede { max-width: 40em; }
.stage-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.stage-chips li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 800; font-size: .95rem; }
.stage-chips li b { color: var(--lime); margin-inline-end: 6px; }
.course-head .hero-actions { margin-top: 26px; }
.course-section { padding: clamp(40px, 6vw, 80px) 0 0; }
.course-section.last { padding-bottom: clamp(48px, 7vw, 96px); }
.course-section > .wrap > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.course-section .lede { margin-bottom: 22px; }
.prose-card { background: #fff; border: 2px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 48px); }
.prose-card p, .prose-card li { color: #2A2950; max-width: 72ch; font-size: 1.1rem; line-height: 1.75; }
.prose-card h3 { margin-top: 1.2em; }
.prose-card > :first-child { margin-top: 0; }
.prose-card strong { color: var(--ink); }
.strand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 22px 0 6px; }
.strand-grid > div { border-radius: var(--r-md); padding: 16px 18px; background: var(--paper); border: 2px solid var(--line); }
.strand-grid h3 { margin: 0 0 4px !important; font-size: 1.1rem; }
.strand-grid p { margin: 0; font-size: .98rem !important; line-height: 1.5 !important; color: var(--ink-2) !important; }

/* Units and lessons */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.unit-card { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.unit-card h3 { margin: 0; font-size: 1.15rem; display: flex; gap: 10px; align-items: flex-start; }
.unit-card h3 .u-n { flex: none; min-width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--lime); display: inline-grid; place-items: center; font-size: .95rem; }
.unit-card h3 .u-en { display: block; font-size: .88rem; color: var(--ink-3); font-weight: 700; margin-top: 2px; }
.unit-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.unit-card li { display: grid; grid-template-columns: 38px 1fr auto; gap: 6px; align-items: center; font-size: 1rem; color: var(--ink-2); padding: 7px 0; border-top: 1px dashed var(--line); }
.unit-card li .l-id { font-weight: 900; color: var(--purple); font-size: .9rem; direction: ltr; }
.unit-card li a.l-film { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 900; text-decoration: none; padding: 3px 10px; border-radius: 999px; background: #FFE9EA; color: #B3172A; white-space: nowrap; }
.unit-card li a.l-film:hover { background: #B3172A; color: #fff; }
.unit-card li a.l-film svg { width: 14px; height: 14px; }

/* Films */
.playlist-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.playlist-row p { margin: 0; color: #D9D4FF; font-weight: 700; }
.playlist-row p b { color: #fff; }
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.film-card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.film-card:hover { transform: translateY(-3px); border-color: var(--purple); box-shadow: var(--glow-purple); color: var(--ink); }
.film-card .f-img { position: relative; aspect-ratio: 16 / 9; background: var(--purple-night); }
.film-card .f-img img { width: 100%; height: 100%; object-fit: cover; }
.film-card .f-img::after { content: ''; position: absolute; left: 50%; top: 50%; width: 54px; height: 38px; translate: -50% -50%; border-radius: 11px; background: rgba(18, 18, 44, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E") center/26px no-repeat; transition: background-color .2s; }
.film-card:hover .f-img::after { background-color: #E0334F; }
.film-card .f-meta { padding: 0 14px 14px; display: grid; gap: 4px; }
.film-card .f-meta small { color: var(--purple); font-weight: 900; font-size: .82rem; }
.film-card .f-meta b { font-size: 1rem; line-height: 1.35; font-weight: 900; }

/* Sample questions */
.sample-paper { background: #fff; border: 2px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 44px); box-shadow: 0 30px 80px -50px rgba(40, 20, 120, .45); }
.sample-paper .sp-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.sample-paper .sp-top b { font-size: 1.15rem; }
.sample-paper .sp-top span { color: var(--ink-3); font-weight: 800; font-size: .95rem; }
.sample-paper ol.sq { list-style: none; counter-reset: q; margin: 0; padding: 0; }
.sample-paper ol.sq > li { counter-increment: q; position: relative; padding: 20px 0 20px 46px; border-bottom: 1px solid var(--line); }
.sample-paper ol.sq > li::before { content: counter(q); position: absolute; left: 0; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--purple-soft); color: var(--purple); font-weight: 900; display: grid; place-items: center; }
.sample-paper .stem { white-space: pre-line; font-size: 1.08rem; line-height: 1.6; margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.sample-paper .opts { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 4px; }
.sample-paper .opts li { padding: 7px 12px; border-radius: 10px; background: var(--paper); font-size: 1rem; white-space: pre-line; }
.sample-paper .marks { display: block; text-align: right; font-weight: 900; color: var(--ink-3); font-size: .92rem; }
.sample-paper details { margin-top: 8px; border-radius: 12px; background: #F6FFD0; border: 2px solid #D7EE7E; padding: 0 14px; }
.sample-paper details summary { cursor: pointer; padding: 10px 0; font-weight: 900; color: var(--ink); }
.sample-paper details p, .sample-paper details li { font-size: 1rem; margin: 0 0 8px; color: #2A2950; white-space: pre-line; }
.sample-paper details ul { margin: 0 0 10px; padding-left: 1.2em; }
.sample-paper .sp-foot { margin: 16px 0 0; font-size: .92rem; color: var(--ink-3); font-weight: 700; }
[dir="rtl"] .sample-paper .sp-rtl { direction: rtl; text-align: right; }

/* Full papers (account) */
.papers-box { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); background: linear-gradient(135deg, #F6FFD0, #E9FFF9); border: 2px solid #D7EE7E; }
.papers-box h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.papers-box ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.papers-box li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-weight: 700; color: #2A2950; }
.papers-box li::before { content: ''; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23DDFF3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.papers-box .small { margin: 12px 0 0; color: var(--ink-3); }
.papers-box .teko-slot { max-width: 220px; }
@media (max-width: 760px) { .papers-box { grid-template-columns: 1fr; } .papers-box .teko-slot { max-width: 150px; order: -1; } }
.course-faq .faq { max-width: none; margin-top: 18px; }

/* Multi-part questions and reading passages (English) */
.sample-paper .sp-part { margin: 10px 0 0; padding-left: 4px; }
.sample-paper .sp-part .stem { font-weight: 600; margin-bottom: 4px; }
.sample-paper .sp-part .stem b { margin-right: 6px; color: var(--purple); }
.sample-paper .sp-lines { color: var(--ink-3); font-weight: 700; font-size: .92rem; }
.sp-passage { margin: 16px 0 6px; padding: 18px 20px; border-radius: var(--r-md); background: #FFFDF5; border: 2px solid #F1DF8A; }
.sp-passage figcaption { font-weight: 900; font-size: 1.15rem; margin-bottom: 10px; color: var(--ink); }
.sp-lines-list { list-style: none; margin: 0; padding: 0 0 0 44px; counter-reset: ln; font-family: Georgia, 'Times New Roman', serif; font-size: 1.04rem; line-height: 1.75; color: #24234A; }
.sp-lines-list li { counter-increment: ln; position: relative; }
.sp-lines-list li:nth-child(5n)::before, .sp-lines-list li:first-child::before { content: counter(ln); position: absolute; left: -44px; width: 30px; text-align: right; font: 800 .8rem/1.75rem var(--font); color: var(--ink-3); }
@media (max-width: 520px) { .sp-lines-list { padding-left: 30px; font-size: .98rem; } .sp-lines-list li:nth-child(5n)::before, .sp-lines-list li:first-child::before { left: -32px; width: 24px; } }
.course-sources ol { font-size: .98rem; color: var(--ink-2); }
