/* style/news.css */

/* Base styles for the news page */
.page-news {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-news__section-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-news__dark-bg {
  background-color: #017439; /* Brand color as dark background */
  color: #ffffff;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-news__btn-primary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-news__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Latest News Section */
.page-news__latest-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Matches body background */
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 400px; /* Ensure cards have a minimum height */
}

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

.page-news__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum image size */
}

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

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

.page-news__card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #C30808; /* Highlight on hover */
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.page-news__card-summary {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.page-news__read-more {
  color: #FFFF00; /* Yellow for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

/* Video Section */
.page-news__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block; /* Ensure it behaves as a block element */
}

/* Industry Trends Section */
.page-news__trends-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

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

.page-news__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-news__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum image size */
}

.page-news__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__feature-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 60px 0;
}

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

.page-news__promo-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-news__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum image size */
}

.page-news__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__promo-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Expert Guides Section */
.page-news__guides-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

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

.page-news__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-news__guide-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum image size */
}

.page-news__guide-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__guide-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Footer Section */
.page-news__cta-footer-section {
  padding: 60px 0;
  background-color: #1a1a2e;
  text-align: center;
}

/* General Image Styles (ensuring minimum size and no filters) */
.page-news img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter properties allowed */
  filter: none; /* Explicitly ensure no filters */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-news__hero-image {
    height: 400px; /* Adjust height for tablets */
  }
}

@media (max-width: 768px) {
  .page-news__section-title {
    font-size: 2rem;
  }
  .page-news__section-description {
    font-size: 1rem;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__main-title {
    font-size: 2.2rem;
  }
  .page-news__hero-description {
    font-size: 1rem;
  }

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

  .page-news__news-card, .page-news__feature-item, .page-news__promo-item, .page-news__guide-item {
    min-height: auto;
  }

  .page-news__card-image, .page-news__feature-image, .page-news__promo-image, .page-news__guide-image {
    height: 200px;
  }

  .page-news__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-news__cta-button {
    width: 100%;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video Responsive */
  .page-news__video-section {
    padding-top: 10px !important; /* body handles header offset, small top padding for section */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image Responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__feature-item,
  .page-news__promo-item,
  .page-news__guide-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__faq-item summary {
    font-size: 1.1rem;
  }

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

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8rem;
  }
  .page-news__hero-description {
    font-size: 0.95rem;
  }
  .page-news__section-title {
    font-size: 1.8rem;
  }
  .page-news__section-description {
    font-size: 0.9rem;
  }
  .page-news__card-title {
    font-size: 1.2rem;
  }
  .page-news__card-summary {
    font-size: 0.9rem;
  }
  .page-news__faq-item summary {
    font-size: 1rem;
  }
}

/* Body background is dark (#1a1a2e), so text should be light */
.page-news p, .page-news li, .page-news__card-summary, .page-news__feature-text, .page-news__promo-text, .page-news__guide-text {
  color: rgba(255, 255, 255, 0.8);
}
.page-news h1, .page-news h2, .page-news h3, .page-news__card-title a, .page-news__feature-title, .page-news__promo-title, .page-news__guide-title, .page-news__faq-item summary {
  color: #ffffff;
}
.page-news__read-more {
  color: #FFFF00; /* Specific color for links */
}