<main>
  <div class="section-data">
    <h2 class="section-title">Cursos <br> Online</h2>
    <p class="section-description">Programas en formato de video lecciones, ideal para quienes buscan destacar en el mercado laboral y quieren aprender nuevas habilidades para evolucionar profesionalmente.</p>
    <a href="#" class="btn">Ver todos los cursos</a>
  </div>
  <div class="cards-wrapper">
    <div class="card">
      <div class="card--data">
        <span class="card--months"> 5 meses</span>
        <h3 class="card--title">Diseno de interiores</h3>
        <span class="course-type">Curso</span>
      </div>
      <div class="card-img-wrapper">
        <img src="https://raw.githubusercontent.com/JoelLH/Images/main/Scrimba%20Images/Smart%20home-amico.png" alt="">
        
      </div>
      <div class="card-img-deco">
    </div>
    </div>
    <div class="card">
      <div class="card--data">
        <span class="card--months"> 5 meses</span>
        <h3 class="card--title">Diseno de interiores</h3>
        <span class="course-type">Curso</span>
      </div>
      <div class="card-img-wrapper">
        <img src="https://raw.githubusercontent.com/JoelLH/Images/main/Scrimba%20Images/Smart%20home-amico.png" alt="">
        
      </div>
      <div class="card-img-deco deco-2">
    </div>
    </div>
    <div class="card">
      <div class="card--data">
        <span class="card--months"> 5 meses</span>
        <h3 class="card--title">Diseno de interiores</h3>
        <span class="course-type">Curso</span>
      </div>
      <div class="card-img-wrapper">
        <img src="https://raw.githubusercontent.com/JoelLH/Images/main/Scrimba%20Images/Smart%20home-amico.png" alt="">
        
      </div>
      <div class="card-img-deco deco-3">
    </div>
    </div>
    <div class="card">
      <div class="card--data">
        <span class="card--months"> 5 meses</span>
        <h3 class="card--title">Diseno de interiores</h3>
        <span class="course-type">Curso</span>
      </div>
      <div class="card-img-wrapper">
        <img src="https://raw.githubusercontent.com/JoelLH/Images/main/Scrimba%20Images/Smart%20home-amico.png" alt="">
        
      </div>
      <div class="card-img-deco deco-4">
    </div>
    </div>
    <div class="card">
      <div class="card--data">
        <span class="card--months"> 5 meses</span>
        <h3 class="card--title">Diseno de interiores</h3>
        <span class="course-type">Curso</span>
      </div>
      <div class="card-img-wrapper">
        <img src="https://raw.githubusercontent.com/JoelLH/Images/main/Scrimba%20Images/Smart%20home-amico.png" alt="">
        
      </div>
      <div class="card-img-deco deco-5">
    </div>
    </div>
    <div class="card">
      <div class="card--data">
        <span class="card--months"> 5 meses</span>
        <h3 class="card--title">Diseno de interiores</h3>
        <span class="course-type">Curso</span>
      </div>
      <div class="card-img-wrapper">
        <img src="https://raw.githubusercontent.com/JoelLH/Images/main/Scrimba%20Images/Smart%20home-amico.png" alt="">
        
      </div>
      <div class="card-img-deco deco-6">
    </div>
    </div>
  </div>
</main>
main{
  padding: 4%;
  display: flex;
  justify-content: center;
}
.section-data{
  width:40%;
    max-width:650px
      display: flex;

}

.cards-wrapper{
  max-width: 800px;
}
.section-title{
  font-size: 3rem;
  font-weight: 700;
  line-height: 130%;
  margin-bottom: 2rem;
}
.section-description{
  font-size: 1.3rem;
  width: 80%;
  line-height: 140%;
  margin-bottom: 2rem;
}
.btn{
  padding: .6rem 2rem;
  font-size: 1.2rem;
  border: 1px solid orangered;
  color: orangered;
  border-radius: 40px;
}
.btn:hover{
  background-color: orangered;
  color: white;
}
.cards-wrapper{
  width: 60%;
  display: grid;
  grid-template-columns: 1fr 1fr;

  row-gap: 2.5rem;
  border: none;
}
.card{
  border: none;
  width: 360px;
  height: 220px;
  display:flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-shadow: 1px 1px 10px 1px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
  overflow: hidden;

}
.card--data, .card-img-wrapper {
  width: 50%;
  position: relative;
  display: flex;
  flex-flow: column;
  height: 100%;
  justify-content: center;
  z-index: 3;
  
}
.card--data{
  justify-content: space-between;
    z-index: 2;
}

.card--months{
  font-size: .9rem;
      z-index: 2;
}
.card--title{
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  line-height: 130%;
      z-index: 2;
}
.course-type{
  color: orangered;
}
.card-img-wrapper img{
  width: 100%;
  z-index: 2;
  
}
.card-img-deco{
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background-color: black;
  position: absolute;
  z-index: 1;
  right: -50px;
  background-color: gold;
  transition: all ease-in-out .35s;
}
.card:hover .card-img-deco{
  width: 450px;
  border-radius: unset;
  height: 300px
  
}
.deco-2{
  background-color: #227C9D;
}
.deco-3{
  background-color: #17C3B2;
}
.deco-4{
  background-color: #FFCB77;
}
.deco-5{
  background-color: #FE6D73;
}

.deco-6{
  background-color: green;
}
@media screen and (max-width: 1200px){
  main{
    flex-flow: column;
  }
  .section-data, .cards-wrapper{
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
  }
  .section-data{
    margin-bottom: 4rem;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
     text-align: center;
  }
  .cards-wrapper{
    place-items: center;
  }
  
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.