/* style/news.css */
.page-news {
  background-color: #0D0E12; /* Custom Background */
  color: #FFF3E6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__hero-section {
  padding-top: 10px; /* Small top padding, relying on shared.css for body padding */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background */
  border-bottom: 1px solid #A84F0C; /* Custom Border */
}

.page-news__main-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFB04D; /* Custom Glow */
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom Button */
  color: #FFF3E6; /* Custom Text Main */
  border: none;
}

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

.page-news__btn-secondary {
  background: #17191F; /* Custom Card BG */
  color: #FFA53A; /* Custom Auxiliary */
  border: 2px solid #FFA53A; /* Custom Auxiliary */
  margin-left: 20px;
}

.page-news__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  transform: translateY(-2px);
}

.page-news__news-list-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFB04D; /* Custom Glow */
  text-align: center;
  margin-bottom: 40px;
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-news__news-card {
  background-color: #17191F; /* Custom Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

.page-news__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #FFA53A; /* Custom Auxiliary */
}

.page-news__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-news__card-title a:hover {
  color: #FFB04D; /* Custom Glow */
}

.page-news__card-meta {
  font-size: 14px;
  color: #A84F0C; /* Custom Border */
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #D96800; /* Custom Deep Orange */
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-news__read-more-btn:hover {
  background-color: #FFA53A;
  color: #17191F;
}

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

.page-news__cta-section {
  padding: 80px 0;
  background-color: #0D0E12;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #A84F0C;
}

.page-news__cta-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 40px;
  min-width: 200px;
  min-height: 200px;
}

.page-news__cta-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-news__cta-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 40px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__faq-section {
  padding: 60px 0 80px;
  background-color: #0D0E12;
  border-top: 1px solid #A84F0C;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Custom Border */
  overflow: hidden;
  background: #17191F; /* Custom Card BG */
  color: #FFF3E6;
}

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;
}

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: #2a2d34; /* Slightly lighter version of Card BG */
}

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

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04D; /* Custom Glow */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: #0D0E12; /* Custom Background */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 38px;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__cta-title {
    font-size: 32px;
  }
  .page-news__faq-qtext {
    font-size: 17px;
  }
}

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

  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-news__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Clamp for H1 to prevent overflow */
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-news__btn-secondary {
    margin-top: 15px; /* Add space between buttons if stacked */
  }

  .page-news__news-list-section {
    padding: 40px 0;
  }

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

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__card-image {
    height: 200px;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

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

  .page-news__read-more-btn {
    font-size: 14px;
    padding: 8px 12px;
  }

  .page-news__view-all-wrapper {
    margin-top: 40px;
  }

  .page-news__cta-section {
    padding: 50px 0;
  }

  .page-news__cta-image {
    margin-bottom: 30px;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-news__cta-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

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

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__faq-section {
    padding: 40px 0 60px;
  }

  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;
    margin-left: 15px;
    width: 25px;
  }

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

  .page-news__faq-answer p {
    font-size: 15px;
  }

  /* Generic image and container responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}