/* === Blog Section === */
#blog {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  text-align: center;
}

#blog h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Grid Layout */
.article-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Article Card */
.article {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(6px);
}

.article:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Title */
.article h3 {
  font-size: 1.5rem;
  color: #1e3a8a;
  margin-bottom: 0.8rem;
}

/* Summary */
.article p {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Call to Action Link */
.article a {
  align-self: flex-start;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #2563eb;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.article a:hover {
  background-color: #2563eb;
  color: white;
}

/* Embedded Video (Optional) */
.video-container iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  margin-top: 1rem;
  border: none;
}

/* Dark Mode Support */
body.dark-mode .article {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

body.dark-mode .article h3 {
  color: #60a5fa;
}

body.dark-mode .article p {
  color: #cbd5e1;
}

body.dark-mode .article a {
  border-color: #60a5fa;
  color: #60a5fa;
}

body.dark-mode .article a:hover {
  background-color: #60a5fa;
  color: #1f2937;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  #blog {
    padding: 3.5rem 1rem;
  }

  #blog h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
  }

  .article-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article {
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
  }

  .article h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
  }

  .article p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .article a {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
  }

  .video-container iframe {
    height: 180px;
  }
}

