/*-- -------------------------- -->
<---       Certifications       -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #certifications-1628 {
    padding: var(--sectionPadding);
  }
  #certifications-1628 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 4rem);
  }
  #certifications-1628 .cs-content {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #certifications-1628 .cs-title {
    max-width: 20ch;
  }
  #certifications-1628 .cs-text {
    max-width: 40rem;
    position: relative;
    z-index: 1;
  }
  #certifications-1628 .cs-text:after {
    content: "";
    width: 100%;
    height: 1px;
    margin-top: 1.5rem;
    background: var(--primary);
    opacity: 1;
    display: block;
    position: relative;
  }
  #certifications-1628 .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1rem, 2.5vw, 1.25rem);
    row-gap: clamp(1.75rem, 2.5vw, 2.5rem);
  }
  #certifications-1628 .cs-item {
    list-style: none;
    width: 100%;
    display: flex;
    grid-column: span 12;
    flex-direction: column;
    align-items: flex-start;
  }
  #certifications-1628 .cs-link {
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: default;
  }
  #certifications-1628 .cs-picture {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 1.5rem;
    background-color: #fff;
    overflow: hidden;
    display: block;
    position: relative;
  }
  #certifications-1628 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: transform .6s, opacity .3s;
  }

  #certifications-1628 .cs-h3 {
    font-size: 1.25rem;
    line-height: 1.2em;
    font-weight: 700;
    text-align: left;
    margin: 0 0 0.75rem 0;
    color: var(--headerColor);
  }
  #certifications-1628 .cs-item-text {
    font-size: 1rem;
    line-height: 1.5em;
    text-align: left;
    margin: 0 0 1.5rem 0;
    color: var(--bodyTextColor);
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #certifications-1628 .cs-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  #certifications-1628 .cs-flex {
    text-align: left;
    width: 40vw;
    max-width: 40rem;
    flex: none;
  }
  #certifications-1628 .cs-title {
    margin: 0;
  }
  #certifications-1628 .cs-text {
    padding: 0.75rem 0 0.75rem 1.5rem;
  }
  #certifications-1628 .cs-text:after {
    width: 1px;
    height: 100%;
    margin: 0 1.5rem 0 0;
    order: -1;
    position: absolute;
    left: 0;
    top: 0;
  }
  #certifications-1628 .cs-item {
    grid-column: span 6;
  }
  #certifications-1628 .cs-picture {
    height: auto;
  }
}
/* Large Desktop - 1300px */
@media only screen and (min-width: 81.25rem) {
  #certifications-1628 .cs-item {
    grid-column: span 3;
  }
}

/* ===== Card image slider (multiple certificates in one card) ===== */
#certifications-1628 .cs-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#certifications-1628 .cs-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}
#certifications-1628 .cs-slider .cs-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#certifications-1628 .cs-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--headerColor);
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, color 0.2s;
}
#certifications-1628 .cs-slide-btn:hover {
  background-color: var(--primary);
  color: #fff;
}
#certifications-1628 .cs-slide-prev {
  left: 0.5rem;
}
#certifications-1628 .cs-slide-next {
  right: 0.5rem;
}
#certifications-1628 .cs-slide-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}
#certifications-1628 .cs-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
#certifications-1628 .cs-dot.cs-active {
  background-color: var(--primary);
}