/* Apply your root color variables */
:root {
  --heading-color: #010232;
  --sub-heading-color: #2c2e7a;
  --text-color: #333333;
  --bg-color: #f8f9fa;
  --border-color: #e54249;
  --link-color: #f5f5f5;
  --button-color: #666666;
  --hover-color: #a5181d;
}

/* Main container */
.course-review-wrap {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 2rem 0;
  font-family: 'Poppins', sans-serif;
}

.hero {
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--hover-color);
  text-decoration: none;
}

/* Header Nav */
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-actions .chip-btn {
  padding: 6px 16px;
  font-size: 14px;
  background-color: var(--button-color);
  color: #fff;
  border: none;
  border-radius: 4px;
}

.nav-actions .chip-btn-1 {
  padding: 6px 16px;
  font-size: 14px;
  background-color: var(--border-color);
    color: #fff;
  border: none;
  border-radius: 4px;
}

.nav-actions .chip-btn-2 {
  padding: 6px 16px;
  font-size: 14px;
  background-color: var(--border-color);
    color: #fff;
  border: none;
  border-radius: 4px;
}


.nav-actions .chip-btn-2:hover {
  background-color: var(--hover-color);
}

/* Grid layout for main content */
.grid.main {
  display: grid;
  grid-template-columns: 3fr 1.5fr;
  gap: 24px;
}

.crse-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}

.course-details {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

/* Preview Player */
.player {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.player .cover {
  width: 100%;
  height: auto;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--border-color);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 16px;
  cursor: pointer;
}

/* Chip styling */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 5px;
}

.chip {
  background: var(--heading-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}

/* Tabs */
.tabs {
  margin-top: 20px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 16px;
}

.tab-btn {
  background: none;
  border: none;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--heading-color);
  border-bottom: 3px solid transparent;
}

.tab-btn[aria-selected="true"] {
  border-color: var(--border-color);
  color: var(--border-color);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Accordion styles */
.acc-head {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #f1f1f1;
  cursor: pointer;
  font-weight: 600;
}

.acc-body {
  display: none;
  padding: 12px;
  background: #fff;
}

.acc-body.open {
  display: block;
}

.lesson {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.pill {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 10px;
  margin-right: 8px;
  background: var(--border-color);
  color: white;
}

.pill.lock {
  background: gray;
}

.preview-link {
  color: var(--hover-color);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
}

.cres-price {
  font-size: 20px;
  font-weight: 600;
}

.cres-price .cres-old {
  text-decoration: line-through;
  color: gray;
  font-size: 16px;
  margin-left: 8px;
}

.cres-price .cres-badge {
  background: var(--border-color);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.cta .btn {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background: var(--heading-color);
  color: white;
}

.cta .btn:hover {
  background:var(--border-color)!important;
  color: #fff!important;
}

.side-features {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.side-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.side-features li i {
  font-size: 1rem;
  color: var(--primary, #5c6ac4); 
  min-width: 20px; 
}
/* Related courses */
.related {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.crse-card {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
}

.crse-card .thumb {
  height: 150px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}


.cc-body {
  padding: 8px 0;
}

.cc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
}

.cc-meta {
  font-size: 12px;
  color: #777;
  display: flex;
  justify-content: space-between;
}

/* Instructor */
.instructor {
  display: flex;
  gap: 12px;
  align-items: center;
}

.instructor .avatar {
  width: 60px;
  height: 60px;
  background: #ddd;
  border-radius: 50%;
}

/* Responsive layout */
@media (max-width: 992px) {
  .grid.main {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .cta .btn {
    font-size: 13px;
  }

  .tab-list {
    overflow-x: auto;
  }
}
