/* style/news.css */

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

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

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__section-subtitle {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

.page-news__paragraph {
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: left;
}

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 1;
  max-height: 675px;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image for visual effect, but not overlaying text on image directly */
  background-color: rgba(17, 40, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

.page-news__hero-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-tertiary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D;
}

.page-news__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Background */
  border-color: #57E38D;
  transform: translateY(-2px);
}

.page-news__btn-tertiary {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__btn-tertiary:hover {
  background-color: #11A84E; /* Primary */
  border-color: #11A84E;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-news__introduction-section {
  background-color: #0A4B2C; /* Deep Green */
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__introduction-section .page-news__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* News Grid */
.page-news__featured-news-section {
  background-color: #08160F; /* Background */
}

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

.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);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-news__card-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-news__card-date {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-news__card-link:hover {
  text-decoration: underline;
}

.page-news__all-news-button {
  margin-top: 50px;
}

/* Market Analysis Section */
.page-news__market-analysis-section {
  background-color: #11271B; /* Card BG */
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__market-analysis-section .page-news__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions & Events Section */
.page-news__promotions-events-section {
  background-color: #08160F; /* Background */
}

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

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

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

.page-news__all-promotions-button {
  margin-top: 50px;
}

/* Guides Section */
.page-news__guides-section {
  background-color: #0A4B2C; /* Deep Green */
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-news__guide-item {
  background-color: #11271B; /* Card BG */
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-news__guide-item a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  font-weight: bold;
  display: block;
  font-size: 1.1em;
}

.page-news__guide-item a:hover {
  color: #57E38D; /* Glow */
}

.page-news__more-guides-button {
  margin-top: 50px;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #08160F; /* Background */
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news__faq-item[open] > .page-news__faq-question {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B; /* Card BG */
  text-align: left;
}

.page-news__faq-answer p {
  margin-bottom: 0;
  color: inherit;
}

/* CTA Section */
.page-news__cta-section {
  background-color: #11A84E; /* Primary */
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__cta-section .page-news__section-title {
  color: #F2FFF6; /* Text Main */
}

.page-news__cta-section .page-news__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #F2FFF6; /* Text Main */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-news__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  .page-news__hero-content {
    margin-top: 0;
    padding: 30px 15px;
    border-radius: 0;
  }

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

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-news__section-subtitle,
  .page-news__paragraph {
    font-size: 1em;
  }

  .page-news__hero-buttons,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__news-grid,
  .page-news__promotions-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

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

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__guide-list,
  .page-news__faq-list {
    padding: 0 15px;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-card,
  .page-news__promotion-card,
  .page-news__all-news-button,
  .page-news__all-promotions-button,
  .page-news__more-guides-button,
  .page-news__cta-section {
    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;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }

  .page-news__section-title {
    font-size: 1.5em;
  }
}