.credentials-hero {
  padding: 48px 20px 36px;
}

.credentials-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.credentials-hero__title {
  font-size: 1.8rem;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.credentials-hero__desc {
  font-size: 15px;
  line-height: 1.8;
  color: #3e3e3e;
  text-align: justify;
}

/* --- Outer wrapper --- */
.cred-outer {
  width: 90%;
  margin: 36px auto;
}

/* --- Per-group section --- */
.cred-group {
  margin-bottom: 40px;
}

.cred-group__heading {
  text-align: center;
  margin-bottom: 20px;
}

.cred-group__heading h2 {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: #1a3d1f;
  padding: 6px 24px;
  border-bottom: 3px solid #4caf50;
}

/* --- Image grid --- */
.cred-group__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

/* --- Individual image card --- */
.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.cred-item:hover {
  transform: translateY(-3px);
}

.cred-item__photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
}

.cred-item:hover .cred-item__photo {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cred-item__label {
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #444;
  text-align: center;
  width: 100%;
  line-height: 1.4;
}

/* --- Lightbox overlay --- */
.cred-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  cursor: pointer;
}

/* --- Lightbox container --- */
.cred-lightbox {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
}

.cred-lightbox__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  z-index: 10001;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.cred-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* --- Videos section --- */
.cred-videos {
  width: 90%;
  margin: 0 auto 48px;
}

.cred-videos__inner {
  border-radius: 8px;
  overflow: hidden;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .cred-group__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .cred-outer {
    width: 95%;
  }

  .cred-group__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cred-item__photo {
    height: auto;
  }

  .credentials-hero__title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .cred-group__grid {
    grid-template-columns: 1fr;
  }
}