/* ===== Year Archive Layout (Identical to Brand) ===== */
.brand-archive {
  padding: 2rem;
  background-color: #f9f9f9;
}

.brand-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #111;
}

.brand-description {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1rem;
  color: #555;
  text-align: center;
}

/* ===== Grid Layout ===== */
.brand-posts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

/* ===== Individual Card (Spans 3 Columns) ===== */
.brand-post-item {
  grid-column: span 3;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  height: auto;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.brand-post-item:hover {
  transform: translateY(-4px);
}

/* ===== Image Styling ===== */
.brand-post-item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: 5px;
}

/* ===== Title and Fields ===== */
.mobile-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem 0;
  color: #222;
}

.mobile-price,
.mobile-chipset {
  font-size: 0.9rem;
  color: #555;
  margin: 0.25rem 0;
}

/* ===== Pagination ===== */
.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
}

.pagination .current {
  background-color: #333;
  color: #fff;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1200px) {
  .brand-post-item {
    grid-column: span 4; /* 3 items per row */
  }
}

@media (max-width: 768px) {
  .brand-post-item {
    grid-column: span 6; /* 2 items per row */
  }
}

@media (max-width: 480px) {
  .brand-post-item {
    grid-column: span 12; /* 1 item per row */
  }
}
