/* News & Offers Archive Styles - спільні стилі */

/* Page Header */
.archive-page-header {
  margin: 60px 0;
  
}

.archive-page-title {
  margin-bottom: 20px;
  font-size: 66px;
  font-weight: 500;
  color: var(--color-text-dark);
}

/* Filters - використовуємо стилі з projects.css */
.news-filters.project-filters {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #000;
  padding-bottom: 0;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.news-filters .project-filter-link {
  background: none;
  border: none;
  padding: 0 20px 10px 0;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  text-decoration: none;
}

.news-filters .project-filter-link:last-child {
  padding-right: 0;
}

@media (hover: hover) {
  .news-filters .project-filter-link:hover {
    color: #000;
  }
}

.news-filters .project-filter-link.active {
  color: #000;
}

/* Grid Layout */
.news__wrapper,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 20px;
  margin-bottom: 60px;
}

.news__item,
.archive-item {
  display: flex;
  flex-direction: column;
}

.news__item-img,
.archive-item-img {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Створюємо квадратний контейнер */
  height: 0;
}

.news__item-img a,
.archive-item-img a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.news__item-img img,
.archive-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.45, 0, 0.55, 1);
  display: block;
}

@media (hover: hover) {
  .news__item:hover .news__item-img img,
  .archive-item:hover .archive-item-img img {
    transform: scale(1.05);
  }
}

.news__item-date,
.archive-item-date {
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  opacity: 0.6;
}

.news__item-title,
.archive-item-title {
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  transition: color 0.3s ease;
}

@media (hover: hover) {
  .news__item-title:hover,
  .archive-item-title:hover {
    color: var(--color-accent, #D4AF37);
  }
}

.archive-title-arrow {
  margin-left: 5px;
  flex-shrink: 0;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.news-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #E5E5E5;
  /* Light border */
  border-radius: 50%;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-pagination .page-numbers.current {
  background-color: var(--color-text-dark);
  color: #fff;
  border-color: var(--color-text-dark);
}

@media (hover: hover) {
  .news-pagination .page-numbers:hover {
    background-color: var(--color-text-dark);
    color: #fff;
    border-color: var(--color-text-dark);
  }
}

/* Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.load-more-btn {
  padding: 12px 32px;
  border-radius: 100px;
  border: 1px solid #E5E5E5;
  background: transparent;
  color: var(--color-text-dark);
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (hover: hover) {
  .load-more-btn:hover {
    background: #141414;
    color: #fff;
    border-color: var(--color-text-dark);
  }
}

.load-more-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1200px) {
  .news__wrapper,
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .news__wrapper,
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
  }
}

@media (max-width: 600px) {
  .news__wrapper,
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}