/* ===== INSTRUCTORS SHARED ===== */

/* ===== INSTRUCTORS FILTER ===== */
.instructors-filter {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.instructors-filter-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: #1f488a;
  color: #1f488a;
}
.filter-btn.active {
  background: #1f488a;
  border-color: #1f488a;
  color: #fff;
}

/* ===== INSTRUCTORS LIST ===== */
.instructors-wrap {
  background: #f8fafc;
  padding: 40px 0 60px;
  min-height: 500px;
}
.instructors-container {
  max-width: 1200px;
  margin: 0 auto;
}
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== INSTRUCTOR CARD ===== */
.instructor-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.instructor-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-5px);
}
.instructor-avatar {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instructor-info {
  padding: 20px;
}
.instructor-name {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.instructor-title {
  font-size: 14px;
  color: #1f488a;
  margin-bottom: 10px;
}
.instructor-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.instructor-tags .tag {
  background: #f0f6ff;
  color: #1f488a;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
}
.instructor-tags .tag.pink {
  background: #fff0f5;
  color: #d63384;
}
.instructor-tags .tag.green {
  background: #f0fff0;
  color: #198754;
}
.instructor-tags .tag.purple {
  background: #f8f0ff;
  color: #6f42c1;
}
.instructor-tags .tag.orange {
  background: #fff8f0;
  color: #fd7e14;
}
.instructor-tags .tag.teal {
  background: #f0ffff;
  color: #20c997;
}
.instructor-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  overflow: hidden;
  padding: 5px 0 16px 0;
  border-bottom: 1px solid #eee;
}
.instructor-stats {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}
.stat {
  text-align: center;
  flex: 1;
}
.stat-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1f488a;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.instructor-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #1f488a;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.instructor-btn:hover {
  background: #2a5fa8;
}

/* ===== INSTRUCTOR DETAIL ===== */
.instructor-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}
.instructor-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.detail-profile {
  display: flex;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 0px solid #eee;
  margin-bottom: 30px;
}
.profile-avatar {
  width: 230px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #333;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.profile-info {
  flex: 1;
}
.profile-name {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.profile-title {
  font-size: 16px;
  color: #1f488a;
  margin-bottom: 15px;
  border-bottom: 1px #ccc dashed;
  padding-bottom: 10px;
}
.profile-tags {
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 16px;
}
.profile-tags p{
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 15px;
}
.profile-tags h2 {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 5px;
}
.section-icon {
  font-size: 16px;
}
.profile-contact {
  display: flex;
  gap: 12px;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f6ff;
  color: #1f488a;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
}
.contact-icon {
  font-size: 16px;
}
.detail-section {
  margin-bottom: 30px;
}
.detail-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-icon {
  font-size: 20px;
}
.detail-section > p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
}
.detail-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}
.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.feature-text strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 12px;
  color: #888;
  margin-bottom: 0;
}
.detail-honors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.honor-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #fffbf0;
  border-radius: 8px;
  border-left: 3px solid #ffd700;
}
.honor-year {
  font-size: 14px;
  font-weight: 600;
  color: #ffd700;
  min-width: 50px;
}
.honor-name {
  font-size: 14px;
  color: #666;
}
.detail-reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item {
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  background: #1f488a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}
.review-info {
  flex: 1;
}
.review-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.review-course {
  display: block;
  font-size: 12px;
  color: #999;
}
.review-rating {
  color: #ffd700;
  font-size: 14px;
}
.review-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.back-list {
  color: #1f488a;
  font-size: 14px;
}
.apply-btn {
  display: inline-block;
  background: #1f488a;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.apply-btn:hover {
  background: #2a5fa8;
}

/* ===== SIDEBAR ===== */
.instructor-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sidebar-stats {
  background: linear-gradient(135deg, #1f488a 0%, #2a5fa8 100%);
}
.stats-header {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stats-item {
  text-align: center;
  background: rgba(255,255,255,0.1);
  padding: 10px 10px;
  border-radius: 8px;
}
.stats-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.stats-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}
.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 12px;
  border-bottom: 2px solid #1f488a;
  margin-bottom: 16px;
}
.sidebar-course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s;
}
.sidebar-course-item:hover {
  background: #eee;
}
.sidebar-course-name {
  display: block;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.sidebar-course-price {
  display: block;
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 2px;
}
.sidebar-course-arrow {
  color: #999;
  font-size: 16px;
}
.sidebar-teacher-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-teacher-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s;
}
.sidebar-teacher-item:hover {
  background: #eee;
}
.sidebar-teacher-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.teacher-info {
  flex: 1;
}
.teacher-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.teacher-title {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.sidebar-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
   text-align: center;
}


.sidebar-contact p {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.contact-tel {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1f488a;
  margin-bottom: 16px;
}
.contact-btn {
  display: inline-block;
  background: #fff;
  color: #1f488a;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 2px #1f488a solid;
}
.contact-btn:hover {
  background: #f0f0f0;
}

/* ===== RESPONSIVE <960px ===== */
@media (max-width: 960px) {
  .instructors-wrap{
    padding: 30px 0;
  }
  .instructors-container{
    padding: 0 3%;
  }
  .instructors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .instructors-filter-box {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .instructor-detail-layout {
    grid-template-columns: 1fr;
  }
  .instructor-detail-sidebar {
    order: 2;
  }
  .instructor-detail-card {
    padding: 20px;
  }
  .detail-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0px;
  }
  .profile-avatar {
    width: 150px;
  }
  .profile-name {
    font-size: 24px;
  }
  .profile-tags {
    justify-content: center;
  }
  .profile-contact {
    justify-content: center;
  }
  .detail-features {
    grid-template-columns: 1fr;
  }
  .detail-actions {
    flex-direction: column;
    gap: 16px;
  }
  .apply-btn {
    width: 100%;
    text-align: center;
  }
}
