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

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

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
}

.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;
}

.page-news__hero-content {
  padding: 40px 20px;
  border-radius: 0 0 10px 10px;
  background: #11271B; /* Card BG */
  margin-top: -10px; /* Slightly overlap with image for visual flow */
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-news__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

.page-news__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
}

.page-news__btn-secondary:hover {
  background: #F2C14E;
  color: #11271B; /* Card BG */
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

/* Articles Section */
.page-news__articles-section {
  padding-bottom: 60px;
}

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

.page-news__article-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #F2C14E; /* Gold */
}

.page-news__article-meta {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-news__view-all-button {
  min-width: 200px;
}

/* About Section */
.page-news__about-section {
  padding: 60px 0;
  background: #0A4B2C; /* Deep Green */
}

.page-news__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-news__about-text {
  flex: 1;
  text-align: left;
}

.page-news__about-text p {
  font-size: 17px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-news__about-image-wrapper {
  flex: 0 0 400px;
  max-width: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

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

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 5px 5px;
}

.page-news__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  /* This page is not a homepage, so no specific homepage-hero or game trial reset needed */
  /* The general responsive rules below will apply */
}

@media (min-width: 1024px) {
  /* This page is not a homepage, so no specific homepage-hero or game trial layout needed */
  /* General desktop layout rules */
  .page-news__articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news__about-content {
    flex-direction: row;
    text-align: left;
  }

  .page-news__about-image-wrapper {
    order: 2; /* Image on right for desktop */
  }
  .page-news__about-text {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 15px;
  }

  .page-news__hero-content {
    padding: 30px 15px;
  }

  .page-news__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-news__intro-text {
    font-size: 16px;
  }

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

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image {
    height: 180px;
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__article-excerpt {
    font-size: 15px;
  }

  .page-news__about-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-news__about-image-wrapper {
    flex: none;
    max-width: 100%;
  }

  .page-news__about-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }

  .page-news__faq-qtext {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
  }

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

  .page-news__faq-answer p {
    font-size: 15px;
  }

  /* Mobile specific image and button rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__hero-image-wrapper,
  .page-news__article-card,
  .page-news__about-image-wrapper,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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__view-all-button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}