<style>

/* Reset & Base */

body {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

}

* {

  box-sizing: inherit;

}

.course-card {

  background: #ffffff;

  border-radius: 18px;

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

  max-width: 450px;

  margin: 40px auto;

  font-family: 'Segoe UI', Roboto, sans-serif;

  overflow: hidden;

  transition: all 0.4s ease;

  border: 1px solid #e0e0e0;

}

.course-card:hover {

  transform: translateY(-6px);

  box-shadow: 0 25px 45px rgba(0, 128, 0, 0.2);

}


/* Image */

.course-card img {

  width: 100%;

  height: auto;

  display: block;

  border-bottom: 1px solid #f0f0f0;

}


/* Title */

.course-card h3 {

  font-size: 22px;

  font-weight: 700;

  text-align: center;

  color: #003300;

  margin: 25px 20px 10px;

}


/* Tags/Skills */

.language-tags {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  padding: 0 10px;

  margin-bottom: 15px;

  gap: 8px;

}

.language-tags span {

  background: #e6f5ea;

  color: #006600;

  font-size: 13px;

  padding: 6px 12px;

  border-radius: 20px;

  font-weight: 600;

  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);

}


/* Button */

.view-btn {

  display: block;

  width: fit-content;

  margin: 20px auto 30px;

  padding: 12px 32px;

  background: linear-gradient(to right, #007a00, #004d00);

  color: #ffffff;

  text-decoration: none;

  font-weight: bold;

  font-size: 16px;

  border-radius: 50px;

  box-shadow: 0 8px 18px rgba(0, 100, 0, 0.4);

  transition: all 0.3s ease;

}

.view-btn:hover {

  background: linear-gradient(to right, #00aa00, #007a00);

  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>


  <div class="language-tags">

    <span>Python</span>

    <span>JavaScript</span>

    <span>HTML</span>

    <span>CSS</span>

    <span>SQL</span>

    <span>C++</span>

    <span>PHP</span>

    <span>React</span>

    <span>Node.js</span>

    <span>Java</span>

  </div>


  <a href="https://your-link-here.com" class="view-btn">View Details</a>

</div>


Comments

Popular posts from this blog