/* Hero Section */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Filters Section */
.filters-section {
  margin-bottom: 30px;
}

.search-form {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-group {
  display: flex;
  flex: 1;
  max-width: 400px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input-group .form-control {
  border: none;
  padding: 12px 20px;
  border-radius: 25px 0 0 25px;
}

.search-input-group .btn {
  border-radius: 0 25px 25px 0;
  padding: 12px 25px;
  background: #d84400;
  border-color: #a83804;
}

.search-input-group .btn:hover {
  background: #b93f06;
}

.category-filter .form-control {
  padding: 12px 20px;
  border-radius: 25px;
  border: 1px solid #ddd;
  min-width: 200px;
}

.search-results-info {
  margin-top: 15px;
  color: #666;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.article-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f0ff, #ede9fe);
  color: #d84400;
  font-size: 3rem;
}

.article-image .badge-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #d84400;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.article-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.article-meta i {
  margin-right: 5px;
}

.article-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-title a {
  font-family: var(--font-heading);
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.article-title a:hover {
  color: #d84400;
}

.article-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.article-views {
  color: #888;
  font-size: 0.8rem;
}

.btn-read-more {
  color: #d84400;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s;
}

.btn-read-more:hover {
  gap: 10px;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

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

.pagination-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.pagination-link:hover {
  background: #d84400;
  border-color: #d84400;
  color: white;
}

.pagination-link.active {
  background: #d84400;
  border-color: #d84400;
  color: white;
}

.pagination-ellipsis {
  padding: 10px;
  color: #888;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #333;
  margin-bottom: 10px;
}

.empty-state p {
  color: #666;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 1.8rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-group {
    max-width: 100%;
  }

  .category-filter .form-control {
    min-width: 100%;
  }
}
