/* style/news.css */

/* --- General Page Styles --- */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set to match shared.css var(--secondary-color) */
}

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

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

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

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by 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: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
}

.page-news__btn-primary:hover {
  background-color: #005a2e; /* Slightly darker green on hover */
}

/* --- Latest News Section --- */
.page-news__latest-news-section {
  padding: 80px 0;
}

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

.page-news__article-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__article-content {
  padding: 20px;
}

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

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

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

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

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

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

.page-news__read-more:hover {
  color: #005a2e;
}

.page-news__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
  transform: translateX(5px);
}

/* --- Featured Articles Section (Dark Background) --- */
.page-news__featured-articles-section {
  background-color: #017439; /* Primary brand color for dark section */
  color: #FFFFFF;
  padding: 80px 0;
}

.page-news__featured-articles-section .page-news__section-title,
.page-news__featured-articles-section .page-news__section-description {
  color: #FFFFFF; /* White text for dark background */
}

.page-news__articles-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-news__list-item {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-news__list-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__list-image {
  width: 300px; /* Fixed width for list item image on desktop */
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

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

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

.page-news__list-title a {
  color: #FFFFFF; /* White text for titles on dark background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-title a:hover {
  color: #FFFF00; /* Yellow on hover for better contrast */
}

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

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

.page-news__featured-articles-section .page-news__read-more {
  color: #FFFF00; /* Yellow for read more on dark background */
}

.page-news__featured-articles-section .page-news__read-more:hover {
  color: #FFFFFF;
}

/* --- Game Updates Section --- */
.page-news__game-updates-section {
  padding: 80px 0;
}

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

.page-news__update-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px; /* Add padding to bottom */
}

.page-news__update-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-news__update-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-news__update-title {
  font-size: 1.3em;
  margin-bottom: 8px;
  padding: 0 20px;
}

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

.page-news__update-title a:hover {
  color: #005a2e;
}

.page-news__update-date {
  font-size: 0.85em;
  color: #777777;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-news__update-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px;
}

/* --- Promotions Section (Dark Background) --- */
.page-news__promotions-section {
  background-color: #017439; /* Primary brand color for dark section */
  color: #FFFFFF;
  padding: 80px 0;
}

.page-news__promotions-section .page-news__section-title,
.page-news__promotions-section .page-news__section-description {
  color: #FFFFFF;
}

.page-news__promotions-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-news__promo-item {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-news__promo-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

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

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

.page-news__promo-title a:hover {
  color: #FFFF00;
}

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

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

.page-news__promotions-section .page-news__read-more {
  color: #FFFF00;
}

.page-news__promotions-section .page-news__read-more:hover {
  color: #FFFFFF;
}

/* --- FAQ Section --- */
.page-news__faq-section {
  padding: 80px 0;
}

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

.page-news__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #f0f0f0;
}

.page-news__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #017439;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important;
  padding: 20px;
}

.page-news__faq-answer p {
  margin: 0;
  color: #555555;
}

/* --- Call to Action Section (Dark Background) --- */
.page-news__cta-section {
  background-color: #017439; /* Primary brand color for dark section */
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
  color: #FFFFFF;
}

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

.page-news__btn-register,
.page-news__btn-login {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-news__btn-register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

.page-news__btn-register:hover {
  background-color: #e00a0a; /* Slightly lighter red on hover */
  border-color: #e00a0a;
  color: #FFFFFF; /* White text on hover */
}

.page-news__btn-login {
  background-color: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color for login */
  border: 2px solid #C30808;
}

.page-news__btn-login:hover {
  background-color: #e00a0a;
  border-color: #e00a0a;
  color: #FFFFFF;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__list-item {
    flex-direction: column;
  }
  .page-news__list-image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not covered */
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Images, Videos, Buttons Responsive Adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"],
  .page-news__btn-register,
  .page-news__btn-login {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }
  
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-news__list-item {
    flex-direction: column;
  }

  .page-news__promo-item {
    flex-direction: column;
  }

  .page-news__list-image,
  .page-news__promo-image {
    width: 100%;
    height: 200px;
  }

  .page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-question h3 {
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    height: 350px;
  }
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__hero-content {
    padding: 10px;
  }
}