:root {
    --primary: #5567ff;
    --primary-content: #ffffff;
    --primary-dark: #1321ab;
    --primary-light: #8895ff;
    --secondary: #ffb455;
    --secondary-content: #552f00;
    --secondary-dark: #ff9d22;
    --secondary-light: #ffca88;
    --background: #f9fafb;;
    --foreground: #ffffff!important;
    --border: #dfdfdf;
    --copy: #262626;
    --copy-light: #666666;
    --copy-lighter: #8c8c8c;
    --success: #55ff55;
    --warning: #ffff55;
    --error: #ff5555;
    --success-content: #005500;
    --warning-content: #555500;
    --error-content: #550000;
}

.dark-theme {
    --primary: #5567ff;
    --primary-content: #ffffff;
    --primary-dark: #2239ff;
    --primary-light: #8895ff;
    --secondary: #ff55bc;
    --secondary-content: #550033;
    --secondary-dark: #ff22a8;
    --secondary-light: #ff88d0;
    --background: #111222;
    --foreground: #191c34;
    --border: #292e56;
    --copy: #fafafd;
    --copy-light: #cbcee6;
    --copy-lighter: #878dc5;
    --success: #55ff55;
    --warning: #ffff55;
    --error: #ff5555;
    --success-content: #005500;
    --warning-content: #555500;
    --error-content: #550000;
}



/* NEW TEST */
/* Basic Reset */
/* Basic Reset */


/* --- Cross-browser root / viewport normalization --- */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 20px;
  line-height:1.2 ;
}

/* prevent Firefox/Android "text inflation" blowing up headings */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#root,
.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body, [dir] body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  /* overflow-x: hidden;      */
  margin: 0;
  background-color: var(--background)!important;
  color: #020617; /* close to Tailwind foreground in light mode */  
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {

}

/* Layout Helpers */
.page {
  min-height: 100vh;
}

.container {
  /* max-w-7xl = 80rem = 1280px */
  max-width: 80rem!important;
  margin-left: auto!important;   /* mx-auto */
  margin-right: auto!important;
  /* px-4 sm:px-6 lg:px-8 */

}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem!important;
    padding-right: 1.5rem!important;
  }
}



