/**
 * Single course template — clean public UI (loads only on singular course).
 *
 * Depends on: public-design-system.css, frontend.css (shared buttons, .sikshya-public).
 *
 * @package Sikshya
 */

/* -------------------------------------------------------------------------
   Page shell
   ------------------------------------------------------------------------- */

.sikshya-single-course.sikshya-course-lp.sik-f-scope.sikshya-public {
  width: 100%;
  max-width: var(--sikshya-public-content-max-width);
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: 0;
  background-color: transparent;
  min-height: 100%;
}

body.sikshya-course-layout--fullwidth .sikshya-single-course.sikshya-course-lp.sik-f-scope.sikshya-public {
  max-width: none;
}

.sikshya-container--course {
  width: 100%;
  max-width: var(--sikshya-public-content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sikshya-public-content-padding-inline);
  padding-right: var(--sikshya-public-content-padding-inline);
}

/* -------------------------------------------------------------------------
   Masthead (light band — base layout in frontend.css)
   ------------------------------------------------------------------------- */

.sikshya-course-lp__masthead-inner {
  max-width: var(--sikshya-public-content-max-width);
}

.sikshya-course-lp__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  font-size: var(--sikshya-font-size-sm);
  margin-bottom: var(--sikshya-spacing-4);
  color: var(--sik-f-text-muted);
}

.sikshya-course-lp__breadcrumb a {
  color: var(--sik-f-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--sikshya-transition-fast);
}

.sikshya-course-lp__breadcrumb a:hover,
.sikshya-course-lp__breadcrumb a:focus-visible {
  color: var(--sikshya-primary);
}

.sikshya-course-lp__breadcrumb span:not(.sikshya-course-lp__bc-sep) {
  color: var(--sik-f-text-muted);
  font-weight: 500;
}

.sikshya-course-lp__bc-sep {
  color: var(--sikshya-gray-400);
  user-select: none;
  font-weight: 400;
}

.sikshya-course-lp__title {
  margin: 0 0 var(--sikshya-spacing-3);
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sik-f-text-heading);
  max-width: 48rem;
}

.sikshya-course-lp__subtitle {
  margin: 0 0 var(--sikshya-spacing-5);
  font-size: var(--sikshya-font-size-base);
  line-height: 1.55;
  color: var(--sik-f-text-muted);
  max-width: 42rem;
}

.sikshya-course-lp__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sikshya-spacing-3) var(--sikshya-spacing-5);
  font-size: var(--sikshya-font-size-sm);
  color: var(--sik-f-text-muted);
}

.sikshya-course-lp__stat {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}

.sikshya-course-lp__stat strong {
  color: var(--sik-f-text-heading);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Flash messages
   ------------------------------------------------------------------------- */

.sikshya-course-lp .sikshya-cart-flash {
  margin-bottom: var(--sikshya-spacing-5);
}

/* -------------------------------------------------------------------------
   Two-column layout
   ------------------------------------------------------------------------- */

.sikshya-course-lp__layout {
  display: grid;
  gap: clamp(var(--sikshya-spacing-6), 4vw, var(--sikshya-spacing-10));
  align-items: start;
  padding-bottom: var(--sikshya-spacing-16);
}

@media (min-width: 1024px) {
  .sikshya-course-lp__layout {
    grid-template-columns: minmax(0, 1fr) min(100%, 20rem);
    gap: var(--sikshya-spacing-10);
  }
}

.sikshya-course-lp__main {
  min-width: 0;
}

.sikshya-course-lp__sidebar {
  min-width: 0;
}

@media (max-width: 1023px) {
  .sikshya-course-lp__sidebar {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .sikshya-course-lp__sidebar {
    position: sticky;
    top: max(1rem, env(safe-area-inset-top));
    z-index: var(--sikshya-z-sticky);
  }
}

/* -------------------------------------------------------------------------
   Purchase card
   ------------------------------------------------------------------------- */

.sikshya-course-lp__card.sik-f-card {
  overflow: hidden;
  box-shadow: var(--sikshya-shadow-sm);
}

.sikshya-course-lp__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sikshya-gray-100);
}

.sikshya-course-lp__preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sikshya-course-lp__preview-link {
  display: block;
  position: relative;
  height: 100%;
  outline: none;
}

.sikshya-course-lp__preview-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sikshya-primary);
}

