/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  min-height: 500px;
  overflow: hidden;
  background-color: #0a0a0a; /* Ensure dark background for contrast */
}

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

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the image to ensure text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General Sections */
.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0;
}

.page-news__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-news__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Latest News Section */
.page-news__latest-news {
  padding: 80px 0;
}

.page-news__latest-news .page-news__section-description {
  color: #555555;
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__news-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
}

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

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

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

.page-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #1e87c0;
}

.page-news__card-excerpt {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-date {
  font-size: 0.85rem;
  color: #999999;
  display: block;
  margin-top: auto;
}

/* Why Important Section */
.page-news__why-important {
  padding: 80px 0;
}

.page-news__why-important .page-news__section-description {
  color: #f0f0f0;
}

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

.page-news__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__feature-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news__feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-news__feature-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 80px 0;
}

.page-news__promotions-section .page-news__section-description {
  color: #555555;
}

.page-news__promotion-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-news__promotion-image {
  flex: 1 1 45%;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-news__promotion-text {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-news__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-news__promotion-text p {
  margin-bottom: 20px;
  color: #333333;
}

/* Registration Guide Section */
.page-news__registration-guide {
  padding: 80px 0;
}

.page-news__registration-guide .page-news__section-description {
  color: #f0f0f0;
}

.page-news__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-news__guide-steps {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-news__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 15px;
}

.page-news__step-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #EA7C07; /* Login color */
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-news__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #ffffff;
}

.page-news__step-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-news__guide-image {
  flex: 1 1 40%;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

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

.page-news__faq-section .page-news__section-description {
  color: #555555;
}

.page-news__faq-list {
  margin-top: 40px;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  list-style: none;
}

.page-news__faq-item[open] > .page-news__faq-question {
  border-bottom: 1px solid #dddddd;
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  flex-shrink: 0;
}

.page-news__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #fcfcfc;
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-news__cta-final {
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-final .page-news__section-description {
  color: #f0f0f0;
}

.page-news__cta-final .page-news__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-news__section-title {
    font-size: 2rem;
  }

  .page-news__promotion-content,
  .page-news__guide-content {
    flex-direction: column;
  }

  .page-news__promotion-image,
  .page-news__guide-image {
    order: -1; /* Image first on mobile */
  }

  .page-news__promotion-image,
  .page-news__guide-image,
  .page-news__promotion-text,
  .page-news__guide-steps {
    flex: 1 1 100%;
    min-width: unset;
  }
}

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

  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-news__hero-description,
  .page-news__section-description {
    font-size: 1rem;
  }

  .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;
    padding-right: 15px;
  }

  .page-news__hero-cta-buttons,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* All images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-card,
  .page-news__feature-item,
  .page-news__promotion-content,
  .page-news__guide-content,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__news-card {
    padding: 0; /* Remove padding if card has inner padding */
  }

  .page-news__card-content {
    padding: 15px;
  }

  .page-news__hero-section .page-news__container {
    padding: 0; /* Hero container does not need side padding */
  }

  .page-news__hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .page-news__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-news__step-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

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

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}