@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  font-family: Poppins, sans-serif;
  box-sizing: border-box;
  margin: 0;
}

main {
  margin: 0 2%;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ebeaeb;
  box-shadow: 0.5px 0.5px 4px rgba(0, 0, 0, 0.03),
    -0.5px -0.5px 4px rgba(0, 0, 0, 0.03);

  margin-bottom: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.socials {
  display: flex;
  border-radius: 50%;
}

.fa-brands {
  font-size: 1.5rem;
  margin: 0 0.4rem;
}
.fa-bars {
  margin-left: 1.5rem;
}
header h1 {
  margin: 0;
}

a {
  text-decoration: none;
  color: black;
}

p {
  margin: 0;
}

.search-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
#search-box {
  width: 70%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #4d4d4fbc;
  margin-left: 10px;
}

.post {
  display: block;
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  border-radius: 8px;
  border: 1px solid #ebeaeb;
  box-shadow: 0.5px 0.5px 4px rgba(0, 0, 0, 0.03),
    -0.5px -0.5px 4px rgba(0, 0, 0, 0.03);
}

.red {
  color: red;
}

strong {
  font-weight: 500;
}

.post-meta,
.video-meta {
  display: flex;
  font-size: 0.7rem;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  text-wrap: nowrap;
}
.post-meta p {
  margin-left: 4px;
}

.video-meta {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2px;
  font-size: 0.75rem;
}

.post-details {
  padding-left: 1rem;
}

.post h3 {
  margin: 3.5px 0;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.post img {
  width: 140px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.image-container {
  position: relative;
  display: inline-block; /* Ensures the container only takes the space of its content */
}

.image-container::before {
  content: "HD";
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: red;
  color: white;
  padding: 1px 4px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 3px;
}

.post-section {
  width: 95%;
  margin: auto;
}

/*
  Tablet
  styles
  (768px to 1024px)
  */
@media (min-width: 768px) and (max-width: 1024px) {
  #search-box {
    width: 75%;
    margin: 0 auto;
  }

  .post {
    width: 80%;
    margin: 0 auto;
  }

  .post img {
    width: 200px;
    height: auto;
  }

  .post h3 {
    font-size: 1rem;
  }

  .post-meta,
  .video-meta {
    font-size: 1rem;
  }
}

/* PC styles (1024px and above) */
@media (min-width: 1024px) {
  main {
    width: 70%;
    margin: 0 auto;
  }
  #search-box {
    width: 80%;
    margin: 0 auto;
  }

  .post {
    width: 70%;
    margin: auto;
  }

  .post img {
    width: 250px;
    height: auto;
  }

  .post h3 {
    font-size: 1.2rem;
  }

  .post-meta,
  .video-meta {
    font-size: 1.2rem;
  }
}
