.lessons-page .lessons-hero,
.lesson-detail-page .lesson-detail-head {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.lessons-page .lessons-grid-section {
  margin-top: 0.5rem;
}

a.course-card-link {
  display: block;
  color: inherit;
}

a.course-card-link:hover .course-card {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 50, 112, 0.2);
}

a.course-card-link .course-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-detail-title {
  color: var(--primary);
  font-size: clamp(22px, 2.4vw, 40px);
  font-weight: 400;
  margin-bottom: 24px;
}

.lesson-hero-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 28px;
}

.lesson-detail-hero {
  width: 100%;
  height: 270px;
  max-height: 270px;
  background-color: #1b2c63;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lesson-videos-heading {
  color: var(--primary);
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 400;
  margin-bottom: 50px;
}

.lesson-video-card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #d9e3f7;
  box-shadow: 0 8px 18px rgba(17, 50, 112, 0.14);
  background: #fff;
  cursor: pointer;
}

.lesson-video-card:hover {
  box-shadow: 0 12px 24px rgba(17, 50, 112, 0.2);
}

.lesson-video-thumb-wrap {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
}

.lesson-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lesson-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.lesson-video-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.lesson-video-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 18px;
  background: var(--primary);
  color: #fff;
  min-height: 120px;
}

.lesson-video-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.lesson-video-card-desc {
  font-size: 11px;
  line-height: 1.45;
  opacity: 0.92;
}

.lesson-video-modal .modal-content {
  border-radius: 16px;
  border: none;
  overflow: hidden;
}

.lesson-video-modal-title {
  color: var(--primary);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.lesson-video-modal-desc {
  color: var(--primary);
  font-size: 14px;
  line-height: 1.6;
}

.lesson-video-embed iframe {
  border: 0;
  border-radius: 8px;
}

.lesson-actions-section {
  margin-top: 12px;
}

.lesson-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.lesson-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 280px;
  max-width: 260px;
  min-height: 65px;
  padding: 10px 20px 10px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-action-btn:hover {
  transform: translateY(-1px);
}

.lesson-action-label {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.3;
}

.lesson-action-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lesson-action-doc {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(27, 44, 99, 0.08);
}

.lesson-action-doc:hover {
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(27, 44, 99, 0.14);
}

.lesson-action-rec {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 44, 99, 0.2);
}

.lesson-action-rec:hover {
  color: #fff;
  box-shadow: 0 10px 22px rgba(27, 44, 99, 0.28);
}

.lesson-action-icon-link {
  color: #fff;
}

@media (max-width: 767.98px) {
  .lesson-detail-hero {
    height: 200px;
    max-height: 200px;
  }

  .lesson-video-thumb-wrap {
    height: 160px;
  }

  .lesson-actions {
    gap: 12px;
  }

  .lesson-action-btn {
    flex: 1 1 140px;
    min-height: 48px;
    padding: 8px 12px 8px 16px;
  }

  .lesson-action-label {
    font-size: 14px;
  }
}
