/* ===== GURU CAROUSEL ===== */
.teacher-carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

.teacher-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.teacher-carousel::-webkit-scrollbar {
  display: none;
}

.teacher-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-align: center;
  position: relative;
}

.teacher-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.teacher-card:nth-child(2) { border-color: var(--yellow-light); }
.teacher-card:nth-child(3) { border-color: var(--green-light); }
.teacher-card:nth-child(4) { border-color: var(--pink-light); }
.teacher-card:nth-child(2):hover { border-color: var(--yellow-dark); }
.teacher-card:nth-child(3):hover { border-color: var(--green); }
.teacher-card:nth-child(4):hover { border-color: var(--pink); }

.teacher-card::after {
  content: 'Klik untuk profil lengkap';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.teacher-card:hover::after {
  opacity: 1;
}

.teacher-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--blue-light);
  position: relative;
}

.teacher-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s, filter .3s;
}

.teacher-card:hover .teacher-media img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.teacher-body {
  padding: 20px;
}

.teacher-body h3 {
  color: var(--blue-dark);
  font-size: 1.18rem;
  transition: color .3s;
}

.teacher-card:hover .teacher-body h3 {
  color: var(--blue);
}

.teacher-role {
  color: var(--red);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 12px;
}

.teacher-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.teacher-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  transition: .25s;
}

.teacher-social a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px) rotate(-6deg);
}

/* Navigation Buttons */
.teacher-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--yellow);
  color: var(--blue-dark);
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(255, 203, 43, 0.4);
  transition: all .3s;
}

.teacher-nav:hover {
  background: var(--yellow-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 203, 43, 0.6);
}

.teacher-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.teacher-nav svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-nav-prev {
  left: 0;
}

.teacher-nav-next {
  right: 0;
}

.teacher-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .teacher-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 240px;
  }
}

@media (max-width: 860px) {
  .teacher-carousel-wrapper {
    padding: 0 50px;
  }
  
  .teacher-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 220px;
  }
  
  .teacher-nav {
    width: 44px;
    height: 44px;
  }
  
  .teacher-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 620px) {
  .teacher-carousel-wrapper {
    padding: 0 40px;
  }
  
  .teacher-card {
    flex: 0 0 calc(100% - 8px);
    min-width: 200px;
  }
  
  .teacher-nav {
    width: 40px;
    height: 40px;
  }
}