.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, #26A9E0, #1a8cc2); /* Brand color gradient */
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

.page-news__hero-content {
  max-width: 900px;
  z-index: 10;
  margin-bottom: 40px;
}

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

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

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

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 5;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image to enhance text contrast */
}

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

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
}

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

/* News Grid */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

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

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

.page-news__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-news__news-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #333333;
}

.page-news__news-card-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #26A9E0;
}

.page-news__news-card-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

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

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0, #1a8cc2);
  color: #ffffff;
}

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

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

.page-news__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__promotion-card-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__promotion-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #ffffff;
}

.page-news__promotion-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__promotion-card-title a:hover {
  color: #f0f0f0;
}

.page-news__promotion-card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Game Updates Section */
.page-news__game-updates-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

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

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

.page-news__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-news__game-card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
  color: #333333;
}

.page-news__game-card-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__game-card-title a:hover {
  color: #26A9E0;
}

.page-news__game-card-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

/* Security Section */
.page-news__security-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0, #1a8cc2);
  color: #ffffff;
}

.page-news__security-section .page-news__section-title,
.page-news__security-section .page-news__section-description {
  color: #ffffff;
}

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

.page-news__security-item {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__security-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-news__security-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ffffff;
}

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

.page-news__security-title a:hover {
  color: #f0f0f0;
}

.page-news__security-text {
  font-size: 0.95em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Guides Section */
.page-news__guides-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

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

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

.page-news__guide-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-news__guide-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #333333;
}

.page-news__guide-card-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__guide-card-title a:hover {
  color: #26A9E0;
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0, #1a8cc2);
  color: #ffffff;
}

.page-news__faq-section .page-news__section-title,
.page-news__faq-section .page-news__section-description {
  color: #ffffff;
}

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

.page-news__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-news__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.page-news__faq-toggle {
  margin-left: 20px;
  font-size: 1.5em;
  line-height: 1;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

.page-news__faq-answer a {
  color: #ffffff;
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #f0f0f0;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
  text-align: center;
}

.page-news__cta-box {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.page-news__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-news__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #555555;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box; /* Ensures padding doesn't increase total width */
}

.page-news__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background: #1a8cc2;
  border-color: #1a8cc2;
}

.page-news__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background: #f0f0f0;
  color: #1a8cc2;
  border-color: #1a8cc2;
}

.page-news__view-all-button {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button .page-news__btn-primary,
.page-news__view-all-button .page-news__btn-secondary {
  min-width: 200px;
}

/* Common styles for dark and light backgrounds */
.page-news__dark-bg {
  background: linear-gradient(135deg, #26A9E0, #1a8cc2);
  color: #ffffff;
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description {
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}