/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Assuming shared.css background-color is light or white */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-news__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

.page-news__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-news__subsection-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #d16b06;
}

/* Article Grid */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-news__article-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  color: #26A9E0;
  font-weight: bold;
}

.page-news__article-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__article-title a:hover {
  text-decoration: underline;
}

.page-news__article-summary {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
}

.page-news__article-link {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  padding: 20px;
  align-self: flex-start;
}

.page-news__article-link:hover {
  text-decoration: underline;
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-news__categories-section .page-news__section-intro {
  color: #f0f0f0;
}

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

.page-news__category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.page-news__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: bold;
}

.page-news__category-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-news__category-title a:hover {
  text-decoration: underline;
}

.page-news__category-description {
  font-size: 0.9em;
  color: #f0f0f0;
  padding: 0 20px;
}

.page-news__category-link {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
}

.page-news__category-link:hover {
  text-decoration: underline;
}

/* In-depth Analysis Section */
.page-news__in-depth-analysis {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-news__in-depth-analysis p {
  margin-bottom: 1em;
  color: #333333;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-news__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-news__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
  outline: none;
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07;
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
}

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

/* CTA Section */
.page-news__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Utility Classes for Contrast */
.page-news__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-news__hero-section {
    padding: 60px 0 !important;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-news__hero-title {
    font-size: 2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }

  .page-news__section-intro,
  .page-news__cta-description {
    font-size: 0.95em;
  }

  .page-news__articles-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image,
  .page-news__category-image {
    height: 180px;
  }

  .page-news__article-title,
  .page-news__category-title {
    font-size: 1.2em;
  }

  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__articles-grid,
  .page-news__categories-grid,
  .page-news__article-card,
  .page-news__category-card,
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }
  
  .page-news__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news p,
  .page-news li {
    font-size: 0.9em;
  }
}