/* style/news.css */
/* 
  Body background is #f8f9fa (light), so text should be dark (e.g., #333333).
  Brand colors: #11A84E (main), #22C768 (auxiliary)
  Custom colors:
    Button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%)
    Card BG: #11271B (dark)
    Background: #08160F (dark)
    Text Main: #F2FFF6 (light)
    Text Secondary: #A7D9B8 (light)
    Border: #2E7A4E (dark green)
    Glow: #57E38D
    Gold: #F2C14E
    Divider: #1E3A2A
    Deep Green: #0A4B2C
*/

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f9fa; /* Inherited from body */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Space below content */
  background-color: #08160F; /* Dark background for hero */
  color: #F2FFF6; /* Light text for dark background */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-news__hero-content {
  position: relative; /* Ensure content is in normal flow */
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
}

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

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Light secondary text */
}

/* General Section Styling */
.page-news__section {
  padding: 60px 0;
  text-align: center;
  background-color: #f8f9fa; /* Default light background */
  color: #333333; /* Default dark text */
}

.page-news__dark-section {
  background-color: #08160F; /* Custom dark background */
  color: #F2FFF6; /* Light text for dark background */
}

.page-news__light-bg {
  background-color: #f8f9fa; /* Ensures light background */
  color: #333333; /* Ensures dark text */
}

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

.page-news__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #11A84E; /* Main brand color */
}
.page-news__dark-section .page-news__section-title {
  color: #F2C14E; /* Gold for titles on dark background */
}


.page-news__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}
.page-news__dark-section .page-news__section-description {
  color: #A7D9B8; /* Light secondary text on dark background */
}

/* Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  margin: 10px;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-news__btn-secondary {
  background: transparent;
  color: #11A84E;
  border: 2px solid #11A84E;
}

.page-news__btn-secondary:hover {
  background: #11A84E;
  color: #ffffff;
  border-color: #11A84E;
  transform: translateY(-2px);
}

/* News Grid */
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__news-card {
  background-color: #ffffff; /* Light background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

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

.page-news__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-news__card-title a {
  color: #11A84E;
  text-decoration: none;
}

.page-news__card-title a:hover {
  text-decoration: underline;
  color: #22C768;
}

.page-news__card-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: #11A84E;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #22C768;
  text-decoration: underline;
}

.page-news__view-all-button-container {
  margin-top: 50px;
}

/* Analysis and Trends Section */
.page-news__analysis-trends .page-news__item-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6; /* Light text for dark background */
}

.page-news__analysis-trends .page-news__item-text {
  font-size: 1em;
  color: #A7D9B8; /* Light secondary text */
  margin-bottom: 25px;
}

.page-news__trend-item {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 10px;
  background-color: #11271B; /* Card background on dark section */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

/* Guides and Tips Section */
.page-news__guides-tips .page-news__guide-card {
  background-color: #ffffff; /* Light background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  margin-bottom: 30px;
  color: #333333; /* Dark text for light card background */
}

.page-news__guides-tips .page-news__guide-card:hover {
  transform: translateY(-5px);
}

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

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

/* FAQ Section */
.page-news__faq-section {
  background-color: #f8f9fa; /* Light background */
  padding: 60px 0;
  color: #333333; /* Dark text */
}

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

.page-news__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #11A84E;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

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

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

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

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eee;
}

.page-news__faq-answer p {
  margin-top: 15px;
}

.page-news__faq-answer a {
  color: #11A84E;
  text-decoration: none;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* Contact CTA Section */
.page-news__contact-cta {
  padding: 80px 0;
}

.page-news__contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__contact-cta .page-news__section-title {
  color: #F2C14E;
}

.page-news__contact-cta .page-news__section-description {
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-news__contact-cta .page-news__cta-button {
  margin: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    padding: 30px 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }
  .page-news__section-description {
    margin-bottom: 30px;
    font-size: 0.95em;
  }

  /* Image responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__news-card,
  .page-news__guide-card,
  .page-news__trend-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Video responsive (if any) */
  .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__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsive */
  .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;
  }
  .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; /* Stack buttons vertically */
  }

  .page-news__news-grid {
    grid-template-columns: 1fr; /* Single column for news cards */
  }
  .page-news__card-image {
    height: 200px;
  }
  .page-news__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
}