* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-style: none;
}

body {
  background-color: hsl(47, 88%, 63%);
  font-family: "Figtree", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

p {
  font-size: 16px;
}

.container > h2 {
  font-size: 80px;
}

.main {
  margin-top: 24px;
}

.container {
  background-color: white;
  width: 384px;
  height: 522px;
  border-radius: 20px;
  margin: auto;
  padding: 24px;
  box-shadow: 8px 8px 0px #000000;
  border: 1px solid black;
}

.main-image img {
  border-radius: 10px;
  width: 336px;
  width: 100%;
}

.learning {
  background-color: #f4d04e;
  width: 82px;
  height: 24px;
  font-weight: 800;
  font-size: clamp(12px, 3vw, 14px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  padding: 4px 12px;
  line-height: 150%;
}

.date {
  font-size: 14px;
  color: #111111;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: clamp(12px, 3vw, 14px);
}

.mini-heading {
  font-size: 24px;
  font-weight: 800;  
  text-decoration: none;
  color: #111111;
  font-size: clamp(20px, 3vw, 24px);
}

.mini-heading:hover {
    color: #f4d04e;
  transition: all 0.3s ease-in-out;
}

.para {
  font-size: 16px;
  color: #6b6b6b;
  line-height: 150%;
  padding-top: 12px;
  font-size: clamp(14px, 3vw, 16px);
}

.greg {
  display: flex;
  justify-content: left;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  margin-top: 24px;
}

.avatar {
  width: 35px;
  height: 35px;
}

.name {
  padding-left: 12px;
}




@media (max-width: 820px) {
  .container {
    margin: 16px;
    width: 90%; /* Adjust width to fit smaller screens */
    height: auto; /* Allow height to adjust based on content */
    padding: 16px; /* Reduce padding for smaller screens */
  }

  .main-image img {
    width: 100%; /* Ensure the image scales properly */
  }

  .learning {
    font-size: 12px; /* Adjust font size for smaller screens */
  }

  .mini-heading {
    font-size: 20px; /* Reduce heading size */
  }

  .para {
    font-size: 14px; /* Adjust paragraph font size */
  }
}
