/* style/news.css */
/* Body background is #08160F (very dark green), so text must be light. */
/* Card backgrounds are #11271B (dark green), so text on cards must be light. */

.page-news {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

.page-news__section-padding {
  padding: 60px 0;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__section-subtitle {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-news__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly with image for visual flow */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%); /* Fade from semi-transparent to solid background */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 10;
}

.page-news__hero-title {
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 does not overflow */
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-news__hero-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Green from Button gradient */
  border: 2px solid #2AD16F; /* Border */
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.page-news__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #57E38D; /* Glow */
  border-color: #57E38D; /* Glow */
  transform: translateY(-3px);
}

/* News Grid */
.page-news__news-grid,
.page-news__promotions-grid,
.page-news__game-grid,
.page-news__insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__news-card,
.page-news__promotion-card,
.page-news__game-card,
.page-news__insight-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover,
.page-news__promotion-card:hover,
.page-news__game-card:hover,
.page-news__insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.page-news__news-card-image,
.page-news__promotion-card-image,
.page-news__game-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-news__news-card-title,
.page-news__promotion-card-title,
.page-news__game-card-title,
.page-news__insight-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__news-card-title a,
.page-news__promotion-card-title a,
.page-news__game-card-title a,
.page-news__insight-card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover,
.page-news__promotion-card-title a:hover,
.page-news__game-card-title a:hover,
.page-news__insight-card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-news__news-card-date,
.page-news__promotion-card-validity {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__news-card-description,
.page-news__promotion-card-description,
.page-news__game-card-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__news-card-link,
.page-news__insight-card-link {
  display: inline-block;
  margin-top: auto;
  color: #2AD16F; /* Green from Button gradient */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__news-card-link:hover,
.page-news__insight-card-link:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

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

/* CTA Section */
.page-news__cta-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-news__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: 0;
}

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

.page-news__cta-title {
  color: #F2FFF6; /* Text Main */
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.page-news__cta-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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: #F2FFF6; /* Text Main */
  background-color: #1E3A2A; /* Divider - slightly lighter for question bar */
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #2E7A4E; /* Border - hover effect */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #2AD16F; /* Green from Button gradient */
  transition: transform 0.3s ease;
}

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

.page-news__faq-item[open] .page-news__faq-question {
  background-color: #2E7A4E; /* Border */
}

.page-news__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.0em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

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

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

.page-news__faq-answer a {
  color: #2AD16F; /* Green from Button gradient */
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #57E38D; /* Glow */
}

/* For details/summary, hide default marker */
.page-news__faq-item summary {
  list-style: none;
}

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

/* Global image settings for content area to prevent small icons */
.page-news img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__hero-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-news__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }
  .page-news__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news__section-padding {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-news__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-news__hero-image-wrapper {
    max-height: 400px;
  }
  .page-news__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }
  .page-news__hero-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-cta-buttons,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    flex-wrap: wrap !important;
    gap: 15px;
    flex-direction: column;
  }

  /* Cards & Grid */
  .page-news__news-grid,
  .page-news__promotions-grid,
  .page-news__game-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news__news-card-image,
  .page-news__promotion-card-image,
  .page-news__game-card-image {
    height: 180px;
  }
  .page-news__news-card-content,
  .page-news__promotion-card-content,
  .page-news__game-card-content {
    padding: 20px;
  }
  .page-news__news-card-title,
  .page-news__promotion-card-title,
  .page-news__game-card-title,
  .page-news__insight-card-title {
    font-size: 1.2em;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 60px 0;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }

  /* FAQ Section */
  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  /* Image responsive override */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__cta-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-news__hero-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__cta-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}