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

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

.page-news-platform-updates__dark-bg {
  background-color: #000080; /* Auxiliary color for dark sections */
  color: #ffffff;
}

.page-news-platform-updates__light-bg {
  background-color: #f0f0f0;
  color: #333333;
}

/* Hero Section */
.page-news-platform-updates__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 600px;
  overflow: hidden;
}

.page-news-platform-updates__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-news-platform-updates__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Darken image for text readability */
}

.page-news-platform-updates__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-news-platform-updates__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news-platform-updates__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.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: bold;
  font-size: 1.1em;
  margin: 0 10px;
  transition: background-color 0.3s ease, color 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: #FFD700;
  color: #000080;
  border: 2px solid #FFD700;
}

.page-news-platform-updates__btn-primary:hover {
  background-color: #e6c200;
  color: #000080;
}

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

.page-news-platform-updates__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

/* General Section Styles */
.page-news-platform-updates__updates-overview,
.page-news-platform-updates__detailed-updates,
.page-news-platform-updates__cta-section,
.page-news-platform-updates__faq-section,
.page-news-platform-updates__about-us {
  padding: 80px 0;
  text-align: center;
}

.page-news-platform-updates__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-news-platform-updates__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px;
  color: inherit;
}

/* Grid for Updates */
.page-news-platform-updates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news-platform-updates__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-news-platform-updates__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000080;
}

.page-news-platform-updates__card-title a {
  color: #000080;
  text-decoration: none;
}

.page-news-platform-updates__card-title a:hover {
  text-decoration: underline;
}

.page-news-platform-updates__card-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-news-platform-updates__card-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
}

.page-news-platform-updates__card-link:hover {
  text-decoration: underline;
}

/* Detailed Updates Section */
.page-news-platform-updates__content-block {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.page-news-platform-updates__sub-title {
  font-size: 2em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-news-platform-updates__detailed-updates p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-news-platform-updates__detailed-updates a {
  color: #FFD700;
  text-decoration: none;
}

.page-news-platform-updates__detailed-updates a:hover {
  text-decoration: underline;
}

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

/* CTA Section */
.page-news-platform-updates__cta-section .page-news-platform-updates__section-title,
.page-news-platform-updates__cta-section .page-news-platform-updates__section-description {
  color: #333333;
}

.page-news-platform-updates__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.page-news-platform-updates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-news-platform-updates__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news-platform-updates__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news-platform-updates__faq-item.active .page-news-platform-updates__faq-toggle {
  transform: rotate(45deg);
}

.page-news-platform-updates__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-news-platform-updates__faq-item.active .page-news-platform-updates__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-news-platform-updates__faq-answer p {
  margin: 0;
}

.page-news-platform-updates__faq-answer a {
  color: #FFD700;
  text-decoration: none;
}

.page-news-platform-updates__faq-answer a:hover {
  text-decoration: underline;
}

/* About Us Section */
.page-news-platform-updates__about-us .page-news-platform-updates__section-title,
.page-news-platform-updates__about-us .page-news-platform-updates__section-description {
  color: #333333;
}

.page-news-platform-updates__about-us a {
  color: #000080;
  text-decoration: none;
  font-weight: bold;
}

.page-news-platform-updates__about-us a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news-platform-updates__hero-title {
    font-size: 3em;
  }

  .page-news-platform-updates__section-title {
    font-size: 2em;
  }

  .page-news-platform-updates__sub-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-news-platform-updates__hero-section {
    padding: 60px 20px;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-news-platform-updates__hero-title {
    font-size: 2.5em;
  }

  .page-news-platform-updates__hero-description {
    font-size: 1em;
  }

  .page-news-platform-updates__btn-primary,
  .page-news-platform-updates__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    margin: 10px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-news-platform-updates__updates-overview,
  .page-news-platform-updates__detailed-updates,
  .page-news-platform-updates__cta-section,
  .page-news-platform-updates__faq-section,
  .page-news-platform-updates__about-us {
    padding: 50px 0;
  }

  .page-news-platform-updates__section-title {
    font-size: 1.8em;
  }

  .page-news-platform-updates__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

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

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

  .page-news-platform-updates__card-title {
    font-size: 1.3em;
  }

  .page-news-platform-updates__sub-title {
    font-size: 1.5em;
  }

  .page-news-platform-updates__detailed-updates p {
    font-size: 1em;
  }

  .page-news-platform-updates__content-block {
    padding: 0 15px;
  }

  .page-news-platform-updates__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news-platform-updates__faq-list {
    padding: 0 15px;
  }

  .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__video-section {
    padding-top: var(--header-offset, 120px) !important; /* With !important for mobile */
  }
  
  .page-news-platform-updates__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}