/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  line-height: 1.6;
  background-color: black; /* sides black */
}

.page-container {
  background-color: white;
  max-width: 70%;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #90EE90; /* light green */
  color: #222;
  padding: 12px 25px;
  border-bottom: 2px solid #6CC66C;
}

.navbar .logo {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
}

.menu-icon .hamburger {
  font-size: 1.5em;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.menu-icon .hamburger:hover {
  color: #006400;
}

/* Drawer Styles */
.drawer {
  position: fixed;
  top: 0;
  right: -300px; /* hidden initially */
  background-color: white;
  padding: 20px;
  box-shadow: -4px 0 8px rgba(0,0,0,0.2);
  border-left: 1px solid #ccc;
  transition: right 0.3s ease;
  z-index: 1000;
  display: inline-block;
}

.drawer.open {
  right: 0;
}

.drawer .close-btn {
  font-size: 1.5em;
  cursor: pointer;
  display: block;
  text-align: right;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.drawer-links a {
  text-decoration: none;
  color: #222;
  padding: 8px 0;
  font-size: 16px;
  transition: color 0.3s;
}

.drawer-links a:hover {
  color: #006400;
}

/* Blog Topic */
.blog-topic {
  text-align: center;
  margin: 30px auto 10px;
}

.blog-topic h1 {
  font-size: 2em;
  color: #333;
}

/* Blog Overview */
.blog-overview {
  text-align: center;
  max-width: 800px;
  margin: 10px auto;
  font-size: 1em;
  color: #666;
  padding: 0 20px;
}

/* Blog Image */
.blog-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.blog-image img {
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  height: auto;
  max-height: 420px;
}

/* Blog Article */
.blog-article {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 25px;
  text-align: justify;
  line-height: 1.8;
}

.blog-article p {
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background-color: #f5f5f5;
  padding: 30px 15px;
  text-align: center;
}

.footer h2 {
  margin-bottom: 20px;
  color: #333;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-card {
  width: 220px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-decoration: none;
  color: #222;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.footer-card p {
  padding: 10px;
}

.footer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.footer-nav {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-nav a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #000;
}

.footer p {
  margin-top: 15px;
  font-size: 13px;
  color: #777;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-container {
    max-width: 100%;
    background-color: white;
  }

  .blog-topic h1 {
    font-size: 1.5em;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-card {
    width: 90%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}