.sikshya-course-lp__preview-link:hover .sikshya-course-lp__play,
.sikshya-course-lp__preview-link:focus-visible .sikshya-course-lp__play {
  transform: translate(-50%, -50%) scale(1.06);
}

.sikshya-course-lp__preview-static {
  display: block;
  height: 100%;
}

.sikshya-course-lp__preview-placeholder {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background: linear-gradient(145deg, var(--sikshya-gray-100) 0%, var(--sikshya-gray-200) 100%);
}

.sikshya-course-lp__preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 8rem;
  padding: var(--sikshya-spacing-4);
  text-align: center;
  font-weight: 600;
  font-size: var(--sikshya-font-size-sm);
  color: var(--sik-f-text-heading);
  text-decoration: none;
  background: var(--sik-f-surface-subtle);
  border-bottom: 1px solid var(--sik-f-border);
  transition: var(--sikshya-transition-fast);
}

.sikshya-course-lp__preview-fallback:hover,
.sikshya-course-lp__preview-fallback:focus-visible {
  background: var(--sikshya-gray-200);
  color: var(--sikshya-primary-dark);
}

.sikshya-course-lp__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--sikshya-white);
  box-shadow: var(--sikshya-shadow-md);
  transition: transform 0.15s ease;
}

.sikshya-course-lp__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.85rem;
  border-color: transparent transparent transparent var(--sikshya-gray-800);
}

.sikshya-course-lp__buy {
  padding: clamp(var(--sikshya-spacing-4), 3vw, var(--sikshya-spacing-5));
}

.sikshya-course-lp__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sikshya-spacing-2);
  margin-bottom: var(--sikshya-spacing-4);
}

.sikshya-course-lp__price {
  font-size: var(--sikshya-font-size-2xl);
  font-weight: 700;
  color: var(--sik-f-text-heading);
  letter-spacing: -0.02em;
}

.sikshya-course-lp__price .sikshya-price-original {
  font-size: var(--sikshya-font-size-sm);
  font-weight: 500;
  color: var(--sik-f-text-muted);
  text-decoration: line-through;
  margin-right: 0.35rem;
}

.sikshya-course-lp__badge-off {
  font-size: var(--sikshya-font-size-xs);
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.2rem 0.5rem;
  border-radius: var(--sikshya-radius-md);
}

.sikshya-course-lp__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sikshya-spacing-2);
}

.sikshya-course-lp .sikshya-course-lp__actions .sikshya-btn {
  padding: 0.55rem 1rem;
  border-radius: var(--sikshya-radius-md);
  font-size: var(--sikshya-font-size-sm);
  line-height: 1.2;
}

.sikshya-course-lp__form {
  margin: 0;
}

.sikshya-course-lp__btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 40px;
}

.sikshya-course-lp .sikshya-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--sikshya-white), 0 0 0 4px var(--sikshya-primary-light);
}

.sikshya-course-lp__sub-link {
  display: block;
  text-align: center;
  margin-top: var(--sikshya-spacing-2);
  font-size: var(--sikshya-font-size-sm);
  font-weight: 600;
  color: var(--sikshya-primary);
  text-decoration: none;
}

.sikshya-course-lp__sub-link:hover,
.sikshya-course-lp__sub-link:focus-visible {
  text-decoration: underline;
}

.sikshya-course-lp__guarantee {
  margin: var(--sikshya-spacing-4) 0 0;
  font-size: var(--sikshya-font-size-xs);
  color: var(--sik-f-text-muted);
  text-align: center;
  line-height: 1.45;
}

.sikshya-course-lp__sidebar-includes {
  margin-top: var(--sikshya-spacing-5);
  padding-top: var(--sikshya-spacing-4);
  border-top: 1px solid var(--sik-f-border);
}

.sikshya-course-lp__includes-title {
  margin: 0 0 var(--sikshya-spacing-2);
  font-size: var(--sikshya-font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sik-f-text-muted);
}

/* -------------------------------------------------------------------------
   Main column — sections
   ------------------------------------------------------------------------- */

.sikshya-course-lp__heading {
  font-size: var(--sikshya-font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--sikshya-spacing-4);
  color: var(--sik-f-text-heading);
  letter-spacing: -0.01em;
}

.sikshya-course-lp__heading--sm {
  font-size: var(--sikshya-font-size-base);
  font-weight: 600;
}

