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

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

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

/* Sections */
.page-news-platform-updates__section {
  padding: 60px 0;
  text-align: center;
}

.page-news-platform-updates__dark-bg {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-news-platform-updates__light-bg {
  background-color: #ffffff; /* Auxiliary color for light sections */
  color: #333333; /* Dark text for light background */
}

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

.page-news-platform-updates__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 0;
}

.page-news-platform-updates__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100%;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-news-platform-updates__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-news-platform-updates__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Group */
.page-news-platform-updates__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-news-platform-updates__btn-primary,
.page-news-platform-updates__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news-platform-updates__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-news-platform-updates__btn-primary:hover {
  background-color: #d66b00;
  border-color: #d66b00;
}

.page-news-platform-updates__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news-platform-updates__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Section Titles and Text Blocks */
.page-news-platform-updates__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: inherit; /* Inherits from section background */
}

.page-news-platform-updates__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-news-platform-updates__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-news-platform-updates__text-block a:hover {
  color: #1c7ba1;
}

/* Card Grid for Update Details */
.page-news-platform-updates__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-news-platform-updates__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #ffffff;
}

.page-news-platform-updates__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-news-platform-updates__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news-platform-updates__card-text {
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.page-news-platform-updates__card-text a {
  color: #ffffff;
  text-decoration: underline;
}

.page-news-platform-updates__card-text a:hover {
  color: #f0f0f0;
}

/* List Styles */
.page-news-platform-updates__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-news-platform-updates__list-item {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: inherit;
}

.page-news-platform-updates__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #26A9E0; /* Brand color for list markers */
  font-weight: bold;
}

.page-news-platform-updates__list-item a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-news-platform-updates__list-item a:hover {
  color: #1c7ba1;
}

/* Content Image */
.page-news-platform-updates__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-news-platform-updates__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-news-platform-updates__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker on light background, lighter on dark */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.page-news-platform-updates__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-news-platform-updates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  list-style: none;
}

.page-news-platform-updates__faq-question::-webkit-details-marker {
  display: none;
}

.page-news-platform-updates__faq-item[open] .page-news-platform-updates__faq-question {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

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

.page-news-platform-updates__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #26A9E0;
}

.page-news-platform-updates__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: inherit;
}

.page-news-platform-updates__faq-answer p {
  margin-bottom: 10px;
  color: inherit;
}

.page-news-platform-updates__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-news-platform-updates__faq-answer a:hover {
  color: #1c7ba1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-platform-updates__hero-content {
    max-width: 700px;
  }
  .page-news-platform-updates__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news-platform-updates__section {
    padding: 40px 0;
  }

  .page-news-platform-updates__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    min-height: 400px;
  }

  .page-news-platform-updates__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .page-news-platform-updates__hero-description,
  .page-news-platform-updates__text-block,
  .page-news-platform-updates__list-item,
  .page-news-platform-updates__card-text,
  .page-news-platform-updates__faq-answer {
    font-size: 1rem;
  }

  .page-news-platform-updates__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

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

  .page-news-platform-updates__btn-primary,
  .page-news-platform-updates__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news-platform-updates__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news-platform-updates__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-news-platform-updates__card {
    padding: 25px;
  }

  .page-news-platform-updates__card-image {
    height: 180px;
  }

  .page-news-platform-updates__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-news-platform-updates__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-news-platform-updates img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-platform-updates__section,
  .page-news-platform-updates__card,
  .page-news-platform-updates__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news-platform-updates__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-news-platform-updates__video-section {
    padding-top: 10px !important;
  }

  /* Buttons in mobile */
  .page-news-platform-updates__cta-buttons,
  .page-news-platform-updates__button-group,
  .page-news-platform-updates__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-platform-updates__cta-group {
    display: flex;
    flex-direction: column;
  }

}

@media (max-width: 480px) {
  .page-news-platform-updates__hero-section {
    min-height: 350px;
  }

  .page-news-platform-updates__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-news-platform-updates__btn-primary,
  .page-news-platform-updates__btn-secondary {
    padding: 10px 15px;
  }

  .page-news-platform-updates__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-news-platform-updates__faq-question {
    font-size: 1rem;
  }

  .page-news-platform-updates__faq-answer {
    font-size: 0.95rem;
  }
}