/* SECTION CERTIFICATION */
.certification {
  padding: 100px 0;
  background-color: #f8f9fa;
  position: relative;
  /* overflow: hidden; Removed to allow content to flow */
  /* height: calc(100vh - 120px); Removed to allow content to flow */
  display: flex;
  align-items: center;
}

.certification-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.certification .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.certification-image {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* height: calc(100vh - 120px); Removed to allow content to flow */
}

.certification-image img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.certification-content {
  padding: 40px;
}

.certification-title {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-bold);
  font-size: 36px;
  color: var(--color-black-default);
  margin-bottom: 20px;
  line-height: 1.3;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.certification-description {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* Styling for HTML elements within certification description */
.certification-description ul,
.certification-description ol {
  margin: 10px 0;
  padding-left: 25px;
}

.certification-description li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.certification-description strong {
  font-weight: var(--font-weight-bold);
  color: var(--color-black-default);
}

.certification-description em {
  font-style: italic;
}

.certification-description p {
  margin-bottom: 12px;
}

.certification-description p:last-child {
  margin-bottom: 0;
}

.certification-description br {
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 991px) {
  .certification {
    height: auto;
    min-height: 100vh;
    padding: 60px 0;
  }

  .certification-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .certification-description {
    font-size: 15px;
  }

  .certification-image {
    margin-bottom: 0;
    padding: 0;
    height: 50vh;
  }

  .certification-image img {
    height: 100%;
  }

  .certification-content {
    padding: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .certification {
    padding: 40px 0;
    min-height: auto;
  }

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

  .certification-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .certification-image {
    height: 40vh;
  }

  .certification-image img {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .certification {
    padding: 30px 0;
    min-height: auto;
  }

  .certification-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .certification-description {
    font-size: 13px;
  }

  .certification-image {
    height: 35vh;
  }

  .certification-image img {
    height: 100%;
    border-radius: 0;
  }

  .certification-content {
    padding: 15px;
  }
}