/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-news__dark-bg {
  background-color: #1a1a2e; /* Inherit body background or use a slightly darker tone for sections */
  color: #ffffff;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e, #26A9E0);
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #EA7C07; /* Login button color for secondary actions */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-btn:hover {
  background-color: #c96706;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

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

.page-news__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #ffffff;
}

.page-news__card-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
}

.page-news__category-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__category-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__category-title a:hover {
  color: #ffffff;
}

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

/* Article Section */
.page-news__article-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-news__full-article {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-news__article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
}

.page-news__article-heading {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__article-heading a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-heading a:hover {
  color: #ffffff;
}

.page-news__article-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-heading {
  color: #26A9E0;
  margin: 0;
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  color: #ffffff;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px;
}

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

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a1a2e);
}

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-heading {
    font-size: 1.8em;
  }
  .page-news__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-buttons,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__read-more-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-subtitle {
    font-size: 0.9em;
  }
  .page-news__news-grid,
  .page-news__category-grid {
    grid-template-columns: 1fr;
  }
  .page-news__news-card,
  .page-news__category-card,
  .page-news__full-article {
    margin-left: 15px;
    margin-right: 15px;
    padding: 20px;
  }
  .page-news__card-image,
  .page-news__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-heading {
    font-size: 1.5em;
  }
  .page-news__article-text {
    font-size: 1em;
  }
  .page-news__faq-question {
    font-size: 1.1em;
  }
  .page-news__cta-title {
    font-size: 2em;
  }

  /* Ensure all image containers are responsive */
  .page-news__news-card,
  .page-news__full-article,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__hero-description {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__article-heading {
    font-size: 1.3em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
}