/* News Page Specific Styles */

/* News Hero Section */
.news-hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(var(--primary-color-rgb), 0.8) 100%
  );
  margin-top: -100px;
}

.news-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url("/placeholder.svg?height=600&width=1200"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.news-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.75) 0%,
    rgba(var(--primary-color-rgb), 0.55) 50%,
    rgba(var(--primary-color-rgb), 0.65) 100%
  );
  z-index: 2;
}

.news-breadcrumb {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.news-breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.news-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-breadcrumb .breadcrumb-item a:hover {
  color: white;
}

.news-breadcrumb .breadcrumb-item.active {
  color: white;
}

.news-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.news-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  text-align: center;
  line-height: 1.2;
}

.news-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* News Filter Section */
.news-filter-section {
  background-color: var(--bg-primary);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.news-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.news-filter-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.news-filter-btn:hover,
.news-filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.news-search-box {
  position: relative;
  min-width: 300px;
}

.news-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

.news-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
}

/* News Grid Section */
.news-grid-section {
  background-color: var(--bg-secondary);
  padding: 4rem 0;
}

/* Featured Article */
.news-featured-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  height: 100%;
}

.news-featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-featured-image {
  min-width: 35%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

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

.news-featured-category {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-featured-content {
  padding: 2rem;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.news-featured-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-featured-title {
  margin-bottom: 1rem;
}

.news-featured-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.3s ease;
}

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

.news-featured-excerpt {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.news-featured-read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.news-featured-read-more:hover {
  color: var(--primary-color);
  gap: 1rem;
}

/* Sidebar */
.news-sidebar {
  position: sticky;
  top: 120px;
}

.news-sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.news-sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-sidebar-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
}

.news-sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-color-rgb), 0.3);
}

.news-sidebar-image {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.news-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.news-sidebar-category {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  display: block;
}

.news-sidebar-card-title {
  margin-bottom: 0.5rem;
}

.news-sidebar-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

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

.news-sidebar-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Regular News Cards */
.news-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-color-rgb), 0.2);
}

.news-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

.news-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-card-title {
  margin-bottom: 0.75rem;
  line-height: 0.8 !important;
}

.news-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1 !important;
  transition: color 0.3s ease;
}

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

.news-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.news-card-read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.news-card-read-more:hover {
  color: var(--primary-color);
  gap: 0.75rem;
}

/* Newsletter Section */
.news-newsletter-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(var(--primary-color-rgb), 0.9) 100%
  );
  padding: 4rem 0;
}

.news-newsletter-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}

.news-newsletter-icon {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.news-newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.news-newsletter-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.news-newsletter-input-group {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 0.5rem;
}

.news-newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.news-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.news-newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.news-newsletter-btn {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Dark Mode Support */
.dark .news-filter-section {
  background-color: var(--bg-primary);
  border-bottom-color: var(--border-color);
}

.dark .news-filter-btn {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.dark .news-search-input {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.dark .news-featured-card,
.dark .news-card,
.dark .news-sidebar-card {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .news-hero-title {
    font-size: 2.5rem;
  }

  .news-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .news-search-box {
    min-width: auto;
  }

  .news-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .news-hero-title {
    font-size: 2rem;
  }

  .news-hero-subtitle {
    font-size: 1rem;
  }

  .news-featured-content {
    padding: 1.5rem;
  }

  .news-featured-title a {
    font-size: 1.4rem;
  }

  .news-newsletter-input-group {
    flex-direction: column;
  }

  .news-newsletter-btn {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .news-hero-section {
    min-height: 50vh;
  }

  .news-filter-categories {
    justify-content: center;
  }

  .news-filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .news-card-content,
  .news-featured-content {
    padding: 1rem;
  }

  .news-newsletter-card {
    padding: 2rem 1rem;
  }
}
