:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Login color */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #ffffff;
  --background-color-dark: #26A9E0;
  --border-color: #e0e0e0;
}

/* Base styles for the news page content */
.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--background-color-light); /* Default white background */
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

/* HERO Section (News Page Specific Banner) */
.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 */
  background-color: #f0f8ff; /* Light blue background for news banner */
  border-bottom: 1px solid var(--border-color);
}

.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: 8px;
  object-fit: cover;
}

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

.page-news__hero-content h1 {
  font-size: clamp(28px, 3.5vw, 48px); /* H1 font size with clamp */
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-content p {
  font-size: 18px;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: var(--background-color-light);
}

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

.page-news__article-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  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: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--secondary-color);
}

.page-news__card-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.page-news__card-description {
  font-size: 16px;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__view-all {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--background-color-dark); /* Brand color background */
  color: var(--text-color-light); /* Light text for dark background */
}

.page-news__faq-section .page-news__section-title {
  color: var(--text-color-light); /* Title in light color */
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for dark background */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(255, 255, 255, 0.15); /* Hover effect for dark background */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-light);
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color-light);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker background for answer */
  border-radius: 0 0 5px 5px;
}

.page-news__faq-answer p {
  color: var(--text-color-light);
  font-size: 16px;
}

/* Promotion CTA Section */
.page-news__promotion-cta {
  padding: 60px 0;
  text-align: center;
  background-color: #f0f8ff; /* Light blue background */
}

.page-news__promotion-text {
  font-size: 18px;
  color: var(--text-color-dark);
  max-width: 800px;
  margin: 20px auto 30px;
}

.page-news__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content h1 {
    font-size: clamp(26px, 4vw, 42px);
  }
  .page-news__hero-content p {
    font-size: 17px;
  }
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__article-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-image img {
    border-radius: 4px;
  }
  
  .page-news__hero-content h1 {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }
  .page-news__hero-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-news__latest-articles,
  .page-news__faq-section,
  .page-news__promotion-cta {
    padding: 40px 0;
  }

  .page-news__article-grid {
    gap: 20px;
  }

  .page-news__article-card img {
    
  }

  .page-news__card-title {
    font-size: 18px;
  }

  .page-news__card-description {
    font-size: 14px;
  }
  
  /* FAQ mobile styles */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 15px; }
  .page-news__faq-answer { padding: 0 15px 15px; }
  .page-news__faq-answer p { font-size: 14px; }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no CSS filter changes image colors */
.page-news img {
  filter: none;
}