.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f5f5f5); /* Fallback to light gray if var not set */
}

/* Base styles for sections and containers to ensure responsiveness and proper spacing */
.page-news__section {
  padding: 60px 20px;
  text-align: center;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for inner content */
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #C91F17; /* Main brand color for titles */
}

.page-news__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Palette Application */
.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-news__dark-bg {
  background-color: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main */
}

.page-news__deep-red-bg {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
}

.page-news__gold-bg {
  background-color: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red for contrast */
}

.page-news__text-main {
  color: #FFF5E1;
}

.page-news__text-deep-red {
  color: #7A0E0E;
}

/* 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 */
  background-color: #B71C1C; /* Use background color for hero section */
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width within max-width */
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

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

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

.page-news__main-title {
  font-size: 48px;
  font-weight: 900;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  /* Use clamp for responsive font size without fixed values */
  font-size: clamp(32px, 5vw, 48px);
}

.page-news__hero-description {
  font-size: 20px;
  color: #F2F2F2;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Button */
.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsive on mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-news__category-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1; /* Text Main */
  border: 1px solid #F2B544; /* Border color */
}

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

.page-news__category-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-news__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFF5E1; /* Text Main */
}

.page-news__card-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #F2F2F2;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #C91F17; /* Main brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #F2B544; /* Border color */
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-secondary:hover {
  background: #E53935; /* Auxiliary color */
  transform: translateY(-2px);
}

/* Benefit List */
.page-news__benefit-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-news__benefit-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 5px solid #C91F17; /* Main brand color */
}

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

.page-news__benefit-title {
  font-size: 22px;
  font-weight: bold;
  color: #C91F17;
  margin-bottom: 15px;
}

.page-news__benefit-text {
  font-size: 16px;
  color: #555555;
}

/* Stay Updated Section */
.page-news__update-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__method-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1; /* Text Main */
  border: 1px solid #F2B544; /* Border color */
}

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

.page-news__method-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  text-align: left;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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: #FFF5E1; /* Text Main */
  font-weight: bold;
}

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: #E53935; /* Auxiliary color */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFF5E1;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #333333;
  text-align: left;
}

details.page-news__faq-item .page-news__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* CTA Section at the bottom */
.page-news__cta-section {
  padding: 80px 20px;
  background-color: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  border-top: 5px solid #E6B800;
}

.page-news__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-news__cta-content .page-news__section-title {
  color: #7A0E0E; /* Deep Red for contrast */
}

.page-news__cta-content .page-news__section-description {
  color: #7A0E0E; /* Deep Red for contrast */
}

.page-news__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on mobile */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 600px;
}

.page-news__cta-btn {
  flex-grow: 1;
  min-width: 200px; /* Ensure buttons are not too small */
}

/* General image styling */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Default border-radius for all images */
  object-fit: cover;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 30px;
  }
  .page-news__hero-image img {
    height: 500px;
  }
  .page-news__main-title {
    font-size: clamp(28px, 4.5vw, 40px);
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 15px;
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-news__hero-image {
    margin-bottom: 20px;
  }
  .page-news__hero-image img {
    height: 300px;
    border-radius: 8px;
  }
  .page-news__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 18px;
    width: 100% !important; /* Important for button responsiveness */
    max-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__category-grid,
  .page-news__benefit-list,
  .page-news__update-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__category-card,
  .page-news__method-card {
    padding: 20px;
  }

  .page-news__category-card img,
  .page-news__method-card img {
    height: 200px;
    border-radius: 6px;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  details.page-news__faq-item {
    border-radius: 8px;
  }

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

  .page-news__faq-qtext {
    font-size: 16px;
  }

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

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

  .page-news__cta-section {
    padding: 60px 15px;
  }

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

  /* Image responsive rules for all images and containers */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset; /* Override min-width for mobile */
    min-height: unset; /* Override min-height for mobile */
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__category-card,
  .page-news__method-card,
  .page-news__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter is used on images */
.page-news img {
  filter: none;
}