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

/* Body background color from shared.css is var(--bg-color), assuming light for text #333333 */
.page-news-platform-updates {
  color: var(--text-main-color, #333333); /* Default text color */
  background-color: var(--bg-color, #F5F7FA); /* Default background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-news-platform-updates__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-news-platform-updates__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--primary-color, #E53935);
  color: #ffffff;
  overflow: hidden;
}

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

.page-news-platform-updates__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  display: block;
}

.page-news-platform-updates__hero-content-wrapper {
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.page-news-platform-updates__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-news-platform-updates__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news-platform-updates__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-news-platform-updates__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
}

.page-news-platform-updates__latest-updates-section {
  padding: 80px 0;
  background-color: var(--card-bg-color, #FFFFFF);
  color: var(--text-main-color, #333333);
}

.page-news-platform-updates__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color, #E53935);
}

.page-news-platform-updates__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-main-color, #333333);
}

.page-news-platform-updates__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-news-platform-updates__news-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news-platform-updates__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-news-platform-updates__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news-platform-updates__news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news-platform-updates__news-card-date {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 10px;
}

.page-news-platform-updates__news-card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-news-platform-updates__news-card-title a {
  color: var(--text-main-color, #333333);
  text-decoration: none;
}

.page-news-platform-updates__news-card-title a:hover {
  color: var(--primary-color, #E53935);
}

.page-news-platform-updates__news-card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-news-platform-updates__news-card-link {
  display: inline-block;
  color: var(--primary-color, #E53935);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.page-news-platform-updates__view-all-button-container {
  text-align: center;
}

.page-news-platform-updates__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ffffff;
  color: var(--primary-color, #E53935);
  border: 2px solid var(--primary-color, #E53935);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-news-platform-updates__btn-secondary:hover {
  background-color: var(--primary-color, #E53935);
  color: #ffffff;
}

.page-news-platform-updates__promo-cta-section {
  background-color: var(--primary-color, #E53935);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-news-platform-updates__promo-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-news-platform-updates__promo-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-news-platform-updates__promo-image-wrapper {
  margin-top: 40px;
}

.page-news-platform-updates__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.page-news-platform-updates__about-news-section {
  padding: 80px 0;
  background-color: var(--card-bg-color, #FFFFFF);
  color: var(--text-main-color, #333333);
}

.page-news-platform-updates__text-block {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-main-color, #333333);
}

.page-news-platform-updates__faq-links-section {
  padding: 80px 0;
  background-color: var(--bg-color, #F5F7FA);
  color: var(--text-main-color, #333333);
}

.page-news-platform-updates__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news-platform-updates__link-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: var(--text-main-color, #333333);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news-platform-updates__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-news-platform-updates__link-card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color, #E53935);
}

.page-news-platform-updates__link-card-description {
  font-size: 0.95em;
  color: #666666;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-news-platform-updates__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

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

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

  .page-news-platform-updates__latest-updates-section,
  .page-news-platform-updates__promo-cta-section,
  .page-news-platform-updates__about-news-section,
  .page-news-platform-updates__faq-links-section {
    padding: 40px 0;
  }

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

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

  .page-news-platform-updates__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-news-platform-updates__news-card-title {
    font-size: 1.2em;
  }

  .page-news-platform-updates__news-card-excerpt {
    font-size: 0.9em;
  }

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

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

  .page-news-platform-updates__links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news-platform-updates__link-card-title {
    font-size: 1.2em;
  }

  .page-news-platform-updates__link-card-description {
    font-size: 0.9em;
  }

  /* Mobile responsive for images, videos, and buttons */
  .page-news-platform-updates img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news-platform-updates video,
  .page-news-platform-updates__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news-platform-updates__hero-image,
  .page-news-platform-updates__news-card-image,
  .page-news-platform-updates__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news-platform-updates__section,
  .page-news-platform-updates__card,
  .page-news-platform-updates__container,
  .page-news-platform-updates__video-section,
  .page-news-platform-updates__video-container,
  .page-news-platform-updates__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-news-platform-updates__cta-button,
  .page-news-platform-updates__btn-primary,
  .page-news-platform-updates__btn-secondary,
  .page-news-platform-updates a[class*="button"],
  .page-news-platform-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;
    text-align: center;
  }

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