.news {
  background-color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 50px;

}

.news-heading {
  
  padding-bottom: 30px;
  font-size: 70px;
  color: rgb(48, 11, 99);
  width: 100vw;

  padding-top: 80px;
  
}

.news:hover{
  .news-heading{
    animation-name: move;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-direction:reverse;
  
  }
}

@keyframes move{
  0%{
    color: rgb(60, 20, 89);
  }

  50%{
 
    color:rgb(234, 52, 52);
  }

  100%{

    left: 900px;
    color: rgb(248, 140, 17);
    scale: 2;
  }
}



.news-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  height: fit-content;
  position: relative;
  left: 0px;
  top: 0px;
 
}


.news-square {
  background-color: rgba(39, 11, 51, 0.618);
  height: 50px;
  width: 50px;
}

.news-card {
  position: relative;
  height: 400px;
  width: 400px;
  display: flex;
  flex-direction: column;
  opacity: 90%;
  color: rgb(255, 251, 251);
  background-color: rgba(164, 142, 142, 0.492);
  transition: 0.7s;
  overflow: hidden;
  box-shadow: 2px 2px 3px 1px rgba(51, 39, 51, 0.38);
 
}

.layer {
  background-color: rgba(53, 41, 69, 0.455);
  width: 100%;
  height: 20%;
  position: absolute;
  top: 80%;
  left: 0;
  transition: 0.7s;
}



.news-card:hover {
  opacity: 100%;
  color: rgb(34, 32, 31);
  background-color: rgb(99, 84, 113);

  transition: 0.7s;

  
  .news-video-container,
  .news-video {
    transition: 0.7s;
  }

  .news-title {
    color: rgb(41, 23, 68);
    font-size: large;
    font-weight: bold;

  }

  .layer {
    display: flex;
    flex-direction: column;
    align-items: safe;
    top: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.932);
    transition: 0.9s;
    
  }

  .news-square {
    background-color: rgba(77, 66, 93, 0.249);
  }

  .news-content{
    transition: 1.2s;
    height: 60%;
    display: block;
    color: rgb(11, 0, 0);
    font-size: small;
  
    padding: 15px;
    text-align: justify;
  }

  .read-more{
    padding: 15px;
    color: rgb(255, 152, 7);
    font-weight: lighter;
    font-size: small;
    display: block;
    transition: 0.8s;
    
  }
  
}

.read-more{
  display: none;
}

.news-video {
  height: 400px;
  width: 400px;
  transition: 0.7s;
}

.news-title {
  height: 40px;
  width: 290px;
  padding-top: 10px;
  padding-left: 10px;
  padding-bottom: 10px;
  font-size: medium;
  color: rgb(255, 255, 255);
}

.news-title:hover {
  color: rgb(40, 34, 34);
}

.news-content {
  display: none;
  padding: 10px;
  color: transparent;
}


@media(min-width: 1441px){
  .news-card{
    height: 500px;
    width: 500px;
  }

  .news-video {
    height: 500px;
    width: 500px;
  }

}

@media (max-width: 1300px){

  .news-card{
    height: 350px;
    width: 350px;
  }

  .news-video {
    height: 350px;
    width: 350px;
  }

}

@media (max-width: 1200px){

  .news-card{
    height: 300px;
    width: 300px;
  }

  .news-video {
    height: 300px;
    width: 300px;
  }
}


@media (max-width: 1024px) {


  .news-container {
  
  padding-bottom: 50px;
   height: fit-content;
    
  }

  .news-card{
    height: 300px;
    width: 300px;
  }

  .news-video {
    height: 300px;
    width: 300px;
  }
  
  .news-title{
    font-size: medium;
  }

  .news-card:hover {


    .news-video{
      height: 300px;
    }

    .news-content{
      font-size: small;
      font-weight: 100;
      padding-left: 20px;
      padding-right: 20px;
      height: 70%;
      overflow: hidden;
    }

    .news-title {
      font-size: medium;
      padding-top: 20px;
      padding-left: 20px;
      padding-right: 20px;
      padding-bottom: 0px;
      width: 90%;
    }

    .read-more{
      padding-top: 0px;
    }


  }



  
}


@media (max-width: 920px) {

  .news-card, .news-video{
    height: 250px;
    width: 250px;
  }
  
  .news-title{
    font-size: small;
    width: 80%;
    padding-bottom: 20px;
  }
   
  
 
  
  .news-card:hover {

    .news-content{
      font-size: small;
      font-weight: 100;
  
    }

    .news-title {
      font-size: medium;
      width: 90%;
    }

    .read-more{
      padding: 10px 10px 10px 20px;
    }


  }


  
}

@media (max-width: 768px) {
  .news-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
  }

  .news-card, .news-video{
    height: 50vw;
    width: 50vw;
  }

  .news-title {
    font-size: large;
    
  }

  .news-card:hover {

    .news-content{
      font-size: medium;
      font-weight: 100;
  
    }

    .news-title {
      font-size: medium;
      width: 90%;
    }

    .read-more{
      padding: 10px 10px 10px 20px;
    }

    .news-card, .news-video{
      height: 100%;
      width: 100%;
    }


  }
}

@media (max-width: 600px) {

  .news-title {
    font-size: small;
  }
  .news-card:hover {
  
    .news-content{
      font-size: small;
    }

  }
  
  

}


@media (max-width: 425px) {
  .news-card, .news-video{
    height: 70vw;
    width: 70vw;
  }
  .news-card:hover {
  
  
   

    .news-content{
      font-size: small;
      font-weight: 100;
      padding: 10px 10px  0px 10px;
    }

    .news-title {
      font-size: medium;
      padding: 10px;
    }


  }
 
}

@media (max-width: 300px) {

  .news-title {
    font-size: small;
    padding: 10px;
  }
  .news-card:hover {
  
  
    .news-video{
      height: 90vw;
      width: 90vw;
    }

    .news-content{
      font-size:10px;
      font-weight: 100;
      padding: 10px 10px  0px 10px;
    }

    .news-title {
      font-size: small;
      padding: 10px;
    }


  }
 
}