.page-news {
  color: #f0f0f0; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

.page-news__section-title {
  font-size: 32px;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #cccccc;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, #8B0000, #FFD700);
  color: #ffffff;
  overflow: hidden;
}

.page-news__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-news__hero-content {
  flex: 1;
  padding-right: 40px;
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-news__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #FFD700;
}

.page-news__hero-button:hover {
  background-color: #e6c200;
  color: #660000;
  transform: translateY(-2px);
}

.page-news__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 200px; /* Ensure min size */
}

.page-news__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-news__article-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

.page-news__article-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #ffffff;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

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

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.page-news__category-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 1px solid #FFD700;
  min-height: 100px; /* Ensure min height for category cards */
}

.page-news__category-card:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-5px);
}

/* Featured Promotion Section */
.page-news__featured-promotion {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

.page-news__promotion-card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-news__promotion-image-wrapper {
  flex: 1;
  min-width: 50%;
  overflow: hidden;
}

.page-news__promotion-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-news__promotion-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__promotion-title {
  font-size: 30px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-news__promotion-description {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 30px;
}

.page-news__promotion-button {
  display: inline-block;
  background-color: #8B0000; /* Dark red button */
  color: #ffffff; /* White text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #8B0000;
}

.page-news__promotion-button:hover {
  background-color: #660000;
  transform: translateY(-2px);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: rgba(255, 215, 0, 0.2);
}

.page-news__faq-question:active {
  background: rgba(255, 215, 0, 0.3);
}

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

.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: #ffffff;
  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 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.page-news__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-container {
    flex-direction: column;
    padding: 0 20px;
  }

  .page-news__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }

  .page-news__hero-image-wrapper {
    justify-content: center;
  }

  .page-news__hero-title {
    font-size: 40px;
  }

  .page-news__hero-description {
    font-size: 17px;
  }

  .page-news__promotion-card {
    flex-direction: column;
  }

  .page-news__promotion-image-wrapper {
    min-width: 100%;
    height: 300px;
  }

  .page-news__promotion-content {
    padding: 30px;
    text-align: center;
  }

  .page-news__promotion-title {
    font-size: 28px;
  }
}

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

  .page-news__hero-title {
    font-size: 32px;
  }

  .page-news__hero-description {
    font-size: 16px;
  }

  .page-news__hero-button,
  .page-news__promotion-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-news__latest-articles,
  .page-news__categories-section,
  .page-news__featured-promotion,
  .page-news__faq-section {
    padding: 50px 0;
  }

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

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__article-excerpt {
    font-size: 15px;
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .page-news__category-card {
    font-size: 16px;
    padding: 15px;
    min-height: 80px;
  }

  .page-news__promotion-image-wrapper {
    height: 250px;
  }

  .page-news__promotion-title {
    font-size: 24px;
  }

  .page-news__promotion-description {
    font-size: 16px;
  }

  .page-news__faq-question {
    padding: 15px;
  }
  
  .page-news__faq-question h3 {
    font-size: 16px;
  }
  
  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }
  
  .page-news__hero-image-wrapper,
  .page-news__article-image-wrapper,
  .page-news__promotion-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__container,
  .page-news__articles-grid,
  .page-news__categories-grid,
  .page-news__promotion-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}