/* start section hero blog */
.blog-detail-section {
  padding: 60px 20px;
  color: #333;
}

.blog-container {
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.blog-date {
  color: #0366FF;
  font-size: 14px;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 28px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 10px;
  width: 700px;
}

.blog-subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

.blog-image img {
  width: 80%;
  max-width: 800px;
  max-height: 500px;
  border-radius: 20px;
  margin-bottom: 30px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.blog-content {
  text-align: justify;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.blog-content p {
  margin-bottom: 20px;
}


.read_time {
    display: inline-block;
    background-color: #D0E8FF; 
    color: #0873ff;
    font-size: 12px;
    padding: 2px 8px;
    margin-right: 10px;
    border-radius: 999px;
}

/* Tablet styles (768px - 1024px) */
@media (max-width: 1024px) {
  .blog-detail-section {
    padding: 50px 20px;
  }

  .blog-title {
    font-size: 24px;
  }

  .blog-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .blog-image img {
    width: 85%;
    max-height: 400px;
    border-radius: 15px;
    margin-bottom: 25px;
  }

  .blog-content {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Mobile styles (up to 767px) */
@media (max-width: 767px) {
  .blog-detail-section {
    padding: 40px 15px;
  }

  .blog-date {
    font-size: 13px;
  }

  .blog-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .blog-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .blog-image img {
    width: 100%;
    max-height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
  }

  .blog-content {
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
  }

  .blog-content p {
    margin-bottom: 15px;
  }
}

/* Small mobile devices (optional) */
@media (max-width: 480px) {
  .blog-detail-section {
    padding: 30px 10px;
  }

  .blog-title {
    font-size: 20px;
  }

  .blog-subtitle {
    font-size: 13px;
  }

  .blog-image img {
    max-height: 250px;
    border-radius: 10px;
  }

  .blog-content {
    font-size: 13px;
  }
}

/* end section hero blog */


/* Start section blog */
.konten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Default: 3 columns */
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.konten-item {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s ease;
  margin-bottom: 20px;
  background-color: #fff;
}

.konten-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.konten-details {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.konten-title a {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #162C60;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.konten-title a:hover {
  color: #1e80ff;
  text-decoration: underline;
  transform: scale(1.05);
}

.konten-info {
  font-size: 14px;
  color: #6B7A99;
  margin-bottom: 12px;
}

.konten-deskripsi {
  font-size: 15px;
  color: #39445A;
  line-height: 1.5;
}

.badge-kategori {
  color: #0873ff;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
}

.konten-tanggal {
  font-size: 0.85rem;
  color: #777;
  margin-top: 10px;
}

.pagination .page-link {
  color: #0366ff;
  margin-bottom: 100px;
  margin-top: 30px;
}

.pagination .page-item.active .page-link {
  background-color: #0366ff;
  border-color: #0366ff;
  color: white;
}

.pagination .page-link:hover {
  background-color: rgba(3, 102, 255, 0.1);
}

/* Tablet styles (768px - 1024px) */
@media (max-width: 1024px) {
  .konten-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for tablet */
    gap: 15px;
  }

  .konten-image {
    height: 200px;
  }

  .konten-title a {
    font-size: 17px;
  }

  .konten-deskripsi {
    font-size: 14px;
  }
}

/* Mobile styles (up to 767px) */
@media (max-width: 767px) {
  .konten-grid {
    grid-template-columns: 1fr;
    /* 1 column for mobile */
    gap: 15px;
  }

  .konten-item {
    margin-bottom: 15px;
  }

  .konten-image {
    height: 180px;
  }

  .konten-title a {
    font-size: 16px;
  }

  .konten-info {
    font-size: 13px;
  }

  .konten-deskripsi {
    font-size: 14px;
  }

  .pagination .page-link {
    margin-bottom: 60px;
    margin-top: 20px;
  }
}

/* Small mobile devices (optional) */
@media (max-width: 480px) {
  .konten-image {
    height: 180px;
  }

  .konten-details {
    padding-top: 12px;
  }

  .konten-title a {
    font-size: 15px;
  }

  .konten-deskripsi {
    font-size: 13px;
  }
}

/* end section blog */