/* ================= HOME BLOG (ELEGANT VERSION) ================= */

.home-blog {
  width: 100%;
  padding: 120px 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  justify-content: center;
}

.blog-container {
  max-width: 1240px;
  width: 100%;
  margin: auto;
}

/* ================= HEADER ================= */

.blog-header {
  text-align: center;
  margin-bottom: 70px;
}

.blog-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.blog-header p {
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ================= GRID ================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ================= CARD ================= */

.blog-post {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: all 0.35s ease;
}

.blog-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

/* ================= IMAGE ================= */

.blog-post img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post:hover img {
  transform: scale(1.05);
}

/* ================= CONTENT ================= */

.blog-content {
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Date */
.blog-date {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

/* Title */
.blog-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.5;
}

.blog-content h2 a {
  text-decoration: none;
  color: #1e293b;
  transition: 0.3s ease;
}

.blog-content h2 a:hover {
  color: #2563eb;
}

/* Text */
.blog-content p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 22px;
  flex-grow: 1;
}

/* ================= READ MORE ================= */

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  position: relative;
  width: fit-content;
  transition: 0.3s ease;
}

.read-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.read-more:hover {
  color: #1d4ed8;
}

.read-more:hover::after {
  width: 100%;
}

/* ================= BUTTON ================= */

.blog-more {
  text-align: center;
  margin-top: 70px;
}

.btn-blog {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-blog:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

@media (max-width: 700px) {
  .home-blog {
    padding: 90px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-header h2 {
    font-size: 26px;
  }

  .blog-header p {
    font-size: 15px;
  }

  .blog-post img {
    height: 190px;
  }
}
