/* style/news.css */

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

.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__dark-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-news__section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-news__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #22C768; /* Auxiliary color for sub-titles */
}

.page-news p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 10px 0 80px 0; /* body handles header offset, this is decorative top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.page-news__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

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

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

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

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

.page-news__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Button top gradient color */
  border: 2px solid #2AD16F; /* Button top gradient color */
}

.page-news__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F; /* Background */
}

/* Intro Section */
.page-news__intro-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-news__grid-2-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

/* Categories Section */
.page-news__categories-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-news__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-news__card {
  background-color: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

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

.page-news__card p {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1;
}

.page-news__card-link {
  display: inline-block;
  margin-top: 20px;
  color: #2AD16F; /* Button top gradient color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* Benefits Section */
.page-news__benefits-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  text-align: left;
}

.page-news__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-news__text-content {
  flex: 1;
}

.page-news__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* How-to-use Section */
.page-news__how-to-use-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

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

.page-news__feature-item {
  background-color: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-news__feature-item p {
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1;
}

/* Commitment Section */
.page-news__commitment-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  text-align: left;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-news__faq-question:hover {
  background-color: #13994A; /* Darker green from button gradient */
}

.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: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #08160F; /* Background */
}

/* Hide default details arrow */
.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-news__faq-item summary::marker {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__main-title {
    font-size: clamp(2.2em, 5vw, 3em);
  }
  .page-news__sub-title {
    font-size: 1.6em;
  }
  .page-news p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__hero-section {
    padding-bottom: 60px;
  }
  .page-news__hero-image-wrapper {
    max-height: 300px;
  }
  .page-news__main-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-news__grid-2-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-news__content-wrapper {
    flex-direction: column;
  }
  .page-news__category-grid,
  .page-news__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-news__image-full-width,
  .page-news__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__container,
  .page-news__card,
  .page-news__feature-item,
  .page-news__faq-item,
  .page-news__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__sub-title {
    font-size: 1.4em;
  }
  .page-news__card-title,
  .page-news__feature-title {
    font-size: 1.2em;
  }
}