.topics-lead{
  color: #6c757d;
  font-size: 18px;
  line-height: 1.6;
  max-width: 760px;
}

.topic-card-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.topic-card{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.topic-card-body{
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.topic-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: rgba(25,135,84,.35);
}

.topic-card-link:hover .topic-card{
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.10);
}

.topic-card-image-wrap{
  overflow: hidden;
}

.topic-card-image{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.topic-card-link:hover .topic-card-image{
  transform: scale(1.03);
}


.topic-card-title{
  font-weight: 700;
  line-height: 1.3;
}

.topic-card-text{
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
}

.topic-badge{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 10px;
  white-space: nowrap;
}


.topic-card-footer{
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.topic-readmore{
  font-size: 14px;
  font-weight: 600;
  color: #198754;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topic-arrow{
  transition: transform .18s ease;
}

.topic-card-link:hover .topic-arrow{
  transform: translateX(2px);
}

/* Favorite */
.favorite-btn{
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #adb5bd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: .2s ease;
}

.favorite-btn:hover{
  background: #f8f9fa;
  color: #dc3545;
}

.favorite-btn.active{
  color: #dc3545;
}

.favorite-btn i{
  font-size: 18px;
}

.favorite-btn.active{
  transform: scale(1.1);
}

/* TABS */
.topics-tabs{
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: #f8f9fa;
  border-radius: 999px;
}

.topics-tab{
  border: none;
  background: transparent;
  color: #6c757d;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: .2s ease;
}

.topics-tab:hover{
  color: #212529;
}

.topics-tab.active{
  background: #198754;
  color: #fff;
}


.favorite-btn{
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #adb5bd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: .2s ease;
  flex-shrink: 0;
}

.favorite-btn:hover{
  background: #f8f9fa;
  color: #dc3545;
}

.favorite-btn.active{
  color: #dc3545;
}

.favorite-btn i{
  font-size: 18px;
  line-height: 1;
}

.favorites-empty{
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed rgba(0,0,0,.12);
  border-radius: 20px;
  background: #fcfcfc;
  margin-bottom: 20px;
}

.favorites-empty-icon{
  font-size: 32px;
  line-height: 1;
  color: #adb5bd;
  margin-bottom: 12px;
}

/* For topic progress */
.with-progress{
  position: relative;
  top: -10px;
  padding-bottom: 0px;
}


.with-progress.is-hidden{
  display: none;
}

.progress-underline{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 85%;
  height: 3px;
  background: #edf0f2;
  border-radius: 999px;
  overflow: hidden;
}

.progress-underline-fill{
  height: 100%;
  width: 0;
  background: #198754;
  border-radius: 999px;
  transition: width .3s ease;
}


.topic-card-footer {
    display: flex;
    align-items: center;
}

.topic-readmore {
    margin-left: auto;
}

.topic-vocab-btn {
  font-size: 14px;
  
    /* margin-top: 3px; */
}


.topic-vocab-btn{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #adb5bd;
  text-decoration: none;
}

.topic-vocab-btn:hover{
  color: #198754;
}