* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.main {
  background-color: yellow !important;
}

.header-section {
  text-align: center;
  margin-bottom: 40px;
}

.title-kader {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.subtitle {
  color: #495057;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.team-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  margin: 30px auto;
  max-width: 1600px;
  padding: 0 15px;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

.card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px 20px;
  text-align: center;
  background: #fff;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.card-position {
  color: #3498db;
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.5;
}

.card-period {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 5px;
  line-height: 1.2;
  margin-top: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}

.social-links:empty {
  margin: 0;
  padding: 0;
  display: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ecf0f1;
  color: #34495e;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background-color: #3498db;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.social-links a i {
  font-size: 1.1rem;
}

.b-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -1 !important;
  background-color: rgba(236, 240, 241, 0.5) !important;
}

.kader {
  width: 200px !important;
  height: 170px !important;
  display: block !important;
  margin: 0 auto 20px !important;
  object-fit: contain;
}

.alert {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.posyandu-menu {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 30px;
}

.posyandu-link {
  padding: 8px 16px;
  background: #0d6efd;
  color: white;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}
.posyandu-link:hover {
  background: #084298;
}

@media (max-width: 1400px) {
  .team-grid-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .team-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
    padding: 0 18px;
  }

  .card-image {
    height: 240px;
  }

  .title-kader {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .team-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
    padding: 0 16px;
  }

  .card-image {
    height: 400px;
  }

  .card-content {
    padding: 20px 15px;
  }

  .card-name {
    font-size: 1.1rem !important;
  }

  .kader {
    width: 150px !important;
    height: 130px !important;
  }

  .title-kader {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }

  .header-section {
    margin-bottom: 0;
    margin-top: 24% !important;
  }

  #fab-container {
    bottom: 200px !important;
  }
}

@media (max-width: 480px) {
  .team-grid-6 {
    grid-template-columns: 1fr;
    max-width: 360px;
    padding: 0 10px;
  }

  .social-links a {
    width: 38px;
    height: 38px;
  }

  .social-links a i {
    font-size: 1rem;
  }

  .card-content {
    padding: 18px 12px;
  }

  .card-name {
    font-size: 0.8rem;
  }

  .title-kader {
    font-size: 1.5rem;
  }
}

#fab-container {
  position: fixed !important;
  bottom: 130px !important;
  right: 10px !important;
  z-index: 999999 !important;
  pointer-events: none !important;
}

#backToTop {
  pointer-events: auto !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(0, 123, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.8) !important;

  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;

  border: 1px solid rgba(255, 255, 255, 0.2) !important;

  box-shadow:
    0 4px 12px rgba(0, 123, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;

  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) scale(0.8) !important;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    background-color 0.3s ease !important;
}

#backToTop.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

#backToTop:hover {
  background: rgba(0, 123, 255, 0.5) !important;
  color: rgba(255, 255, 255, 1) !important;
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow:
    0 8px 24px rgba(0, 123, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

@keyframes pulse-debug {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

#backToTop-debug.first-show {
  animation: pulse-debug 0.5s ease-in-out !important;
}

html,
body {
  height: auto !important;
  overflow: auto !important;
}
