.blog-hero {
  padding: 40px 0 40px;
}

.blog-heading {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.blog-hero-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-layout {
  padding: 30px 0 60px;
}

.blog-sidebar {
  font-size: 14px;
}

.blog-search {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 25px;
}

.blog-sidebar h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.blog-categories {
  list-style: none;
  padding: 0;
}

.blog-categories li {
  margin-bottom: 6px;
  color: #666;
  cursor: pointer;
}

.popular-post {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.popular-post img {
  width: 55px;
  height: 55px;
  object-fit: cover;
}

.popular-post p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.popular-post span {
  font-size: 11px;
  color: #888;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  border: 1px solid #eee;
  background: #fff;
  transition: 0.3s;
}

.blog-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 12px;
}

.blog-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.blog-card p {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.blog-card a {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

.blog-pagination {
  margin-top: 30px;
  text-align: center;
}

.blog-pagination button {
  margin: 0 3px;
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.blog-pagination button.active {
  background: #000;
  color: #fff;
}

.blog-detail-section {
  padding: 40px 0 80px;
}

.blog-detail-section .padded {
  padding-left: 60px;
  padding-right: 60px;
}

.detail-hero-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.detail-title-row,
.detail-meta-row,
.detail-content-area,
.related-heading,
.related-wrapper {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.detail-title-row {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  align-items: center;
}

.detail-back {
  font-size: 28px;
  text-decoration: none;
  color: #000;
}

.detail-main-title {
  font-size: 34px;
  font-weight: 700;
}

.detail-meta-row {
  display: flex;
  justify-content: space-between;
  margin: 18px auto 30px;
  font-size: 13px;
  color: #888;
}

.detail-share {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-share span:first-child {
  font-size: 13px;
  color: #888;
}

.detail-share span[class^="icon-"] {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
}

.detail-share span[class^="icon-"]:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

#detailContent {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 28px;
}

#detailContent p {
  margin-bottom: 24px;
}

.related-heading {
  margin-top: 70px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.related-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.related-wrapper img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-wrapper p {
  margin-top: 10px;
  font-size: 13px;
  color: #000;
}

/* ================= MOBILE ================= */

@media (max-width: 992px) {

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-detail-section .padded {
    padding-left: 30px;
    padding-right: 30px;
  }

  .detail-title-row,
  .detail-meta-row,
  .detail-content-area,
  .related-heading,
  .related-wrapper {
    max-width: 100%;
  }

  .related-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-main-title {
    font-size: 36px;
  }
}

@media (max-width: 767px) {

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-detail-section .padded {
    padding-left: 20px;
    padding-right: 20px;
  }

  .detail-hero-img {
    height: 180px;
  }

  .detail-main-title {
    font-size: 28px;
  }

  .detail-meta-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .related-wrapper {
    grid-template-columns: 1fr;
  }
}