/* Base styles for the news page */
.page-news {
  background-color: #0A0A0A; /* Dark background from body */
  color: #FFF6D6; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: #F2C14E; /* Brand primary color for titles */
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #FFF6D6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop, will be contain for mobile */
  display: block;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  color: #FFD36B; /* Auxiliary color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-news__description {
  font-size: 19px;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-news__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Primary color for text */
  border: 2px solid #F2C14E;
}

.page-news__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.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-color: #111111; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-news__news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news__card-content {
  padding: 20px;
}

.page-news__card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color for card titles */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__card-meta {
  font-size: 14px;
  color: #F2C14E; /* Primary color for meta info */
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 15px;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-news__read-more {
  color: #F2C14E;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding-right: 20px;
}

.page-news__read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.3s ease;
}

.page-news__news-card:hover .page-news__read-more::after {
  right: -5px;
}

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

/* Featured News Section */
.page-news__featured-news-section {
  padding: 60px 0;
  background-color: #111111;
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-news__featured-card {
  background-color: #0A0A0A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__featured-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-news__cta-section .page-news__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

.page-news__cta-title {
  font-size: 38px;
  color: #FFD36B;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 19px;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-news__cta-buttons-bottom {
  display: flex;
  gap: 20px;
}

.page-news__cta-image {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
}

.page-news__cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #0A0A0A; /* Dark background for FAQ item */
}

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(242, 193, 78, 0.1); /* Light hover effect with brand color */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Auxiliary color for FAQ question */
}

.page-news__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #F2C14E; /* Primary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #111111; /* Card BG for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
}

/* General Image styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-news__main-title {
    font-size: clamp(26px, 5vw, 42px);
  }

  .page-news__cta-section .page-news__container {
    flex-direction: column;
    text-align: center;
  }

  .page-news__cta-content {
    text-align: center;
  }

  .page-news__cta-buttons-bottom {
    justify-content: center;
  }

  .page-news__cta-image {
    width: 80%;
    height: auto;
  }

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

@media (max-width: 849px) {
  .page-news__hero-image img {
    object-fit: contain !important; /* Mobile hero image should contain, not crop */
    aspect-ratio: unset !important;
    height: auto !important;
  }
}

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

  /* HERO Section */
  .page-news__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-news__main-title {
    font-size: clamp(24px, 7vw, 36px);
    padding: 0 10px;
  }

  .page-news__description {
    font-size: 16px;
    padding: 0 10px;
  }

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

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

  /* Latest News Section */
  .page-news__latest-news-section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-top: 20px;
  }

  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr; /* Single column for news cards */
    gap: 20px;
  }

  .page-news__news-card img {
    
  }

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

  .page-news__card-excerpt {
    font-size: 14px;
  }

  /* Featured News Section */
  .page-news__featured-news-section {
    padding: 40px 0;
  }

  .page-news__featured-card img {
    height: 200px;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 50px 0;
  }

  .page-news__cta-title {
    font-size: 30px;
  }

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

  .page-news__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-news__cta-image {
    width: 100%;
    height: auto;
  }

  /* FAQ Section */
  .page-news__faq-section {
    padding: 40px 0 50px;
  }

  .page-news__faq-list {
    padding: 0 15px;
  }

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

  .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 15px 15px;
  }

  /* General Image & Container Responsive Rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-news__hero-image,
  .page-news__news-card,
  .page-news__featured-card,
  .page-news__cta-image,
  .page-news__news-grid,
  .page-news__featured-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* No specific product-display-grid for news page, but rule for completeness */
  /* .page-news__products-grid { overflow-x: hidden; } */

  /* Decorative H1/Long SEO Text (section-title, description) */
  .page-news__section-title-wrap, /* Placeholder if such a wrapper exists */
  .page-news__article-body, /* Placeholder for a general article body */
  .page-news__article-figure { /* Placeholder for a figure in article body */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center; /* Center text for better mobile readability */
  }

  .page-news p,
  .page-news li,
  .page-news h1,
  .page-news h2,
  .page-news h3,
  .page-news h4,
  .page-news h5,
  .page-news h6 {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
  }
}