*,
*::after,
*::before {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.credentials-section {
  min-height: 100vh;
  padding: 40px 40px 48px;
  display: flex;
  align-items: center;
}

.credentials-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.credentials-header {
  text-align: center;
  margin-bottom: 20px;
}

.credentials-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -1px;
}

.credentials-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.role-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.badge {
  padding: 8px 18px;
  border: 2px solid #FFD700;
  color: #FFD700;
  background: transparent;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.3s ease, color 0.3s ease;
}

.badge:hover {
  background: #FFD700;
  color: #000;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.cred-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cred-card:hover {
  transform: translateY(-4px);
  border-color: #FFD700;
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.12);
}

.cred-img {
  width: 100%;
  height: 100px;
  min-height: 100px;
  object-fit: cover;
  object-position: center top;
  display: block;
  vertical-align: top;
  background: #1a1a1a;
}

.cred-info {
  padding: 10px 12px;
}

.cred-title {
  font-size: 11px;
  font-weight: 700;
  color: #FFD700;
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.cred-desc {
  font-size: 10px;
  color: #888;
  margin: 0;
  line-height: 1.3;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 32px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  color: #FFD700;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .credentials-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .credentials-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .credentials-section {
    padding: 32px 20px 40px;
  }

  .credentials-title {
    font-size: 24px;
  }

  .credentials-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
    gap: 10px;
  }

  .cred-img {
    height: 80px;
  }

  .role-badges {
    flex-direction: row;
    justify-content: center;
  }
}
