/* style/news.css */

/* Body background color is handled by shared.css var(--background-color) */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--Text-Main); /* Default text color for light backgrounds */
  background-color: var(--background-color);
}

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

.page-news__dark-bg {
  background-color: var(--Background);
  color: var(--Text-Main);
}

.page-news__light-bg {
  background-color: #08160F; /* Using Background color for consistency, as Text-Main is light */
  color: var(--Text-Main);
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--Text-Main);
  line-height: 1.2;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-news__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-news__main-title {
  font-weight: 700;
  color: var(--Gold);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 100%;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-news__description {
  font-size: 1.1em;
  color: var(--Text-Secondary);
  margin-bottom: 30px;
}

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

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

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: none;
  color: var(--Text-Main);
  border: 2px solid var(--Deep-Green);
}

.page-news__btn-secondary:hover {
  background: var(--Deep-Green);
  color: var(--Text-Main);
}

/* Featured News Section */
.page-news__featured-news {
  padding: 80px 0;
  background-color: var(--Card-B-G);
}

.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: var(--Background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
}

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

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

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

.page-news__card-title a {
  color: var(--Text-Main);
  text-decoration: none;
  transition: color 0.3s ease;
  max-width: 100%;
  display: block;
}

.page-news__card-title a:hover {
  color: var(--Glow);
}

.page-news__card-meta {
  font-size: 0.9em;
  color: var(--Text-Secondary);
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: var(--Text-Secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Insights Section */
.page-news__insights-section {
  padding: 80px 0;
  background-color: var(--Background);
}

.page-news__insights-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-news__text-block p {
  margin-bottom: 20px;
  color: var(--Text-Secondary);
}

.page-news__insights-image {
  flex: 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 80px 0;
  background-color: var(--Card-B-G);
}

.page-news__promotions-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right */
}

.page-news__promotions-image {
  flex: 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--Background);
}

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

.page-news__faq-item {
  background-color: var(--Card-B-G);
  border: 1px solid var(--Divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--Text-Main);
  user-select: none;
  list-style: none; /* For details/summary */
}

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

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

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

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--Text-Secondary);
}

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

/* CTA Section */
.page-news__cta-section {
  padding: 60px 0;
  background-color: var(--Card-B-G);
  text-align: center;
}

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

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__insights-content,
  .page-news__promotions-content {
    flex-direction: column;
    text-align: center;
  }
  .page-news__promotions-content {
    flex-direction: column; /* Resetting for mobile */
  }
  .page-news__insights-image,
  .page-news__promotions-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-news__hero-section,
  .page-news__featured-news,
  .page-news__insights-section,
  .page-news__promotions-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__hero-image-wrapper {
    max-height: 300px;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__insights-content,
  .page-news__promotions-content,
  .page-news__cta-buttons,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__insights-content,
  .page-news__promotions-content {
    gap: 20px;
  }
  .page-news__insights-image,
  .page-news__promotions-image {
    max-width: 100%;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    padding: 30px 15px;
    padding-top: 10px;
  }
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__hero-image-wrapper {
    margin-bottom: 20px;
  }
}