.sikshya-course-lp__panel {
  margin-bottom: clamp(var(--sikshya-spacing-6), 3vw, var(--sikshya-spacing-8));
  padding: clamp(var(--sikshya-spacing-4), 3vw, var(--sikshya-spacing-6));
  border: 1px solid var(--sik-f-border);
  border-radius: var(--sik-f-radius-panel);
  background: var(--sik-f-surface);
  box-shadow: var(--sik-f-shadow-panel);
}

.sikshya-course-lp__learn {
  border-left: 3px solid var(--sikshya-primary-light);
}

.sikshya-course-lp__learn-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sikshya-spacing-3) var(--sikshya-spacing-8);
}

@media (min-width: 640px) {
  .sikshya-course-lp__learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sikshya-course-lp__learn-item {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--sikshya-font-size-sm);
  line-height: 1.5;
  color: var(--sik-f-text);
}

.sikshya-course-lp__learn-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--sikshya-primary);
}

.sikshya-course-lp__tags {
  margin-bottom: clamp(var(--sikshya-spacing-6), 3vw, var(--sikshya-spacing-8));
}

.sikshya-course-lp__tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sikshya-spacing-2);
}

.sikshya-course-lp__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: var(--sikshya-radius-md);
  border: 1px solid var(--sik-f-border);
  font-size: var(--sikshya-font-size-xs);
  font-weight: 600;
  color: var(--sik-f-text);
  background: var(--sik-f-surface-muted);
}

.sikshya-course-lp__checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sikshya-course-lp__checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: var(--sikshya-spacing-2);
  font-size: var(--sikshya-font-size-sm);
  line-height: 1.45;
  color: var(--sik-f-text);
}

.sikshya-course-lp__checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.65rem;
  border: solid var(--sikshya-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sikshya-course-lp__checklist--compact li {
  margin-bottom: 0.35rem;
}

.sikshya-course-lp__curriculum-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sikshya-spacing-3) var(--sikshya-spacing-4);
  margin-bottom: var(--sikshya-spacing-4);
}

.sikshya-course-lp__curriculum-head .sikshya-course-lp__heading {
  margin-bottom: 0;
}

.sikshya-course-lp__curriculum-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sikshya-spacing-2) var(--sikshya-spacing-3);
  margin-left: auto;
}

.sikshya-course-lp__curriculum-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.sikshya-course-lp__pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--sik-f-border-strong);
  background: var(--sik-f-surface);
  font-size: var(--sikshya-font-size-xs);
  font-weight: 600;
  line-height: 1.35;
  color: var(--sik-f-text);
  white-space: nowrap;
}

/* Header stats pills — on white panel */
.sikshya-course-lp__curriculum-meta .sikshya-course-lp__pill {
  color: var(--sik-f-text);
  background: var(--sik-f-surface-muted);
  border-color: var(--sik-f-border);
}

/* "Free preview" affordance on curriculum outline items. */
.sikshya-course-lp__pill--preview {
  color: rgb(var(--sikshya-brand-700-rgb, 60, 90, 140));
  background: rgba(var(--sikshya-brand-500-rgb, 80, 120, 183), 0.12);
  border-color: rgba(var(--sikshya-brand-500-rgb, 80, 120, 183), 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
}

.sikshya-course-lp__preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--sikshya-brand-700-rgb, 60, 90, 140));
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 150ms ease;
}

.sikshya-course-lp__preview-link:hover,
.sikshya-course-lp__preview-link:focus-visible {
  background: rgba(var(--sikshya-brand-500-rgb, 80, 120, 183), 0.1);
  color: rgb(var(--sikshya-brand-800-rgb, 40, 70, 120));
  text-decoration: none;
}

.sikshya-course-lp__accordion {
  border: 1px solid var(--sik-f-border);
  border-radius: var(--sikshya-radius-lg);
  overflow: hidden;
  background: var(--sik-f-surface);
}

/* "Expand / Collapse all" button + its swap icons.
 *
 * Two SVGs ship in the markup (unfold-more, unfold-less); we show only
 * the one that matches the current `aria-expanded` state. The label text
 * is wrapped in its own span so the JS can swap it without wiping the
 * SVG markup. Icons use stroke-currentColor so they inherit the button
 * text colour for free across hover / focus / disabled states. */
.sikshya-course-lp__toggleAll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sikshya-course-lp__toggleAll-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: none;
}

