body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f9fafb;
  color: #1e293b;
}

/* Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  height: 40px;
}

/* Nav Links */
nav {
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #2563eb;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #1e293b;
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Nav */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  nav.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  nav a {
    margin: 15px 0;
    font-size: 1.1rem;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  gap: 40px;
}

.hero-text {
  flex: 1 1 450px;
}

.hero-text h1 {
  font-size: 2.4rem;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.05rem;
  color: #475569;
}

.hero-img {
  flex: 1 1 450px;
  width: 100%;
  border-radius: 20px;
}

/* Article Grid */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 10% 80px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card h2 a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s;
}

.card h2 a:hover {
  color: #1e40af;
}

.card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.btn {
  background-color: #2563eb;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #1e40af;
}

/* Single Article */
.article-page {
  padding: 80px 10%;
  max-width: 900px;
  margin: auto;
}

.article-page img.featured-image {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.article-page h1 {
  color: #2563eb;
  margin-bottom: 10px;
}

.article-page h2 {
  margin-top: 25px;
  color: #1e293b;
}

.meta {
  color: #64748b;
  font-size: 0.9rem;
}

blockquote {
  border-left: 4px solid #2563eb;
  background: #f1f5f9;
  padding: 15px 20px;
  border-radius: 8px;
  color: #1e293b;
  font-style: italic;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 10%;
  background-color: #fff;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}


