/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

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

.page-news__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero image on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-news__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(47, 107, 255, 0.7), rgba(111, 163, 255, 0.7)); /* Overlay for text readability */
}

.page-news__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Section Titles */
.page-news__section-title {
  font-size: 2.5rem;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF;
}

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

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

.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: #ffffff; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

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

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

.page-news__news-card-content {
  padding: 25px;
}

.page-news__news-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__news-card-title a {
  color: #1F2D3D; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #2F6BFF; /* Main Color */
}

.page-news__news-card-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.page-news__news-card-excerpt {
  font-size: 1rem;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-news__news-card-link {
  display: inline-block;
  color: #2F6BFF; /* Main Color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__news-card-link:hover {
  color: #4A8BFF;
  text-decoration: underline;
}

.page-news__view-all-button-wrapper {
  text-align: center;
}

.page-news__btn-view-all {
  min-width: 200px;
}

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

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

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;
  color: #1F2D3D; /* 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: #F4F7FB; /* Background */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #333333;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-image-wrapper {
    height: 500px;
  }

  .page-news__hero-title {
    font-size: 2.8rem;
  }

  .page-news__hero-description {
    font-size: 1.1rem;
  }

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

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

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

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-news__hero-image-wrapper {
    height: 400px;
  }

  .page-news__hero-title {
    font-size: 2rem !important;
    max-width: 90%;
  }

  .page-news__hero-description {
    font-size: 0.95rem !important;
    max-width: 90%;
  }

  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Section Titles */
  .page-news__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-news__news-card-image {
    height: 180px;
  }

  .page-news__news-card-content {
    padding: 20px;
  }

  .page-news__news-card-title {
    font-size: 1.2rem;
  }

  .page-news__news-card-excerpt {
    font-size: 0.95rem;
  }

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

  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: 20px;
    width: 24px;
  }

  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  /* Universal Image and Container Adaptations */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__news-grid,
  .page-news__faq-item {
    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,
  .page-news__latest-news-section .page-news__container,
  .page-news__faq-section .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-news__hero-buttons,
  .page-news__view-all-button-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-news__hero-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-news__btn-primary, .page-news__btn-secondary {
    padding: 12px 15px;
  }
}