/* Base Styles */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

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

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #333333; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-news__section-title--light {
  color: #ffffff;
}

.page-news__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-news__description--light {
  color: #f0f0f0;
}

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

.page-news__hero-image {
  width: 100%;
  height: 810px; /* Adjust height as needed */
  object-fit: cover;
  position: relative; /* Changed from absolute to relative for DOM order */
  z-index: 1;
}

.page-news__hero-content {
  position: relative; /* Changed from absolute to relative for DOM order */
  z-index: 2;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  width: 100%;
  margin-top: -100px; /* Pull content up over the image */
  color: #ffffff;
}

.page-news__main-title {
  font-size: clamp(32px, 4vw, 56px); /* Responsive font size */
  font-weight: 800;
  color: #FF5A4F;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-content .page-news__description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
  max-width: 100%;
  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(229, 57, 53, 0.6);
}

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

.page-news__news-card {
  background: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #E53935; /* Primary color for titles */
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__card-date {
  font-size: 14px;
  color: #666666;
  margin-top: auto; /* Push date to bottom */
  display: block;
}

.page-news__read-more {
  display: inline-block;
  margin-top: 10px;
  color: #E53935;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FF5A4F;
}

.page-news__button-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: #E53935;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-button:hover {
  background: #FF5A4F;
}

/* Categories Section */
.page-news__dark-section {
  background: #E53935;
  color: #ffffff;
}

.page-news__category-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-news__category-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 200px; /* Fixed width for category items */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-news__category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
}

.page-news__category-name {
  font-size: 18px;
  font-weight: 600;
  color: #E53935;
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

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: #f5f5f5;
}

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

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53935;
  flex-shrink: 0;
  margin-left: 20px;
  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;
}

.page-news__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-news__cta-section {
  background: #F5F7FA; /* Background */
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-box {
  background: linear-gradient(135deg, #FF5A4F 0%, #E53935 100%);
  border-radius: 15px;
  padding: 50px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.3);
}

.page-news__cta-box .page-news__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-news__cta-box .page-news__description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-news__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
  border-radius: 10px;
  background: #ffffff; /* White button for contrast */
  color: #E53935;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button--large:hover {
  background: #f0f0f0;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-news__category-list {
    gap: 20px;
  }
  .page-news__category-item {
    width: 180px;
    padding: 15px;
  }
  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__card-excerpt {
    font-size: 15px;
  }
  .page-news__hero-image {
    height: 600px;
  }
  .page-news__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
  .page-news__main-title {
    font-size: clamp(28px, 3.5vw, 48px);
  }
  .page-news__hero-content .page-news__description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section-padding {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-news__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-news__hero-image {
    height: 400px !important;
    object-fit: cover !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-news__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }
  .page-news__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-news__hero-content .page-news__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Latest News Section */
  .page-news__news-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }
  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-excerpt {
    font-size: 14px;
  }
  .page-news__button-container {
    margin-top: 40px;
  }
  .page-news__view-all-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Categories Section */
  .page-news__category-list {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-news__category-item {
    width: 100% !important;
    max-width: 250px;
    padding: 15px;
  }
  .page-news__category-icon {
    width: 80px;
    height: 80px;
  }
  .page-news__category-name {
    font-size: 16px;
  }

  /* FAQ Section */
  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;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 60px 0;
  }
  .page-news__cta-box {
    padding: 30px;
  }
  .page-news__cta-button--large {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  /* Generic image and button adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .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;
  }
  .page-news__button-group,
  .page-news__btn-container,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
}