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

:root {
  --max10-primary-color: #11A84E;
  --max10-secondary-color: #22C768;
  --max10-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --max10-card-bg: #11271B;
  --max10-background: #08160F;
  --max10-text-main: #F2FFF6;
  --max10-text-secondary: #A7D9B8;
  --max10-border-color: #2E7A4E;
  --max10-glow-color: #57E38D;
  --max10-gold-color: #F2C14E;
  --max10-divider-color: #1E3A2A;
  --max10-deep-green: #0A4B2C;
}

/* Base styles for the page content, contrasting with body background #f4f4f4 */
.page-news-platform-announcements {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f4f4f4; /* Inherited from body, but can be overridden by sections */
}

/* Main container for content within sections */
.page-news-platform-announcements__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section backgrounds */
.page-news-platform-announcements__dark-bg {
  background-color: var(--max10-background);
  color: var(--max10-text-main);
}

.page-news-platform-announcements__light-bg {
  background-color: #ffffff; /* White background for contrast */
  color: #333333; /* Dark text for light background */
}

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

.page-news-platform-announcements__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-news-platform-announcements__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
  color: var(--max10-text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news-platform-announcements__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--max10-gold-color);
}

.page-news-platform-announcements__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: var(--max10-text-main);
}

.page-news-platform-announcements__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-news-platform-announcements__btn-primary,
.page-news-platform-announcements__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news-platform-announcements__btn-primary {
  background: var(--max10-button-gradient);
  color: var(--max10-text-main);
  border: 2px solid var(--max10-primary-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-news-platform-announcements__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-news-platform-announcements__btn-secondary {
  background-color: transparent;
  color: var(--max10-gold-color);
  border: 2px solid var(--max10-gold-color);
}

.page-news-platform-announcements__btn-secondary:hover {
  background-color: var(--max10-gold-color);
  color: var(--max10-background);
}

/* Section Titles and Text Blocks */
.page-news-platform-announcements__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-news-platform-announcements__introduction-section .page-news-platform-announcements__section-title,
.page-news-platform-announcements__security-section .page-news-platform-announcements__section-title,
.page-news-platform-announcements__faq-section .page-news-platform-announcements__section-title {
  color: #333333;
}

.page-news-platform-announcements__latest-announcements .page-news-platform-announcements__section-title,
.page-news-platform-announcements__support-section .page-news-platform-announcements__section-title,
.page-news-platform-announcements__conclusion-section .page-news-platform-announcements__section-title {
  color: var(--max10-text-main);
}

.page-news-platform-announcements__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-news-platform-announcements__card {
  background-color: var(--max10-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--max10-text-main);
  display: flex;
  flex-direction: column;
}

.page-news-platform-announcements__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news-platform-announcements__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-news-platform-announcements__card-title a {
  color: var(--max10-gold-color);
  text-decoration: none;
}

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

.page-news-platform-announcements__card-date {
  font-size: 0.9em;
  color: var(--max10-text-secondary);
  margin: 0 20px 10px;
}

.page-news-platform-announcements__card-description {
  font-size: 1em;
  color: var(--max10-text-secondary);
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-news-platform-announcements__card-link {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--max10-primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

.page-news-platform-announcements__cta-container {
  text-align: center;
  margin-top: 20px;
}

/* Security Section */
.page-news-platform-announcements__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-news-platform-announcements__security-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news-platform-announcements__security-text {
  flex: 1 1 400px;
  max-width: 50%;
}

/* Support Section */
.page-news-platform-announcements__support-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-news-platform-announcements__support-text {
  flex: 1 1 400px;
  max-width: 50%;
}

.page-news-platform-announcements__support-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news-platform-announcements__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news-platform-announcements__faq-item {
  background-color: var(--max10-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--max10-text-main);
  border: 1px solid var(--max10-border-color);
}

.page-news-platform-announcements__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: var(--max10-gold-color);
  user-select: none;
  list-style: none;
}

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

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

.page-news-platform-announcements__faq-item[open] .page-news-platform-announcements__faq-toggle {
  transform: rotate(45deg);
}

.page-news-platform-announcements__faq-answer {
  padding: 0 25px 18px;
  font-size: 1em;
  color: var(--max10-text-secondary);
}

/* Conclusion Section - uses the dark background */
.page-news-platform-announcements__conclusion-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news-platform-announcements__hero-content {
    width: 95%;
  }

  .page-news-platform-announcements__security-image,
  .page-news-platform-announcements__security-text,
  .page-news-platform-announcements__support-image,
  .page-news-platform-announcements__support-text {
    max-width: 100%;
  }

  .page-news-platform-announcements__security-content,
  .page-news-platform-announcements__support-content {
    flex-direction: column;
  }

  .page-news-platform-announcements__support-content .page-news-platform-announcements__support-image {
    order: -1; /* Image first on mobile for support section */
  }
}

@media (max-width: 768px) {
  .page-news-platform-announcements__hero-section {
    padding-bottom: 40px;
  }

  .page-news-platform-announcements__hero-content {
    padding: 15px;
  }

  .page-news-platform-announcements__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

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

  .page-news-platform-announcements__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-news-platform-announcements__container,
  .page-news-platform-announcements__introduction-section,
  .page-news-platform-announcements__latest-announcements,
  .page-news-platform-announcements__security-section,
  .page-news-platform-announcements__support-section,
  .page-news-platform-announcements__faq-section,
  .page-news-platform-announcements__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news-platform-announcements__card {
    margin: 0;
  }

  .page-news-platform-announcements img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news-platform-announcements__security-content,
  .page-news-platform-announcements__support-content {
    gap: 20px;
  }

  .page-news-platform-announcements__security-image,
  .page-news-platform-announcements__support-image {
    max-width: 100%;
    width: 100%;
  }

  .page-news-platform-announcements__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-news-platform-announcements__main-title {
    font-size: clamp(1.8em, 10vw, 2.2em);
  }

  .page-news-platform-announcements__section-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

  .page-news-platform-announcements__hero-section {
    padding-top: 5px; /* Even smaller top padding on very small screens */
  }

  .page-news-platform-announcements__hero-image {
    filter: brightness(0.5); /* More darken on smaller screens for better readability */
  }
}