/* BOLO - News Page Styling */

.news-page {
  padding: 80px 0;
}

.news-header {
  margin-bottom: 3rem;
  text-align: center;
}

.news-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.news-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--dark-gray);
  font-size: 1.1rem;
}

.news-filters {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.news-filters-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-filter {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  background: var(--light-gray);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-filter:hover {
  background: rgba(0, 109, 170, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

.news-filter.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.news-search {
  margin-left: auto;
  position: relative;
  min-width: 250px;
}

.news-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--light-gray);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.news-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 109, 170, 0.1);
}

.news-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-gray);
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 109, 170, 0.2);
}

.news-card-image {
  height: 200px;
  overflow: hidden;
}

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

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

.news-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.news-card-date {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--dark-gray);
}

.news-card-date i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.news-card-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
  transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
  color: var(--primary);
}

.news-card-excerpt {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.9rem;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.news-card-author {
  display: flex;
  align-items: center;
}

.news-card-author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.75rem;
}

.news-card-author-name {
  font-size: 0.85rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.news-card-read-more {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-card-read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.news-card-read-more:hover {
  color: var(--accent);
}

.news-card-read-more:hover i {
  transform: translateX(3px);
}

/* Featured news */
.news-featured {
  margin-bottom: 4rem;
}

.news-featured-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.news-featured-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 109, 170, 0.2);
}

.news-featured-image {
  flex: 0 0 50%;
  overflow: hidden;
}

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

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

.news-featured-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.news-featured-label {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.news-featured-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  transition: color 0.3s ease;
  line-height: 1.3;
}

.news-featured-card:hover .news-featured-title {
  color: var(--primary);
}

.news-featured-excerpt {
  color: var(--dark-gray);
  margin-bottom: 2rem;
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.6;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.news-featured-author {
  display: flex;
  align-items: center;
}

.news-featured-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.news-featured-author-info {
  display: flex;
  flex-direction: column;
}

.news-featured-author-name {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.news-featured-date {
  font-size: 0.85rem;
  color: var(--dark-gray);
}

.news-featured-read {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.news-featured-read i {
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}

.news-featured-read:hover {
  background: var(--accent);
  color: white;
}

.news-featured-read:hover i {
  transform: translateX(3px);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.page-item {
  list-style: none;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--border-color);
  color: var(--secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: var(--light-gray);
  border-color: var(--primary);
  color: var(--primary);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive styles */
@media (max-width: 992px) {
  .news-featured-card {
    flex-direction: column;
  }
  
  .news-featured-image {
    flex: 0 0 250px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-search {
    width: 100%;
    margin: 1rem 0 0;
  }
}

@media (max-width: 768px) {
  .news-page {
    padding: 40px 0;
  }
  
  .news-header h1 {
    font-size: 2rem;
  }
  
  .news-filters {
    padding: 1rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-featured-title {
    font-size: 1.5rem;
  }
}