/* style/news.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

.page-news {
  color: var(--color-text-main); /* Light text for dark body background */
  background-color: var(--color-background);
}

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

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

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-news__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
}

.page-news__hero-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--color-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-news__section-title {
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.8rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

/* Articles Grid */
.page-news__latest-news-section,
.page-news__promotions-section,
.page-news__game-updates-section,
.page-news__security-section,
.page-news__faq-section,
.page-news__cta-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__articles-grid,
.page-news__promo-highlights,
.page-news__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-news__article-card,
.page-news__promo-card,
.page-news__game-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
}

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

.page-news__article-image-wrapper,
.page-news__promo-image-wrapper,
.page-news__game-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

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

.page-news__article-title a,
.page-news__game-title a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__game-title a:hover {
  color: var(--color-gold);
}

.page-news__article-date {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
  display: block;
}

.page-news__article-excerpt,
.page-news__promo-text,
.page-news__game-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-news__read-more-button,
.page-news__promo-cta-button,
.page-news__game-cta-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.page-news__read-more-button:hover,
.page-news__promo-cta-button:hover,
.page-news__game-cta-button:hover {
  opacity: 0.9;
}

.page-news__view-all-button-container {
  text-align: center;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-deep-green);
  color: var(--color-text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  border: 1px solid var(--color-border);
}

.page-news__view-all-button:hover {
  background-color: var(--color-primary);
}

/* Security Section */
.page-news__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-news__feature-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.page-news__feature-title {
  font-size: 1.4rem;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__feature-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

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

.page-news__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-news__faq-item[open] > .page-news__faq-question {
  background-color: var(--color-deep-green);
}

.page-news__faq-question:hover {
  background-color: var(--color-deep-green);
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.page-news__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--color-deep-green);
  border-radius: 12px;
  margin-top: 50px;
}

.page-news__cta-section .page-news__section-title {
  color: var(--color-gold);
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-news__cta-button {
  display: inline-block;
  padding: 18px 35px;
  background: var(--color-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-news__hero-description {
    font-size: 1.05rem;
  }
  .page-news__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  /* General mobile text scaling */
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Container responsiveness */
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__promotions-section,
  .page-news__game-updates-section,
  .page-news__security-section,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__article-card,
  .page-news__promo-card,
  .page-news__game-card,
  .page-news__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    margin-top: 20px;
  }

  .page-news__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-news__hero-description {
    font-size: 1rem;
  }

  .page-news__articles-grid,
  .page-news__promo-highlights,
  .page-news__games-grid,
  .page-news__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Button responsiveness */
  .page-news__hero-cta-button,
  .page-news__read-more-button,
  .page-news__promo-cta-button,
  .page-news__game-cta-button,
  .page-news__view-all-button,
  .page-news__cta-button {
    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__view-all-button-container,
  .page-news__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__promotions-section,
  .page-news__game-updates-section,
  .page-news__security-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 10px;
  }

  .page-news__section-title {
    margin-bottom: 30px;
  }

  .page-news__section-description {
    margin-bottom: 30px;
  }

  .page-news__article-content,
  .page-news__promo-content,
  .page-news__game-content {
    padding: 15px;
  }

  .page-news__article-title,
  .page-news__promo-title,
  .page-news__game-title {
    font-size: 1.1rem;
  }

  .page-news__article-excerpt,
  .page-news__promo-text,
  .page-news__game-text {
    font-size: 0.9rem;
  }

  .page-news__feature-title {
    font-size: 1.2rem;
  }

  .page-news__cta-section {
    padding: 50px 10px;
  }
}