/* SECTION LAYOUT */
.course-section{
  padding: 10px 0;
}

.course-wrap{
  width: 90%;
  /* margin: auto; */
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.course-wrap.reverse{
  grid-template-columns: 1fr 1fr;
}

/* IMAGE */
/* .course-img img{
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
} */

.section1-img img{
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
} 
.section2-img img{
  width: 560px;
  height: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.section3-img img{
  width: 411px;
  height: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.section4-img img{
  width: 560px;
  height: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.section5-img img{
  width: 61%;
  height: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* TEXT */
.course-text h2{
  font-size: 37px;
  margin-bottom: 15px;
  line-height: 37px;
  font-weight: 400;
}

.course-text p{
  font-size: 17px;
  line-height: 27px;
  color: #999;
}

.course-text ul{
  margin-top: 15px;
  color: #999;
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
}

/* ===== ANIMATION BASE ===== */
.animate-img-right,
.animate-img-cross,
.animate-text-top{
  opacity: 0;
  transition: 0.8s ease;
}

/* START POSITIONS */
.animate-img-right{
  transform: translateX(-120px);
}

.animate-text-top{
  transform: translateY(-80px);
}
.animate-img-cross{
  opacity: 0;
  transform: translate(-220px, -120px); /* left + top */
  transition: all 0.8s ease;
}

.animate-active{
  opacity: 1;
  transform: translate(0, 0);
}


/* RESPONSIVE */
@media(max-width: 900px){
  .course-wrap{
    grid-template-columns: 1fr;
  }

  .course-wrap.reverse{
    grid-template-columns: 1fr;
  }
}



@media (max-width: 576px){
  .course-section{
    padding: 30px 0;
  }

  .course-wrap{
    width: 100%;
    padding: 0 15px;
  }

  .course-text h2{
    font-size: 26px;
    line-height: 1.3;
  }

  .course-text p,
  .course-text ul{
    font-size: 15px;
    line-height: 24px;
  }

  /* animations softer on mobile */
  .animate-img-right{
    transform: translateX(-60px);
  }

  .animate-img-cross{
    transform: translate(-80px, -60px);
  }

  .animate-text-top{
    transform: translateY(-40px);
  }
}
@media (max-width: 992px){
  .course-wrap{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .course-wrap.reverse{
    direction: ltr;
  }

  .course-text h2{
    font-size: 30px;
  }

  .course-text p,
  .course-text ul{
    font-size: 16px;
  }
}
/* =========================
   MOBILE ONLY FIX
   No animation + one by one
========================= */
@media (max-width: 576px){

  /* one by one layout */
  .course-wrap{
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* disable all animations */
  .animate-img-right,
  .animate-img-cross,
  .animate-text-top{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* image full width */
  .course-img img{
    width: 100% !important;
    max-width: 100%;
    height: auto;
  }

  /* text size adjustment */
  .course-text h2{
    font-size: 26px;
    line-height: 1.3;
  }

  .course-text p,
  .course-text ul{
    font-size: 15px;
    line-height: 24px;
  }
}
