/* style/news.css */

/* Color variables for easier use and contrast */
:root {
  --Primary-Color: #113B7A;
  --Secondary-Color: #1D5FD1;
  --Button: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --Card-BG: #10233F;
  --Card-BG-rgb: 16, 35, 63; /* RGB for rgba use */
  --Text-Main: #F3F8FF;
  --Text-Secondary: #AFC4E8;
  --Border: #244D84;
  --Glow: #4FA8FF;
  --Gold: #F2C14E;
  --Divider: #1B3357;
  --Deep-Navy: #08162B;
  --Deep-Navy-rgb: 8, 22, 43; /* RGB for rgba use */
}

/* General page styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Secondary); /* Default text color for the page content on dark body background */
  background-color: var(--Deep-Navy); /* Ensure content background is distinct if needed, but body handles overall */
  padding-bottom: 50px; /* General padding for footer separation */
}

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

.page-news__section-title,
.page-news__cta-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--Text-Main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* Text color for headings */
.page-news h1, .page-news h2, .page-news h3, .page-news h4, .page-news h5, .page-news h6 {
    color: var(--Text-Main);
}

/* Hero Section */
.page-news__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  background-color: var(--Deep-Navy);
}

.page-news__hero-image-wrapper {
  width: 100%;
  height: 500px; /* Fixed height for hero image, adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-news__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--Text-Main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__subtitle {
  font-size: 18px;
  color: var(--Text-Secondary);
  margin-bottom: 30px;
}

/* Articles Section */
.page-news__articles-section {
  margin-bottom: 60px;
}

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

.page-news__article-card {
  background-color: var(--Card-BG);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for article images */
  overflow: hidden;
}

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

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

.page-news__article-date {
  font-size: 14px;
  color: var(--Text-Secondary);
  margin-bottom: 10px;
}

.page-news__article-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: var(--Text-Main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--Gold);
}

.page-news__article-summary {
  font-size: 15px;
  color: var(--Text-Secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  background: var(--Button); /* Using custom button gradient */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-btn:hover {
  opacity: 0.9;
}

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

.page-news__view-all-btn {
  display: inline-block;
  background: var(--Button);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-btn:hover {
  opacity: 0.9;
}

/* CTA Section */
.page-news__cta-section {
  background-color: var(--Card-BG);
  padding: 60px 0;
  margin-bottom: 60px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-news__cta-title {
  font-size: 40px;
  color: var(--Text-Main);
  margin-bottom: 25px;
  text-align: left;
}

.page-news__cta-description {
  font-size: 18px;
  color: var(--Text-Secondary);
  margin-bottom: 30px;
}

.page-news__btn-primary {
  display: inline-block;
  background: var(--Button);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
}

.page-news__cta-image-wrapper {
  flex: 0 0 400px; /* Fixed width for CTA image */
  max-width: 400px;
  border-radius: 10px;
  overflow: hidden;
}

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

/* FAQ Section */
.page-news__faq-section {
  margin-bottom: 60px;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--Border);
  overflow: hidden;
  background: var(--Card-BG);
}
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(var(--Card-BG-rgb), 0.8); /* Slightly lighter hover for dark card bg */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main);
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--Text-Secondary);
  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: rgba(var(--Deep-Navy-rgb), 0.5); /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--Text-Secondary);
}
.page-news__faq-answer p {
    margin: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-image-wrapper {
    height: 400px;
  }
  .page-news__main-title {
    font-size: 40px;
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-news__cta-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-news__cta-title {
    text-align: center;
  }
  .page-news__cta-content {
    text-align: center;
  }
  .page-news__cta-image-wrapper {
    flex: none;
    max-width: 600px;
    width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 40px;
  }
  .page-news__hero-image-wrapper {
    height: 250px;
  }
  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__subtitle {
    font-size: 16px;
  }

  /* Articles Section */
  .page-news__articles-section {
    margin-bottom: 40px;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image-wrapper {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-summary {
    font-size: 14px;
  }
  .page-news__read-more-btn {
    padding: 8px 15px;
    font-size: 14px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__view-all-button-container {
    margin-top: 30px;
  }
  .page-news__view-all-btn {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }
  .page-news__cta-flex {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .page-news__cta-description {
    font-size: 16px;
  }
  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Added for container padding */
    padding-right: 15px; /* Added for container padding */
  }

  /* FAQ Section */
  .page-news__faq-section {
    margin-bottom: 40px;
  }
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 15px; }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  /* General Images & Containers for Mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__container,
  .page-news__articles-section .page-news__container,
  .page-news__cta-section .page-news__container,
  .page-news__faq-section .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}