/* style/news.css */

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

.page-news {
  font-family: Arial, sans-serif;
  color: var(--page-news-text-main);
  background-color: var(--page-news-bg-color);
  line-height: 1.6;
}

.page-news a {
  color: var(--page-news-glow-color);
  text-decoration: none;
}

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

/* General Container & Section Styles */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-news-text-main);
}

.page-news__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-news-text-secondary);
}

.page-news__card {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  border: 1px solid var(--page-news-border-color);
  color: var(--page-news-text-main);
}

.page-news__dark-bg {
  background-color: var(--page-news-bg-color);
  color: var(--page-news-text-main);
}

.page-news__light-bg {
  background-color: #0d1e16; /* Slightly lighter background for contrast */
  color: var(--page-news-text-main);
}

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

.page-news__text-main {
  color: var(--page-news-text-main);
}

.page-news__text-secondary {
  color: var(--page-news-text-secondary);
}

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

.page-news__btn-primary {
  background: var(--page-news-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(42, 209, 111, 0.6);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--page-news-glow-color);
  color: var(--page-news-deep-green);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  padding: 10px 20px 60px; /* Small top padding, larger bottom */
  overflow: hidden;
}

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

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-news__description {
  font-size: 1.15em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--page-news-text-secondary);
}

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

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 20px;
}

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

.page-news__article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%; /* Ensure cards in a row have similar height */
}

.page-news__article-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-news__article-content {
  padding: 0 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-title a {
  color: var(--page-news-text-main);
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--page-news-glow-color);
  text-decoration: none;
}

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

.page-news__read-more {
  color: var(--page-news-glow-color);
  font-weight: bold;
  display: inline-block;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
  text-decoration: underline;
}

.page-news__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Featured News Section */
.page-news__featured-news {
  padding: 60px 20px;
}

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

.page-news__featured-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-news__featured-image {
  width: 100%;
  height: 338px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-news__featured-content {
  padding: 0 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__featured-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__featured-title a {
  color: var(--page-news-text-main);
  transition: color 0.3s ease;
}

.page-news__featured-title a:hover {
  color: var(--page-news-gold-color);
  text-decoration: none;
}

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

/* Why Follow Section */
.page-news__why-follow {
  padding: 60px 20px;
}

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

.page-news__benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.page-news__benefit-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-news__benefit-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--page-news-gold-color);
}

.page-news__benefit-description {
  font-size: 1em;
  color: var(--page-news-text-secondary);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 20px;
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  overflow: hidden;
  color: var(--page-news-text-main);
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-news-deep-green); /* Slightly different background for summary */
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
  background-color: var(--page-news-border-color);
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  margin-left: 15px;
  line-height: 1;
}

.page-news__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--page-news-text-secondary);
  border-top: 1px solid var(--page-news-divider-color);
}

/* CTA Section */
.page-news__cta-section {
  padding: 60px 20px;
  text-align: center;
}

.page-news__cta-section .page-news__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__featured-image {
    height: 280px;
  }
  .page-news__article-image {
    height: 200px;
  }
}

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

  .page-news__container {
    padding: 30px 15px;
  }

  .page-news__hero-section {
    min-height: 450px;
    padding: 10px 15px 40px;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__article-grid,
  .page-news__featured-grid,
  .page-news__benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-image {
    height: 200px;
  }
  
  .page-news__featured-image {
    height: 250px;
  }

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

  .page-news__section-subtitle {
    font-size: 1em;
  }

  .page-news__card,
  .page-news__section,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section {
    padding-top: 10px !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__faq-item summary {
    font-size: 1.1em;
  }

  .page-news__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
  }
  .page-news__hero-section {
    min-height: 380px;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__featured-title {
    font-size: 1.4em;
  }
  .page-news__benefit-title {
    font-size: 1.3em;
  }
}