/* style/news.css */

/* Base styles for page-news */
.page-news {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Sections */
.page-news__section {
  padding: 60px 0;
}

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

.page-news__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim image for text readability */
}

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

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

.page-news__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-news__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-news__btn-secondary:hover {
  background-color: #005c2e;
  border-color: #005c2e;
}

/* Section Titles */
.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

/* Grid Layouts */
.page-news__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards */
.page-news__card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 25px;
}

.page-news__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-news__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 0 20px;
  color: inherit;
}

.page-news__card-text {
  font-size: 1rem;
  margin-bottom: 25px;
  padding: 0 20px;
  color: #555555;
}

/* Latest Articles Section */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-news__article-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

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

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  color: #333333;
}

.page-news__article-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-news__article-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-news__article-meta {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

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

/* Industry Trends Section */
.page-news__industry-trends .page-news__section-title {
  color: #ffffff;
}

.page-news__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-news__text-block {
  flex: 1;
}

.page-news__image-block {
  flex: 0 0 40%;
  max-width: 40%;
}

.page-news__image-block .page-news__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__text {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-news__faq .page-news__section-title {
  color: #ffffff;
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.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: 15px 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
  text-align: center;
  background-color: #017439;
  padding: 80px 0;
}

.page-news__cta-bottom .page-news__section-title {
  color: #ffffff;
}

.page-news__cta-bottom .page-news__description {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding: 0 15px;
  }

  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-news__description {
    font-size: 1.1rem;
  }

  .page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-news__content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .page-news__image-block {
    flex: 0 0 80%;
    max-width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 15px 40px;
  }

  .page-news__section {
    padding: 40px 0;
  }

  .page-news__container {
    padding: 0 15px !important;
  }

  /* Image responsiveness */
  .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-image-wrapper,
  .page-news__image-block,
  .page-news__articles-grid,
  .page-news__grid-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Button responsiveness */
  .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;
    margin-bottom: 15px;
  }

  .page-news__hero-content .page-news__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .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;
  }

  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-news__card-image {
    height: auto;
  }

  .page-news__article-image {
    height: auto;
  }

  .page-news__image-block {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

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

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-news__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-news__card-title,
  .page-news__article-title {
    font-size: 1.3rem;
  }

  .page-news__sub-title {
    font-size: 1.5rem;
  }
}