/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text color for dark body background */
  background-color: #121212;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__dark-section {
  background-color: #0d0d0d; /* Slightly darker for contrast */
}

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-news__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Increased height for better visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 2;
}

.page-news__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #f8f8f8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #CC0000; /* Main brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__hero-button:hover {
  background-color: #e60000; /* Slightly lighter red on hover */
  transform: translateY(-3px);
}

/* Featured Articles Grid */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-news__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-news__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #FFD700; /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #FFEA00; /* Slightly brighter gold on hover */
}

.page-news__card-date {
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-link {
  display: inline-block;
  color: #CC0000; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #FFD700;
}

/* Categories Section */
.page-news__categories-section {
  background-color: #CC0000; /* Main brand color as background */
  color: #ffffff;
  padding: 80px 0;
}

.page-news__categories-section .page-news__section-title {
  color: #ffffff;
  text-shadow: none;
}

.page-news__categories-section .page-news__section-description {
  color: #f0f0f0;
}

.page-news__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-news__category-item {
  display: inline-block;
  padding: 12px 25px;
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-news__category-item:hover {
  background-color: #FFD700; /* Gold on hover */
  color: #333333; /* Dark text for gold background */
  transform: translateY(-3px);
  border-color: #FFD700;
}

/* All Articles List */
.page-news__article-list {
  margin-top: 40px;
  display: grid;
  gap: 30px;
}

.page-news__list-item {
  display: flex;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-news__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__list-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news__list-content {
  padding: 20px;
  flex-grow: 1;
}

.page-news__list-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__list-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-title a:hover {
  color: #FFEA00;
}

.page-news__list-meta {
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 15px;
}

.page-news__list-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-news__list-readmore {
  display: inline-block;
  color: #CC0000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__list-readmore:hover {
  color: #FFD700;
}

/* Pagination */
.page-news__pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background-color: #CC0000;
  color: #ffffff;
}

/* CTA Section */
.page-news__cta-section {
  background-color: #0d0d0d;
  padding: 80px 0;
}

.page-news__cta-section .page-news__section-title {
  color: #FFD700;
}

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-news__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
}

.page-news__btn-primary:hover {
  background-color: #e60000;
  transform: translateY(-3px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #333333;
  transform: translateY(-3px);
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #121212;
  padding-bottom: 80px;
}

.page-news__faq-section .page-news__section-title {
  color: #FFD700;
}

.page-news__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-news__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__list-image {
    width: 250px;
    height: 180px;
  }

  .page-news__list-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }

  .page-news__section-description {
    font-size: 0.95em;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-news__article-image {
    height: 200px;
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__categories-section {
    padding: 60px 0;
  }

  .page-news__category-list {
    gap: 10px;
  }

  .page-news__category-item {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-news__article-list {
    gap: 20px;
  }

  .page-news__list-item {
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-news__list-image {
    width: 100% !important;
    height: 220px !important;
  }

  .page-news__list-title {
    font-size: 1.2em;
  }

  .page-news__pagination {
    margin-top: 30px;
  }

  .page-news__cta-section {
    padding: 60px 0;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__faq-list {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  /* Mobile image and container responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__article-card,
  .page-news__list-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure content area images are not too small */
.page-news__article-image,
.page-news__list-image {
  min-width: 200px;
  min-height: 200px;
}

/* Global image style to prevent filter */
.page-news img {
  filter: none; /* Ensure no CSS filter is applied */
}