/* General Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Root Variables */
    :root {
      --primary-color: #2563eb;
      --secondary-color: #1e40af;
      --accent-color: #3b82f6;
      --text-color: #1f2937;
      --light-text: #6b7280;
      --bg-color: #f9fafb;
      --white: #ffffff;
      --gray: #e5e7eb;
      --dark-gray: #9ca3af;
    }

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #0077cc;
  color: white;
  padding: 1rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo {
  font-size: 1.8rem;
}
.navbar nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar nav a:hover {
  color: #ffdb58;
}

/* Hero Section */
.hero {
  background: #005fa3;
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.2rem;
}

/* Blog Feed */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
}
.blog-card img {
  width: 100%;
  height: auto;
}
.card-content {
  padding: 1.5rem;
}
.card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.card-content p {
  color: #555;
}
.read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.read-more:hover {
  background: #005fa3;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

@media(max-width: 600px) {
  .hero h2 { font-size: 1.8rem; }
  .navbar nav a { margin-left: 1rem; }
}

/* Category Filter Section */
/* .category-filter {
  text-align: center;
  margin: 2rem auto;
}

.filter-btn {
  background: rgba(0,119,204,0.1);
  border: 2px solid #0077cc;
  color: #0077cc;
  border-radius: 10px;
  width: 70px;
  height: 70px;
  margin: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.filter-btn:hover {
  background: #0077cc;
  color: white;
}

.filter-btn.active {
  background: #0077cc;
  color: white;
} */

/* Category Filter Section */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 999;
}

.filter-btn {
  background: white; /* transparent otherwisr */
  color: #333;
  border: 1px solid #ccc;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #007bff; /* blue background */
  color: #fff;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Hamburger Menu */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  display: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav#nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #0077cc;
    padding: 1rem;
    text-align: center;
  }

  nav#nav-links a {
    margin-left: 0;
  }

  nav#nav-links.show {
    display: flex;
  }

  .category-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .card-content {
    padding: 1rem;
  }
}

/* By default, show nav on desktop */
#nav-links {
  display: flex;
  gap: 1.5rem;
}

/* Hide on mobile, show only if .show class is added */
@media (max-width: 768px) {
  #nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background-color: #0077cc;
    padding: 1rem;
    text-align: center;
  }

  #nav-links.show {
    display: flex;
  }
}
