/**
 * Archive Posts - Modern Card Layout
 * Konsisten dengan single-post style (proporsional padding & background putih)
 */

/* ==========================================
   GENERAL LAYOUT
   ========================================== */

.archive-posts {
  background: #ffffff;
  padding: 0;
  margin: 0;
}

.archive-posts .container-custom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

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

.archive-header {
  padding: 40px 0 30px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.archive-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px;
}

.archive-description {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  margin-top: 10px;
}

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

.archive-content {
  padding: 40px 0;
}

/* Posts Grid - 3 columns */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

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

.post-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: #26959A;
}

/* Card Image */
.post-card-image {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .card-thumbnail {
  transform: scale(1.05);
}

/* Card Content */
.post-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category Badge */
.post-card-category {
  margin-bottom: 12px;
}

.post-card-category a {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, #26959A 0%, rgba(38, 149, 154, 0.85) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.post-card-category a:hover {
  background: linear-gradient(135deg, #1f7a7e 0%, #26959A 100%);
  transform: translateY(-1px);
}

/* Card Title */
.post-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
}

.post-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card-title a:hover {
  color: #26959A;
}

/* Card Meta */
.post-card-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.post-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #888888;
  font-weight: 500;
}

.post-card-meta svg {
  color: #26959A;
  flex-shrink: 0;
}

/* Card Excerpt */
.post-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 15px;
  flex: 1;
}

/* Read More Link */
.post-card-readmore {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #26959A;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.post-card-readmore:hover {
  color: #1f7a7e;
  gap: 5px;
}

/* ==========================================
   PAGINATION
   ========================================== */

.archive-pagination {
  padding: 30px 0 0;
  border-top: 1px solid #e0e0e0;
}

.pagination-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.pagination-list li {
  margin: 0;
}

.pagination-list a,
.pagination-list .current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-list a:hover {
  background: #26959A;
  color: #ffffff;
  border-color: #26959A;
  transform: translateY(-2px);
}

.pagination-list .current {
  background: #26959A;
  color: #ffffff;
  border-color: #26959A;
}

.pagination-list .dots {
  color: #888888;
  padding: 0 5px;
}

/* ==========================================
   NO POSTS
   ========================================== */

.no-posts {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.no-posts p {
  font-size: 16px;
  color: #888888;
  margin: 0;
}

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

/* Tablet */
@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .post-card-image {
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .archive-posts .container-custom {
    padding: 0 20px;
  }

  .archive-header {
    padding: 30px 0 20px;
  }

  .archive-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .archive-description {
    font-size: 14px;
  }

  .archive-content {
    padding: 30px 0;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .post-card-image {
    height: 200px;
  }

  .post-card-content {
    padding: 18px;
  }

  .post-card-title {
    font-size: 1rem;
  }

  .post-card-meta {
    gap: 12px;
  }

  .archive-pagination {
    padding: 25px 0 0;
  }

  .pagination-list {
    gap: 6px;
  }

  .pagination-list a,
  .pagination-list .current {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .archive-title {
    font-size: 1.3rem;
  }

  .post-card-content {
    padding: 15px;
  }

  .post-card-title {
    font-size: 0.95rem;
  }

  .post-card-excerpt {
    font-size: 13px;
  }

  .post-card-readmore {
    font-size: 13px;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
  text-align: center !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}