.teacher__item {
   text-align: center;
   transition: all .25s ease;
   outline: 1px solid transparent;
   outline-offset: -1px;
   overflow: hidden;
   cursor: pointer;
}

.teacher__item:hover {
   background: #ffffff;
   outline-color: #2b4eff;
}

.teacher__thumb {
   overflow: hidden;
   position: relative;
}

.teacher__thumb img {
   display: block;
   width: 100%;
   height: auto;
   transition: transform .4s ease;
   will-change: transform;
}

.teacher__item:hover .teacher__thumb img {
   transform: scale(1.08);
}

.teacher__title-link {
   cursor: pointer;
   transition: color .25s;
   display: inline-block;
   color: inherit;
   text-decoration: none;
}

.teacher__title-link:hover {
   color: #2b4eff;
}

.modal-guru {
   position: fixed;
   inset: 0;
   z-index: 9999;
   background: rgba(0, 0, 0, .55);
   display: none;
   align-items: center;
   justify-content: center;
   padding: 20px;
}

.modal-guru.show {
   display: flex;
   animation: fadeInModal .25s ease;
}

@keyframes fadeInModal {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

.modal-guru__box {
   background: #fff;
   border-radius: 12px;
   width: 100%;
   max-width: 640px;
   max-height: 90vh;
   overflow-y: auto;
   position: relative;
   box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
   animation: slideUpModal .3s ease;
}

@keyframes slideUpModal {
   from {
      transform: translateY(30px);
      opacity: 0;
   }

   to {
      transform: translateY(0);
      opacity: 1;
   }
}

.modal-guru__close {
   position: absolute;
   top: 12px;
   right: 12px;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: #f5f5f5;
   border: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 16px;
   color: #666;
   transition: all .2s;
   z-index: 2;
}

.modal-guru__close:hover {
   background: #dc3545;
   color: #fff;
}

.modal-guru__header {
   background: linear-gradient(135deg, #f9fdf6 0%, #eef7e6 100%);
   padding: 40px 30px 30px;
   text-align: center;
   border-radius: 12px 12px 0 0;
   border-bottom: 1px solid #e8e8e8;
}

.modal-guru__foto {
   width: 160px;
   height: 160px;
   border-radius: 10px;
   border: 5px solid #fff;
   box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
   object-fit: cover;
   margin-bottom: 15px;
   background: #fff;
}

.modal-guru__nama {
   font-size: 22px;
   font-weight: 700;
   color: #333;
   margin: 0 0 6px;
}

.modal-guru__jabatan {
   display: inline-block;
   padding: 4px 14px;
   background: #2b4eff;
   color: #fff;
   border-radius: 20px;
   font-size: 12px;
   font-weight: 600;
   letter-spacing: .5px;
}

.modal-guru__body {
   padding: 25px 30px;
}

.modal-guru__row {
   display: flex;
   align-items: flex-start;
   padding: 12px 0;
   border-bottom: 1px dashed #eee;
   font-size: 14px;
   gap: 15px;
}

.modal-guru__row:last-child {
   border-bottom: none;
}

.modal-guru__label {
   width: 140px;
   flex-shrink: 0;
   color: #888;
   font-weight: 600;
   text-align: right;
}

.modal-guru__value {
   flex: 1;
   color: #333;
   word-break: break-word;
   line-height: 1.6;
}

@media (max-width: 575px) {
   .modal-guru__row {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      padding: 14px 0;
   }

   .modal-guru__label {
      width: auto;
      text-align: left;
      color: #999;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .5px;
      font-weight: 700;
   }

   .modal-guru__value {
      width: 100%;
      font-size: 15px;
      color: #222;
      padding-left: 0;
   }

   .modal-guru__body {
      padding: 20px 22px;
   }

   .modal-guru__header {
      padding: 30px 20px 25px;
   }

   .modal-guru__foto {
      width: 120px;
      height: 120px;
   }

   .modal-guru__nama {
      font-size: 18px;
   }

   .modal-guru__box {
      max-width: 100%;
      max-height: 95vh;
   }
}

.modal-guru__value.empty {
   color: #ccc;
   font-style: italic;
}

.modal-guru__sinopsis {
   padding: 15px 18px;
   background: #f9f9f9;
   padding: 15px 18px;
   background: #f9f9f9;
   border-left: 3px solid #2b4eff;
   border-radius: 6px;
   font-size: 16px;
   line-height: 1.7;
   color: #555;
   margin-top: 5px;
   white-space: pre-line;
   max-height: 200px;
   overflow-y: auto;
}