/* style/news-industry-updates.css */

/* --- Base Styles --- */
.page-news-industry-updates {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

/* Fixed header padding is handled by body in shared.css, so main content sections have small top padding */
.page-news-industry-updates__hero-section,
.page-news-industry-updates__section {
  padding-top: 10px; /* Small top padding for initial content, not var(--header-offset) */
  padding-bottom: 40px;
}

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

/* --- Hero Section --- */
.page-news-industry-updates__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green for hero section background */
  padding-bottom: 60px; /* More padding below hero content */
}

.page-news-industry-updates__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to prevent overly tall hero */
  overflow: hidden;
  position: relative;
  z-index: 1; /* Ensure image is behind content if any overlap issues */
}

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

.page-news-industry-updates__hero-content {
  position: relative;
  z-index: 2;
  margin-top: 40px; /* Space below image */
  max-width: 800px;
  color: #F2FFF6; /* Main text color */
}

.page-news-industry-updates__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive H1 font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Enhance readability on varying backgrounds */
}

.page-news-industry-updates__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

/* --- General Sections --- */
.page-news-industry-updates__section {
  background-color: #08160F; /* Consistent dark background */
  color: #F2FFF6; /* Main text color */
}

.page-news-industry-updates__section--trends,
.page-news-industry-updates__section--f79-role,
.page-news-industry-updates__section--security,
.page-news-industry-updates__section--ux-innovation,
.page-news-industry-updates__section--regulation,
.page-news-industry-updates__section--conclusion {
  padding: 60px 0;
}

.page-news-industry-updates__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news-industry-updates__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #2AD16F, transparent);
  border-radius: 2px;
}

.page-news-industry-updates p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #F2FFF6; /* Main text color */
}

.page-news-industry-updates p strong {
  color: #F2C14E; /* Highlight keywords with Gold */
}

.page-news-industry-updates__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
  border: 1px solid #2E7A4E; /* Border color */
}

/* --- Call to Action Buttons --- */
.page-news-industry-updates__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width calculation */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-news-industry-updates__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Button text color */
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-news-industry-updates__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-news-industry-updates__cta-button--secondary {
  background: #11271B; /* Card BG for secondary button */
  color: #2AD16F; /* Green text for secondary button */
  border: 2px solid #2AD16F; /* Green border */
  margin-left: 20px;
}

.page-news-industry-updates__cta-button--secondary:hover {
  background: #2AD16F;
  color: #11271B;
  border-color: #11271B;
  transform: translateY(-3px);
}

.page-news-industry-updates__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

/* --- FAQ Section --- */
.page-news-industry-updates__section--faq {
  background-color: #11271B; /* Card BG for FAQ section */
  padding: 60px 0;
  border-top: 1px solid #2E7A4E; /* Divider color */
}

.page-news-industry-updates__faq-list {
  margin-top: 40px;
}

.page-news-industry-updates__faq-item {
  background-color: #08160F; /* Background color for FAQ item */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news-industry-updates__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.15em;
  color: #F2FFF6; /* Main text color */
  transition: background-color 0.3s ease;
}

.page-news-industry-updates__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-news-industry-updates__faq-item summary:hover {
  background-color: rgba(42, 209, 111, 0.1); /* Light hover effect */
}

.page-news-industry-updates__faq-qtext {
  flex-grow: 1;
}

.page-news-industry-updates__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Green for toggle icon */
}

.page-news-industry-updates__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
}

.page-news-industry-updates__faq-answer p {
  margin-bottom: 0; /* Remove bottom margin for last paragraph in answer */
  color: #A7D9B8; /* Secondary text color */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news-industry-updates__hero-content {
    margin-top: 30px;
  }
  .page-news-industry-updates__main-title {
    font-size: clamp(1.8em, 4vw, 3em);
  }
  .page-news-industry-updates__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* --- General Mobile Adaptations --- */
  .page-news-industry-updates {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news-industry-updates__container {
    padding: 0 15px; /* Add padding for content areas on mobile */
  }

  .page-news-industry-updates__hero-section,
  .page-news-industry-updates__section {
    padding-top: 10px !important; /* Small top padding for initial content */
    padding-bottom: 30px;
  }

  /* --- Hero Section Mobile --- */
  .page-news-industry-updates__hero-image {
    max-height: 400px;
    min-height: 200px !important; /* Ensure minimum height */
  }

  .page-news-industry-updates__hero-content {
    margin-top: 20px;
  }

  .page-news-industry-updates__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em); /* More aggressive clamp for mobile H1 */
    margin-bottom: 15px;
  }

  .page-news-industry-updates__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* --- Section Titles Mobile --- */
  .page-news-industry-updates__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* --- Images Mobile --- */
  .page-news-industry-updates img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px !important; /* Ensure minimum height */
  }

  .page-news-industry-updates__section,
  .page-news-industry-updates__card,
  .page-news-industry-updates__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* --- Buttons Mobile --- */
  .page-news-industry-updates__cta-button,
  .page-news-industry-updates__btn-primary,
  .page-news-industry-updates__btn-secondary,
  .page-news-industry-updates a[class*="button"],
  .page-news-industry-updates 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-left: 0 !important; /* Remove margin-left for secondary button */
    margin-bottom: 15px; /* Add vertical spacing between stacked buttons */
  }
  
  .page-news-industry-updates__cta-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 0; /* Reset gap as margin-bottom handles spacing */
    padding-left: 15px; /* Add padding to button group container */
    padding-right: 15px;
  }

  /* --- FAQ Mobile --- */
  .page-news-industry-updates__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news-industry-updates__faq-answer {
    padding: 0 20px 15px;
  }
}