@import url("https://fonts.googleapis.com/css2?family=Averia+Serif+Libre:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Aboreto&family=Kanit:wght@400;500&family=M+PLUS+Rounded+1c:wght@700;900&display=swap');


section.education {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .education .cards {
    display: flex;
    align-items: center;
    width: 70vw;
    height: 60%;
  }
  
  .education-card {
    position: relative;
    margin: 5px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 30px;
    background-color: rgb(10, 10, 10);
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat.svg);
    background-repeat: no-repeat;
    flex: 0.5;
    transition: flex 0.5s ease-in;
    height: 100%;
    overflow: hidden;
  }
  
  .label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px !important;
    color: #23b3e4;
    font-size: 50px;
    border-radius: 50%;
    font-family: "Averia Serif Libre";
    font-weight: 600;
    position: absolute;
    right: 0;
    opacity: 0.5;
    transition: all ease-in-out 0.5s;
  }
  
  .education-card.active .label {
    bottom: 20px;
    left: 50px;
    height: 300px !important;
    border-radius: 20px;
    font-size: 250px;
    width: 70px;
    opacity: 1;
  }
  
  .education-card.active {
    flex: 5;
  }
  
  .education-card:not(.active) .label {
    bottom: 10px;
    left: 10px;
  }
  
  .info {
    color: white;
    background: #23b3e4;
    float: right;
    width: 100%;
    height: 100%;
    clip-path: polygon(calc(100% - 42.3vw) 0, 100% 0, 100% 100%, calc(100% - 13vw) 100%);
    shape-outside: polygon(calc(100% - 42.3vw) 0, 100% 0, 100% 100%, calc(100% - 13vw) 100%);
    text-align: right;
    padding-right: 4vw;
    padding-top:20px;
    transition: opacity 0.5s ease-in-out .3s;
  }
  
  .active .info {
    opacity: 1;
  }
  
  .education-card:not(.active) .info {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
  }
  
  .icon {
    background: white;
    position: absolute;
    top: 15px;
    left: 10px;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    border-radius: 50%;
    color: #23b3e4;
    opacity: 0.5;
    transition: all 0.5s ease-in-out;
    z-index:1;
  }
  
  .education-card.active .icon {
    opacity: 1;
    top: -50px;
    left: -10px;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 180px;
    font-size: 60px;
    border-top-right-radius: 0%;
    border-bottom-left-radius: 0%;
  }
  
  
  .education-card .icon fa-icon {
    transition: padding-top ease-in-out 0.5s;
  }

  .education-card.active .icon fa-icon {
    padding-top: 40px;
  }

  .info img{
    border-radius: 10px;
    width:100px;
    opacity: 0;
  }
  .education-card.active .info img{
    opacity:1;
    
  }
  .text-work{
    /* background-color: red; */
   
font-family: 'Kanit', sans-serif;
text-align: center;
position: relative;
left: 230px;
font-family: 'Aboreto', cursive;

}
.glow{
    text-shadow: 0 0 10px #fffee6;
}


  
  @media screen and (width<1020px){
    .education .cards{
      width:95vw;
    }
    .info{
      clip-path: polygon(calc(100% - 50vw) 0, 100% 0, 100% 100%, calc(100% - 15vw) 100%);
    }
  }

  @media screen and (width<=820px) {
    .info{
      clip-path: polygon(calc(100% - 55vw) 0, 100% 0, 100% 100%, calc(100% - 15vw) 100%);
    }
    .education-card:not(.active) .icon{
      left:8px;
      width:40px;
      height:40px;
      font-size: 20px;
    }
    .education-card:not(.active) .label{
      left:8px;
    }
    .info img{
      width:85px;  
    }

  }
  

  @media screen and (width<=650px){
    .info .col-sm-6{
      width:102.9%;
    }
    .info{
      clip-path:none !important;
      background:transparent;
      display:flex;
      flex-direction:column;
      align-items:flex-end;
      flex-direction:column;
      justify-content:flex-start !important;
      padding: 105px 17px 0 3px;
      text-align: center;
    }
    h1{
      color:#23b3e4;
      font-size:40px;
    }
    .education-card.active .icon{
      width:100px;
      height:100px;
      top:0;
      left:0;
      border-top-left-radius:0;
      font-size:50px;
    }
    .education-card.active .icon fa-icon{
      padding:0;
    }
    .education-card.active .label{
      font-size:150px;
      bottom:-20px;
      left:20px;
    }

    .info img{
      width:75px;  
    }

    .education-card:last-child .info img{
      filter:invert(100%);
    }

    .education-card:not(.active) .icon{
      left:2px;
    }

    .education-card:not(.active) .label{
      font-size:35px;
      width:20px;
      left:2px;
    }
  }

  @media screen and (width<=400px){
    .education-card.active .label{
      font-size: 75px;
      height:60px !important;
      bottom: 25px;
      left:0;
    }
  }