/* navbar */
.nav-link.active {
  color: #070707 !important;
  border-bottom: 2px solid #b71c1c;
}

.dropdown-item.active {
  background-color: #e0f7fa;
  color: #b71c1c !important;
  font-weight: 600;
}

/* Untuk aktifnya link dropdown */
.nav-link.active,
.dropdown-toggle.active {
  border-bottom: 2px solid #b71c1c;
}

/* card about */
.trainer-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trainer-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Untuk video di dalam modal */
#modalVideo {
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
  margin: auto;
  display: block;
}

.modal-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
}

/* Untuk video di section (preview) */
.video-preview {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-preview:hover {
  transform: scale(1.02);
}

/* Responsive layout 2 kolom */
.video-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.video-thumbnail {
  flex: 1 1 100px;
}

.video-description {
  flex: 1 1 100px;
}

@media (max-width: 768px) {
  .video-item {
    flex-direction: column;
  }
}

.img-hardskill {
  transition: transform 0.3s ease;
  display: inline-block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}
.img-hardskill:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  filter: brightness(1.1);
}

/* Gallery */
.gallery-item {
  aspect-ratio: 4 / 3; /* Atau coba 1 / 1 kalau mau square */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
  border-radius: 12px;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 998;
  color: rgb(221, 83, 83);
  border: none;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  display: none; /* default hidden */
  transition: opacity 0.3s ease;
}
#scrollTopBtn:hover {
  transform: scale(1.2);
  opacity: 0.5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  border: none;
  padding: 0 5px;
}
