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

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

/* Header */
header {
  background-color: #111;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 a {
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
}

/* Navigation */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 10px 20px;
  color: #fff;
}

.brand a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  display: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  color: #fff;
}

.hidden {
  display: none;
}

.desktop-menu {
  display: flex;
}

#mobile-menu {
  display: none;
}

/* Toggle visibility when .hidden class is removed */
#mobile-menu ul {
  flex-direction: column;
  background: #111;
  padding: 10px;
}

.menu-toggle {
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  #mobile-menu {
    display: none;
  }

  #mobile-menu.show {
    display: block;
  }
}
/* Main Content */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-card h2 {
  font-size: 1.4rem;
  margin: 15px;
  color: #222;
}

.article-card h5 {
  font-size: 0.9rem;
  margin: 0 15px;
  color: #888;
}

.article-card p {
  margin: 10px 15px 20px;
  font-size: 0.95rem;
}

.article-card a {
  color: #007BFF;
  text-decoration: none;
}

.article-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
}