html, body {
    margin: 0;
    padding: 0;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../../Fonts/EBGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800; 
  font-style: normal;
  font-display: swap;
}

.course-div {
  width: 90%;
  max-width: 680px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: white;
  border: 1.2px solid black;
  box-shadow: 8px 8px 0px #f5f5dc; 
  border-radius: 4px;
  font-family: "EB Garamond", Garamond, serif;
}

.course-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.course-desc {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 2rem 0;
}

.course-link {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: rgb(19, 19, 19);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #f7d54e; 
}

.course-author, .course-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.course-author {
  margin-top: 2rem;
  color: #111;
  font-weight: 500;
}

@media (max-width: 768px) {
  .course-div {
    width: 85%;
    max-width: 100%;
    margin: 2rem auto;
    padding: 1.5rem;
  }

  .course-title {
    font-size: 2rem;
  }

  .course-desc {
    font-size: 1.05rem;
  }

  .course-link {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .course-div {
    width: 90%;
    padding: 1.2rem;
    margin: 1.5rem auto;
  }

  .course-title {
    font-size: 1.5rem;
  }

  .course-desc {
    font-size: 0.9rem;
  }

  .course-link {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .course-author, .course-date {
    font-size: 0.65rem;
  }
}