/* style/news.css */

/* Base styles for the page-news scope */
.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 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  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: #1a7fb0;
  border-color: #1a7fb0;
}

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

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  background-color: #121212;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-news__hero-content {
  width: 100%;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  background-color: #121212; /* Match body background for seamless transition */
}

.page-news__main-title {
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__intro-text {
  font-size: 1.15em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__card-date {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 10px;
}

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

.page-news__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #EA7C07;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

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

.page-news__view-all-news-btn {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Analysis Section */
.page-news__analysis-section {
  padding: 60px 0;
  background-color: #121212;
  color: #ffffff;
}

.page-news__analysis-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-news__analysis-text {
  flex: 2;
}

.page-news__analysis-subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__analysis-text p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-news__analysis-image-wrapper {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.page-news__analysis-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.page-news__analysis-cta {
  width: 100%;
  display: block;
  padding: 12px 20px;
}

/* Commitment Section */
.page-news__commitment-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-news__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__commitment-icon {
  width: 250px; /* Min size requirement 200px */
  height: 187px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news__commitment-subtitle {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__commitment-item p {
  color: #f0f0f0;
}

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

.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);
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

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

.page-news__faq-item[open] .page-news__faq-answer {
  max-height: 1000px; /* Sufficiently large to show content */
  padding-top: 10px;
}

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

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

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-news__large-cta-btn {
  padding: 15px 40px;
  font-size: 1.2em;
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-news__large-cta-btn:hover {
  background-color: #c76706;
  border-color: #c76706;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-news__analysis-content {
    flex-direction: column;
    align-items: center;
  }

  .page-news__analysis-text,
  .page-news__analysis-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-news__analysis-image {
    max-width: 600px;
    margin: 0 auto 20px;
  }
}

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

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

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

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-news__intro-text {
    font-size: 1em;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
  }

  /* Force images to be responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force video to be responsive */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-content,
  .page-news__latest-news-section,
  .page-news__analysis-section,
  .page-news__commitment-section,
  .page-news__faq-section,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__faq-item summary {
    font-size: 1.1em;
  }

  .page-news__faq-answer {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__analysis-subtitle {
    font-size: 1.5em;
  }
  .page-news__commitment-subtitle {
    font-size: 1.4em;
  }
  .page-news__hero-content {
    padding: 30px 15px;
  }
  .page-news__latest-news-section,
  .page-news__analysis-section,
  .page-news__commitment-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }
}