.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-circle {
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-svg {
  height: 100%;
  transform: rotate(-90deg);
}

.progress-svg circle {
  fill: none;
  stroke-width: 5;
  cx: 50;
  cy: 50;
  r: 25;
}

.bg {
  stroke: #d7daf7;
}

.meter {
  stroke: var(--primary-color);
  stroke-linecap: round;
  stroke-dasharray: 264; /* 2πr ≈ 2 × 3.14 × 42 */
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
}
.position-unset {
  position: unset !important;
}
.card-radio {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 2px solid #cbd6e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;

  .card-content {
    flex: 1;
  }

  .card-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
  }

  .radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd6e0;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;

    &::after {
      content: "";
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: white;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      transition: transform 0.3s ease;
    }
  }

  &.selected {
    background: #5c5bc0;
    border-color: #5c5bc0;
    animation: cardPop 0.4s ease;

    .card-title {
      color: white;
    }

    .radio-circle {
      background: white;
      border-color: white;

      &::after {
        background: #5c5bc0;
        transform: translate(-50%, -50%) scale(1);
      }
    }

    .option-label {
      background: white;
      color: #5c5bc0;
    }
  }
}

@keyframes cardPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.option-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5c5bc0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;

  &.selected {
    background: white;
    color: #5c5bc0;
  }
}
.outer-tab.active {
  color: var(--primary-color) !important;
}
.outer-tab:hover {
  border: 0;
  color: black;
  scale: unset;
}

/* Content Section - Two Columns */
.content-section {
  display: flex;
  gap: 0;
  min-height: 500px;
}

/* Left Side - Topics List */
.topics-sidebar {
  width: 580px;
  background: white;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  /* max-height: calc(100vh - 450px); */
}

.topics-section {
  padding: 20px;
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.topic-item:hover {
  background-color: var(--primary-lightest-color);
  border-color: var(--primary-color);
}

.topic-item.active {
  background-color: var(--primary-lightest-color);
  border: 2px solid var(--primary-color);
}

.topic-thumbnail {
  width: 150px;
  height: 70px;
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 12px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}

/* Right Side - Overview */
.overview-section {
  flex: 1;
  background: white;
  padding: 30px;
  overflow-y: auto;
}

.overview-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.overview-content {
  color: #444;
  line-height: 1.8;
  font-size: 15px;
}

.overview-content h3 {
  color: var(--primary-color);
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.overview-content p {
  margin-bottom: 15px;
}

.overview-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.overview-content li {
  margin-bottom: 8px;
}

.no-selection {
  text-align: center;
  color: #999;
  padding: 60px 20px;
}

.no-selection i {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 20px;
}

/* Scrollbar Styling */
.topics-sidebar::-webkit-scrollbar,
.overview-section::-webkit-scrollbar {
  width: 8px;
}

.topics-sidebar::-webkit-scrollbar-track,
.overview-section::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.topics-sidebar::-webkit-scrollbar-thumb,
.overview-section::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.topics-sidebar::-webkit-scrollbar-thumb:hover,
.overview-section::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.word-clamp-3 {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .content-section {
    flex-direction: column;
  }

  .topics-sidebar {
    width: 100%;
    max-height: 400px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .overview-section {
    min-height: 300px;
  }
}