.sikshya-course-lp__toggleAll[aria-expanded="false"] .sikshya-course-lp__toggleAll-icon--expand,
.sikshya-course-lp__toggleAll[aria-expanded="true"]  .sikshya-course-lp__toggleAll-icon--collapse {
  display: inline-block;
}

.sikshya-course-lp__chapter {
  border-bottom: 1px solid var(--sik-f-border);
}

.sikshya-course-lp__chapter:last-child {
  border-bottom: none;
}

.sikshya-course-lp__chapter-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.6rem;
  padding: var(--sikshya-spacing-3) var(--sikshya-spacing-4);
  font-weight: 600;
  font-size: var(--sikshya-font-size-sm);
  line-height: 1.45;
  color: var(--sik-f-text-heading);
  background: color-mix(in srgb, var(--sikshya-primary-light) 55%, var(--sik-f-surface));
  transition: var(--sikshya-transition-fast);
}

/* Lecture-count pill on tinted chapter bar — higher contrast */
.sikshya-course-lp__chapter-summary .sikshya-course-lp__pill {
  color: var(--sikshya-primary-dark);
  background: rgb(255 255 255 / 0.82);
  border-color: color-mix(in srgb, var(--sikshya-primary) 16%, var(--sik-f-border-strong));
}

.sikshya-course-lp__chapter-summary:hover {
  background: color-mix(in srgb, var(--sikshya-primary-light) 72%, var(--sik-f-surface));
}

details[open] > .sikshya-course-lp__chapter-summary {
  background: color-mix(in srgb, var(--sikshya-primary-light) 82%, var(--sik-f-surface));
  border-bottom: 1px solid color-mix(in srgb, var(--sikshya-primary) 10%, var(--sik-f-border));
}

.sikshya-course-lp__chapter-summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--sikshya-primary);
}

.sikshya-course-lp__chapter-summary::-webkit-details-marker,
.sikshya-course-lp__chapter-summary::marker {
  display: none;
}

.sikshya-course-lp__chapter-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--sikshya-primary-dark);
  transition: transform 0.2s ease;
}

.sikshya-course-lp__chevron-svg {
  display: block;
}

details[open] > .sikshya-course-lp__chapter-summary .sikshya-course-lp__chapter-chevron {
  transform: rotate(180deg);
}

.sikshya-course-lp__chapter-row {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sikshya-spacing-2);
  min-width: 0;
}

.sikshya-course-lp__chapter-title {
  flex: 1 1 10rem;
  min-width: 0;
}

.sikshya-course-lp__chapter-count {
  flex-shrink: 0;
}

.sikshya-course-lp__outline {
  margin: 0;
  padding: 0 var(--sikshya-spacing-3) var(--sikshya-spacing-3);
  list-style: none;
  background: var(--sik-f-surface);
}

@media (min-width: 640px) {
  .sikshya-course-lp__outline {
    padding-left: var(--sikshya-spacing-4);
    padding-right: var(--sikshya-spacing-4);
  }
}

.sikshya-course-lp__outline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: var(--sikshya-spacing-2) 0;
  border-bottom: 1px solid var(--sik-f-border);
}

.sikshya-course-lp__outline-item:last-child {
  border-bottom: none;
}

.sikshya-course-lp__outline-item--preview .sikshya-course-lp__outline-title {
  color: var(--sikshya-primary-dark);
}

.sikshya-course-lp__outline-item--preview .sikshya-course-lp__outline-type {
  color: var(--sikshya-primary-dark);
  background: color-mix(in srgb, var(--sikshya-primary-light) 75%, var(--sik-f-surface));
  border-color: color-mix(in srgb, var(--sikshya-primary) 18%, var(--sik-f-border-strong));
}

.sikshya-course-lp__outline-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sik-f-text-muted);
}

.sikshya-course-lp__outline-icon .sikshya-course-lp__type-svg {
  display: block;
}

.sikshya-course-lp__outline-body {
  flex: 1;
  min-width: 0;
}

.sikshya-course-lp__outline-link,
.sikshya-course-lp__outline-locked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sikshya-spacing-2);
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.sikshya-course-lp__outline-item--locked .sikshya-course-lp__outline-icon {
  opacity: 0.55;
}

.sikshya-course-lp__outline-locked-text {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sikshya-spacing-2);
  min-width: 0;
}

.sikshya-course-lp__outline-lockIcon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sik-f-text-muted);
  margin-inline-start: auto;
}

