main {
  width: 100%;
  height: 100%;
  margin-top: 5rem;
}

img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

select {
  width: 100%;
}

/* For Chrome, Safari, and newer versions of Edge */
.recommended::-webkit-scrollbar {
  display: none;
}

/* For Firefox */
.recommended {
  scrollbar-width: none;
}

/* For IE and Edge */
.recommended {
  -ms-overflow-style: none;
}

.blog_nav {
  width: 100%;
  background: var(--sea-green);
  color: var(--hero-title-color);
  display: flex;
  align-items: center;
  gap: 10rem;
  padding: 0.5rem 4rem;
}

.blog_nav select {
  display: none;
}

.blog_nav ul {
  width: 70%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog_nav ul a:hover {
  border-bottom: 1px solid var(--hero-title-color);
  padding-bottom: 0.5rem;
}

.blogs_hero {
  width: 100%;
  padding: 5rem;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  background: var(--hero-title-color);
}

hr {
  width: 90%;
  margin-inline: auto;
  height: 1px;
  background-color: #9c9b9b;
  border: none;
  margin-bottom: 2rem;
}

.blogs_hero .img_container {
  width: 50%;
  max-height: 500px;
}

.hero_content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero_content h2 {
  color: var(--sea-green);
  font-size: xx-large;
  font-weight: 900;
}

.blogs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.blog_post {
  /* padding: 0.5rem; */
  width: 300px;
  flex-grow: 1;
}

.blog_img_container {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
}

.blog_content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog_content h2 {
  color: var(--sea-green);
  font-weight: bold;
  font-size: large;
}

.recommended_container {
  padding: 3rem;
  background: #ebe8e8;
  margin-bottom: 1rem;
}

.recommended_container h1 {
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 40px;
}

.recommended {
  display: flex;
  gap: 4rem;
  overflow: auto;
}

.recommended_post {
  min-width: 600px;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.recommended_post .img_container,
.recommended_content {
  width: 50%;
}

.recommended_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.recommended_content h3 {
  font-weight: bold;
  font-size: medium;
  color: var(--sea-green);
}

.book_shelf {
  width: 100%;
  color: var(--hero-title-color);
  position: relative;
  height: 70vh;
  margin-bottom: 5rem;
}

.book_shelf .img_container {
  width: 100%;
  height: 100%;
  margin-bottom: 5rem;
}

.book_shelf .img_container img {
  filter: brightness(20%);
}

.book_shelf_text {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.book_shelf_text h1 {
  text-align: center;
  margin-bottom: 3rem;
}

@media screen and (max-width: 1150px) {
  .blog_nav {
    gap: 5rem;
    padding: 0.5rem 2rem;
  }


  .blogs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

  .book_shelf {
    height: 30vh;
  }

  .book_shelf h1 {
    font-size: xx-large;
  }
}

@media screen and (max-width: 768px) {
  .blog_nav {
    gap: 2rem;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }
  .blog_nav h1 {
    font-size: large;
  }

  .blog_nav ul {
    display: none;
  }

  .blog_nav select {
    display: block;
    width: 200px;
    height: 20px;
    background: transparent;
    outline: none;
    border: none;
  }

  .blog_nav option {
    background: var(--sea-green);
    font-size: small;
  }

  /* For some browsers, this may help maintain the styling */
  .blog_nav select option:checked,
  .blog_nav select option:hover {
    background: #2b663c;
  }

  .blogs_hero {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .blogs_hero .img_container,
  .hero_content {
    width: 100%;
    margin: 0.5rem;
  }

  .hero_content h2 {
    margin-top: 1rem;
    font-size: larger;
  }

  .recommended_container {
    padding: 1rem;
  }

  .recommended_post {
    flex-direction: column;
    min-width: 400px;
  }

  .recommended_post .img_container,
  .recommended_content {
    width: 100%;
  }

  .book_shelf_text h1 {
    font-size: x-large;
  }

  .blogs {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* grid-template-columns: repeat(1, minmax(0, 1fr)); */
  }

  .blog_image {
    width: 100%;
  }

  .blog_post {
  padding: 0.5rem;
  width: 100%;
  flex-grow: 1;
  border-bottom: 1px solid gray;
}
}
