/* =============================================
   QUALIFICATIONS SHOWCASE — Facebook About style
   Drop-in replacement for the original file.
   ============================================= */

/* ---------- Section wrapper ---------- */
.qualifications-showcase {
  padding: 90px 0 60px 0;
  background: #f0f2f5;
  /* 
  radial-gradient(
      ellipse at 30% 20%,
      rgba(200, 215, 225, 0.9) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 70% 70%,
      rgba(210, 220, 215, 0.85) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(230, 225, 215, 0.95) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(190, 210, 225, 0.8) 0%,
      transparent 50%
    ),
    #c8d4da;*/
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%); 
}

/* ---------- Inner container ---------- */
.qualifications-showcase .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 ;
  display: flex;
  gap: 50px;
}

/* ---------- The card that wraps everything ---------- */
.qs-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 20px 24px 24px;
  flex: 1 1 0;
}

/* ---------- Card-level heading ---------- */
/* ---------- Sub-section (Qualifications / Registrations) ---------- */
.qs-section {
  margin-bottom: 20px;
}
/* 
.qs-section:last-child {
  margin-bottom: 0;
  margin-top: 1rem;
} */  

.qs-section-label {
   font-size: var(--section-header-font);
  font-weight: 700;
  color: var(--dark-gray, #1c1e21);
  margin: 0 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---------- Item list ---------- */
.qs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: default;
  transition: background 0.15s ease;
  border-radius: 6px;
  margin: 0 -8px;

}

.qs-item:first-child {
  padding: 20px 8px 10px;
}

.qs-item:last-child {
  border-bottom: none;
}

.qs-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* ---------- Logo thumbnail ---------- */
.qs-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qs-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qs-logo.qs-logo--circle {
  border-radius: 50%;
}

/* ---------- Text block ---------- */
.qs-text {
  min-width: 0;
  flex: 1;
}

.qs-name {
  font-size: var(--sub-header-font);
  font-weight: 600;
  color: var(--dark-gray, #1c1e21);
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-detail {
  font-size: var(--p-font);
  color: var(--gray, #65676b);
  line-height: 1.4;
  margin: 1px 0 0;
  text-wrap: nowrap;
}

.qs-reg {
  font-size: var(--p-font);
  color: var(--gray, #65676b);
  margin: 0;
  line-height: 1.5;
  margin: 1px 0 0;
}

  img {
      width: 100%;
      height: auto;
      display: block;
      padding: 0;
    }

/* ---------- Desktop: two-column grid inside each sub-section ---------- */
@media (min-width: 620px) {
  .qs-list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    column-gap: 8px;
  }

  .qs-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }


}

@media (max-width: 850px) {
  .qualifications-showcase .container {
    flex-direction: column;
  }
}
/* ---------- Single column on narrow screens ---------- */
@media (max-width: 619px) {
 
  .qs-card {
    padding: 16px;
    border-radius: 10px;
  }
/* 
  .si-card:first-child {
    padding-top: 25px;
  } */

  
  .qs-section-label {
    
    padding-bottom: 10px;
}

  .qs-logo {
    width: 36px;
    height: 36px;
  }

  .qs-item {
    gap: 10px;
    padding: 15px 8px 5px;
    padding-right: 0;
    min-height: 61.28px;
  }
}