.page-news {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Inherited from shared.css, ensuring consistency */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Primary brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* 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: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-news__main-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #e0e0e0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

.page-news__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: #121212;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
  border: none;
}

.page-news__cta-button:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__article-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-news__article-content {
  padding: 20px;
}

.page-news__article-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__article-summary {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-news__read-more {
  display: inline-block;
  color: #FFA500;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FFD700;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3a3a3a;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-item:hover {
  background-color: #FFD700;
  color: #121212;
}

.page-news__pagination-item--active {
  background-color: #FFD700;
  color: #121212;
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background-color: #121212;
}

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

.page-news__category-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #333;
}

.page-news__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-news__category-description {
  font-size: 0.9em;
  color: #cccccc;
  line-height: 1.6;
  padding: 0 15px 20px 15px;
}

/* Promotion Highlight Section */
.page-news__promotion-highlight-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__promotion-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #333;
}

.page-news__promotion-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-news__promotion-text {
  font-size: 1.1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: #121212;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  border: none;
}

.page-news__btn-primary:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

.page-news__center-button {
  text-align: center;
  margin-top: 50px;
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  background: transparent;
  color: #FFD700;
  text-decoration: none;
  border: 2px solid #FFD700;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news__btn-secondary:hover {
  background: #FFD700;
  color: #121212;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
  border: 1px solid #333;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #3a3a3a;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #1f1f1f;
  color: #cccccc;
  line-height: 1.7;
}

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

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-news__cta-button--register {
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: #121212;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-news__cta-button--register:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-news__cta-button--login {
  background: #8B0000;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(139, 0, 0, 0.4);
}

.page-news__cta-button--login:hover {
  background: #a50000;
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-image img {
    border-radius: 8px;
  }

  .page-news__main-title {
    font-size: 3em;
  }

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

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

  .page-news__articles-grid,
  .page-news__categories-grid,
  .page-news__promotion-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-image img {
    border-radius: 4px;
  }

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

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__cta-button {
    padding: 15px 35px;
    font-size: 1.1em;
  }

  .page-news__container {
    padding: 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-news__articles-grid,
  .page-news__categories-grid,
  .page-news__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-title {
    font-size: 1.2em;
  }

  .page-news__category-title {
    font-size: 1.3em;
  }

  .page-news__promotion-title {
    font-size: 1.5em;
  }

  .page-news__faq-question {
    padding: 15px 20px;
  }

  .page-news__faq-question h3 {
    font-size: 1.1em;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-news__faq-answer {
    padding: 0 20px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__cta-button,
  .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__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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 15px;
  }
  
  /* Mobile image specific rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__article-title {
    font-size: 1.1em;
  }
  .page-news__category-title {
    font-size: 1.2em;
  }
  .page-news__promotion-title {
    font-size: 1.3em;
  }
}