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

.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Adhering to the 10px top padding rule if body already has --header-offset */
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 10px;
}

.page-news__hero-image-wrapper {
  width: 100%;
  height: 500px; /* Fixed height for desktop hero */
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default to cover for desktop */
  display: block;
}

.page-news__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 5%;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); /* Overlay for readability */
  color: #ffffff;
}

.page-news__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  max-width: 700px;
}

.page-news__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 600px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-news__cta-button--secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: none;
}

.page-news__cta-button--secondary:hover {
  background: #f0f5ff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.1);
}

.page-news__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #2F6BFF;
  border-radius: 2px;
}

.page-news__latest-news-section,
.page-news__analysis-section,
.page-news__promotions-section,
.page-news__faq-section {
  padding: 60px 0;
  background: #F4F7FB; /* Background color for sections */
  margin-bottom: 40px;
  border-radius: 10px;
}

.page-news__analysis-section,
.page-news__promotions-section {
  background: #ffffff;
  border: 1px solid #D6E2FF;
}

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

.page-news__news-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #1F2D3D;
}

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

.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;
  color: #1F2D3D;
}

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

.page-news__card-title a:hover {
  color: #2F6BFF;
}

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

.page-news__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 5px;
  background: #2F6BFF;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-button:hover {
  background: #4A8BFF;
}

.page-news__all-news-cta {
  text-align: center;
  margin-top: 20px;
}

.page-news__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1F2D3D;
}

.page-news__article-body h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1F2D3D;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-news__article-body p {
  margin-bottom: 20px;
}

.page-news__article-body ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-news__article-body ul li {
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-news__article-figure {
  margin: 30px 0;
  text-align: center;
}

.page-news__article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Minimum size */
  min-height: 200px;
}

.page-news__article-figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

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

/* FAQ styles */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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: #F4F7FB;
  color: #2F6BFF;
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: #F4F7FB;
  border-radius: 0 0 10px 10px;
  color: #1F2D3D;
}

.page-news__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-news__intro-text {
    font-size: 1rem;
  }
  .page-news__section-title {
    font-size: 2rem;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-news__hero-image-wrapper {
    height: 400px;
  }
  .page-news__card-title {
    font-size: 1.2rem;
  }
  .page-news__faq-qtext {
    font-size: 1rem;
  }
}

@media (max-width: 849px) {
  .page-news__hero-image {
    object-fit: contain !important; /* Force contain for mobile hero */
    aspect-ratio: unset !important;
    height: auto; /* Allow height to adjust */
    max-height: 400px; /* Prevent excessively tall image */
  }
  .page-news__hero-content-wrapper {
    position: relative;
    background: none;
    padding: 20px 15px;
    color: #1F2D3D;
    text-align: center;
    align-items: center;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    color: #1F2D3D;
    max-width: 100%;
  }
  .page-news__intro-text {
    color: #333333;
    max-width: 100%;
  }
  .page-news__cta-button {
    width: 100%;
    margin-bottom: 15px;
  }
  .page-news__cta-button--secondary {
    width: 100%;
  }
  .page-news__hero-section {
    margin-bottom: 20px;
  }
  .page-news__hero-image-wrapper {
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section - Mobile */
  .page-news__hero-section {
    padding-top: 10px !important; /* ~10px top padding for mobile */
    margin-bottom: 20px;
    border-radius: 0;
  }
  .page-news__hero-image-wrapper {
    height: auto !important;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Force contain for mobile hero */
    aspect-ratio: unset !important;
    min-width: unset; /* Remove min-width for hero on mobile */
    min-height: unset; /* Remove min-height for hero on mobile */
  }
  .page-news__hero-content-wrapper {
    padding: 20px 15px !important;
    position: relative !important;
    background: none !important;
    color: #1F2D3D !important;
    text-align: center !important;
    align-items: center !important;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem) !important;
    color: #1F2D3D !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
  }
  .page-news__intro-text {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #333333 !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }

  /* Buttons - Mobile */
  .page-news__cta-button,
  .page-news__read-more-button,
  .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;
    margin-left: 0 !important; /* Reset margin for full width */
    margin-right: 0 !important;
  }
  .page-news__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important;
  }

  /* Section Titles - Mobile */
  .page-news__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 25px !important;
    padding-bottom: 10px !important;
  }
  .page-news__section-title::after {
    width: 60px !important;
  }

  /* News Grid - Mobile */
  .page-news__news-grid {
    grid-template-columns: 1fr !important; /* Single column for news cards */
    gap: 25px !important;
    margin-bottom: 30px !important;
  }
  .page-news__news-card {
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  .page-news__card-image {
    height: auto !important;
  }
  .page-news__card-title {
    font-size: 1.1rem !important;
  }
  .page-news__card-description {
    font-size: 0.95rem !important;
  }

  /* Article Body - Mobile */
  .page-news__article-body {
    max-width: 100% !important;
    padding: 0 15px !important;
    font-size: 1rem !important;
  }
  .page-news__article-body h3 {
    font-size: 1.5rem !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
  }
  .page-news__article-body ul {
    margin-left: 20px !important;
  }
  .page-news__article-figure {
    margin: 20px 0 !important;
  }
  .page-news__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; 
    min-height: unset !important;
  }

  /* General Images - Mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important;
    min-height: unset !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 !important;
    padding-right: 15px !important;
  }

  /* FAQ - Mobile */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px !important;
  }
  .page-news__faq-qtext {
    font-size: 1rem !important;
  }
  .page-news__faq-toggle {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px !important;
  }
  .page-news__latest-news-section,
  .page-news__analysis-section,
  .page-news__promotions-section,
  .page-news__faq-section {
    padding: 30px 0 !important;
  }
}