/* style/news.css */

:root {
  --page-news-primary-color: #017439;
  --page-news-secondary-color: #FFFFFF;
  --page-news-dark-bg: #121212;
  --page-news-light-text: #ffffff;
  --page-news-dark-text: #333333;
  --page-news-button-register-bg: #C30808;
  --page-news-button-register-text: #FFFF00;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-news-light-text); /* Default text color for dark body background */
  background-color: var(--page-news-dark-bg); /* Inherited from body via shared.css */
}

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

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--page-news-primary-color) 0%, #004d26 100%);
  color: var(--page-news-light-text);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-news__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--page-news-secondary-color);
}

.page-news__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-news-secondary-color);
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Allowed for decorative effect, not color change */
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-news-light-text); /* Default for dark body */
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--page-news-light-text); /* Default for dark body */
}

.page-news__latest-articles, .page-news__strategy-tips, .page-news__faq-section {
  background-color: var(--page-news-dark-bg);
  padding: 80px 0;
}

.page-news__promotional-news, .page-news__platform-insights, .page-news__cta-bottom {
  background-color: var(--page-news-primary-color);
  padding: 80px 0;
  color: var(--page-news-light-text);
}

.page-news__promotional-news .page-news__section-title,
.page-news__promotional-news .page-news__section-description,
.page-news__platform-insights .page-news__section-title,
.page-news__platform-insights .page-news__section-description,
.page-news__cta-bottom .page-news__section-title,
.page-news__cta-bottom .page-news__section-description {
  color: var(--page-news-secondary-color);
}

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

.page-news__article-card,
.page-news__promo-card,
.page-news__tip-item,
.page-news__insight-item {
  background-color: rgba(255, 255, 255, 0.05);
  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;
  color: var(--page-news-light-text);
}

.page-news__article-card:hover,
.page-news__promo-card:hover,
.page-news__tip-item:hover,
.page-news__insight-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__article-image,
.page-news__promo-image,
.page-news__tip-image,
.page-news__insight-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-news__card-title,
.page-news__promo-card .page-news__card-title,
.page-news__tip-title,
.page-news__insight-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__card-title a,
.page-news__promo-card .page-news__card-title a,
.page-news__tip-title a,
.page-news__insight-title a {
  color: var(--page-news-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover,
.page-news__promo-card .page-news__card-title a:hover,
.page-news__tip-title a:hover,
.page-news__insight-title a:hover {
  color: var(--page-news-button-register-text);
}

.page-news__card-excerpt {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.page-news__read-more {
  color: var(--page-news-button-register-text);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--page-news-secondary-color);
}

.page-news__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
  transform: translateX(5px);
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-news__btn-primary {
  background-color: var(--page-news-button-register-bg);
  color: var(--page-news-button-register-text);
  border: 2px solid var(--page-news-button-register-bg);
}

.page-news__btn-primary:hover {
  background-color: darken(var(--page-news-button-register-bg), 10%);
  border-color: darken(var(--page-news-button-register-bg), 10%);
  color: var(--page-news-secondary-color);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--page-news-button-register-text);
  border: 2px solid var(--page-news-button-register-text);
}

.page-news__btn-secondary:hover {
  background-color: var(--page-news-button-register-text);
  color: var(--page-news-button-register-bg);
}

.page-news__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--page-news-dark-bg);
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-news-light-text);
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: rgba(255, 255, 255, 0.7);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  line-height: 1.7;
}

.page-news__cta-bottom {
  text-align: center;
  padding: 100px 20px;
}

.page-news__cta-content {
  max-width: 900px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image,
  .page-news__promo-image,
  .page-news__tip-image,
  .page-news__insight-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    min-height: 500px;
    padding: 40px 15px;
  }
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__intro-text {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__container {
    padding: 15px;
  }
  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__tips-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card,
  .page-news__promo-card,
  .page-news__tip-item,
  .page-news__insight-item {
    padding: 0;
  }
  .page-news__article-image,
  .page-news__promo-image,
  .page-news__tip-image,
  .page-news__insight-image {
    height: 200px;
  }
  .page-news__card-content {
    padding: 15px;
  }
  .page-news__card-title,
  .page-news__promo-card .page-news__card-title,
  .page-news__tip-title,
  .page-news__insight-title {
    font-size: 1.3em;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px 20px 20px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* All images must be responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All image containers must be responsive */
  .page-news__hero-image-wrapper,
  .page-news__article-card,
  .page-news__promo-card,
  .page-news__tip-item,
  .page-news__insight-item,
  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__tips-grid,
  .page-news__insights-grid,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-articles,
  .page-news__promotional-news,
  .page-news__strategy-tips,
  .page-news__platform-insights,
  .page-news__faq-section,
  .page-news__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-news__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__cta-bottom {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 2em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 20px;
  }
}