
/* ✅ same grid like main */
.page-2col{
  display:grid;
  grid-template-columns: 1fr var(--sideW);
  gap: 60px;
  align-items:start;
}

/* ===== HERO FULL WIDTH BG (#f6f5ff) like screenshot ===== */
.author-hero{
  position: relative;
  padding: 0 0 50px;
  z-index: 1;
}

/* full-bleed background */
.author-hero::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  z-index:-1;
}

/* LEFT */
.author-kicker{
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 700;
  color:#2d2f31;
  margin-bottom: 10px;
}

.author-name{
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 8px;
  color:#111;
}

.author-role{
  font-size: 16px;
  color:#2d2f31;
  font-weight: 500;
  margin-bottom: 26px;
}

/* stats */
.author-stats{
  display:flex;
  gap: 54px;
  margin: 0 0 26px;
}

.author-stat-num{
  font-weight: 800;
  font-size: 18px;
  color:#111;
  margin-bottom: 2px;
}
.author-stat-label{
  font-size: 13px;
  color:#2d2f31;
  opacity: .9;
}

/* about */
.author-about-title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color:#111;
}
.author-about-sub{
  font-size: 14px;
  color:#2d2f31;
  opacity: .85;
  margin-bottom: 18px;
}

/* ===== Show more system (same behavior as your main) ===== */
.desc-wrap{
  position: relative;
  max-width: 820px;
}

.desc-content{
  max-height: 180px;
  overflow: hidden;
  transition: max-height .25s ease;
}

.desc-fade{
  position:absolute;
  left:0; right:0;
  bottom: 25px;
  height:72px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events:none;
}

.desc-more-btn{
  color: var(--brand);
  font-weight: 800;
  border-radius: 10px;
  padding-left:0;
  outline: 0;
  border:0;
  background:transparent;
}

.desc-more-btn i{
  transition: transform .2s ease;
}

.desc-wrap.is-open .desc-content{
  max-height: 2000px;
}
.desc-wrap.is-open .desc-fade{
  display:none;
}

/* RIGHT card */
.author-card{
  background:#fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  padding: 28px 22px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 18px;
}
.author-side{
  position: relative;
  z-index: 100;
  top:40px;
}
.author-avatar{
  width: 100px;
  height: 100px;
  border-radius: 999px;
  overflow:hidden;
  background:#f1f1f1;
}

.author-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.author-social{
  display:flex;
  gap: 14px;
  padding: 10px;
}

.author-social-btn{
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #6d28d2;
  color:#6d28d2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  text-decoration:none;
  background:#fff;
}

.author-social-btn:hover{
  background: rgba(109,40,210,.06);
}

/* ===== Responsive like your screenshot ===== */
@media (max-width: 991.98px){
    .author-hero{
        overflow:hidden;
    }
  .page-2col{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .author-hero{
    padding: 0 0 20px;
  }

  .author-name{
    font-size: 34px;
  }

  /* card on mobile: full width and centered */
  .author-card{
    width: 100%;
    max-width: 420px;
    margin: 10px auto 8px;
    padding:20px 10px;
  }

  /* stats stacked like screenshot mobile */
  .author-stats{
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
  }
}

/* smaller phones */
@media (max-width: 575.98px){
  .author-name{ font-size: 32px; }
}

/* ===== AUTHOR HEADER (ONLY TITLE AREA) ===== */
.author-head{
  position: relative;
  padding: 32px 0 26px;
  margin-bottom: 28px;
  z-index: 1;
}

/* full-bleed background giống CoursePerks */
.author-head::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-70vw;
  background:#f6f5ff;
  z-index:-2;
}

@media (max-width: 991.98px){
  .author-head{
    padding: 22px 0 18px;
    margin-bottom: 20px;
  }
}

#moreCourses{
  margin-top:50px;
}

.mc-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mc-card{
  border:1px solid #d1d7dc;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  transition: box-shadow .2s ease, transform .2s ease;
  padding: 15px;
  text-decoration: none;
}

.mc-card:hover{
  background: #f6f7f9;
}

.mc-thumb{
  background:#f7f9fa;
}
.mc-thumb img{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
  border-radius: 5px;
}

.mc-body{
  padding:14px 0 0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.mc-title h3{
  font-size:16px;
  font-weight:800;
  color:var(--colorText);
  text-decoration:none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 3em; 
}

.mc-sub{
  font-size:.95rem;
  color:var(--colorText);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 3em; 
}

.mc-author{
  font-size:.85rem;
  color:#6a6f73;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 1em; 
}

.mc-price{
  margin-top:8px;
  font-weight:800;
  font-size:1.05rem;
  color:var(--colorText);
  display:flex;
  align-items:center;
  gap: 10px;
  white-space: nowrap;

}

.price-current{
  font-size: 1rem;
  font-weight: 800;
  color:#1c1d1f;
}

/* Giá cũ */
.price-old{
  font-size: .85rem;
  color:#6a6f73;
  text-decoration: line-through;
  font-weight: normal;
}

/* % giảm */
.price-off{
  font-size: .9rem;
  font-weight: 700;
  color:#1e8e3e;
}



/* Responsive */
@media (max-width: 991.98px){
  .mc-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px){
  .mc-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px){
  .course-content-head{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .course-content-expandall{
    align-self: flex-start; /* không bị đẩy sang phải */
  }
}


/* Wrapper */
.mc-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:22px;
  user-select:none;
}

/* Link/Span chung */
.mc-pagination .page-numbers{
  border-radius: 5px;
  width: 30px;
  height: 30px;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  line-height:1;
  color:#6d28d9;                 /* tím */
  padding:6px 4px;
  min-width:18px;
}

/* Current: gạch dưới */
.mc-pagination .page-numbers.current{
  pointer-events:none;
}

.mc-pagination .page-numbers.current::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-10px;
  width:16px;
  height:2px;
  border-radius:2px;
  background:#6d28d9;
}

/* Dots */
.mc-pagination .page-numbers.dots{
  pointer-events:none;
  padding:0;
  min-width:auto;
}

/* Prev/Next: vòng tròn */
.mc-pagination .page-numbers.prev,
.mc-pagination .page-numbers.next{
  width:42px;
  height:42px;
  min-width:42px;
  padding:0;
  border-radius:999px;
  border:1.5px solid rgba(109,40,217,.45);
  color:#6d28d9;
}

/* Icon (‹ ›) to hơn chút */
.mc-pagination .page-numbers.prev,
.mc-pagination .page-numbers.next{
  font-size:12px;
}

/* Hover */
.mc-pagination a.page-numbers:hover{
  background:rgba(109,40,217,.08);
}

/* Disabled (nếu bạn có class is-disabled) */
.mc-pagination .is-disabled{
  opacity:.35;
  pointer-events:none;
}

/* Loading state (nếu có) */
.mc-pagination.is-loading{
  opacity:.6;
  pointer-events:none;
}

