/* style/news.css */

/* --- General Styles --- */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

.page-news__section-title {
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  font-weight: bold;
}

.page-news__paragraph {
  margin-bottom: 15px;
  text-align: left;
  font-size: 1.1em;
}

.page-news__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-text-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #4A148C; /* Primary color for text */
  border: 2px solid #FFD700;
}

.page-news__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #3a1070;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Auxiliary color */
  border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #4A148C;
}

.page-news__btn-text-link {
  color: #FFD700;
  padding: 0;
  border: none;
  text-decoration: underline;
  font-size: 0.95em;
}

.page-news__btn-text-link:hover {
  color: #e6c200;
}

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #4A148C 0%, #2c0b57 100%); /* Primary color gradient */
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Auxiliary color */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-news__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* --- Introduction Section --- */
.page-news__introduction-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background from body */
}

/* --- Categories Section --- */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

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

.page-news__category-card {
  background-color: #2a0f5a; /* Slightly lighter than primary for contrast */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-news__card-image {
  width: 100%;
  height: 200px; /* Fixed height for cards */
  object-fit: cover;
  border-bottom: 2px solid #FFD700;
}

.page-news__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 15px 10px 15px;
  flex-grow: 1; /* Allow title to take up available space */
}

.page-news__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-news__card-title a:hover {
  text-decoration: underline;
  color: #e6c200;
}

.page-news__card-text {
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 15px;
  font-size: 0.95em;
}

/* --- Benefits Section --- */
.page-news__benefits-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

.page-news__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__list-item {
  background-color: #2a0f5a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__list-title {
  color: #FFD700;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-news__list-text {
  color: #f0f0f0;
}

/* --- CTA Register Section --- */
.page-news__cta-register-section {
  padding: 60px 0;
  background-color: #4A148C; /* Primary brand color for dark section */
  text-align: center;
}

.page-news__cta-register-section .page-news__section-title {
  color: #FFD700;
}

.page-news__cta-register-section .page-news__paragraph {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__register-steps {
  list-style-type: decimal;
  color: #f0f0f0;
  text-align: left;
  max-width: 600px;
  margin: 30px auto 40px auto;
  padding-left: 20px;
  font-size: 1.1em;
}

.page-news__step-item {
  margin-bottom: 10px;
}

.page-news__register-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* --- FAQ Section --- */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: #2a0f5a;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #4A148C; /* Primary color */
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #5c1aae;
}

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

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

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

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

.page-news__faq-answer-text {
  margin: 0;
  padding-bottom: 10px;
}

/* --- Conclusion Section --- */
.page-news__conclusion-section {
  padding: 60px 0;
  background-color: #1a1a2e;
  text-align: center;
}

.page-news__conclusion-section .page-news__paragraph a {
  color: #FFD700;
  text-decoration: underline;
}

.page-news__conclusion-section .page-news__paragraph a:hover {
  color: #e6c200;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-news__benefits-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile image/video/button responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__container,
  .page-news__section,
  .page-news__card,
  .page-news__hero-section,
  .page-news__introduction-section,
  .page-news__categories-section,
  .page-news__benefits-section,
  .page-news__cta-register-section,
  .page-news__faq-section,
  .page-news__conclusion-section,
  .page-news__video-section, /* If video is present */
  .page-news__video-container, /* If video is present */
  .page-news__video-wrapper, /* If video is present */
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-cta-buttons,
  .page-news__register-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news 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 !important;
    padding-right: 15px !important;
  }

  .page-news__category-grid,
  .page-news__benefits-list {
    grid-template-columns: 1fr;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }

  .page-news__paragraph,
  .page-news__list-item,
  .page-news__card-text,
  .page-news__faq-question,
  .page-news__faq-answer-text {
    font-size: 15px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px;
  }

  .page-news__register-steps {
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
}