/* ===========================================================
   Blog — listing page, detail page, sidebar components
=========================================================== */

/* --- Search box in hero --- */
.blog-search-form {
  width: 100%;
  margin: 0 auto 24px;
  position: relative;
}
.blog-search-form input[type="text"] {
  width: 100%;
  padding: 13px 50px 13px 20px;
  border-radius: 30px;
  border: none;
  box-shadow: none;
  outline: none;
  background: rgb(255 255 255);
  color: #000000;
  font-size: 14px;
}
.blog-search-form input::placeholder {
  color: #000000;
}

.blog-search-form button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  width: 38px;
  border: none;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  cursor: pointer;
}

/* --- Category filter pills --- */
.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}
.blog-category-pill {
  border: 1.5px solid #dcdfe4;
  background: #fff;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-category-pill:hover {
  border-color: #76b413;
  color: #1c1f26;
}
.blog-category-pill.is-active {
  background: #1c1f26;
  border-color: #1c1f26;
  color: #fff;
}
.blog-category-pill .count {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
}
.blog-category-pill.is-active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Layout: main + sidebar --- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 991px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Featured post --- */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #ecedf0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease;
}
.blog-featured-card:hover {
  box-shadow: 0 14px 30px rgba(16, 34, 0, 0.1);
}
.blog-featured-img {
  position: relative;
  min-height: 260px;
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #76b413;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 30px;
}
.blog-featured-cont {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-cat-label {
  font-size: 12px;
  font-weight: 700;
  color: #4c8f0f;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.blog-featured-cont h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1c1f26;
  margin-bottom: 12px;
  line-height: 1.3;
}
.blog-featured-cont p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .blog-featured-img {
    min-height: 200px;
  }
}

/* --- Post meta row (author, date, read time, views) --- */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.blog-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1c1f26;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.blog-post-meta-text {
  font-size: 12.5px;
  color: #888;
  line-height: 1.4;
}
.blog-post-meta-text strong {
  color: #333;
  display: block;
  font-size: 13px;
}
.blog-post-stats {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.blog-post-stats span {
  display: inline-flex;
  align-items: center;
      color: #333;
  gap: 4px;
}

/* --- Post grid card --- */
.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.blog-post-card {
  background: #fff;
  border: 1px solid #ecedf0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.blog-post-card:hover {
  box-shadow: 0 14px 30px rgba(16, 34, 0, 0.08);
  transform: translateY(-3px);
}
.blog-post-card-img {
  position: relative;
  padding-top: 60%;
  z-index: 1;
}
.blog-post-card-img img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}
.blog-post-card-cont {
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.blog-post-card-cont h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1c1f26;
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-post-card-cont p {
  font-size: 13.5px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}

@media (max-width: 575px) {
  .blog-post-card {
    grid-template-columns: 1fr;
  }
  .blog-post-card-cont {
    padding: 18px;
  }
  .blog-post-card-img img {
    min-height: 180px;
  }
}

/* --- Pagination --- */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}
.blog-pagination a,
.blog-pagination span {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #dcdfe4;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  flex-shrink: 0;
}
.blog-pagination a:hover {
  border-color: #76b413;
  color: #1c1f26;
}
.blog-pagination .is-current {
  background: #1c1f26;
  border-color: #1c1f26;
  color: #fff;
}
.blog-pagination .is-ellipsis {
  border: none;
  min-width: 20px;
  width: 20px;
  color: #aaa;
  font-weight: 700;
}
.blog-pagination .blog-page-nav {
  background: #fff;
  color: #1c1f26;
}
.blog-pagination .blog-page-nav.is-disabled {
  color: #ccc;
  border-color: #ecedf0;
  cursor: default;
}

@media (max-width: 480px) {
  .blog-pagination a,
  .blog-pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    padding: 0 8px;
  }
}
.blog-pagination .is-current {
  background: #1c1f26;
  border-color: #1c1f26;
  color: #fff;
}

/* --- Sidebar --- */
.blog-sidebar-box {
  background: #fff;
  border: 1px solid #ecedf0;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 24px;
}
.blog-sidebar-box h4 {
  font-size: 16px;
  color: #1c1f26;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #333;
}
.blog-sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0px;
  border-bottom: 1px dashed #3333;
  text-decoration: none;
  color: #444;
  font-size: 13.5px;
  transition: background 0.15s ease;
}

.blog-sidebar-cat-list li:first-child a {
  padding-top: 0;
}

.blog-sidebar-cat-list li:last-child a {
  border: none;
  padding-bottom: 0;
}

.blog-sidebar-cat-list .count {
  color: #000000;
  font-size: 12px;
}

.blog-sidebar-latest {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-sidebar-latest a {
  text-decoration: none;
  display: block;
}
.blog-sidebar-latest h5 {
  font-size: 13.5px;
  font-weight: 600;
  color: #1c1f26;
  margin-bottom: 4px;
  line-height: 1.4;
}
.blog-sidebar-latest span {
  font-size: 11.5px;
  color: #999;
}
.blog-sidebar-latest a:hover h5 {
  color: #76b413;
}

.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.blog-tag-cloud a {
  background: #1c1c1c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.blog-tag-cloud a:hover {
  opacity: 0.8;
  color: #fff;
}

.blog-sidebar-cta {
  background: #1c1f26;
  border-radius: 14px;
  padding: 24px;
  color: #fff;
  text-align: center;
}
.blog-sidebar-cta h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 8px;
}
.blog-sidebar-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12.5px;
  margin-bottom: 16px;
}
.blog-sidebar-cta .cmn-btn {
  width: 100%;
  justify-content: center;
}
.blog-sidebar-cta .cmn-btn span {
  justify-content: center;
  width: 100%;
}

/* --- Detail page --- */
.blog-detail-header-cat {
  margin-bottom: 14px;
}
.blog-detail-body h2,
.blog-detail-body h3 {
  color: #1c1f26;
  margin: 28px 0 14px;
  font-weight: 700;
}
.blog-detail-body h2 {
  font-size: 22px;
}
.blog-detail-body h3 {
  font-size: 19px;
}
.blog-detail-body p {
  margin-bottom: 16px;
}
.blog-detail-body ul,
.blog-detail-body ol {
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 22px;
}
.blog-detail-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 30px;
}

.blog-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 24px;
    border-top: 1px solid #959595;
}
.blog-detail-tags a {
    background: #0e1531;
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
}
.blog-detail-tags a:hover {
  background: #e2ecd6;
}

.blog-detail-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f7f8fa;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 30px 0;
}
.blog-detail-author-box .blog-author-avatar {
  width: 52px;
  height: 52px;
  font-size: 16px;
}
.blog-detail-author-box h5 {
  font-size: 15px;
  font-weight: 700;
  color: #1c1f26;
  margin-bottom: 2px;
}
.blog-detail-author-box span {
  font-size: 12.5px;
  color: #888;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 767px) {
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}
