/* style/news.css */

/* BEM Naming Convention: page-news__element-name */
/* Body padding-top is handled by shared.css */

.page-news {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
}

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

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly over the image for visual flow */
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, #08160F 100%); /* Dark gradient for readability */
  border-radius: 8px;
  padding-top: 100px; /* Compensate for negative margin */
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-news__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  box-sizing: border-box;
}

.page-news__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
  width: 100%; /* Ensure full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-news__cta-button--video {
  margin-top: 20px;
}

.page-news__latest-news {
  padding: 60px 0;
}

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: 1.05em;
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: #11271B; /* Custom Card Background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Custom Text Main */
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(87, 227, 141, 0.3);
}

.page-news__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #57E38D; /* Custom Glow */
}

.page-news__card-date {
  font-size: 0.9em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 15px;
  display: block;
}

.page-news__card-summary {
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  background: #11A84E; /* Main color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-button:hover {
  background: #22C768; /* Auxiliary color */
}

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

.page-news__categories {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.page-news__category-item a {
  display: block;
  background-color: #1E3A2A; /* Divider color for background */
  color: #F2FFF6; /* Custom Text Main */
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__category-item a:hover {
  background-color: #2E7A4E; /* Custom Border color for hover */
  color: #57E38D; /* Custom Glow */
}

.page-news__category-intro {
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  font-size: 1.05em;
  max-width: 900px;
  margin: 0 auto;
}

.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-news__dark-section {
  background-color: #11271B; /* Custom Card Background */
  color: #F2FFF6; /* Custom Text Main */
}

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

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

.page-news__btn-secondary {
  background: #11271B; /* Custom Card Background */
  color: #57E38D; /* Custom Glow */
  border: 2px solid #2E7A4E; /* Custom Border */
}

.page-news__btn-secondary:hover {
  background: #2E7A4E; /* Custom Border */
  color: #F2FFF6; /* Custom Text Main */
}

.page-news__faq-section {
  padding: 60px 0;
}

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

.page-news__faq-item {
  background-color: #11271B; /* Custom Card Background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Custom Text Main */
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Custom Text Main */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}

.page-news__faq-item[open] > .page-news__faq-question {
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Custom Glow */
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
}

/* Ensure all images meet min size and no filters */
.page-news img {
  min-width: 200px;
  min-height: 200px;
  filter: none; /* Ensure no filters are applied */
}

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

  .page-news__container,
  .page-news__hero-section,
  .page-news__video-section,
  .page-news__latest-news,
  .page-news__categories,
  .page-news__cta-section,
  .page-news__faq-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-news__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
    padding-top: 80px;
  }

  .page-news__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

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

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-news__card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__category-list {
    flex-direction: column;
    gap: 10px;
  }

  .page-news__category-item a {
    width: 100%;
    text-align: center;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-news__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

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

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

  .page-news__section-description {
    font-size: 0.95em;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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