/* General styles for .page-news */
.page-news {
  font-family: Arial, sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
  padding-bottom: 40px;
}

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

.page-news__section {
  padding: 40px 0;
}

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #FFB04D; /* Glow */
  position: relative;
  padding-bottom: 10px;
}

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

.page-news__section-title--light {
  color: #FFF3E6; /* Text Main */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px; /* Ensure content area has height */
  padding: 80px 20px;
}

.page-news__main-title {
  font-size: 48px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  max-width: 900px;
  line-height: 1.2;
  font-weight: 700;
}

.page-news__description {
  font-size: 18px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  justify-content: center;
}

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

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

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-news__btn-secondary {
  background: transparent;
  color: #FF8C1A; /* Main color */
  border: 2px solid #FF8C1A; /* Border color */
}

.page-news__btn-secondary:hover {
  background: #FF8C1A; /* Main color */
  color: #FFF3E6; /* Text Main */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

/* Introduction Section */
.page-news__introduction p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #FFF3E6; /* Text Main */
  text-align: justify;
}

/* Categories Section */
.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-news__category-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #FFF3E6; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 140, 26, 0.3);
}

.page-news__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news__category-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px 20px 10px;
  color: #FFB04D; /* Glow */
}

.page-news__category-description {
  font-size: 15px;
  padding: 0 20px 20px;
  flex-grow: 1;
  color: #FFF3E6; /* Text Main */
}

/* Latest Posts Section */
.page-news__posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-news__post-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.page-news__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 140, 26, 0.3);
}

.page-news__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-news__post-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFB04D; /* Glow */
  line-height: 1.3;
}

.page-news__post-meta {
  font-size: 14px;
  color: #A84F0C; /* Border color for subtle date */
  margin-bottom: 15px;
}

.page-news__post-excerpt {
  font-size: 16px;
  color: #FFF3E6; /* Text Main */
  flex-grow: 1;
}

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

.page-news__btn-view-all {
  font-size: 20px;
  padding: 18px 35px;
}

/* Dark CTA Section */
.page-news__dark-section {
  background-color: #17191F; /* Card BG, used as a darker section background */
  border-top: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}
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: #FFF3E6; /* 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: #252830; /* Slightly lighter Card BG on hover */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow */
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  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; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6; /* Text Main */
}
.page-news__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__hero-content {
    min-height: 400px;
    padding: 60px 15px;
  }
  .page-news__main-title {
    font-size: 40px;
  }
  .page-news__description {
    font-size: 16px;
  }
  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-news__posts-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  .page-news__category-title {
    font-size: 18px;
  }
  .page-news__post-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* General */
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__section {
    padding: 30px 0;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px; /* Still small top padding */
  }
  .page-news__hero-image {
    object-fit: contain !important; /* Force contain for mobile */
    filter: brightness(0.6); /* Slightly less dark for mobile */
  }
  .page-news__hero-content {
    min-height: 350px;
    padding: 40px 15px;
  }
  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-news__cta-buttons {
    flex-direction: column !important; /* Mobile vertical stack */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to container */
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 16px;
    padding: 12px 20px;
  }

  /* Introduction Section */
  .page-news__introduction p {
    font-size: 15px;
  }

  /* Categories Section */
  .page-news__categories-grid {
    grid-template-columns: repeat(1, 1fr); /* Single column for categories */
    gap: 15px;
  }
  .page-news__category-card {
    border-radius: 8px;
  }
  .page-news__category-image {
    height: 180px;
  }
  .page-news__category-title {
    font-size: 17px;
    padding: 12px 15px 8px;
  }
  .page-news__category-description {
    font-size: 14px;
    padding: 0 15px 15px;
  }

  /* Latest Posts Section */
  .page-news__posts-grid {
    grid-template-columns: repeat(1, 1fr); /* Single column for posts */
    gap: 15px;
  }
  .page-news__post-card {
    border-radius: 8px;
  }
  .page-news__post-image {
    height: 200px;
  }
  .page-news__post-content {
    padding: 15px;
  }
  .page-news__post-title {
    font-size: 18px;
  }
  .page-news__post-meta {
    font-size: 13px;
  }
  .page-news__post-excerpt {
    font-size: 14px;
  }
  .page-news__btn-view-all {
    font-size: 18px;
    padding: 15px 30px;
  }

  /* FAQ Section */
  details.page-news__faq-item {
    margin-bottom: 10px;
    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;
    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;
  }

  /* Image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__category-card,
  .page-news__post-card,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }
}