body {
  margin: 0;
  font-family: Georgia, serif;
  background-color: #f4f4f4;
  color: #333;
}

a {
  text-decoration: none;
  color: #555;
}

a:hover {
  color: #000;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}
nav ul {
    list-style: none;
    display: flex;
    padding: 1rem 2rem;
    gap: 0.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.nav a {
  margin-left: 24px;
  font-size: 14px;
}

.nav .active {
  color: #000; /* Soft golden highlight */
  font-weight: bold;
}

.hero {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 40px;
  margin: 0;
}

.filter-dropdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem auto;
  font-family: 'Segoe UI', sans-serif;
}

.filter-dropdown label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

#category-select {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

#category-select:hover,
#category-select:focus {
  border-color: #007bff;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.2);
  outline: none;
}


.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 32px;
}

.filters a {
  margin-right: 20px;
  font-size: 14px;
}

.filters .active {
  font-weight: bold;
  color: #000;
}

.login-btn {
  padding: 6px 16px;
  font-size: 13px;
  background: transparent;
  border: 1px solid #ccc;
  cursor: pointer;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 32px 40px;
}

.blog-card {
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-content {
  padding: 16px;
}

.meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.title {
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.engagement {
  font-size: 13px;
  color: #777;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 560px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 4rem;
    z-index: 1000;
    opacity: 100%;
  }

  nav.open {
    transform: translateX(0);
  }

  nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1.5rem;
  }

  nav ul li a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
  }

  /* Hamburger -> X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

}
