.course-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 columns */
    gap: 20px;
    justify-content: center;
}

.course-card {
    position: relative;
    background: #fff; /* Initial background color */
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 20px;
    max-width: 419px;
    width: 100%;
    text-align: center;
    transition: transform 1.0s ease; /* Transition for scaling */
    overflow: hidden; /* Prevents overflow during the transition */
}

.course-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #019BB7; /* Hover background color */
    z-index: -1; /* Place it behind the content */
    transform: scaleY(0); /* Initially hidden */
    transform-origin: top; /* Start scaling from the top */
    transition: transform 1.0s ease; /* Smooth transition for the scale */
}

.course-card:hover::before {
    transform: scaleY(1.05); /* Expand the background color vertically */
}


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

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

.course-card:hover .cpurse-image img{
  	transform: scale(1.1);
}
.course-card:hover .enroll-button{
  	color:#019BB7;
 	font-weight: 600;
}


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

.course-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;
}
.course-inner-cards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 10px 0;
}
.course-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;

}

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

.course-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) {
 .course-inner-cards p{
   font-size: 12px;
}
}
  
@media (max-width: 1024px) {
    .course-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

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