body {
  font-family: system-ui, sans-serif;
  background: #f9fafb;
  margin: 0;
}

.blog-container {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
}

.blog-container h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

#searchInput {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 40px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.article-card {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.article-card h2 {
  font-size: 20px;
}

.article-card a {
  display: inline-block;
  margin-top: 16px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.single-article {
  max-width: 800px;
  margin: auto;
  padding: 80px 20px;
}

.single-article h1 {
  font-size: 36px;
}

.date {
  color: #6b7280;
  margin-bottom: 40px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  text-decoration: none;
  color: #2563eb;
}

.meta span {
  background: #eef2ff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 6px;
}

/* ===== FEATURED ARTICLE ===== */
.featured {
  margin-bottom: 60px;
}

.featured-card {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.25), transparent 60%);
}

.featured-card h2 {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.featured-card h3 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-card p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
}

.featured-card a {
  display: inline-block;
  margin-top: 24px;
  background: #fff;
  color: #1e40af;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.featured-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 60px 0 20px;
}

.pagination button {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.pagination button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* ===== RELATED ARTICLES ===== */
.related {
  max-width: 800px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

.related h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.related div {
  display: grid;
  gap: 16px;
}

.related a {
  display: block;
  padding: 18px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  transition: all 0.2s ease;
}

.related a:hover {
  border-color: #2563eb;
  background: #f5f8ff;
  color: #2563eb;
  transform: translateX(4px);
}

/* Article media */
.single-article img,
.single-article video {
  max-width: 100%;
  border-radius: 16px;
  margin: 30px 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

#articleBody img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 12px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
}

.header-container {
  max-width: 1100px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  color: #2563eb;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: #111827;
  font-weight: 600;
}

.nav a:hover {
  color: #2563eb;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.category-filter button {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.category-filter button.active,
.category-filter button:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* ===== MULTIPLE FEATURED GRID ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .blog-container h1 {
    font-size: 28px;
  }

  .featured-card h3 {
    font-size: 22px;
  }
}