/* ── HERO ── */
.course-hero {
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.course-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    rgba(124, 92, 252, 0.13) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.course-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}
.course-breadcrumb {
  font-size: 0.78rem;
  color: var(--txt3);
  margin-bottom: 1.1rem;
}
.course-breadcrumb a {
  color: var(--txt3);
  text-decoration: none;
  transition: color 0.2s;
}
.course-breadcrumb a:hover {
  color: var(--txt2);
}
.course-breadcrumb span {
  margin: 0 0.15rem;
}
.course-breadcrumb .current {
  color: var(--accent2);
}

.course-sec-list {
  color: var(--txt2);
}
/* Badge row */
.course-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.cbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
}
.cbadge-bestseller {
  background: var(--accent2);
  color: #000;
}
.cbage-kids {
  background: rgba(255, 0, 161, 0.25);
  color: rgba(255, 0, 161, 1);
  border: 1px solid rgba(255, 0, 161, 1);
}

.kids-note {
  background: rgba(255, 0, 161, 0.25);
  border: 1px solid rgba(255, 0, 161, 1);
  border-radius: 20px;
  padding: 0.75rem 1.2rem;
  font-size: 0.7rem;
  margin-block: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kids-note p {
  text-align: left;
}
.cbadge-live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.cbadge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: pulse-live 1.6s ease-in-out infinite;
}
@keyframes pulse-live {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.cbadge-off {
  background: rgba(124, 92, 252, 0.18);
  color: var(--accent);
  border: 1px solid rgba(124, 92, 252, 0.35);
}

.course-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.course-desc {
  font-size: 0.95rem;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

/* Meta row (stars · students · live · duration · mentor) */
.course-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.8rem;
  color: var(--txt2);
  margin-bottom: 2rem;
}
.course-meta .star-row {
  display: flex;
  gap: 2px;
}
.course-meta .rv {
  font-weight: 800;
  color: var(--txt);
  margin-left: 0.25rem;
}
.cmeta-divider {
  width: 1px;
  height: 14px;
  background: var(--border2);
}
.cmeta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cmeta-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.cmeta-mentor-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── VIDEO THUMBNAIL ── */
.course-video-wrap {
  max-width: 880px;
  margin: 0 auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.course-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  background: #0a0a1a;
}
.course-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.course-video-thumb:hover img {
  transform: scale(1.03);
}
.course-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 12px rgba(6, 214, 227, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
  pointer-events: none;
}
.course-video-thumb:hover .course-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 0 0 18px rgba(6, 214, 227, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.6);
}
.course-play-btn svg {
  width: 26px;
  height: 26px;
  fill: #000;
  margin-left: 3px;
}

/* ── VIDEO MODAL ── */
.course-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.course-video-modal.open {
  display: flex;
}
.course-video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}
.course-video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
.course-video-modal-close:hover {
  color: #fff;
}
.course-video-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.course-video-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── PRICE + ENROLL BAR ── */
.course-enroll-wrap {
  max-width: 880px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}
.course-enroll-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.course-hero-price {
  margin-bottom: 0;
}
.course-off-label {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent2);
  text-align: left;
}
.course-off-label span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--txt2);
  margin-left: 0.4rem;
}
.course-enroll-btn {
  flex: 1;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  margin-top: 0.75rem;
}
.course-enroll-btn:hover {
  box-shadow: 0 0 32px var(--accent-glow, rgba(124, 92, 252, 0.45));
  filter: brightness(1.08);
}
.course-enroll-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── TOOL PILLS ── */
.course-tools-wrap {
  max-width: 880px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}

.fullstack-internship {
  max-width: 880px;
  margin: 1.5rem auto 0;
  padding: 25px 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(12, 50, 65, 1);
  box-sizing: border-box;
}

.fullstack-internship p {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  margin: 0;
}

@media (max-width: 640px) {
  .fullstack-internship {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 1rem;
  }
}
.course-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.course-tool-pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--txt2);
  border: 1px solid var(--border2);
  background: var(--card);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.course-tool-pill:hover {
  border-color: var(--accent);
  color: var(--txt);
}

/* ── MAIN CONTENT BODY ── */
.course-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Numbered section header (01, 02, 03…) */
.course-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.course-section:last-child {
  border-bottom: none;
}
.course-sec-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.8rem;
  padding-bottom: 0.75rem;
  position: relative;
}
.course-sec-num::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 2.3rem;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.45;
}

.fullstack-phase {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
  margin-block: 1.2rem;
  border: 1px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: 20px;
  width: fit-content;
  background-color: rgba(124, 92, 252, 0.1);
}
.course-sec-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.course-sec-body p {
  font-size: 0.92rem;
  color: var(--txt2);
  line-height: 1.78;
  margin-bottom: 0.85rem;
}
.course-sec-body p:last-child {
  margin-bottom: 0;
}

/* Requirements list */
.course-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.course-req-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--txt2);
}
.course-req-list li svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── MODULE ACCORDION ── */
.course-modules {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.module-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.module-item.open {
  border-color: rgba(124, 92, 252, 0.4);
}
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}
.module-header-left {
  flex: 1;
  min-width: 0;
}
.module-num {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.module-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
}
.module-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--txt3);
  transition: transform 0.3s var(--ease);
}
.module-item.open .module-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.module-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.module-body-inner {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.module-body-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.module-body-inner ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.87rem;
  color: var(--txt2);
  line-height: 1.45;
}
.module-body-inner ul li::before {
  content: "·";
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── MENTOR CARD ── */
.course-mentor-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.mentor-av-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b1fa8, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
}
.mentor-av-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mentor-info-col {
  flex: 1;
}
.mentor-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.mentor-role {
  font-size: 0.82rem;
  color: var(--txt3);
  margin-bottom: 0.6rem;
}
.mentor-stats {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--txt2);
  margin-bottom: 0.9rem;
}
.mentor-stats .star {
  width: 13px;
  height: 13px;
  fill: #facc15;
}
.mentor-stats .rv {
  font-weight: 700;
  color: var(--txt);
  margin-left: 0.2rem;
}
.mentor-bio {
  font-size: 0.87rem;
  color: var(--txt2);
  line-height: 1.7;
}

/* ── STUDENT REVIEWS ── */
.course-reviews-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.course-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
}
.review-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.25rem;
}
.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0.4rem;
}
.review-stars .star {
  width: 13px;
  height: 13px;
  fill: #facc15;
}
.review-stars .rv {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--txt2);
  margin-left: 0.3rem;
}
.review-headline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.5rem;
}
.review-body {
  font-size: 0.82rem;
  color: var(--txt2);
  line-height: 1.65;
}

/* ── CHECKOUT OTHER COURSES ── */
.course-other-sec {
  max-width: 80%;
  margin: 0 auto;
  padding-bottom: 5rem;
}
.course-other-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.course-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.course-other-explore {
  text-align: center;
  margin-top: 1rem;
}
.explore-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.5rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--txt);
  border: 1.5px solid var(--border2);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.explore-all-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .course-other-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .course-hero {
    padding: 7rem 0 2rem;
  }
  .course-meta {
    gap: 0.4rem 0.8rem;
  }
  .cmeta-divider {
    display: none;
  }
  .course-reviews-grid {
    grid-template-columns: 1fr;
  }
  .course-other-grid {
    grid-template-columns: 1fr;
  }
  .course-mentor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mentor-stats {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .course-title {
    font-size: 1.7rem;
  }
}
