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

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

/* Base styles for the page content */
.page-news-platform-announcements {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--w11uu-text-main); /* Default text color for dark background */
  background-color: var(--w11uu-bg);
}

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

.page-news-platform-announcements__dark-bg {
  background-color: var(--w11uu-bg);
  color: var(--w11uu-text-main);
}

.page-news-platform-announcements__light-bg {
  background-color: #f8f9fa; /* A very light 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;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px;
  background-color: var(--w11uu-bg);
}

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

.page-news-platform-announcements__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-news-platform-announcements__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--w11uu-text-main);
}

.page-news-platform-announcements__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--w11uu-text-main);
}

.page-news-platform-announcements__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--w11uu-text-secondary);
}

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

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

.page-news-platform-announcements__btn-primary {
  background: var(--w11uu-button-gradient);
  color: #ffffff;
  border: none;
}

.page-news-platform-announcements__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-news-platform-announcements__btn-secondary:hover {
  background: var(--w11uu-green-accent);
  color: #ffffff;
}

/* Sections */
.page-news-platform-announcements__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-news-platform-announcements__section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--w11uu-text-secondary);
}

/* Latest Announcements Section */
.page-news-platform-announcements__latest-announcements {
  padding: 80px 0;
}

.page-news-platform-announcements__latest-announcements .page-news-platform-announcements__section-title,
.page-news-platform-announcements__latest-announcements .page-news-platform-announcements__section-subtitle {
  color: #333333; /* Dark text for light background */
}

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

.page-news-platform-announcements__announcement-card {
  background-color: #ffffff; /* White background for card */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333; /* Dark text for light card background */
}

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

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

.page-news-platform-announcements__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-news-platform-announcements__card-title a {
  color: var(--w11uu-green-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news-platform-announcements__card-title a:hover {
  color: var(--w11uu-green-accent);
}

.page-news-platform-announcements__card-meta {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 15px;
}

.page-news-platform-announcements__card-excerpt {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news-platform-announcements__card-link {
  display: inline-block;
  color: var(--w11uu-green-main);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news-platform-announcements__card-link:hover {
  color: var(--w11uu-green-accent);
}

.page-news-platform-announcements__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Featured Announcements Section */
.page-news-platform-announcements__featured-announcements {
  padding: 80px 0;
  background-color: var(--w11uu-deep-green);
  color: var(--w11uu-text-main);
}

.page-news-platform-announcements__featured-announcements .page-news-platform-announcements__section-title,
.page-news-platform-announcements__featured-announcements .page-news-platform-announcements__section-subtitle {
  color: var(--w11uu-text-main);
}

.page-news-platform-announcements__feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news-platform-announcements__feature-item {
  display: flex;
  align-items: center;
  background-color: var(--w11uu-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--w11uu-text-main);
}

.page-news-platform-announcements__feature-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

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

.page-news-platform-announcements__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news-platform-announcements__feature-title a {
  color: var(--w11uu-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news-platform-announcements__feature-title a:hover {
  color: var(--w11uu-glow);
}

.page-news-platform-announcements__feature-date {
  font-size: 0.95rem;
  color: var(--w11uu-text-secondary);
  margin-bottom: 15px;
}

.page-news-platform-announcements__feature-description {
  font-size: 1rem;
  color: var(--w11uu-text-secondary);
}

/* FAQ Section */
.page-news-platform-announcements__faq-section {
  padding: 80px 0;
}

.page-news-platform-announcements__faq-section .page-news-platform-announcements__section-title,
.page-news-platform-announcements__faq-section .page-news-platform-announcements__section-subtitle {
  color: #333333; /* Dark text for light background */
}

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

.page-news-platform-announcements__faq-item {
  background-color: #ffffff; /* White background for FAQ item */
  border: 1px solid var(--w11uu-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text for light background */
}

.page-news-platform-announcements__faq-item summary {
  list-style: none;
}

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

.page-news-platform-announcements__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid var(--w11uu-border);
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-news-platform-announcements__faq-question:hover {
  background-color: #e0e0e0;
}

.page-news-platform-announcements__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--w11uu-green-main);
}

.page-news-platform-announcements__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #eee;
}

.page-news-platform-announcements__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

/* Call to Action Section */
.page-news-platform-announcements__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--w11uu-bg);
  color: var(--w11uu-text-main);
}

.page-news-platform-announcements__cta-section .page-news-platform-announcements__section-title,
.page-news-platform-announcements__cta-section .page-news-platform-announcements__description {
  color: var(--w11uu-text-main);
}

/* General text styles for dark sections */
.page-news-platform-announcements__dark-bg p,
.page-news-platform-announcements__dark-bg li {
  color: var(--w11uu-text-secondary);
}

/* General text styles for light sections */
.page-news-platform-announcements__light-bg p,
.page-news-platform-announcements__light-bg li {
  color: #555555;
}

/* Image and Video Responsive Styles */
.page-news-platform-announcements img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news-platform-announcements video,
.page-news-platform-announcements__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-news-platform-announcements__video-section,
.page-news-platform-announcements__video-container,
.page-news-platform-announcements__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-news-platform-announcements__feature-item {
    flex-direction: column;
    text-align: center;
  }

  .page-news-platform-announcements__feature-image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-news-platform-announcements {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

  .page-news-platform-announcements__btn-primary,
  .page-news-platform-announcements__btn-secondary {
    width: 100% !important;
    padding: 12px 15px;
  }

  .page-news-platform-announcements__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .page-news-platform-announcements__section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-news-platform-announcements__latest-announcements,
  .page-news-platform-announcements__featured-announcements,
  .page-news-platform-announcements__faq-section,
  .page-news-platform-announcements__cta-section {
    padding: 40px 0;
  }

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

  .page-news-platform-announcements__announcement-grid {
    grid-template-columns: 1fr;
  }

  .page-news-platform-announcements__card-title {
    font-size: 1.2rem;
  }

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

  .page-news-platform-announcements__feature-title {
    font-size: 1.25rem;
  }

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

  .page-news-platform-announcements__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Force responsive images and videos */
  .page-news-platform-announcements img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news-platform-announcements video,
  .page-news-platform-announcements__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news-platform-announcements__section,
  .page-news-platform-announcements__card,
  .page-news-platform-announcements__container,
  .page-news-platform-announcements__video-section,
  .page-news-platform-announcements__video-container,
  .page-news-platform-announcements__video-wrapper,
  .page-news-platform-announcements__cta-buttons,
  .page-news-platform-announcements__button-group,
  .page-news-platform-announcements__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-announcements__video-section {
    padding-top: 10px !important;
  }
}

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