/* style/news.css */
.page-news {
  color: #F2FFF6; /* Main text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Ensure consistency with body background */
}

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

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

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

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

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to slightly overlap the image, but not cover text */
  position: relative;
  z-index: 2;
  background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

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

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  font-weight: bold;
}

.page-news__text-block {
  font-size: 1em;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-news__introduction-section, 
.page-news__featured-news-section, 
.page-news__analysis-section, 
.page-news__guides-section, 
.page-news__faq-section, 
.page-news__cta-section {
  padding: 60px 0;
}

.page-news__featured-news-section {
  background-color: #0A4B2C; /* Deep Green for a section */
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 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.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

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

.page-news__card-image-wrapper {
  height: 225px;
  overflow: hidden;
}

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

.page-news__card-content {
  padding: 25px;
}

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #57E38D; /* Glow color on hover */
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  color: #57E38D; /* Glow color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-news__analysis-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-news__text-column {
  flex: 2;
}

.page-news__image-column {
  flex: 1;
  min-width: 300px;
}

.page-news__analysis-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  border: 1px solid #2E7A4E;
}

.page-news__sub-title {
  font-size: 1.6em;
  color: #F2C14E; /* Gold color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__guides-section {
  background-color: #11271B; /* Card BG for guides section */
}

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

.page-news__guide-item {
  background-color: #08160F;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-news__guide-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__guide-link {
  display: inline-block;
  color: #57E38D;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-news__guide-link:hover {
  color: #F2C14E;
}

.page-news__guide-image-wrapper {
  text-align: center;
}

.page-news__guide-main-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  border: 1px solid #2E7A4E;
}

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

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  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-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6;
  transition: background-color 0.3s ease;
}

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

.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;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #57E38D;
}

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

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

.page-news__cta-section {
  text-align: center;
  background-color: #08160F;
}

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

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
  background: #11271B; /* Card BG as background */
  color: #57E38D; /* Glow color as text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid #2E7A4E;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  color: #F2C14E; /* Gold color on hover */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__analysis-content {
    flex-direction: column;
    align-items: center;
  }
  .page-news__image-column {
    margin-top: 40px;
    max-width: 600px;
  }
  .page-news__analysis-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-news__main-title {
    font-size: 2em;
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__analysis-content {
    flex-direction: column;
  }
  .page-news__text-column {
    flex: none;
  }
  .page-news__image-column {
    flex: none;
    width: 100%;
    margin-top: 30px;
  }
  .page-news__guide-grid {
    grid-template-columns: 1fr;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image responsiveness */
  .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__introduction-section, .page-news__featured-news-section, .page-news__analysis-section, .page-news__guides-section, .page-news__faq-section, .page-news__cta-section, .page-news__hero-image-wrapper, .page-news__card-image-wrapper, .page-news__analysis-content, .page-news__image-column, .page-news__guide-grid, .page-news__guide-item, .page-news__guide-image-wrapper, .page-news__faq-list, .page-news__faq-item, .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-news__hero-section, .page-news__introduction-section, .page-news__featured-news-section, .page-news__analysis-section, .page-news__guides-section, .page-news__faq-section, .page-news__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important;
  }

  /* Mobile button responsiveness */
  .page-news__cta-button,
  .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__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}