/* style/news.css */

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* General page styling */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background-color); /* Default background color for the page */
}

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

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

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-news__text-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__text-link:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

.page-news__highlight {
  color: var(--gold-color);
  font-weight: bold;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  min-height: 500px;
  background-color: var(--background-color);
}

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

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-news__main-title {
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.page-news__content-section {
  padding: 60px 0;
}

.page-news__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-news__light-bg {
  background-color: #f0f0f0; /* Lighter background for contrast */
  color: #333333; /* Darker text for contrast */
}

.page-news__light-bg .page-news__section-title {
  color: var(--primary-color);
}

.page-news__light-bg .page-news__text-block,
.page-news__light-bg .page-news__feature-description {
  color: #333333;
}

.page-news__light-bg .page-news__text-link,
.page-news__light-bg .page-news__feature-link {
  color: var(--primary-color);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-news__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__article-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent height for titles */
}

.page-news__card-title a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: bold;
}

.page-news__card-title a:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-news__card-date {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-news__read-more:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

.page-news__button-group {
  text-align: center;
}

.page-news__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.page-news__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Features Section */
.page-news__features-section {
  padding: 60px 0;
}

.page-news__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-news__feature-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-news__feature-item:hover {
  transform: translateY(-5px);
}

.page-news__feature-icon {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-news__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-news__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-news__feature-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__feature-link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green);
  border-top: 1px solid var(--divider-color);
  border-bottom: 1px solid var(--divider-color);
}

.page-news__cta-title {
  color: var(--gold-color);
  font-size: 2.2em;
  margin-bottom: 20px;
}

.page-news__cta-description {
  color: var(--text-main);
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-description-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__cta-description-link:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

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

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

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

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
  list-style: none;
  color: var(--text-main);
}

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

.page-news__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

/* Conclusion Section */
.page-news__conclusion-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--deep-green);
  border-top: 1px solid var(--divider-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-news__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

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

  .page-news__hero-section {
    padding-bottom: 40px;
    min-height: 400px;
  }

  .page-news__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
  }

  .page-news__description {
    font-size: 1em;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-news__content-section,
  .page-news__latest-articles,
  .page-news__features-section,
  .page-news__cta-section,
  .page-news__faq-section,
  .page-news__conclusion-section {
    padding: 40px 0;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
  }

  .page-news__features-grid {
    grid-template-columns: 1fr;
  }

  .page-news__feature-item {
    padding: 20px;
  }

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

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

  .page-news__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

  /* Image and Video Responsive */
  .page-news img {
    max-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__hero-image-wrapper,
  .page-news__article-image,
  .page-news__feature-icon,
  .page-news__container,
  .page-news__article-card,
  .page-news__feature-item,
  .page-news__faq-item,
  .page-news__cta-button,
  .page-news__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* Buttons within button-group */
  .page-news__button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-news__button-group .page-news__cta-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.2em, 8vw, 2em);
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__cta-title {
    font-size: 1.5em;
  }
}