.sikshya-course-lp__outline-link:hover .sikshya-course-lp__outline-title,
.sikshya-course-lp__outline-link:focus-visible .sikshya-course-lp__outline-title {
  color: var(--sikshya-primary);
}

/* No hover/focus tint on the content-type icon itself — keeps icon parity
 * with learn-sidebar + admin builder (those don't tint the icon on hover).
 * The row title still color-shifts on hover, providing the interaction cue. */

.sikshya-course-lp__outline-title {
  font-weight: 600;
  font-size: var(--sikshya-font-size-sm);
  line-height: 1.45;
  color: var(--sik-f-text-heading);
}

.sikshya-course-lp__outline-locked .sikshya-course-lp__outline-title {
  color: var(--sikshya-gray-700);
}

.sikshya-course-lp__outline-item--locked .sikshya-course-lp__outline-type {
  color: var(--sik-f-text-muted);
  background: var(--sik-f-surface-muted);
}

.sikshya-course-lp__outline-type {
  flex-shrink: 0;
  padding: 0.16rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sik-f-text);
  background: var(--sik-f-surface-muted);
  border-color: var(--sik-f-border-strong);
}

.sikshya-course-lp__empty {
  margin: 0;
  padding: 0 var(--sikshya-spacing-4) var(--sikshya-spacing-4);
  font-size: var(--sikshya-font-size-sm);
  color: var(--sik-f-text-muted);
}

.sikshya-course-lp__audience {
  font-size: var(--sikshya-font-size-sm);
  color: var(--sik-f-text);
}

.sikshya-course-lp__prose {
  font-size: var(--sikshya-font-size-sm);
}

.sikshya-course-lp__instructor-card {
  display: flex;
  flex-direction: column;
  gap: var(--sikshya-spacing-4);
  align-items: flex-start;
}

@media (min-width: 480px) {
  .sikshya-course-lp__instructor-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.sikshya-course-lp__instructor-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--sik-f-border);
}

@media (min-width: 480px) {
  .sikshya-course-lp__instructor-avatar {
    width: 5.5rem;
    height: 5.5rem;
  }
}

.sikshya-course-lp__instructor-name {
  display: inline-block;
  font-size: var(--sikshya-font-size-lg);
  font-weight: 600;
  color: var(--sikshya-primary);
  text-decoration: none;
  margin-bottom: var(--sikshya-spacing-2);
}

.sikshya-course-lp__instructor-name:hover,
.sikshya-course-lp__instructor-name:focus-visible {
  text-decoration: underline;
}

span.sikshya-course-lp__instructor-name {
  color: var(--sik-f-text-heading);
}

.sikshya-course-lp__instructor-bio {
  font-size: var(--sikshya-font-size-sm);
  color: var(--sik-f-text-muted);
}

.sikshya-course-lp__faq-item {
  border-bottom: 1px solid var(--sik-f-border);
}

.sikshya-course-lp__faq-item:last-child {
  border-bottom: none;
}

.sikshya-course-lp__faq-q {
  cursor: pointer;
  padding: var(--sikshya-spacing-3) var(--sikshya-spacing-4);
  font-weight: 600;
  font-size: var(--sikshya-font-size-sm);
  list-style: none;
  color: var(--sik-f-text-heading);
  transition: var(--sikshya-transition-fast);
}

.sikshya-course-lp__faq-q:hover {
  background: var(--sik-f-surface-muted);
}

.sikshya-course-lp__faq-q:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--sikshya-primary-light);
}

.sikshya-course-lp__faq-q::-webkit-details-marker {
  display: none;
}

.sikshya-course-lp__faq-a {
  padding: 0 var(--sikshya-spacing-4) var(--sikshya-spacing-4);
  font-size: var(--sikshya-font-size-sm);
  color: var(--sik-f-text);
}

/* -------------------------------------------------------------------------
   Print
   ------------------------------------------------------------------------- */

