body {
  margin: 0;
  font-family: 'Libre Baskerville', serif;
  background-color: #ffffff;
  color: #000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 50px;
  font-size: 16px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



.hero {
  background: url(images/book_bg2.jpg) no-repeat center/cover;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(0, 0, 0);
  font-size: 42px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
  text-align: center;
}

.hero-text {
  display: inline-block;
  position: relative;
  font-size: 42px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
  color: rgb(0, 0, 0);
  margin: 0;
  padding: 0;
  font-weight: normal;
}

.hero-underline {
  display: block;
  margin: 2px auto 0 auto;
  width: 180px; 
  height: 80px;
}

.categories {
  text-align: center;
  margin: 25px 0;
  padding: 0 20px;
    margin-top: 50px;
}

.categories button {
  background: transparent;
  border: 2px solid #A5806A;
  margin: 8px;
  padding: 10px 25px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.categories button:hover,
.categories button.active {
  background: #000;
  color: #fff;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

}

.blog-card {
  display: flex;
  align-items: center;
  margin: 30px auto;
  max-width: 1000px;
  background: #e6c5a0;
  padding: 20px;
  gap: 20px;
  overflow: hidden;
}

.blog-card img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 1px solid #000;
  background: #ddd;
  flex-shrink: 0;
}

.blog-card-content {
  flex: 1;
  overflow: hidden;
}

.blog-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.5);
  color: #000;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: #000;
  word-wrap: break-word;
  word-break: break-word;
}

.blog-card-content p {
  font-size: 15px;
  line-height: 1.6;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 10px;
  display: block;
  max-height: none;
  overflow: visible;
}

.blog-date {
  display: block;
  font-size: 13px;
  color: #555;
  font-style: italic;
  margin-top: 8px;
}

.blog-card:nth-child(even) {
  flex-direction: row-reverse;
  background: #e6b598;
}

.submit-btn {
  text-align: center;
  margin: 40px 0;
}

.submit-btn button {
  background: transparent;
  border: 2px solid #000;
  padding: 12px 40px;
  font-size: 18px;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn button:hover {
  background: #000;
  color: #fff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #fff;
  color: #000;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #000;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  transition: 0.3s;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #e6c5a0;
}

/* Google Translate Styling */
#google_translate_element {
  display: inline-block;
  margin: 8px;
  vertical-align: middle;
}

.goog-te-gadget {
  font-family: 'Playfair Display', serif !important;
  color: transparent !important;
}

#google_translate_element .goog-te-gadget-simple {
  background-color: #fff !important;
  border: 2px solid #000 !important;
  padding: 10px 25px !important;
  font-size: 18px !important;
  font-family: 'Playfair Display', serif !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background-color 0.3s !important;
  display: inline-block !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
  background-color: #f0f0f0 !important;
}

#google_translate_element .goog-te-gadget-simple:hover .goog-te-menu-value span {
  color: #000 !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
  margin: 0 !important;
  color: #0e0e0eff !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
  color: #af8d56ff !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 18px !important;
  border: none !important;
}

.goog-te-gadget-simple .goog-te-menu-value span:first-child {
  display: inline !important;
}

.goog-te-gadget-simple .goog-te-menu-value span:last-child {
  display: inline !important;
  border-left: none !important;
  padding-left: 8px !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.goog-logo-link {
  display: none !important;
}

#google_translate_element .goog-te-gadget-icon {
  display: none !important;
}

.goog-te-gadget img {
  display: none !important;
}

.goog-te-gadget > span > a {
  display: none !important;
}

.goog-te-gadget > span > span {
  display: none !important;
}

.no-blogs {
  text-align: center;
  padding: 80px 20px;
  color: #666;
}

.no-blogs h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 12px;
  color: #333;
}

footer {
  background: url(../images/footer_bg.jpg) no-repeat center/cover;
  padding: 40px 80px;
  min-height: 280px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 14px;
  color: #090909;
  position: relative;
  z-index: 1;
  gap: 20px;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

footer div {
  margin-bottom: 30px;
}

footer h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
  color: #0e0e0e;
  font-size: 19px;
}

.social a {
  display: block;
  color: #080808;
  text-decoration: none;
  margin: 15px 0;
}

.social a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  nav {
    padding: 15px 30px;
  }
  
  .nav-menu {
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    height: 150px;
    font-size: 28px;
    padding: 0 20px;
  }

  .hero-text {
    font-size: 28px;
  }

  .hero-underline {
    width: 120px;
    height: 60px;
  }

  .categories {
    margin: 20px 0;
    padding: 0 10px;
  }

  .categories button {
    font-size: 14px;
    padding: 8px 15px;
    margin: 5px;
  }

  .dropbtn {
    font-size: 14px;
    padding: 8px 12px;
  }

  .blog-card {
    flex-direction: column !important;
    margin: 20px 15px;
    padding: 15px;
    text-align: center;
  }

  .blog-card img {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
  }

  .blog-title {
    font-size: 18px;
  }

  .blog-card-content p {
    font-size: 14px;
    text-align: left;
  }

  .submit-btn button {
    font-size: 16px;
    padding: 10px 30px;
  }

  footer {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 20px;
    gap: 15px;
  }

  footer h4 {
    font-size: 16px;
  }

  footer p {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 10px 15px;
  }

  .nav-logo img {
    height: 40px;
  }

  .hero {
    height: 120px;
    font-size: 22px;
  }

  .hero-text {
    font-size: 22px;
  }

  .hero-underline {
    width: 100px;
    height: 50px;
  }

  .categories button {
    font-size: 12px;
    padding: 6px 12px;
    margin: 3px;
  }

  .dropbtn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .blog-card {
    margin: 15px 10px;
    padding: 10px;
  }

  .blog-card img {
    width: 150px;
    height: 150px;
  }

  .blog-title {
    font-size: 16px;
  }

  .blog-card-content p {
    font-size: 13px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 20px 15px;
    text-align: center;
  }

  footer h4 {
    font-size: 15px;
  }

  footer p {
    font-size: 11px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .blog-card {
    margin: 25px 20px;
    max-width: 800px;
  }

  .blog-card img {
    width: 200px;
    height: 200px;
  }

  footer {
    padding: 40px 40px;
    grid-template-columns: repeat(3, 1fr);
  }
}