/* style/news.css */
/* 
  Global styles for .page-news based on body background: #0a0a0a (dark)
  Text color should be light, e.g., #ffffff.
*/
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Fixed header spacing */
.page-news__hero-section {
  padding-top: var(--header-offset, 120px);
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px;
  background-color: #1A1A1A; /* Auxiliary color for hero section background */
  overflow: hidden;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Make background image subtle */
}

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding-top: 40px; /* Adjust padding for content within hero */
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* CTA Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-news__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A; /* Dark text on gold for contrast */
  border: 2px solid #FFD700;
}

.page-news__btn-primary:hover {
  background-color: #e6c200;
  color: #1A1A1A;
}

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

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body */
  color: #f0f0f0;
}

.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__article-card {
  background-color: #1A1A1A; /* Auxiliary color for card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-news__article-title a:hover {
  color: #e6c200;
}

.page-news__article-excerpt {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
  color: #e6c200;
}

.page-news__read-more-link span {
  margin-left: 5px;
}

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

.page-news__pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #FFD700;
    background-color: #1A1A1A;
    border: 1px solid #FFD700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--disabled):not(.page-news__pagination-link--active) {
    background-color: #FFD700;
    color: #1A1A1A;
}

.page-news__pagination-link--active {
    background-color: #FFD700;
    color: #1A1A1A;
    cursor: default;
    border-color: #FFD700;
}

.page-news__pagination-link--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #cccccc;
    border-color: #cccccc;
    background-color: #1A1A1A;
}


/* Promotions Section */
.page-news__promotions-section {
  padding: 80px 0;
  background-color: #1A1A1A; /* Darker background for this section */
  color: #ffffff;
}

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

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

.page-news__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__promo-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for subtle card effect */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.page-news__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-news__promo-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__promo-text {
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

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

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

.page-news__faq-question:hover {
  background-color: rgba(255, 215, 0, 0.1); /* Subtle hover effect */
}

.page-news__faq-heading {
    margin: 0;
    color: inherit; /* Inherit color from parent for consistency */
    font-size: 1em; /* Adjust font size relative to parent */
}

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

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

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure override */
  padding: 15px 25px 20px;
}

.page-news__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #cccccc; /* Ensure readability */
}

.page-news__cta-bottom {
    text-align: center;
    margin-top: 40px;
}


/* Join Us Section */
.page-news__join-us {
  padding: 80px 0;
  background-color: #1A1A1A;
  color: #ffffff;
  text-align: center;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


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

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

  /* Fixed header spacing for mobile, inherited from desktop if not explicitly set in shared */
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 1em;
  }

  .page-news__articles-grid,
  .page-news__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-card,
  .page-news__promo-card {
    margin: 0 15px; /* Add some side padding to cards */
  }

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-news__cta-button {
    width: 100%; /* Full width buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive for mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure image containers also adapt */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__article-card,
  .page-news__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-news__faq-question,
  .page-news__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__faq-question {
    font-size: 1.1em;
  }
}

/* Ensure no filter on images */
.page-news img {
  filter: none;
}