/* General styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background color */
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Container for consistent content width */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Assuming shared.css handles body padding-top */
  padding-bottom: 40px;
  background-color: #7A0E0E; /* Deep Red for hero background */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Ensure image doesn't get too tall */
}

.page-news__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #FFF5E1;
}

.page-news__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #F4D34D; /* Gold for title */
}

.page-news__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold gradient */
  color: #7A0E0E; /* Deep Red for button text */
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles and Descriptions */
.page-news__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #F4D34D; /* Gold for section titles */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__section-description {
  font-size: 1.05rem;
  color: #FFF5E1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 40px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-news__article-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF5E1; /* Text Main for card text */
}

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

.page-news__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: #FFCC66; /* Glow for article title links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #F4D34D; /* Gold on hover */
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: rgba(255, 245, 225, 0.7); /* Lighter Text Main */
  margin-bottom: 15px;
}

.page-news__article-summary {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold gradient */
  color: #7A0E0E; /* Deep Red for button text */
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-start;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__view-all-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold gradient */
  color: #7A0E0E; /* Deep Red for button text */
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Platform Updates Section */
.page-news__platform-updates-section {
  padding: 40px 0;
  background-color: #7A0E0E; /* Deep Red background */
}

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

.page-news__update-item {
  background-color: #D32F2F; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1; /* Text Main */
}

.page-news__update-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F4D34D; /* Gold for update titles */
  margin-bottom: 10px;
}

.page-news__update-date {
  font-size: 0.9rem;
  color: rgba(255, 245, 225, 0.7);
  margin-bottom: 15px;
}

.page-news__update-text {
  font-size: 1rem;
}

/* CTA Section */
.page-news__cta-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

.page-news__cta-container {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #D32F2F; /* Card BG */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-news__cta-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.page-news__cta-content {
  flex: 1;
  color: #FFF5E1; /* Text Main */
}

.page-news__cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FFCC66; /* Glow for CTA title */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold gradient */
  color: #7A0E0E; /* Deep Red for button text */
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 40px 0 60px;
  background-color: #7A0E0E; /* Deep Red background */
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Increased border-radius for aesthetic */
  border: 1px solid #F2B544; /* Border Gold */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF5E1; /* Text Main */
}
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 on hover */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1rem; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFCC66; /* Glow for question text */
}
.page-news__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #F4D34D; /* Gold for toggle icon */
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  width: 30px; /* Increased width */
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #C91F17; /* Primary color for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1; /* Text Main for answer text */
}
.page-news__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin in FAQ answer */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-news__hero-cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

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

  .page-news__article-title {
    font-size: 1.3rem;
  }

  .page-news__cta-container {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .page-news__cta-image {
    width: 80%;
    margin-bottom: 30px;
  }

  .page-news__cta-title {
    font-size: 1.8rem;
  }

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

@media (max-width: 768px) {
  /* General mobile container adjustments */
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* All images must be responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    box-sizing: border-box !important;
  }

  /* All button responsiveness */
  .page-news__hero-cta-button,
  .page-news__read-more-button,
  .page-news__view-all-button,
  .page-news__cta-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;
    padding-right: 15px; /* Ensure padding inside button */
  }

  /* Button containers mobile adaptation */
  .page-news__view-all-button-container,
  .page-news__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* If multiple buttons are grouped, ensure they wrap or stack */
  .page-news__cta-buttons { /* Assuming a container for multiple buttons */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Space between stacked buttons */
  }

  /* 1. Banner `__hero-section` */
  .page-news__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-news__hero-image {
    max-height: 400px;
    object-fit: contain;
  }
  .page-news__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-news__hero-description {
    font-size: 1rem;
  }

  /* 4. News articles grid (similar to blog slider) */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image {
    height: auto;
  }
  .page-news__article-title {
    font-size: 1.2rem;
  }
  .page-news__section-title {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  /* CTA Section for mobile */
  .page-news__cta-container {
    padding: 25px;
    gap: 25px;
  }
  .page-news__cta-image {
    width: 100%;
    margin-bottom: 25px;
  }
  .page-news__cta-title {
    font-size: 1.6rem;
  }
  .page-news__cta-description {
    font-size: 1rem;
  }
  .page-news__cta-button {
    padding: 15px 25px;
    font-size: 1rem;
  }

  /* FAQ Section for mobile */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 1rem; }
  .page-news__faq-toggle { font-size: 24px; margin-left: 15px; width: 28px; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }
}

/* Ensure no image filters are used */
.page-news img {
  filter: none !important;
}

/* Content area image CSS dimension lower bound */
.page-news__latest-articles-section img,
.page-news__platform-updates-section img,
.page-news__cta-section img {
  min-width: 200px;
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-news__latest-articles-section img,
  .page-news__platform-updates-section img,
  .page-news__cta-section img {
    min-width: unset; /* Allow images to scale down on mobile */
    min-height: unset;
  }
}