.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 columns */
    gap: 20px;
    justify-content: center;
    align-items: baseline;
}
.news-description {
    text-align: start;
}
.news-card {
    position: relative;
    background: #fff; 
    border-radius: 20px;
    max-width: 419px;
    width: 100%;
    text-align: center;
    padding: 8px 11px;
    overflow: hidden;
  	transition: transform 0.3s ease;
    border: 1px solid #F2F2F2;
  	min-height: 415px;
}

.news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 20px;
    box-sizing: border-box;
    transition: all 0.5s ease-in-out;
  	pointer-events: none;
  
}

.news-card:hover::before {
    border-width: 3px 8px 8px 3px;
 	border-color: #252525;
}
.news-card:hover {
  	padding: 11px 17px 11px 11px;
}

.news-image {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.read-more {
    background: #252525;
    padding: 8px 10px;
    border-radius: 10px;
    color: #fff;
}
.read-more:hover {
    color: #fff;
}
/* .news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #019BB7;
    z-index: -1; 
    transform: scaleY(0); 
    transform-origin: top; 
    transition: transform 0.5s ease; 
}

.news-card:hover::before {
    transform: scaleY(1.05); 
}


.news-card:hover {
    transform: scale(1.0);
  	color:#fff;
}
.news-card:hover .news-description p{
  	color:#fff;
}
.news-card:hover .news-inner-cards p{
  	color:#fff;
}

.news-card:hover .news-inner-cards img{
  	filter: invert(1);
}*/

.news-card:hover .news-image img{
  	transform: scale(1.1);
}
.news-card:hover .enroll-button{
  	color:#019BB7;
 	font-weight: 600;
}
.read-more-container {
    display: none;
    justify-content: start;
    padding: 20px 0 37px 0;
    z-index: 999;
    position: relative;
}

.news-card:hover .read-more-container {
    display: flex;
}


.news-card img {
    width: 100%;
    height: auto;
  	transition: transform 0.5s ease;
}

.news-card h3 {
    margin: 0px;
    padding: 20px 0 12px 0;
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 600;
    line-height: 24.38px;
    text-align: start;
}
.news-inner-cards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 10px 0;
}
.news-inner-cards p{
   	font-family: Montserrat;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.07px;
    text-align: start;
  	color: #252525;
  	display: flex;
    gap: 5px;
    align-items: center;

}

.news-description p {
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 400;
    line-height: 17.07px;
    text-align: start;
    color: #747474;
}

.news-card p img {
    width: 20px;
    height: 20px;
  	margin: 0px;
}

.enroll-button {
    width: 100%;
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 500;
    line-height: 19.5px;
    background: white;
    color: #000;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    padding: 15px;
}


.cpurse-image {
    max-width: 387px;
    width: 100%;
    max-height: 204px;
    border-radius: 20px;
    overflow: hidden;
}


@media (min-width: 320px) and (max-width: 370px) {
 .news-inner-cards p{
   font-size: 12px;
}
}
  
@media (max-width: 1024px) {
    .news-cards {
        grid-template-columns: repeat(2, 1fr);
    }
  .read-more-container {
    display:flex;
    justify-content: start;
  	padding: 10px 0 20px 0;
  }
  .news-card:hover {
    border: 1px solid #F2F2F2;
  }
}

@media (max-width: 768px) {
    .news-cards {
        grid-template-columns: repeat(1, 1fr);
     	place-items: center; 
    }
}