/* The TOEFL Academy training page, on top of training.css: the hero with the share picture, the sign up box, the
   lesson player with its chapters, and the day's flash cards that turn. */
.hero-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .hero-grid { grid-template-columns: 3fr 2fr; } }
.hero .poster img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero .ur-lead { font-family: "Noto Nastaliq Urdu", serif; direction: rtl; text-align: left; font-size: 1.25rem; line-height: 2; color: #fde68a; }
.hero h1 { max-width: 16ch; }

.signup .grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .signup .grid2 { grid-template-columns: 1fr 1fr; } .signup .wide { grid-column: 1 / -1; } }
.signup label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
.signup input, .signup textarea { font: 1rem var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .status { color: var(--muted); font-size: .95rem; }
.small { font-size: .9rem; color: var(--muted); }
.task-head h3 { margin: 0; }

.lesson video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #0f1f4d; display: block; }
.langs { display: flex; gap: 8px; margin-bottom: 12px; }
.langs .lang { font: 600 1.05rem "Noto Nastaliq Urdu", serif; padding: 6px 16px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.langs .lang.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chapters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .chapters { grid-template-columns: 1fr 1fr; } }
.chapters .chapter { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; font: 1rem var(--body); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chapters .chapter:hover { background: var(--soft); }
.chapters .n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--lantern-soft); color: var(--lantern); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }

.deck-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.deck-head .day { text-align: center; display: flex; flex-direction: column; }
.deck-head .day span { font-size: .85rem; color: var(--muted); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { position: relative; min-height: 250px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 0; cursor: pointer; text-align: left; font: 1rem var(--body); overflow: hidden; }
.card .face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4px; padding: 0; transition: opacity .2s; }
.card .front img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--accent-soft); }
.card.nopic .front img { display: none; }
.card.nopic .front::before { content: ""; display: block; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--accent-soft), var(--lantern-soft)); }
.card .word { font: 700 1.3rem var(--display); padding: 8px 12px 0; }
.card .pos { font-size: .8rem; color: var(--muted); padding: 0 12px 10px; }
.card .back { opacity: 0; padding: 12px 14px; background: var(--surface); }
.card.turned .front { opacity: 0; }
.card.turned .back { opacity: 1; }
.card .def { font-weight: 600; line-height: 1.4; }
.card .ex { font-size: .9rem; color: var(--muted); font-style: italic; line-height: 1.4; }
.card .ur { font-family: "Noto Nastaliq Urdu", serif; direction: rtl; text-align: right; font-size: 1.05rem; line-height: 1.9; }
.card .forms { font-size: .8rem; color: var(--muted); margin-top: auto; }

.share-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .share-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.share-grid a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--muted); font-size: .9rem; }
.share-grid img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }

/* Only the get started steps are numbered; the sign up box, the player, the deck and the week days are not. */
.signup, .lesson, .deck, #plan .task { counter-increment: none; }
#plan .task-head h3::before { content: none; }
.task .chapters { padding-left: 0; }
