/* ================= HOME BLOG ================= */

.home-blog {
  width: 100%;
  padding: 100px 20px;

  background: #f9fafb;

  display: flex;
  justify-content: center;
}

/* Wrapper */
.blog-container {
  max-width: 1100px;
  width: 100%;
  margin: auto;
}

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

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

.blog-header h2 {
  font-size: 34px;
  font-weight: 700;

  color: #0f2341;
  margin-bottom: 10px;
}

.blog-header p {
  font-size: 16px;
  line-height: 1.6;

  color: #6b7280;
}

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

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

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

.blog-card {
  background: #ffffff;
  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);

  transition: all 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.16);
}

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

.blog-image {
  width: 100%;
  height: 200px;

  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.08);
}

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

.blog-content {
  padding: 26px 24px 28px;
}

/* Date */
.blog-date {
  font-size: 13px;
  color: #6b7280;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 10px;
}

/* Title */
.blog-content h3 {
  font-size: 19px;
  font-weight: 600;

  color: #0f2341;

  margin-bottom: 12px;

  line-height: 1.45;
}

/* Text */
.blog-content p {
  font-size: 15px;
  line-height: 1.7;

  color: #4b5563;

  margin-bottom: 18px;
}

/* Link */
.blog-content a {
  font-size: 14px;
  font-weight: 600;

  color: #1d4ed8;
  text-decoration: none;

  position: relative;

  transition: 0.25s ease;
}

.blog-content a::after {
  content: "";
  position: absolute;

  left: 0;
  bottom: -4px;

  width: 0%;
  height: 2px;

  background: #1d4ed8;

  transition: 0.3s ease;
}

.blog-content a:hover {
  color: #0f2341;
}

.blog-content a:hover::after {
  width: 100%;
}

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

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

.btn-blog {
  display: inline-block;

  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;

  padding: 13px 34px;

  border-radius: 30px;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;

  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);

  transition: all 0.3s ease;
}

.btn-blog:hover {
  background: #0f2341;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 35, 65, 0.35);
}

/* ================= ANIMATION ================= */

.fade-blog {
  opacity: 0;
  transform: translateY(40px);

  transition: all 0.7s ease;
}

.fade-blog.show {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Tablet */
@media (max-width: 900px) {
  .home-blog {
    padding: 80px 18px;
  }

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

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

/* Mobile */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .blog-header {
    margin-bottom: 45px;
  }

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

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

  .blog-image {
    height: 190px;
  }

  .blog-content {
    padding: 22px 20px 24px;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .home-blog {
    padding: 65px 15px;
  }

  .blog-content h3 {
    font-size: 17px;
  }

  .blog-content p {
    font-size: 14px;
  }

  .btn-blog {
    padding: 12px 28px;
    font-size: 13px;
  }
}
