/* style/news.css */

/* Base styles for the page content */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Ensure main content is below header */
.page-news__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.page-news__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  filter: brightness(0.7); /* Darken video for better text contrast */
  cursor: pointer; /* Indicate clickable */
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  z-index: 1;
}

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

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

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-news__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure responsiveness for buttons */
}

/* General container for content sections */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

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

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

.page-news__article-card,
.page-news__promotion-card,
.page-news__game-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 10px;
  overflow: hidden;
  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;
  height: 100%;
  color: #ffffff; /* White text for cards */
}

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

.page-news__article-image,
.page-news__promotion-image,
.page-news__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__article-content,
.page-news__promotion-content,
.page-news__game-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.page-news__article-title a,
.page-news__promotion-title a,
.page-news__game-title a {
  color: #ffffff; /* White for link text in card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promotion-title a:hover,
.page-news__game-title a:hover {
  color: #017439; /* Brand color on hover */
}

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

.page-news__article-excerpt,
.page-news__promotion-excerpt,
.page-news__game-excerpt {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  background-color: #017439; /* Brand color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background-color: #02944b; /* Slightly darker green */
}

/* Security Updates Section */
.page-news__security-updates {
  background: rgba(1, 116, 57, 0.1); /* Light transparent brand color background */
  border-radius: 10px;
  padding: 50px 20px;
  margin-top: 50px;
}

.page-news__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-news__security-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__security-text {
  flex: 1 1 400px;
  max-width: 50%;
  color: #ffffff;
}

.page-news__security-subtitle {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-news__security-subtitle a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__security-subtitle a:hover {
  color: #017439;
}

.page-news__security-text p {
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-news__faq-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 50px 20px;
  margin-top: 50px;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.2); /* Brand color for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-news__faq-question:hover {
  background-color: rgba(1, 116, 57, 0.3);
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}