@media print {
  .sikshya-course-lp__sidebar {
    display: none;
  }

  .sikshya-course-lp__panel,
  .sikshya-course-lp__card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* -------------------------------------------------------------------------
   Reviews & ratings
   ------------------------------------------------------------------------- */

.sikshya-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f5a623;
  line-height: 1;
  font-size: 1.05rem;
}
.sikshya-rating-star { color: #d1d5db; display: inline-block; }
.sikshya-rating-star--full { color: #f5a623; }
.sikshya-rating-star--half {
  background: linear-gradient(90deg, #f5a623 50%, #d1d5db 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sikshya-course-lp__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--sikshya-spacing-2);
  margin: var(--sikshya-spacing-2) 0 var(--sikshya-spacing-3);
  text-decoration: none;
  color: inherit;
  font-size: 0.9375rem;
  padding: 2px 6px;
  border-radius: 6px;
}
.sikshya-course-lp__rating:hover { background: var(--sik-f-surface-muted); }
.sikshya-rating-avg { font-weight: 700; }
.sikshya-rating-count { color: var(--sik-f-text-muted); font-size: 0.875rem; }

.sikshya-course-reviews__summary {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(var(--sikshya-spacing-4), 3vw, var(--sikshya-spacing-6));
  padding: var(--sikshya-spacing-4) 0 var(--sikshya-spacing-5);
  border-bottom: 1px solid var(--sik-f-border);
  margin-bottom: var(--sikshya-spacing-5);
}
@media (max-width: 640px) {
  .sikshya-course-reviews__summary { grid-template-columns: 1fr; }
}

.sikshya-course-reviews__avg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.sikshya-course-reviews__avg-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sik-f-text, #0f172a);
}
.sikshya-course-reviews__avg-count {
  color: var(--sik-f-text-muted);
  font-size: 0.875rem;
}

.sikshya-course-reviews__breakdown {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.sikshya-course-reviews__breakdown-row {
  display: grid;
  grid-template-columns: 28px 1fr 40px;
  align-items: center;
  gap: var(--sikshya-spacing-2);
  font-size: 0.875rem;
}
.sikshya-course-reviews__breakdown-label { color: var(--sik-f-text-muted); font-weight: 600; }
.sikshya-course-reviews__breakdown-track {
  display: block;
  height: 8px;
  background: var(--sik-f-surface-muted);
  border-radius: 999px;
  overflow: hidden;
}
.sikshya-course-reviews__breakdown-fill {
  display: block;
  height: 100%;
  background: #f5a623;
  transition: width 240ms ease;
}
.sikshya-course-reviews__breakdown-count {
  text-align: right;
  color: var(--sik-f-text-muted);
}

/* Form -------------------------------------------------------------- */
.sikshya-course-reviews__form-wrap {
  border: 1px solid var(--sik-f-border);
  border-radius: 12px;
  padding: var(--sikshya-spacing-4);
  background: var(--sik-f-surface, #fff);
  margin-bottom: var(--sikshya-spacing-5);
}
.sikshya-course-reviews__form.is-hidden,
.sikshya-course-reviews__own.is-hidden,
.sikshya-course-reviews__form .is-hidden,
.sikshya-btn.is-hidden { display: none !important; }

.sikshya-course-reviews__form-title {
  margin: 0 0 var(--sikshya-spacing-3);
  font-size: 1.05rem;
  font-weight: 700;
}
.sikshya-course-reviews__field-label {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 6px;
  color: var(--sik-f-text, #0f172a);
}
.sikshya-required { color: #dc2626; margin-left: 2px; }

.sikshya-course-reviews__rating-field {
  border: 0;
  padding: 0;
  margin: 0 0 var(--sikshya-spacing-3);
}
.sikshya-rating-input {
  display: inline-flex;
  gap: 4px;
}
.sikshya-rating-input__star {
  font-size: 1.8rem;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
  color: #d1d5db;
  transition: color 120ms ease, transform 120ms ease;
}
.sikshya-rating-input__star:hover,
.sikshya-rating-input__star:focus { color: #f5a623; transform: scale(1.08); outline: none; }
.sikshya-rating-input__star.is-selected { color: #f5a623; }

.sikshya-course-reviews__field { display: block; margin-bottom: var(--sikshya-spacing-3); }
.sikshya-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border: 1px solid var(--sik-f-border);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: var(--sik-f-surface, #fff);
  resize: vertical;
}
.sikshya-textarea:focus {
  outline: 2px solid var(--sikshya-primary, #2563eb);
  outline-offset: 1px;
  border-color: var(--sikshya-primary, #2563eb);
}

.sikshya-course-reviews__form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sikshya-spacing-2);
  margin-top: var(--sikshya-spacing-2);
}
.sikshya-course-reviews__form-hint {
  flex: 1 1 100%;
  margin: 0 0 6px;
  color: var(--sik-f-text-muted);
  font-size: 0.8125rem;
}
.sikshya-course-reviews__status {
  margin-top: var(--sikshya-spacing-2);
  font-size: 0.875rem;
  min-height: 1.2em;
}
.sikshya-course-reviews__status.is-error { color: #b91c1c; }
.sikshya-course-reviews__status.is-success { color: #047857; }

.sikshya-course-reviews__notice {
  padding: var(--sikshya-spacing-3);
  border-radius: 8px;
  background: var(--sik-f-surface-muted);
  color: var(--sik-f-text-muted);
  font-size: 0.9375rem;
}
.sikshya-course-reviews__notice .sikshya-btn { margin-top: 0; }

/* Own review card --------------------------------------------------- */
.sikshya-course-reviews__own {
  padding: var(--sikshya-spacing-3);
  background: var(--sik-f-surface-muted);
  border-radius: 8px;
  margin-bottom: var(--sikshya-spacing-3);
}
.sikshya-course-reviews__own-head {
  display: flex;
  align-items: center;
  gap: var(--sikshya-spacing-2);
  margin-bottom: 6px;
}
.sikshya-course-reviews__own-title { font-weight: 700; }
.sikshya-course-reviews__own-actions {
  display: flex;
  gap: var(--sikshya-spacing-2);
  margin-top: var(--sikshya-spacing-2);
}
.sikshya-chip {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sikshya-chip--warning { background: #fef3c7; color: #92400e; }

/* Review list ------------------------------------------------------- */
.sikshya-course-reviews__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sikshya-spacing-4);
}
.sikshya-course-reviews__item {
  padding: var(--sikshya-spacing-4) 0;
  border-top: 1px solid var(--sik-f-border);
}
.sikshya-course-reviews__item:first-child { border-top: 0; padding-top: 0; }
.sikshya-course-reviews__item-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sikshya-spacing-2);
  margin-bottom: 6px;
}
.sikshya-course-reviews__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.sikshya-course-reviews__item-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sikshya-course-reviews__author { font-weight: 600; font-size: 0.9375rem; }
.sikshya-course-reviews__time { color: var(--sik-f-text-muted); font-size: 0.8125rem; }
.sikshya-course-reviews__item-rating { font-size: 0.95rem; }
.sikshya-course-reviews__item-body { font-size: 0.95rem; color: var(--sik-f-text, #0f172a); }

/* Toolbar + reply + report ------------------------------------------ */
.sikshya-course-reviews__toolbar {
  display: flex;
  justify-content: flex-end;
  gap: var(--sikshya-spacing-2);
  margin: 0 0 var(--sikshya-spacing-4);
}
.sikshya-course-reviews__sort {
  display: inline-flex;
  align-items: center;
  gap: var(--sikshya-spacing-2);
}
.sikshya-course-reviews__sort .sikshya-course-reviews__field-label {
  margin: 0;
  font-size: 0.875rem;
  color: var(--sik-f-text-muted);
}
.sikshya-course-reviews__sort .sikshya-input {
  min-width: 180px;
  padding: var(--sikshya-spacing-2) var(--sikshya-spacing-3);
  border: 1px solid var(--sik-f-border-strong, var(--sik-f-border));
  border-radius: var(--sikshya-radius);
  background: var(--sik-f-surface, #fff);
  color: var(--sik-f-text, #0f172a);
  font-size: 0.875rem;
}

.sikshya-course-reviews__reply {
  margin-top: var(--sikshya-spacing-3);
  padding: var(--sikshya-spacing-3);
  border-radius: 8px;
  border: 0;
  background: var(--sik-f-surface-muted);
}
.sikshya-course-reviews__reply-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sik-f-text-muted);
  margin-bottom: 4px;
}
.sikshya-course-reviews__reply-body {
  font-size: 0.9375rem;
  color: var(--sik-f-text, #0f172a);
}

.sikshya-course-reviews__report {
  margin-top: var(--sikshya-spacing-2);
  padding-inline: 0;
  opacity: 0.85;
}
.sikshya-course-reviews__report:hover { opacity: 1; }
.sikshya-course-reviews__report:disabled { opacity: 0.5; cursor: not-allowed; }

.sikshya-course-reviews__load-more {
  margin-top: var(--sikshya-spacing-4);
  text-align: center;
}
.sikshya-course-reviews__empty {
  padding: var(--sikshya-spacing-5);
  text-align: center;
  color: var(--sik-f-text-muted);
  border: 1px dashed var(--sik-f-border);
  border-radius: 8px;
}
