/* ===== LECTURES PAGE ===== */
@import '/assets/css/variables.css';
:root {
  --navy-dark: #0f2a3a;
}


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;
}

/* ===== NAV ===== */
.lec-nav {
  position: fixed; top:0; width:100%; z-index:100;
  background: rgba(253,248,242,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items:center; justify-content:space-between;
  padding: 0 20px;
}
.lec-nav-logo { font-size:1.1rem; font-weight:800; color:var(--navy); text-decoration:none; }
.lec-nav-logo span { color:var(--orange-deep); }
.lec-nav-links { display:flex; gap:12px; align-items:center; }
.lec-nav-links a {
  color: var(--navy); text-decoration:none; font-size:0.85rem; font-weight:600;
  padding: 7px 14px; border-radius:50px; background:var(--cream);
  border: 1px solid var(--border); transition: all 0.2s;
}
.lec-nav-links a:hover { background:var(--orange-light); border-color:var(--orange); }

/* ===== HERO ===== */
.lec-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  padding: 60px 20px 50px;
  text-align: center;
  color: #fff;
}
.lec-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:20px;
}
.lec-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900; line-height:1.3; margin-bottom:16px;
}
.lec-hero-sub {
  font-size: 1rem; color:#ffffffbb; line-height:1.8;
  max-width: 580px; margin:0 auto;
}

/* ===== CARDS ===== */
.lec-list {
  max-width: 820px; margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex; flex-direction:column; gap:32px;
}
.lec-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,74,107,0.08);
  border: 1px solid var(--border);
}

/* Thumbnail */
.lec-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  cursor: pointer;
}
.lec-thumb {
  width:100%; height:100%; object-fit:cover;
  display:block;
}
.lec-iframe {
  width:100%; height:100%; position:absolute; inset:0;
}
.lec-play {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.3);
  border:none; cursor:pointer;
  transition: background 0.2s;
}
.lec-play:hover { background:rgba(0,0,0,0.15); }
.lec-duration {
  position:absolute; bottom:10px; left:10px;
  background:rgba(0,0,0,0.75); color:#fff;
  padding:3px 10px; border-radius:6px;
  font-size:0.75rem; font-weight:600;
}

/* Body */
.lec-body { padding: 22px 26px 26px; }
.lec-date {
  font-size:0.78rem; color:var(--text-light); font-weight:600;
  margin-bottom:6px;
}
.lec-title {
  font-size:1.25rem; font-weight:800; color:var(--navy);
  margin-bottom:10px; line-height:1.3;
}
.lec-desc {
  font-size:0.92rem; color:var(--text-mid); line-height:1.75;
  margin-bottom:16px;
}

/* Topics */
.lec-topics { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.lec-topic {
  background:var(--cream); color:var(--navy-mid);
  padding:4px 12px; border-radius:50px;
  font-size:0.72rem; font-weight:600;
  border:1px solid var(--border);
}

/* Chapter Tags (below video) */
.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;
}

/* Dropdown chapters */
.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);
}

/* Actions */
.lec-actions {
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:18px; padding-top:18px;
  border-top:1px solid var(--border);
}
.lec-yt-btn {
  display:inline-flex; align-items:center; gap:8px;
  background:#cc0000; color:#fff;
  padding:10px 22px; border-radius:50px;
  font-family:inherit; font-size:0.88rem; font-weight:700;
  text-decoration:none; transition:all 0.2s;
}
.lec-yt-btn:hover { background:#a00; }

/* Tutorial CTA */
.lec-cta {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--orange-deep); color:#fff;
  padding:10px 22px; border-radius:50px;
  font-family:inherit; font-size:0.88rem; font-weight:700;
  text-decoration:none; transition:all 0.2s;
}
.lec-cta:hover { background:#d4743e; transform:translateY(-1px); }
.lec-cta-paid {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--navy); color:#fff;
  padding:10px 22px; border-radius:50px;
  font-family:inherit; font-size:0.88rem; font-weight:700;
  text-decoration:none; transition:all 0.2s;
  box-shadow: 0 3px 14px rgba(26,74,107,0.35);
}
.lec-cta-paid:hover { background:var(--navy-mid); transform:translateY(-1px); }

/* ===== FOOTER ===== */
.lec-footer {
  text-align:center; padding:30px 20px;
  font-size:0.8rem; color:var(--text-light);
  border-top:1px solid var(--border);
}
.lec-footer a { color:var(--navy); text-decoration:none; font-weight:600; }

/* ===== RESPONSIVE ===== */
@media(max-width:700px) {
  .lec-chapter-tags { flex-direction:column; gap:6px; }
  .lec-chapter-tag { width:100%; justify-content:flex-start; text-align:right; direction:rtl; }
  .lec-chapter-dropdown { width:100%; }
  .lec-chapter-dropdown .lec-chapter-tag { width:100%; justify-content:flex-start; text-align:right; }
  .lec-actions { flex-direction:column; align-items:stretch; }
  .lec-actions a { text-align:center; justify-content:center; }
}
@media (min-width:960px) {
  .lec-nav { padding:0 60px; }
  .lec-hero { padding:80px 60px 60px; }
  .lec-list { padding:50px 20px 80px; }
}
