/* style/news.css */
.page-news {
  color: #333333; /* Dark text for light body background */
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  padding-bottom: 60px;
  background-color: #000000; /* Dark background for hero text contrast */
  color: #FFFFFF;
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4; /* Slightly dim the image to make text pop */
}

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

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
}

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

.page-news__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

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

.page-news__btn--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-news__btn--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-news__btn--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-news__btn--login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-news__updates-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

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

.page-news__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-intro {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #333333;
}

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

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

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

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

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

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

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

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

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

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

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  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: #333333;
}

.page-news__closing-statement {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 60px auto 0 auto;
  color: #333333;
}

.page-news__cta-section {
  position: relative;
  padding: 80px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

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

.page-news__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-news__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-news__btn--play-now {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 8px;
}

.page-news__btn--play-now:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 40px;
  }
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-news__updates-section {
    padding: 40px 15px;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__section-intro,
  .page-news__closing-statement {
    font-size: 0.95em;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image {
    height: 200px;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__article-excerpt {
    font-size: 0.9em;
  }
  .page-news__cta-section {
    padding: 60px 15px;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
  .page-news__btn--play-now {
    padding: 15px 30px;
    font-size: 1.1em;
    width: 80%;
    max-width: 300px;
  }

  /* Mobile content area image constraint */
  .page-news img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__btn {
    width: 90%;
  }
  .page-news__btn--play-now {
    width: 90%;
  }
}