/* ================= BASE ================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}

/* ================= HEADER IMAGE ================= */
.blog-main-header {
  height: 60vh;
  background: url("/blogs-images/blogs-header.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
}

.blog-main-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.blog-main-header-title {
  position: relative;
  font-size: 42px;
  z-index: 1;
}

/* ================= CONTAINER ================= */
.blog-main-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

/* ================= BLOG GRID ================= */
.blog-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* ================= BLOG ITEM ================= */
.blog-main-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: 0.3s ease;
  text-decoration: none;
  color: #000;
}

.blog-main-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-main-item-content {
  padding: 25px;
  text-align: center;
}

.blog-main-item h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.blog-main-item p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* ================= HOVER ================= */
.blog-main-item:hover {
  transform: translateY(-6px);
  background: #222;
  color: white;
}

.blog-main-item:hover p {
  color: #ddd;
}

/* ================= RESPONSIVE ================= */

/* Tablets */
@media (max-width: 992px) {
  .blog-main-header-title {
    font-size: 34px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .blog-main-header {
    height: 45vh;
  }

  .blog-main-header-title {
    font-size: 28px;
    text-align: center;
  }

  .blog-main-item img {
    height: 160px;
  }
}
