/* ===== LECTURE SUMMARY PAGES ===== */


@import '/assets/css/variables.css';
html { scroll-behavior:smooth; }
body { font-family:'Rubik',sans-serif; background:var(--cream); color:var(--text); direction:rtl; -webkit-font-smoothing:antialiased; padding-top:60px; overflow-x:hidden; }

/* HERO */
.sum-hero { background:linear-gradient(135deg, var(--navy-dark), var(--navy-mid)); padding:60px 20px 50px; text-align:center; color:#fff; }
.sum-hero-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(246,166,126,0.18); color:var(--orange); padding:6px 16px; border-radius:50px; font-size:0.8rem; font-weight:700; margin-bottom:16px; }
.sum-hero h1 { font-size:clamp(1.5rem,4vw,2.4rem); font-weight:900; line-height:1.3; margin-bottom:12px; }
.sum-hero-sub { font-size:1rem; color:#ffffffbb; line-height:1.8; max-width:580px; margin:0 auto 24px; }
.sum-hero-meta { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:24px; font-size:0.82rem; color:#ffffffaa; }
.sum-hero-meta span { display:inline-flex; align-items:center; gap:5px; }
.btn-yt { display:inline-flex; align-items:center; gap:8px; background:#cc0000; color:#fff; padding:12px 28px; border-radius:50px; font-family:inherit; font-size:0.95rem; font-weight:700; text-decoration:none; transition:all 0.2s; }
.btn-yt:hover { background:#a00; transform:translateY(-1px); }

/* CHAPTER TAGS (identical to lectures.css) */
.lec-chapter-tags { display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px; background:var(--cream); border-bottom:1px solid var(--border); direction:ltr; }
.lec-chapter-tag { display:inline-flex; align-items:center; gap:6px; direction:rtl; background:var(--white); border:1px solid var(--border); border-radius:50px; padding:6px 14px; font-family:inherit; font-size:0.8rem; font-weight:600; color:var(--navy); cursor:pointer; transition:all 0.2s; }
.lec-chapter-tag:hover { background:var(--orange-light); border-color:var(--orange); color:var(--orange-deep); }
.lec-tag-time { font-size:0.72rem; font-weight:700; color:var(--orange-deep); direction:ltr; }
.lec-chapter-dropdown { position:relative; display:inline-flex; }
.lec-has-sub .lec-chevron { transition:transform 0.2s; margin-right:2px; }
.lec-chapter-dropdown.open .lec-chevron { transform:rotate(180deg); }
.lec-sub-menu { display:none; position:absolute; top:calc(100% + 4px); left:0; background:var(--white); border:1px solid var(--border); border-radius:12px; padding:6px; box-shadow:0 8px 24px rgba(26,74,107,0.12); z-index:10; min-width:160px; flex-direction:column; gap:4px; }
.lec-chapter-dropdown.open .lec-sub-menu { display:flex; }
.lec-sub-tag { display:flex; align-items:center; gap:6px; background:none; border:none; border-radius:8px; padding:8px 12px; font-family:inherit; font-size:0.78rem; font-weight:600; color:var(--navy); cursor:pointer; transition:all 0.15s; white-space:nowrap; width:100%; text-align:right; }
.lec-sub-tag:hover { background:var(--orange-light); color:var(--orange-deep); }

/* SECTIONS */
.sum-section { max-width:900px; margin:0 auto; padding:50px 20px; }
.sum-section-title { font-size:1.4rem; font-weight:900; color:var(--navy); text-align:center; margin-bottom:32px; display:flex; align-items:center; justify-content:center; gap:10px; }
.sum-section-title svg { flex-shrink:0; }

/* CARDS GRID */
.cards-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:20px; }
.card { background:var(--white); border-radius:16px; padding:24px; border:1px solid var(--border); box-shadow:0 4px 20px rgba(26,74,107,0.06); transition:transform 0.2s, box-shadow 0.2s; opacity:0; transform:translateY(20px); }
.card.visible { opacity:1; transform:translateY(0); transition:opacity 0.5s, transform 0.5s; }
.card:hover { transform:translateY(-3px); box-shadow:0 8px 30px rgba(26,74,107,0.12); }
.card-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.card-icon.navy { background:var(--navy); }
.card-icon.orange { background:var(--orange-deep); }
.card h3 { font-size:1rem; font-weight:800; color:var(--navy); margin-bottom:8px; }
.card p { font-size:0.95rem; color:var(--text-mid); line-height:1.7; }

/* FLOW */
.flow-wrap { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
.flow-item { background:var(--white); border:1px solid var(--border); border-radius:14px; padding:16px 20px; text-align:center; min-width:120px; flex:1; max-width:180px; transition:transform 0.2s; }
.flow-item:hover { transform:scale(1.04); }
.flow-item svg { display:block; margin:0 auto 8px; }
.flow-item h4 { font-size:0.95rem; font-weight:700; color:var(--navy); margin-bottom:4px; }
.flow-item p { font-size:0.85rem; color:var(--text-light); }
.flow-arrow { color:var(--orange); flex-shrink:0; width:32px; height:32px; border:2px solid var(--orange); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.flow-arrow svg { width:16px; height:16px; stroke:var(--orange-deep); fill:none; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.flow-label { text-align:center; font-size:0.85rem; font-weight:700; color:var(--navy); margin-bottom:16px; }

/* TOOLS */
.tool-card { display:flex; align-items:flex-start; gap:16px; background:var(--white); border:1px solid var(--border); border-radius:14px; padding:20px; margin-bottom:12px; transition:transform 0.2s; opacity:0; transform:translateY(20px); }
.tool-card.visible { opacity:1; transform:translateY(0); transition:opacity 0.4s, transform 0.4s; }
.tool-card:hover { transform:translateX(-4px); }
.tool-icon { width:44px; height:44px; border-radius:10px; background:var(--navy); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.tool-info h4 { font-size:0.95rem; font-weight:700; color:var(--navy); margin-bottom:4px; }
.tool-info p { font-size:0.95rem; color:var(--text-mid); line-height:1.6; }

/* GOLD TIP */
.gold-tip { background:linear-gradient(135deg, #fef3c7, #fde68a); border:2px solid #f59e0b; border-radius:18px; padding:28px; text-align:center; max-width:600px; margin:0 auto; }
.gold-tip h3 { color:#92400e; font-size:1.1rem; margin-bottom:10px; }
.gold-tip p { color:#78350f; font-size:0.95rem; line-height:1.7; }

/* FAQ */
.faq-item { background:var(--white); border:1px solid var(--border); border-radius:14px; margin-bottom:10px; overflow:hidden; opacity:0; transform:translateY(15px); }
.faq-item.visible { opacity:1; transform:translateY(0); transition:opacity 0.4s, transform 0.4s; }
.faq-q { padding:18px 22px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; font-weight:700; font-size:0.95rem; color:var(--navy); transition:background 0.2s; }
.faq-q:hover { background:var(--orange-light); }
.faq-q .chevron { transition:transform 0.3s; font-size:0.8rem; color:var(--orange-deep); flex-shrink:0; }
.faq-item.open .faq-q .chevron { transform:rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height 0.4s ease, padding 0.3s; padding:0 22px; }
.faq-item.open .faq-a { max-height:300px; padding:0 22px 18px; }
.faq-a p { font-size:0.95rem; color:var(--text-mid); line-height:1.8; }

/* CTA */
.sum-cta { background:linear-gradient(135deg, var(--navy-dark), var(--navy-mid)); padding:50px 20px; text-align:center; color:#fff; }
.sum-cta h2 { font-size:1.4rem; font-weight:900; margin-bottom:10px; }
.sum-cta p { color:#ffffffbb; margin-bottom:24px; font-size:0.95rem; }
.sum-cta-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn-cta { display:inline-flex; align-items:center; gap:8px; padding:12px 26px; border-radius:50px; font-family:inherit; font-size:0.9rem; font-weight:700; text-decoration:none; transition:all 0.2s; }
.btn-cta.primary { background:var(--orange-deep); color:#fff; }
.btn-cta.primary:hover { background:#d4743e; transform:translateY(-2px); }
.btn-cta.secondary { background:rgba(255,255,255,0.12); color:#fff; border:1px solid rgba(255,255,255,0.3); }
.btn-cta.secondary:hover { background:rgba(255,255,255,0.2); }

/* EMBEDDED VIDEO */
.video-wrap { max-width:800px; margin:0 auto; border-radius:16px; overflow:hidden; box-shadow:0 8px 30px rgba(26,74,107,0.15); }
.video-wrap iframe { width:100%; aspect-ratio:16/9; border:none; display:block; }

/* QUIZ */
.quiz-wrap { max-width:700px; margin:0 auto; }
.quiz-q { background:var(--white); border:1px solid var(--border); border-radius:16px; padding:24px; margin-bottom:16px; opacity:0; transform:translateY(15px); }
.quiz-q.visible { opacity:1; transform:translateY(0); transition:opacity 0.4s, transform 0.4s; }
.quiz-q h4 { font-family:'Rubik',sans-serif; font-size:0.95rem; font-weight:700; color:var(--navy); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.quiz-q h4 .q-num { background:var(--navy); color:#fff; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.8rem; flex-shrink:0; }
.quiz-opts { display:flex; flex-direction:column; gap:8px; }
.quiz-opt { padding:12px 16px; border:2px solid var(--border); border-radius:12px; cursor:pointer; font-family:'Rubik',sans-serif; font-size:0.88rem; font-weight:600; color:var(--text); transition:all 0.2s; background:var(--white); text-align:right; }
.quiz-opt:hover { border-color:var(--orange); background:var(--orange-light); }
.quiz-opt.correct { border-color:#22c55e; background:#f0fdf4; color:#166534; cursor:default; }
.quiz-opt.wrong { border-color:#ef4444; background:#fef2f2; color:#991b1b; cursor:default; }
.quiz-opt.disabled { pointer-events:none; opacity:0.6; }
.quiz-opt.disabled.correct { opacity:1; }
.quiz-feedback { margin-top:10px; padding:10px 14px; border-radius:10px; font-size:0.82rem; line-height:1.6; display:none; }
.quiz-feedback.show { display:block; }
.quiz-feedback.correct { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.quiz-feedback.wrong { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.quiz-score { text-align:center; padding:24px; background:linear-gradient(135deg, var(--orange-light), #fef3c7); border-radius:16px; margin-top:20px; display:none; }
.quiz-score.show { display:block; }
.quiz-score h3 { font-size:1.3rem; font-weight:900; color:var(--navy); margin-bottom:8px; }
.quiz-score p { color:var(--text-mid); font-size:0.92rem; }
.quiz-score .score-num { font-size:2.5rem; font-weight:900; color:var(--orange-deep); }

/* RESPONSIVE */
@media(max-width:700px) {
  .lec-chapter-tags { flex-direction:column; align-items:stretch; }
  .lec-chapter-tag { width:100%; justify-content:center; min-height:44px; box-sizing:border-box; }
  .lec-chapter-dropdown { width:100%; flex-direction:column; }
  .lec-sub-menu { position:static; width:100%; min-width:0; box-shadow:none; margin-top:4px; }
  .lec-sub-tag { white-space:normal; min-height:44px; }
  .flow-wrap { flex-direction:column; align-items:stretch; }
  .flow-item { max-width:100%; min-width:0; }
  .flow-arrow { transform:rotate(-90deg); margin:0 auto; }
  .sum-hero { padding:40px 16px 36px; }
  .sum-hero h1 { font-size:1.4rem; }
  .sum-hero-sub { font-size:0.88rem; }
  .cards-grid { grid-template-columns:1fr; }
  .sum-section { padding:30px 16px; }
  .sum-section-title { font-size:1.15rem; }
  .card { padding:18px; }
  .tool-card { flex-direction:column; align-items:center; text-align:center; gap:10px; }
  .tool-icon { margin-bottom:4px; }
  .faq-q { padding:14px 16px; font-size:0.95rem; }
  .quiz-q { padding:18px; }
  .quiz-opt { padding:10px 14px; font-size:0.82rem; }
  .gold-tip { padding:20px 16px; }
  .gold-tip p { font-size:0.85rem; }
  .video-wrap { border-radius:10px; }
  .sum-cta h2 { font-size:1.15rem; }
  .sum-cta-btns { flex-direction:column; align-items:center; }
  .btn-cta { width:100%; justify-content:center; }
}
@media(min-width:960px) {
  .sum-hero { padding:80px 60px 60px; }
}

/* 1/10/2026, בדיקת האתר בכל הגדלים. הקהל בן 50 עד 75, ולכן אין טקסט מתחת ל-13px. */
.lec-tag-time { font-size: 0.8125rem; }
/* תגית פרק היא כפתור, ובמסך מגע 44px לאצבע. היו 29px באייפד */
@media (pointer: coarse) { .lec-chapter-tag { min-height: 44px; } }
