/* style/news.css */

/* Base styles for the page */
.page-news {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-news a {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
}

.page-news a:hover {
  text-decoration: underline;
}

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

.page-news__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* H1 font size handled by clamp */
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

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

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

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  position: relative; /* Ensure it's above other elements if needed */
  z-index: 1;
  background: linear-gradient(to top, #08160F, rgba(8, 22, 15, 0.8));
  border-radius: 0 0 8px 8px;
}

.page-news__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Primary Button */
.page-news__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
  word-wrap: normal;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Secondary Button */
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #11271B; /* Card BG as background */
  color: #57E38D; /* Glow color for text */
  border: 2px solid #2E7A4E; /* Border color */
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
  word-wrap: normal;
}

.page-news__btn-secondary:hover {
  background: #2E7A4E; /* Border color as hover background */
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* News List Section */
.page-news__news-list-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__news-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

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

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

.page-news__news-card-content {
  padding: 25px;
}

.page-news__news-card-date {
  font-size: 0.9em;
  color: #A7D9B8;
  margin-bottom: 10px;
  display: block;
}

.page-news__news-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__news-card-title a {
  color: #F2FFF6;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #57E38D;
  text-decoration: none;
}

.page-news__news-card-summary {
  font-size: 0.95em;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-news__news-card-read-more {
  color: #57E38D;
  font-weight: bold;
  display: inline-block;
  position: relative;
}

.page-news__news-card-read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #57E38D;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.page-news__news-card-read-more:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

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

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

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

.page-news__feature-item {
  background-color: #11271B;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

.page-news__feature-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-news__feature-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-news__feature-text {
  color: #A7D9B8;
}

.page-news__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* Events Section */
.page-news__events-section {
  padding: 80px 0;
  background-color: #0A4B2C;
}

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

.page-news__event-card {
  background-color: #11271B;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

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

.page-news__event-title {
  font-size: 1.3em;
  color: #F2FFF6;
  padding: 20px;
  font-weight: bold;
}

.page-news__event-text {
  color: #A7D9B8;
  padding: 0 20px 20px;
}

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

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

.page-news__guide-card {
  background-color: #11271B;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

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

.page-news__guide-title {
  font-size: 1.3em;
  color: #F2FFF6;
  padding: 20px 20px 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__guide-title a {
  color: #F2FFF6;
  transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
  color: #57E38D;
  text-decoration: none;
}

.page-news__guide-text {
  color: #A7D9B8;
  padding: 0 20px 20px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C;
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-news__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider color as hover background */
}

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

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

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

.page-news__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8;
  font-size: 0.95em;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #08160F;
  text-align: center;
}

.page-news__cta-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__cta-description {
  color: #A7D9B8;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }
  .page-news__hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 15px;
    line-height: 1.65;
  }

  .page-news__container {
    padding: 0 15px; /* Mobile padding */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }
  
  .page-news__hero-image-wrapper {
    max-height: 400px;
  }

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

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

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to the button container */
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__news-list-section,
  .page-news__game-updates-section,
  .page-news__events-section,
  .page-news__guides-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 50px 0;
  }

  .page-news__news-grid,
  .page-news__features-grid,
  .page-news__event-highlights,
  .page-news__guides-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
  }

  .page-news__news-card-image,
  .page-news__feature-image,
  .page-news__event-image,
  .page-news__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-news__cta-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-news__hero-content {
    margin-top: -30px;
  }
}