/* Homepage (/, /en/): the hub that links to the quiz, the tools and what is coming next.
   Uses the colors and .card/.btn vocabulary of styles.css. */

.home {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 40px) 70px;
}
.home-hero { text-align: center; margin: 22px 0 38px; }
.home-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 14px; }
.home-hero p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; max-width: 620px; margin: 0 auto; }
.home-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.home-cta a { text-decoration: none; display: inline-block; }

.home h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.home p, .home li { color: var(--ink-soft); line-height: 1.7; }
.home b { color: var(--ink); }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.hub-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 20px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.hub-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.hub-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hub-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.hub-card .go { display: inline-block; margin-top: 12px; color: var(--gold-deep); font-weight: 600; }
/* Not built yet: dashed outline and a "coming soon" tag, and it is not a link. */
.hub-card.soon { border-style: dashed; background: transparent; }
.soon-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  margin-inline-start: 8px;
  vertical-align: middle;
}

/* Animated films: a video player card in the cartoons section. */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; max-width: 760px; }
.movie-card { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.movie-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
/* poster that links to the watch page; a click swaps it for the player (js/movie-thumb.js) */
.movie-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.movie-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.movie-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); border: 2px solid #fff; transition: background 0.15s; }
.movie-play::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; }
.movie-thumb:hover .movie-play, .movie-thumb:focus-visible .movie-play { background: rgba(0, 0, 0, 0.85); }
.movie-card figcaption { padding: 16px 18px 18px; }
.movie-card figcaption h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--ink); }
.movie-card figcaption h3 a { color: inherit; text-decoration: none; }
.movie-card figcaption h3 a:hover { text-decoration: underline; }
.movie-card figcaption p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.movie-more { margin: 12px 0 0; }
.movie-more a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }

/* Kids' audio stories: a card with an audio player (home stories section). */
/* A list, not a gallery: one row per recording, with a small cover beside the text. */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 760px;
  grid-auto-rows: 1fr; }
.story-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  padding: 12px 14px; display: grid; grid-template-columns: 132px 1fr; column-gap: 14px;
  align-items: stretch; }
/* Everything but the cover: title, description, player and share row, stacked, so the
   card keeps its proportions however much the body holds. */
.story-body { min-width: 0; display: flex; flex-direction: column; }
.story-card .story-body .share-bar { margin: auto 0 0; padding-top: 10px; }
.story-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--ink); }
.story-card h3 a { color: inherit; text-decoration: none; }
.story-card h3 a:hover { text-decoration: underline; }
.story-card p { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.story-player { display: block; width: 100%; }
/* Cover art: small, beside the text. The first grid column spans the whole row, so the title,
   description and player stack next to it. Direction-aware, so it sits right in Hebrew. */
.story-card .dur { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }
.story-thumb { display: block; margin: 0; }
.story-thumb img { display: block; width: 132px; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 8px; background: var(--panel); }
/* A story with no cover simply uses the full width. */
.story-card:not(:has(.story-thumb)) { grid-template-columns: 1fr; }
@media (max-width: 560px) {
  .story-card { grid-template-columns: 92px 1fr; column-gap: 10px; }
  .story-thumb img { width: 92px; }
}

.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news li { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 14px 18px; }
.news time { color: var(--ink-dim); font-size: 0.82rem; }
.news h3 { margin: 2px 0 4px; font-size: 1.02rem; color: var(--ink); }
.news p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.news a { color: var(--gold-deep); }

.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; counter-reset: step; }
.steps3 div { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 16px 18px; }
.steps3 h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ink); }
.steps3 h3::before { counter-increment: step; content: counter(step) ". "; color: var(--gold-deep); }
.steps3 p { margin: 0; font-size: 0.95rem; }
.home ul.plain { padding-inline-start: 22px; margin: 0; }
.home ul.plain li { margin-bottom: 6px; }
.home .note { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 14px 18px; margin-top: 14px; }
.home .note p { margin: 0; }

.dedication { text-align: center; color: var(--ink-dim); font-size: 0.9rem; margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .hub-card { transition: none; }
  a.hub-card:hover { transform: none; }
}
