/* style/news.css */
.page-news {
  color: #ffffff; /* Body background is dark (#0a0a0a), so use light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on shared.css for body background */
}

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

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #1a7eb3);
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

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

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

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

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

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7eb3;
  border-color: #f0f0f0;
}

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: 1.05rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-news__latest-news-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

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

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

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

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

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

.page-news__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__card-meta {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 15px;
}

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

.page-news__card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  color: #FFFFFF;
}

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

.page-news__featured-articles-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF; /* Ensure light text on brand color background */
}

.page-news__featured-articles-section .page-news__section-title {
  color: #FFFFFF;
}

.page-news__featured-articles-section .page-news__section-description {
  color: #f0f0f0;
}

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

.page-news__article-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #f0f0f0;
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: #e0e0e0;
  margin-bottom: 15px;
}

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

.page-news__why-choose-us-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-news__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-news__benefit-text {
  font-size: 1rem;
  color: #e0e0e0;
}

.page-news__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.08);
}

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

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

.page-news__faq-item summary {
  list-style: none;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-question {
  background-color: #26A9E0;
  border-bottom-color: transparent;
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.7;
}

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

.page-news__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #FFFFFF;
}

.page-news__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1a7eb3;
}

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

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

/* General image responsiveness */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-news__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }

  .page-news__description {
    font-size: 1rem !important;
  }

  .page-news__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

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

  .page-news__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }

  .page-news__section-description {
    font-size: 0.95rem !important;
    margin-bottom: 30px !important;
  }

  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__why-choose-us-section,
  .page-news__faq-section,
  .page-news__cta-bottom-section {
    padding: 50px 0 !important;
  }

  .page-news__news-grid,
  .page-news__article-grid,
  .page-news__benefits-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-news__card-image,
  .page-news__article-image {
    height: 180px !important;
  }

  .page-news__card-title,
  .page-news__article-title {
    font-size: 1.2rem !important;
  }

  .page-news__card-content,
  .page-news__article-content,
  .page-news__benefit-item,
  .page-news__faq-question,
  .page-news__faq-answer {
    padding: 20px !important;
  }

  .page-news__benefit-title {
    font-size: 1.2rem !important;
  }

  .page-news__faq-question {
    font-size: 1.05rem !important;
  }

  /* Ensure all images and containers prevent overflow */
  .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__hero-section,
  .page-news__hero-image-wrapper,
  .page-news__hero-content,
  .page-news__latest-news-section,
  .page-news__news-grid,
  .page-news__news-card,
  .page-news__card-content,
  .page-news__view-all-button-container,
  .page-news__featured-articles-section,
  .page-news__article-grid,
  .page-news__article-item,
  .page-news__article-content,
  .page-news__why-choose-us-section,
  .page-news__benefits-list,
  .page-news__benefit-item,
  .page-news__faq-section,
  .page-news__faq-list,
  .page-news__faq-item,
  .page-news__faq-question,
  .page-news__faq-answer,
  .page-news__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-news__cta-buttons {
    overflow-x: hidden !important;
  }
}