.media-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.media-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8eef5, #d7e0ec);
  overflow: hidden;
}

.media-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.media-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #eef2f7, #dfe7f0);
}

.media-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: #0f172a;
}

.media-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.media-card-title a {
  color: #0f172a;
  text-decoration: none;
}

.media-card-title a:hover {
  color: var(--accent);
}

.media-card-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.media-card-excerpt {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0.85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.media-card-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
}

/* Social links (footer/header) */
.site-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-social-link {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.site-social-link i {
  font-size: 1.15rem;
}

.course-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  line-height: 1.2;
}

.course-price-old {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.course-price-current {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}

.course-price-lg .course-price-current {
  font-size: 1.35rem;
}

.course-price-lg .course-price-old {
  font-size: 1rem;
}

/* Home — latest courses slider */
.home-courses {
  position: relative;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 140, 0, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.home-courses__header {
  margin-bottom: 1.25rem;
}

.home-courses__subtitle {
  margin: -0.25rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.home-courses__slider {
  position: relative;
}

.home-courses__toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.home-courses__arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #002147;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.home-courses__arrow:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.home-courses__arrow:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.home-courses__viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  border-radius: 16px;
}

.home-courses__viewport:active {
  cursor: grabbing;
}

.home-courses__track {
  display: flex;
  gap: 1.25rem;
  direction: ltr;
  will-change: transform;
}

.home-courses__slide {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-courses__slide {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}

@media (min-width: 1200px) {
  .home-courses__slide {
    flex-basis: calc((100% - 2.5rem) / 3);
  }
}

.home-course-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-course-card:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.home-course-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e8eef5, #d7e0ec);
}

.home-course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-course-card:hover .home-course-card__media img {
  transform: scale(1.04);
}

.home-course-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #eef2f7, #dfe7f0);
}

.home-course-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.15rem;
  color: #0f172a;
}

html[dir="rtl"] .home-course-card__body {
  direction: rtl;
  text-align: right;
}

.home-course-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.5rem;
}

.home-course-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.home-course-card__title a:hover {
  color: var(--accent);
}

.home-course-card__excerpt {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.home-course-card__btn {
  white-space: nowrap;
  font-weight: 700;
}

.home-courses__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  min-height: 14px;
}

.home-courses__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.home-courses__dot.is-active {
  width: 28px;
  background: var(--accent);
  transform: scale(1.02);
}

@media (max-width: 767.98px) {
  .home-courses {
    padding: 1.1rem;
  }

  .home-courses__toolbar {
    margin-bottom: 0.65rem;
  }

  .home-courses__arrow {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 575.98px) {
  .attachments-block-item .btn {
    width: 100%;
  }
}

/* Enrollment */
.enrollment-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
}

.enrollment-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 140, 0, 0.18);
  color: #ffb347;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.enrollment-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.enrollment-hero-desc {
  color: rgba(255, 255, 255, 0.78);
}

.enrollment-form-card,
.enrollment-status-card {
  border: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.enrollment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.enrollment-method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.enrollment-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 92px;
  padding: 0.85rem 0.5rem;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.enrollment-method-card i {
  font-size: 1.35rem;
  color: var(--accent);
}

.enrollment-method-option input:checked + .enrollment-method-card {
  border-color: var(--accent);
  background: rgba(255, 140, 0, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 140, 0, 0.15);
}

.enrollment-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.enrollment-status-detail {
  font-size: 0.92rem;
  line-height: 1.55;
}

.enrollment-success-alert {
  border: 0;
  border-radius: 14px;
}

.enrollment-side-image {
  width: 100%;
  object-fit: cover;
  max-height: 280px;
}

@media (max-width: 767.98px) {
  .enrollment-method-grid {
    grid-template-columns: 1fr;
  }
}

.media-card-btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.2px;
}

.section-header a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
}

.section-header a:hover {
  color: #fff;
}

.site-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.25rem 0.2rem 0.85rem;
  min-width: 180px;
  max-width: 260px;
}

.site-search-form input {
  border: 0;
  background: transparent;
  color: #fff;
  width: 100%;
  font-size: 0.82rem;
  outline: none;
}

.site-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.site-search-form button {
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-search-form button:hover {
  background: rgba(255, 255, 255, 0.32);
}

.search-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.search-hero-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-hero-form input {
  flex: 1;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem 0.9rem;
}

.search-result-group {
  margin-bottom: 2rem;
}

.search-result-group h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

@media (max-width: 991.98px) {
  .site-search-form {
    width: 100%;
    max-width: none;
    margin-bottom: 0.5rem;
  }
}

/* Site header — top bar + sub navigation */
.site-header {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.site-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 0;
}

.site-topbar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.site-topbar-brand span {
  line-height: 1.25;
}

.site-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.site-subnav {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.08);
  padding: 0.28rem 0 0.35rem;
}

