<style>

.course-card {

  background: #ffffff;

  border-radius: 16px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  overflow: hidden;

  margin: 30px auto;

  max-width: 420px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}


.course-card:hover {

  transform: translateY(-5px);

  box-shadow: 0 15px 30px rgba(0, 64, 0, 0.15);

}


.course-card img {

  width: 100%;

  height: auto;

  display: block;

}


.course-card h3 {

  font-size: 22px;

  margin: 20px 15px 10px;

  color: #003300;

  font-weight: 600;

}


.view-btn {

  display: inline-block;

  margin: 20px 0 30px;

  padding: 12px 28px;

  background: linear-gradient(135deg, #007a00, #005500);

  color: #fff;

  text-decoration: none;

  border-radius: 30px;

  font-size: 16px;

  font-weight: bold;

  box-shadow: 0 5px 15px rgba(0, 128, 0, 0.3);

  transition: all 0.3s ease;

}


.view-btn:hover {

  background: linear-gradient(135deg, #009900, #006600);

  transform: scale(1.05);

}

</style>


<div class="course-card">

  <img src="https://ehunar.org/uploads/thumbnails/course_thumbnails/course_thumbnail_default_1.webp" alt="Course Image">

  <h3>Machine Learning, AI & Data Science</h3>

  <a href="#" class="view-btn">View Details</a>

</div>


Comments

Popular posts from this blog