/* style/news.css */

/* --- Base Styles for .page-news scope --- */
.page-news {
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background color from shared.css, ensuring contrast */
  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__section-title {
  font-size: 2.5em;
  color: #FFB04D; /* Glow color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
}

/* --- Buttons --- */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-news__cta-button--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  border: none;
}

.page-news__cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 165, 58, 0.4);
}

.page-news__cta-button--secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
}

.page-news__cta-button--secondary:hover {
  background: rgba(255, 165, 58, 0.1);
  transform: translateY(-2px);
}

.page-news__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-news__hero-content {
  position: relative; /* Changed from absolute to relative to be below image */
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image if needed */
  background: rgba(13, 14, 18, 0.7); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-news__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: #FFB04D; /* Glow color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.2em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Latest News Section --- */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
}

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

.page-news__news-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
}

.page-news__news-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-news__news-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__news-card-title a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #FFB04D; /* Glow color on hover */
}

.page-news__news-date {
  font-size: 0.9em;
  color: #A84F0C; /* Border color for subtle date */
  margin-bottom: 15px;
}

.page-news__news-summary {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-link {
  color: #FFA53A; /* Auxiliary color */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
  color: #FFB04D; /* Glow color on hover */
}

/* --- Promotions Section --- */
.page-news__promotions-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG for this section's background */
}

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

.page-news__promo-card {
  background-color: #0D0E12; /* Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-news__promo-card:hover {
  transform: translateY(-5px);
}

.page-news__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__promo-card-title {
  font-size: 1.3em;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-news__promo-card-title a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__promo-card-title a:hover {
  color: #FFB04D; /* Glow color on hover */
}

.page-news__promo-summary {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* --- Industry Insights Section --- */
.page-news__industry-insights-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
}

.page-news__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__faq-item {
  background-color: #0D0E12; /* Background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFA53A; /* Auxiliary color */
  background-color: #17191F; /* Card BG */
  border-bottom: 1px solid #A84F0C; /* Border color */
}

/* Remove default marker for details summary */
.page-news__faq-item summary {
  list-style: none;
}
.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

.page-news__faq-answer {
  padding: 20px;
  padding-top: 0;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

/* --- Final CTA Section --- */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background: #FF8C1A; /* Main color as background */
  color: #FFF3E6; /* Text Main */
}

.page-news__cta-section .page-news__section-title {
  color: #FFF3E6; /* White text for title on main color background */
}

.page-news__cta-section .page-news__paragraph {
  color: #FFF3E6; /* White text for paragraph on main color background */
  max-width: 800px;
  margin: 0 auto 30px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
  .page-news__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
}

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

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