/* News Page Specific Styles */

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 70%
  );
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  color: white;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

.featured-article {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-image {
  height: 100%;
  overflow: hidden;
}

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

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

.featured-content {
  padding: 30px;
}

.article-meta {
  margin-bottom: 15px;
}

.article-category {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 15px;
}

.article-date {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.featured-content h2 {
  margin-bottom: 20px;
  color: var(--color-heading);
}

.featured-content p {
  margin-bottom: 20px;
  color: var(--color-text);
}

/* News Grid */
.news-grid {
  padding: 60px 0;
  background-color: var(--color-background-alt);
}

.news-filter {
  margin-bottom: 40px;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: var(--color-background);
  border: 2px solid var(--color-primary-light);
  border-radius: 30px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.search-box {
  max-width: 400px;
  margin-left: auto;
}

.news-articles {
  .news-item {
    margin-bottom: 30px;
  }
}

.news-card {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.news-category {
  position: absolute;
  bottom: 15px;
  left: 15px;
  padding: 5px 15px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
}

.news-content {
  padding: 20px;
}

.news-date {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-date i {
  margin-right: 5px;
}

.news-content h3 {
  margin-bottom: 15px;
  color: var(--color-heading);
}

.news-content h3 a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-content h3 a:hover {
  color: var(--color-primary);
}

.news-content p {
  margin-bottom: 15px;
  color: var(--color-text);
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--color-primary-dark);
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

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

.pagination {
  display: flex;
  gap: 5px;
}

.page-item .page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
  border: none;
  background-color: var(--color-card-bg);
  transition: all 0.3s ease;
}

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

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

.newsletter-content {
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-content h2 {
  margin-bottom: 20px;
  color: var(--color-primary);
}

.newsletter-content p {
  margin-bottom: 20px;
  color: var(--color-text);
}

.newsletter-form .form-control {
  height: 50px;
  border-radius: 25px 0 0 25px;
  border: 1px solid var(--color-border);
}

.newsletter-form .btn {
  border-radius: 0 25px 25px 0;
  padding-left: 20px;
  padding-right: 20px;
}

.newsletter-message {
  margin-top: 15px;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .featured-news .row {
    flex-direction: column-reverse;
  }

  .featured-image {
    height: 300px;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .page-hero {
    padding: 60px 0;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

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

  .search-box {
    margin: 20px auto 0;
  }

  .newsletter-content {
    padding: 30px 20px;
  }
}

@media (max-width: 575px) {
  .newsletter-form .input-group {
    flex-direction: column;
  }

  .newsletter-form .form-control {
    border-radius: 25px;
    margin-bottom: 10px;
  }

  .newsletter-form .btn {
    border-radius: 25px;
    width: 100%;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll.animated {
  animation: fadeInUp 1s ease-out;
}

/* News Details Page */
.news-details-hero {
  position: relative;
  height: 80vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.news-details-content {
  max-width: 800px;
  padding: 40px;
  color: white;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;

  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--color-heading);
  }
}

.news-details-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.news-details-meta {
  margin-bottom: 20px;
}

.news-details-meta .news-date {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.news-details-meta .news-date i {
  margin-right: 8px;
}

.news-details-body-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

.news-details-body {
  margin-bottom: 30px;
}

.news-details-body p {
  margin-bottom: 20px;
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1.8;
}

.news-details-tags {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-details-tags .tag {
  padding: 5px 15px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.news-details-tags .tag:hover {
  background-color: var(--color-primary);
  color: white;
}

.news-details-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-share span {
  font-size: 1rem;
  color: var(--color-text);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--color-primary);
  color: white;
}

body.dark-mode .social-link {
  background-color: rgba(var(--color-primary-rgb), 0.2);
}

body.dark-mode .social-link:hover {
  background-color: var(--color-primary);
}

body.dark-mode .news-details-tags .tag {
  background-color: rgba(var(--color-primary-rgb), 0.2);
}

body.dark-mode .news-details-tags .tag:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .news-details-hero {
    height: 70vh;
    min-height: 500px;
  }

  .news-details-content {
    padding: 30px;
  }

  .news-details-title {
    font-size: 2.2rem;
  }

  .news-details-meta .news-date {
    font-size: 1.1rem;
  }

  .news-details-body-section {
    padding: 40px 0;
  }
}

@media (max-width: 767px) {
  .news-details-hero {
    height: 60vh;
    min-height: 400px;
  }

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

  .news-details-title {
    font-size: 1.8rem;
  }

  .news-details-meta .news-date {
    font-size: 1rem;
  }

  .news-details-body p {
    font-size: 1rem;
  }

  .news-details-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-share {
    margin-top: 15px;
  }
}

@media (max-width: 575px) {
  .news-details-hero {
    height: 50vh;
    min-height: 350px;
  }

  .news-details-title {
    font-size: 1.5rem;
  }

  .news-details-meta .news-date {
    font-size: 0.9rem;
  }

  .news-details-tags .tag {
    font-size: 0.8rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
  }
}
