/* ===== Blog Page Styling ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Blog Section */
.blog {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

.blog h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #004aad;
  position: relative;
  font-weight: bold;
}

.blog h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #ff6600;
  margin: 12px auto 0;
  border-radius: 5px;
}

/* Blog Container (Grid Layout) */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Blog Post Card */
.blog-post {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.blog-post h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #222;
}

.blog-post p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* Read More Button */
.blog-post a {
  align-self: flex-start;
  text-decoration: none;
  background: #004aad;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.3s ease;
  font-weight: 500;
}

.blog-post a:hover {
  background: #ff6600;
}

/* Responsive */
@media (max-width: 768px) {
  .blog h2 {
    font-size: 2rem;
  }
  .blog-post h3 {
    font-size: 1.2rem;
  }
}
