/* News Page Styles */

/* Hero Section */
.news-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 50px;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  overflow: hidden;
}

.news-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(241, 90, 34, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.news-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.news-hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--light-text) 0%, var(--primary-color) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  font-weight: 700;
}

.news-hero-content p {
  font-size: 18px;
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Featured News Section */
.featured-news {
  padding: 80px 0;
  background-color: var(--dark-bg);
}

.featured-news-item {
  display: flex;
  background: rgba(30, 30, 30, 0.6);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .featured-news-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.featured-news-image {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
}

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

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

.featured-news-content {
  flex: 0 0 60%;
  padding: 30px;
}

.news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.news-date {
  font-size: 14px;
  color: var(--gray-text);
}

.news-category {
  font-size: 12px;
  font-weight: 600;
  color: white;
  background-color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 20px;
}

.featured-news-content h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--light-text);
}

.featured-news-content p {
  font-size: 16px;
  color: var(--gray-text);
  margin-bottom: 15px;
  line-height: 1.6;
}

.news-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.news-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-share span {
  font-size: 14px;
  color: var(--gray-text);
}

.share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  transition: all 0.3s ease;
}

.light-theme .share-icon {
  background: rgba(0, 0, 0, 0.1);
  color: var(--dark-text);
}

.share-icon:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* News Listing Section */
.news-listing {
  padding: 80px 0;
  background-color: var(--darker-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.news-item {
  background: rgba(30, 30, 30, 0.6);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.light-theme .news-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.light-theme .news-item:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.news-item:hover .news-item-image img {
  transform: scale(1.1);
}

.news-category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.news-item-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-item-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--light-text);
  line-height: 1.4;
}

.news-item-content p {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: auto;
}

.read-more::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.read-more:hover::after {
  width: 100%;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pagination-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border-radius: 50%;
  font-weight: 500;
  transition: all 0.3s ease;
}

.light-theme .pagination-link {
  background: rgba(0, 0, 0, 0.05);
  color: var(--dark-text);
}

.pagination-link.active,
.pagination-link:hover {
  background: var(--primary-color);
  color: white;
}

.pagination-ellipsis {
  color: var(--gray-text);
}

.pagination-next {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.light-theme .pagination-next {
  background: rgba(0, 0, 0, 0.05);
  color: var(--dark-text);
}

.pagination-next:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(3px);
}

/* Newsletter Section */
.newsletter-section {
  padding: 60px 0;
  background-color: var(--dark-bg);
}

.newsletter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(241, 90, 34, 0.1), rgba(0, 204, 255, 0.1));
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .newsletter-container {
  background: linear-gradient(135deg, rgba(241, 90, 34, 0.05), rgba(0, 204, 255, 0.05));
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.newsletter-content {
  max-width: 60%;
}

.newsletter-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--light-text);
}

.newsletter-content p {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  min-width: 40%;
}

.newsletter-input {
  flex-grow: 1;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
}

.light-theme .newsletter-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--dark-text);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.newsletter-button {
  white-space: nowrap;
  padding: 12px 20px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .featured-news-item {
    flex-direction: column;
  }

  .featured-news-image {
    flex: 0 0 300px;
  }

  .featured-news-content {
    flex: 1;
  }

  .newsletter-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .newsletter-content {
    max-width: 100%;
  }

  .newsletter-form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .news-hero-content h1 {
    font-size: 36px;
  }

  .news-hero-content p {
    font-size: 16px;
  }

  .featured-news-content h3 {
    font-size: 24px;
  }

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

  .news-actions {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .news-share {
    margin-top: 10px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .news-hero-content h1 {
    font-size: 28px;
  }

  .featured-news-content {
    padding: 20px;
  }

  .featured-news-content h3 {
    font-size: 20px;
  }

  .news-item-content {
    padding: 20px;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

