.archive-header {
  position: relative;
  margin: 0.5rem 0;
}

.archive-title {
  text-align: center;
  border: 1px solid #d6a000;
  box-sizing: border-box;
  margin: 50px 0;
}

.archiveimg {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.latest-post-item {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.latest-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.latest-post-thumb {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.latest-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.latest-post-content {
  padding: 1.5rem;
}

.latest-post-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.latest-post-title a {
  text-decoration: none;
  color: inherit;
}

.latest-post-meta {
  font-size: 0.85rem;
  color: #2a2a2a;
  margin-bottom: 0.75rem;
}

.latest-post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.latest-post-readmore {
  font-weight: 500;
  text-decoration: none;
  color: #d62828;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid #e5e5e5;
  color: #333;
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: #000;
  color: #fff;
  border-color: #000;
}

.pagination .page-numbers:hover {
  background: #f2f2f2;
}

/* Responsive */
@media (min-width: 768px) {
  .latest-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .latest-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}




/* ===============================
   Featured Posts List (Flexbox)
================================ */

.featured-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* Card wrapper */
.featured-post-item {
  display: flex;
  width: 100%;
  background: var(--white-color);
  border: 1px solid #e5e5e5;
  overflow: hidden;
  align-items: stretch;
  transition: all 0.3s ease-in-out;
}

.featured-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}

/* ===============================
   Left Image Column (30%)
================================ */

.featured-post-thumb {
  flex: 0 0 30%;
  max-width: 30%;
  overflow: hidden;
  display: flex;
  align-self: stretch;
}

.featured-post-thumb a {
  display: flex;
  width: 100%;
  height: 100%;
}

.featured-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===============================
   Right Content Column (70%)
================================ */

.featured-post-content {
  flex: 0 0 70%;
  max-width: 70%;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

/* Title */
.featured-post-title {
  font-size: 0.8rem;
  padding: 0;
}

.featured-post-title a {
  color: inherit;
  text-decoration: none;
}

/* Meta / Date */
.featured-post-meta {
  font-size: 0.7rem;
  color: #2a2a2a;
  margin-bottom: 0;
}

/* ===============================
   Mobile Layout
================================ */

@media (max-width: 768px) {
  .featured-post-item {
    flex-direction: column;
  }

  .featured-post-thumb,
  .featured-post-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .featured-post-thumb {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .featured-post-item {
    flex-direction: row;
  }

  .featured-post-thumb {
    flex: 0 0 30%;
    max-width: 30%;
    height: auto;
    overflow: hidden;
    display: flex;
  }

  .featured-post-content {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
  }

  .latest-post-thumb {
    height: auto;
  }
}