/* style/news.css */
/* Body background color is from shared.css: var(--bg-color) which is #08160F (dark green) */
/* Therefore, text colors must be light for contrast. */

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

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom for separation */
  background-color: #08160F;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

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

.page-news__hero-text-content {
  max-width: 800px;
  padding: 0 15px;
}

.page-news__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

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

.page-news__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-news__latest-news-section,
.page-news__platform-updates-section,
.page-news__industry-insights-section,
.page-news__promotions-section,
.page-news__faq-section,
.page-news__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.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 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

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

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

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

.page-news__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.page-news__card-title a:hover {
  color: #22C768; /* Auxiliary Color */
}

.page-news__card-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-news__card-link {
  display: inline-block;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #2AD16F;
}

.page-news__view-all-container {
  text-align: center;
  margin-top: 20px;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background-color: transparent;
  color: #2AD16F; /* Button color for secondary */
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid #2AD16F;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

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

.page-news__update-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding-bottom: 20px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__update-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__update-title {
  font-size: 1.25em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-news__update-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-news__text-block {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__text-block p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-news__text-block p:last-child {
  margin-bottom: 0;
}

.page-news__promo-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news__promo-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__promo-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.page-news__promo-title a:hover {
  color: #22C768; /* Auxiliary Color */
}

.page-news__promo-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F; /* Button color for secondary */
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #0A4B2C; /* Deep Green for answer background */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-news__cta-section {
  background: linear-gradient(90deg, #11A84E, #22C768);
  border-radius: 10px;
  padding: 60px 40px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  max-width: 700px;
  margin: 0 auto 30px auto;
}

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

  .page-news__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-news__hero-content-wrapper {
    gap: 20px;
  }

  .page-news__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

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

  .page-news__latest-news-section,
  .page-news__platform-updates-section,
  .page-news__industry-insights-section,
  .page-news__promotions-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 30px 15px;
  }

  .page-news__news-grid,
  .page-news__grid-two-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card,
  .page-news__update-item,
  .page-news__text-block,
  .page-news__promo-item,
  .page-news__faq-item,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }

  .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;
    text-align: center;
  }
  
  .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;
    display: flex;
    flex-direction: column;
  }

  .page-news__cta-section {
    padding: 40px 20px;
  }

  .page-news__cta-title {
    font-size: 1.8em;
  }

  .page-news__cta-description {
    font-size: 1em;
  }
}