/* Hero */
.hero {
  /* bg-gray-900 text-white py-8 */
  background-color: #111827;
  color: #ffffff;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 0.5rem; /* gap-2 */
  margin-bottom: 1rem; /* mb-4 */
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem; /* px-3 py-1-ish */
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-yellow {
  background-color: #facc15; /* bg-yellow-500 */
  color: #111827;
}

.hero-title {
  /* text-4xl font-bold mb-3 */
  font-size: 2.25rem!important;
  line-height: 1.2!important;
  margin: 0 0 0.75rem;
  font-weight: 700!important;
}

.hero-subtitle {
  /* text-xl text-gray-300 mb-4 */
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #d1d5db;
}

.hero-meta {
  /* flex items-center gap-6 mb-4 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-value {
  font-weight: 700;
  color: #facc15;
}

/*  */
.rating-stars {
  display: inline-flex;
  gap: 0.15rem;
}

.icon-star {
  width: 16px;
  height: 16px;
}

.rating-stars .icon-star {
  fill: #facc15;
  stroke: #facc15;
}
.icon-star-empty{
  stroke: #facc15;
  width: 16px;
  height: 16px;
}
/* Half star wrapper */
.star-half {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
}

/* both SVGs sit on top of each other */
.star-half svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
}

/* bottom layer: outline only */
.star-outline {
  fill: none;
  stroke: #facc15;
}

/* top layer: filled, but clipped to left half */
.star-fill {
  fill: #facc15;
  stroke: #facc15;
  clip-path: inset(0 50% 0 0); /* top right bottom left */
}



/*  */
.rating-count {
  font-size: 0.875rem;
  color: #e5e7eb;
}

.hero-students {
  font-size: 0.9rem;
  color: #d1d5db;
}

.hero-instructor {
  /* flex items-center gap-3 */
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-custom {
  width: 3rem;  /* w-12 */
  height: 3rem; /* h-12 */
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-name {
  margin: 0 !important;
  font-weight: 600;
  color: white !important;
}

.instructor-title {
  margin: 0!important;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Main Layout */
.main {
  /* py-8 */
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.grid {
  /* grid grid-cols-1 lg:grid-cols-3 gap-8 */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.main-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}
.main-right{
  height: 100%;
}


/* Right column base */


/* Desktop: make the inner wrapper sticky (Tempo-style) */
@media (min-width: 1024px) {
  .sidebar-custom {
    position: sticky;
    top: 1rem; 
  }
}

/* Mobile/tablet: sidebar-custom is not sticky */
@media (max-width: 1023px) {
  .sidebar-custom {
    position: static;
  }
}

/* Card */
.card-custom {
  /* bg-card border rounded-xl */
  background-color: var(--foreground);
  border-radius: 0.75rem!important;     /* slightly larger to match shadcn card */
  border: 1px solid #e5e7eb;  /* border-gray-200 */
  overflow: hidden;
}

.card-content {
  padding: 1.5rem; /* p-6 */
}

.card-content--no-padding {
  padding: 0;
}

.card-inner {
  padding: 1.5rem;
}

/* Section Titles */
.section-title {
  margin: 0 0 1rem;
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
}

.section-subtitle {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #4b5563; /* text-gray-600 */
}

/* What you'll learn */
.learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem; /* gap-3 */
}

@media (min-width: 768px) {
  .learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.learn-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.875rem;
  color:  var(--copy);
}

.icon-check {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  stroke: #16a34a; /* text-green-600 */
}

/* Curriculum */
.curriculum {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.curriculum-section {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.curriculum-header {
  /* flex items-center justify-between p-4 hover:bg-gray-50 */
  width: 100%;
  padding: 1rem;
  background-color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
}

.curriculum-header:hover {
  background-color: var(--background);
}

.curriculum-header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.curriculum-title {
  margin: 0;
  font-weight: 600;
}

.curriculum-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: left;
}

.icon-chevron {
  width: 18px;
  height: 18px;
}

.icon-chevron-up {
  display: none;
}

.curriculum-section.expanded .icon-chevron-up {
  display: inline-block;
}

.curriculum-section.expanded .icon-chevron-down {
  display: none;
}

.curriculum-lessons {
  padding: 0 1rem 1rem;
  display: none;
}

.curriculum-lesson {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 2rem;
  font-size: 0.875rem;
  color: var(--copy);
}

.icon-play {
  width: 16px;
  height: 16px;
  stroke: #9ca3af;
}

/* Requirements */
.requirements {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.875rem;
}

.requirements li + li {
  margin-top: 0.4rem;
}

/* Description */
.description {
  font-size: 0.9rem;
  color: var(--copy);
  line-height: 1.6;
  white-space: pre-wrap;
}

.description p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* approximates line-clamp-6 */
.description.collapsed {
  max-height: 10.5rem;
  overflow: hidden;
}

.btn-link {
  margin-top: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  color: #4f46e5;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Reviews */
.review {
  display: flex;
  gap: 0.75rem;
}

.review-body {
  flex: 1;
  color: var(--copy)!important;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.review-name {
  margin: 0  !important;
  font-weight: 600;
  color: var(--copy)!important;
}

.review-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.review-stars {
  display: flex;
  gap: 0.1rem;
  margin-bottom: 0.4rem;
}

.review-text {
  margin: 0 0 0.6rem !important;
  font-size: 0.9rem;
  color: var(--copy) !important;
}

.review-actions {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  color: #4b5563;
  cursor: pointer;
}

.review-btn:hover {
  color: #111827;
}

.icon-thumb {
  width: 16px;
  height: 16px;
}

.divider {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

/* sidebar-custom / Video */
.video-preview {
  position: relative;
  width: 100%;
  background-color: #111827;
  border-top-left-radius: 0.75rem!important;
  border-top-right-radius: 0.75rem!important;
}

.video-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-play-large {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  stroke: #111827;
}

.video-preview-text {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

/* Pricing & Tabs */
.pricing {
  margin-bottom: 1rem;
}

.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.price-current {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--copy);
}

.price-original {
  font-size: 1.1rem;
  color: var(--copy-lighter);
  text-decoration: line-through;
}

.price-discount {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c !important;
}

.tabs {
  margin-bottom: 1rem;
}

.tabs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.tab-trigger {
  padding: 0.5rem 0.75rem;
  border: none;
  background-color: #f9fafb;
  font-size: 0.9rem;
  cursor: pointer;
}

.tab-trigger.active {
  background-color: #4f46e5;
  color: #ffffff;
}

.tab-content {
  display: none;
  margin-top: 0.75rem;
}

.tab-content.active {
  display: block;
}

.tabs-text {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
}

/* Buttons */
.btn-primary-custom,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem!important;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-block {
  width: 100%;
}

.btn-primary-custom {
  background-color: #7c3aed; /* bg-purple-600 */
  color: #ffffff;
}

.btn-primary-custom:hover {
  background-color: #6d28d9; /* hover:bg-purple-700 */
}

.btn-outline {
  background-color: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.btn-outline:hover {
  background-color: #f3f4f6;
}

.guarantee-text {
  text-align: center;
  font-size: 0.8rem;
  color: #4b5563;
  margin: 0 0 1rem;
}

/* Includes */
.includes-title {
  margin: 0 0 0.5rem!important;
  font-size: 0.9rem!important;
  font-weight: 600!important;
  color: var(--copy)!important;
}

.includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #374151;
}

.includes-list li + li {
  margin-top: 0.3rem;
}
.includes-list li{
  color: var(--copy);

}

/* Related Courses */
.related {
  margin-top: 3rem; /* mt-12 */
  padding: 0 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem; /* gap-6 */
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-card {
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.related-card:hover {
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
}

.related-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-content {
  padding-top: 1rem;
}

.related-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.related-instructor {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--copy-light);
}

.related-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.related-rating-value {
  font-size: 0.8rem;
  font-weight: 700;
}

.related-rating-stars {
  display: inline-flex;
  gap: 0.1rem;
}

.icon-star-small {
  width: 12px;
  height: 12px;
  fill: #facc15;
  stroke: #facc15;
}

.related-rating-count {
  font-size: 0.75rem;
  color: #6b7280;
}

.related-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.8rem!important;
    overflow: hidden!important;
  }
}
header{
    background-color: #111827; ;
}

/* ---------- MOBILE / SMALL SCREENS ---------- */

/* Up to ~768px (phones + small tablets) */
@media (max-width: 768px) {
  /* Hero spacing & typography */
  .hero {
    padding: 1rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem!important;           /* smaller than desktop */
    line-height: 1.25!important;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-meta {
    flex-direction: column;       /* stack rating + students */
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hero-instructor {
    margin-top: 0.75rem;
  }

  /* Main layout: single column, tighter gaps */
  .main {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr); /* force 1 column */
    gap: 1.5rem;
  }

  .main-left {
    gap: 1.25rem;
  }

  /* Cards: reduce padding on small screens */
  .card-content,
  .card-inner {
    padding: 1.25rem;
  }

  /* “What you'll learn” list: single column */
  .learn-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Curriculum lessons: a bit less indent on mobile */
  .curriculum-lesson {
    padding-left: 1.25rem;
  }

  /* Description: allow slightly more height before clamp */
  .description.collapsed {
    max-height: 12rem;
  }

  /* sidebar-custom: spacing */
  .sidebar-custom {
    position: static; /* already, but ensure not sticky on phones */
  }

  .pricing-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Buttons: a little taller on touch devices */
  .btn-primary-custom,
  .btn-outline {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
}

/* Really small phones (~360px and below) */
@media (max-width: 400px) {
  .container {
    padding-left: 0.75rem!important;
    padding-right: 0.75rem!important;
  }

  .hero-title {
    font-size: 1.55rem!important;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .price-current {
    font-size: 1.5rem;
  }
}

button:focus{
  outline: none  !important;
}

/* fixing app.css shit */

h1,h2,h3,h4,h5{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--copy);
}
span,p{
  line-height: 1.2;
}
button{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;


}

.hero .container{
  margin-top: 5rem;
}

/* testttt  LATESTT */
[dir] p.section-subtitle {
  color:  var(--copy) !important;
}
[dir] p.curriculum-title{
  color:  var(--copy)!important;
      margin-bottom: 0!important;
}
.trailer-video{
  width: 100%;
}
.file-size{
  margin-left:auto;
  margin-right: 1rem;
}