.site-subnav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.site-subnav-row .nav-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 12.5%;
}

.site-subnav-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.32rem 0.4rem !important;
  border-radius: 7px;
  font-size: 0.72rem !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.15;
}

.site-subnav-link i {
  font-size: 0.78rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.site-subnav-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-subnav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}

.site-subnav-link.active {
  background: #002147;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(0, 33, 71, 0.35);
}

.site-subnav-link.active i {
  opacity: 1;
}

.site-navbar-mobile-wrap {
  padding: 0;
}

.site-navbar-mobile-wrap .site-navbar-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0;
}

.site-navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.site-navbar-toggler .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

.site-navbar-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.site-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.site-lang-btn.is-active {
  background: #fff;
  color: #c45f00;
}

.site-navbar-auth {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.site-navbar-auth .btn {
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
}

.site-navbar-user {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-mobile-link {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem !important;
  border-radius: 10px;
  color: #fff !important;
}

.site-mobile-link.active {
  background: #002147;
  color: #fff !important;
  font-weight: 700;
}

.site-navbar-util-mobile {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
}

.site-navbar-util-mobile .site-navbar-lang,
.site-navbar-util-mobile .site-navbar-auth {
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (min-width: 1200px) {
  .site-topbar-brand {
    font-size: 1rem;
  }

  .site-topbar-brand img {
    width: 48px;
    height: 48px;
  }

  .site-subnav-link {
    font-size: 0.76rem !important;
    padding: 0.35rem 0.5rem !important;
  }
}

/* Level & lesson path */
.level-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.level-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.level-hero-back:hover {
  color: #fff;
}

.level-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff7a00);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
}

.level-hero-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.lesson-path {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lesson-path-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border: 2px solid transparent;
}

.lesson-path-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  color: #0f172a;
  border-color: rgba(255, 140, 0, 0.35);
}

.lesson-path-item.is-completed {
  border-color: rgba(25, 135, 84, 0.25);
}

.lesson-path-num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #002147, #0a3a6e);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 33, 71, 0.25);
}

.lesson-path-item.is-completed .lesson-path-num {
  background: linear-gradient(145deg, #198754, #20a86a);
}

.lesson-path-num--quiz {
  background: linear-gradient(145deg, #b45309, #d97706);
  font-size: 1.15rem;
}

.lesson-path-body {
  flex: 1;
  min-width: 0;
}

.lesson-path-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.lesson-path-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: #64748b;
}

.lesson-path-meta i {
  color: var(--accent);
}

.lesson-path-done {
  color: #198754;
  font-weight: 600;
}

.lesson-path-quiz-badge {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 140, 0, 0.14);
  color: #b45309;
  font-weight: 700;
  font-size: 0.72rem;
}

.lesson-path-go {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 33, 71, 0.06);
  color: #002147;
  transition: background 0.18s ease, color 0.18s ease;
}

.lesson-path-item:hover .lesson-path-go {
  background: var(--accent);
  color: #fff;
}

/* Single lesson page */
.lesson-page-header {
  position: relative;
}

.lesson-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.lesson-page-back:hover {
  color: var(--accent);
}

.lesson-page-num {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.06), rgba(0, 33, 71, 0.03));
  border: 1px solid rgba(0, 33, 71, 0.08);
}

.lesson-page-num-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lesson-page-num-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #002147;
  line-height: 1;
}

.lesson-page-num-total {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
}

.lesson-page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.lesson-page-desc {
  color: #334155;
  font-size: 0.95rem;
}

.lesson-page-video {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  position: relative; /* for YouTube overlay */
}

.lesson-page-video iframe,
.lesson-page-video video {
  border-radius: 14px;
}

/* YouTube branding cover (reduces "Watch on YouTube" click) */
.youtube-brand-cover {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 140px;
  height: 52px;
  z-index: 5;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.attachments-block {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
}

.attachments-block-title {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.attachments-block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.attachments-block-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.attachments-block-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 0, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}

.attachments-block-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0f172a;
}

@media (max-width: 575.98px) {
  .lesson-path-item {
    padding: 0.8rem 0.85rem;
    gap: 0.65rem;
  }

  .lesson-path-num {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .lesson-page-title {
    font-size: 1.15rem;
  }

  .attachments-block-item {
    flex-wrap: wrap;
  }

  .attachments-block-item .btn {
    width: 100%;
  }
}
