* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main {
  background-color: yellow !important;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 40px;
}

.title-bpd {
  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 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.team-grid-center {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 15px;
  flex-wrap: wrap;
}

.team-grid-center .card {
  flex: 0 0 calc(25% - 19px);
  max-width: calc(25% - 19px);
}

.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.4;
  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;
}

.bpd {
  width: 210px !important;
  height: 180px !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;
}

/* ✅ Responsive Fixes */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px;
  }

  .team-grid-center .card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 720px;
    padding: 0 18px;
  }

  .team-grid-center {
    gap: 22px;
    max-width: 720px;
    padding: 0 18px;
  }

  .team-grid-center .card {
    flex: 0 0 calc(50% - 11px);
    max-width: calc(50% - 11px);
  }

  .card-image {
    height: 240px;
  }

  .title-bpd {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 480px;
    padding: 0 16px;
  }

  .team-grid-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 480px;
    padding: 0 16px;
  }

  .team-grid-center .card {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .card {
    width: 100%;
  }

  .card-image {
    height: 400px;
  }

  .card-content {
    padding: 20px 15px;
  }

  .card-name {
    font-size: 1.1rem !important;
  }

  .card-position {
    font-size: 1rem;
  }

  .bpd {
    width: 150px !important;
    height: 130px !important;
  }

  .title-bpd {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }

  .header-section {
    text-align: center;
    margin-bottom: 0;
    margin-top: 24% !important;
  }
}

@media (max-width: 480px) {
  .team-grid {
    max-width: 360px;
    padding: 0 10px;
  }

  .team-grid-center {
    max-width: 360px;
    padding: 0 10px;
  }

  .card {
    margin: 0 auto;
  }

  .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-bpd {
    font-size: 1.5rem;
  }
}
