/* start your code from here  */

.heroContainer {
  margin-top: -82px;
}

.heroImg {
  max-height: 65vh;
  min-height: 70vh;
  object-fit: cover;
  width: 100%;
  filter: brightness(0.4);
}

.heroContainer {
  position: relative;
  width: 100%;
}

.certificateOverview {
  position: absolute;
  background: #234b6466;
  width: 50%;
  padding: 3rem;
  color: white;
  border-radius: 36px;
  margin: auto;
  bottom: 0;
  height: fit-content;
  top: 0;
  backdrop-filter: blur(7px);
}
.certificate {
  margin-bottom: 1rem;
}

.certificateDetail {
  display: flex;
  align-items: center;

  justify-content: center;
  gap: 4rem;
}

.affilitationlogo {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.main-pyma {
  margin-top: 100px;
}

.main-kcci {
  padding: 50px 0px;
  margin: 100px 0px;
}

.bgCertificate {
  background-color: #daccb2;
}

.row_reverse {
  flex-direction: row-reverse;
  column-gap: 2rem;
}
.justify {
  text-align: justify;
}
.certificateOne,
.certificateTwo,
.imgContainer {
  width: 50%;
}

.certificateOne,
.imgContainer1 {
  transition: transform 0.5s ease-in-out; /* Smoothness of transition */
}

.certificateOne1 {
  transform: translateX(-100%); /* Default off-screen to the left */
}

.imgContainer1 {
  transform: translateX(100%); /* Default off-screen to the right */
}

/* KCCI ANIMATION */

.certificateOne2 {
  transform: translateX(100%);
  transition: transform 0.5s ease; /* Smooth transition */
}

.imgContainer2 {
  transform: translateX(-100%);
  transition: transform 0.5s ease; /* Smooth transition */
}

/* When active, reset the translation */
.certificateDetail2.active .certificateOne2,
.certificateDetail2.active .imgContainer2 {
  transform: translateX(0);
}

/* EVENTS PARTICIPATION */

.partnerLogos {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 2rem;
  min-height: 100px;
  gap: 2.5rem;
}

.participationEvents {
  margin-bottom: 100px;
}

.subCountries {
  margin-top: 3rem;
}

.servingCountries {
  margin-bottom: 100px;
}

.servingCountries h1 {
  margin-bottom: 50px;
}

.main-serving {
  margin: 100px 0px;
}

.SubPartner h1 {
  margin-bottom: 50px;
}

/* ANIMATION PACK */

.partnerLogos {
  display: flex; /* Adjust based on your layout */
  overflow: hidden; /* Prevent overflow for fading effect */
}

.partnerLogos img {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  transform: scale(0.8);
  width: auto;
  max-height: 70px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8); /* Scale down for pop effect */
  }
  to {
    opacity: 1;
    transform: scale(1); /* Scale to normal size */
  }
}

.fade-out {
  animation: fadeOut 1s ease-out forwards; /* Fade out */
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1); /* Normal size */
  }
  to {
    opacity: 0;
    transform: scale(0.8); /* Scale down for pop effect */
  }
}

.map-img {
  width: 100%;
}

.logo-container {
  width: 100%;
  transition: opacity 1s ease;
}

.tool-kit-row {
  flex-wrap: wrap; /* Allow wrapping to the next line */
  justify-content: space-between; /* Space out the logos evenly */
  display: flex;
}

.images-row.active {
  display: flex; /* Show only the active row */
}

.client-logo {
  width: 100px; /* Set a fixed width for the logos */
  height: auto; /* Maintain aspect ratio */
  margin: 10px; /* Add space around each logo */
  flex-shrink: 0; /* Prevent logos from shrinking */
}

@media (min-width: 1600px) {
  .pyma-certificate {
    float: right;
    width: 77%;
  }

  .kcci-certificate {
    width: 77%;
    height: 600px;
    height: 529px;
  }
}


/* tool kit logo 6 col 1 row logos css break point are below  */

@media (max-width: 1315px) {
  .tool-kit-logo {
    margin: 15px 8.3333%;
    width: calc(16.6667%);
  }
}

@media (min-width: 1316px) {
  .tool-kit-logo {
    margin: 10px;
    width: calc(16.6667% - 20px);
  }
}

@media (max-width: 1600px) {
  .pyma-certificate {
    float: right;
    width: 77%;
  }

  .kcci-certificate {
    width: 77%;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 5rem !important;
  }

  h2 {
    font-size: 4rem !important;
  }

  p {
    font-size: 1.7rem !important;
  }

  .partnerLogos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 4.5rem !important;
  }

  h2 {
    font-size: 3.5rem !important;
  }

  p {
    font-size: 1.5rem !important;
  }

  .certificateImg {
    height: auto;
    width: 100%;
  }
  .partnerLogos {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .partnerLogos {
    min-height: 160px;
  }

  .pyma-certificate {
    float: none;
    width: 100%;
  }

  .certificateImg {
    height: auto;
  }
  .certificateDetail {
    flex-direction: column-reverse;
    gap: 4rem;
  }
  .certificateOne,
  .certificateTwo,
  .imgContainer {
    width: 100%;
  }
}

@media (max-width: 556px) {
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 2rem !important;
  }

  p {
    font-size: 1.4rem !important;
  }
  .certificateOne,
  .certificateTwo,
  .imgContainer {
    width: 100%;
  }
  .certificateImg {
    height: auto;
    width: 100%;
  }
  .partnerLogos {
    min-height: 230px;
  }

  .partnerLogos img {
    width: 45% !important;
    height: auto !important;
    max-height: unset !important;
  }

  .certificateOverview {
    width: 65%;

    left: 2rem;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-left {
  animation: slideInLeft 1s forwards;
}

.slide-right {
  animation: slideInRight 1s forwards;
}
