.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#111), so text should be light */
  background-color: transparent; /* Main content background will be transparent, letting body background show */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #017439; /* Brand color as background for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-news__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
}

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

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff; /* Default for dark sections */
}

.page-news__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-news__article-image {
  width: 100%;
  height: auto; /* Let it scale with width, based on HTML aspect ratio */
  aspect-ratio: 400 / 225; /* Maintain aspect ratio from HTML attributes */
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.page-news__article-title {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  color: #FFFF00; /* Yellow for better contrast on dark background */
  min-height: 3em; /* Ensure consistent height for titles */
}

.page-news__article-excerpt {
  font-size: 0.95em;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Make excerpt take available space */
}

.page-news__read-more {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align to right */
  padding: 15px 20px;
  color: #FFFF00; /* Yellow for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
  color: #e0e000;
}

.page-news__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
  transform: translateX(5px);
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background-color: #222; /* Slightly different dark background */
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px; /* Ensure cards have a minimum height */
}

.page-news__category-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure link covers entire card */
}

.page-news__category-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__category-icon {
  width: auto; /* Let it scale */
  height: auto;
  max-width: 100%;
  max-height: 150px; /* Max height based on HTML attribute */
  object-fit: contain;
  margin: 0 auto 20px auto; /* Center icon */
  display: block;
}

.page-news__category-title {
  font-size: 1.4em;
  color: #FFFF00; /* Yellow for category titles */
  margin-bottom: 10px;
}

.page-news__category-description {
  font-size: 0.9em;
  color: #ccc;
  flex-grow: 1;
}

/* Industry Updates Section */
.page-news__industry-updates {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-news__content-block {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
}

.page-news__content-subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-news__content-block p {
  font-size: 1.05em;
  color: #e0e0e0;
  margin-bottom: 20px;
}


/* Featured Video Section */
.page-news__featured-video {
  padding: 80px 0;
  background-color: #0d0d0d;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width of the video */
  margin: 0 auto;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-news__video-link {
  display: block;
  cursor: pointer;
}

.page-news__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-news__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #ccc;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #222;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for FAQ questions */
  transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  font-size: 0.95em;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px 20px 20px;
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

/* CTA Section */
.page-news__cta-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color */
  text-align: center;
}

.page-news__cta-content {
  max-width: 800px;
}

.page-news__cta-title {
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__intro-description {
    font-size: 1em;
  }
  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__latest-articles,
  .page-news__categories-section,
  .page-news__industry-updates,
  .page-news__featured-video,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 60px 0;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-intro {
    font-size: 0.95em;
  }
  .page-news__article-grid,
  .page-news__category-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image {
    height: auto;
    aspect-ratio: 400 / 225;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__category-icon {
    max-height: 120px;
  }
  .page-news__category-title {
    font-size: 1.2em;
  }
  .page-news__content-subtitle {
    font-size: 1.5em;
  }
  .page-news__faq-question {
    font-size: 1em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }

  /* Mobile image/video/button specific overrides */
  .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__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__cta-button,
  .page-news__btn-primary,
  .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;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .page-news__cta-buttons {
    display: flex !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }
}