/* style/news.css */

/* Base styles for the news page */
.page-news {
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom for content */
}

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

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

.page-news__dark-section {
  background-color: #0A4B2C; /* Deep Green from custom palette */
  color: #F2FFF6;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold from custom palette */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  padding-top: 10px; /* Small padding at the top */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-news__hero-content {
  position: relative; /* Ensure content is above any background */
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image, but not on top of it */
  background-color: rgba(17, 40, 27, 0.9); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-50px);
}

.page-news__main-title {
  color: #F2C14E; /* Gold */
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.15em;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__card {
  background-color: #11271B; /* Card BG from custom palette */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color from custom palette */
  color: #F2FFF6;
}

.page-news__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__article-image,
.page-news__promo-image,
.page-news__game-image,
.page-news__insight-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-news__article-info,
.page-news__promo-content,
.page-news__game-content,
.page-news__insight-content {
  padding: 25px;
}

.page-news__article-title,
.page-news__promo-title,
.page-news__game-title,
.page-news__insight-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__article-title a,
.page-news__promo-title a,
.page-news__game-title a,
.page-news__insight-title a {
  color: #F2C14E; /* Gold for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promo-title a:hover,
.page-news__game-title a:hover,
.page-news__insight-title a:hover {
  color: #57E38D; /* Glow color on hover */
}

.page-news__article-date,
.page-news__promo-date,
.page-news__game-date,
.page-news__insight-date {
  font-size: 0.9em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 15px;
}

.page-news__article-excerpt,
.page-news__promo-excerpt,
.page-news__game-excerpt,
.page-news__insight-excerpt {
  font-size: 1em;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: #2AD16F; /* Button color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #F2C14E; /* Gold on hover */
}

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

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #2E7A4E;
  background-color: #11271B;
  color: #F2FFF6;
  overflow: hidden;
}

.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;
  color: #F2C14E; /* Gold for question */
  background-color: #11271B;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

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

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -80px;
    transform: translateY(-40px);
    padding: 30px 20px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image,
  .page-news__promo-image,
  .page-news__game-image,
  .page-news__insight-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section {
    padding: 30px 0;
  }
  .page-news__hero-content {
    margin-top: -60px;
    transform: translateY(-30px);
    padding: 25px 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__game-grid,
  .page-news__insight-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image,
  .page-news__promo-image,
  .page-news__game-image,
  .page-news__insight-image {
    height: 200px;
  }
  .page-news__article-info,
  .page-news__promo-content,
  .page-news__game-content,
  .page-news__insight-content {
    padding: 20px;
  }
  .page-news__article-title,
  .page-news__promo-title,
  .page-news__game-title,
  .page-news__insight-title {
    font-size: 1.2em;
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 1em;
  }

  /* Mobile specific overrides for images, videos, and buttons */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-image-wrapper,
  .page-news__container,
  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__game-grid,
  .page-news__insight-grid,
  .page-news__faq-list {
    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__read-more {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }
  .page-news__view-all {
    padding: 0 15px !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    margin-top: -40px;
    transform: translateY(-20px);
    padding: 20px 10px;
  }
  .page-news__main-title {
    font-size: clamp(1.2em, 7vw, 1.8em);
  }
  .page-news__description {
    font-size: 0.9em;
  }
  .page-news__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__article-info,
  .page-news__promo-content,
  .page-news__game-content,
  .page-news__insight-content {
    padding: 15px;
  }
  .page-news__article-title,
  .page-news__promo-title,
  .page-news__game-title,
  .page-news__insight-title {
    font-size: 1.1em;
  }
  .page-news__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-news__faq-answer {
    padding: 0 15px 12px 15px;
    font-size: 0.95em;
  }
}