/* 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__content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-news__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

.page-news__highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

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

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-news__subtitle {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

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

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

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Highlights Section */
.page-news__highlights-section {
  padding: 60px 0;
}

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

.page-news__highlight-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-news__highlight-card:hover {
  transform: translateY(-10px);
}

.page-news__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Why Choose Section */
.page-news__why-choose-section {
  padding: 60px 0;
}

.page-news__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  color: #ffffff;
}

.page-news__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-news__feature-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* How To Use Section */
.page-news__how-to-use-section {
  padding: 60px 0;
}

.page-news__steps-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 30px;
  color: #e0e0e0;
}

.page-news__step-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-news__step-item strong {
  color: #26A9E0;
}

.page-news__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.page-news__cta-block p {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: #ffffff;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 0;
}

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

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

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

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #1e87b3;
}

.page-news__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.2em;
  color: #26A9E0;
  font-weight: bold;
  list-style: none;
}

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

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

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

/* Conclusion Section */
.page-news__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-news__conclusion-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__grid-container,
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__content-container {
    padding: 15px;
  }
  .page-news__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-news__subtitle {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }
  .page-news__text-block {
    font-size: 1em;
  }
  .page-news__highlight-card,
  .page-news__article-card {
    padding: 15px;
  }
  .page-news__card-title,
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__feature-title {
    font-size: 1.2em;
  }
  .page-news__faq-question {
    font-size: 1em;
  }

  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video adaptation (if any video) */
  .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__video-section {
    padding-top: 10px !important;
  }

  /* Mobile button adaptation */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  /* Content area containers for mobile */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-content,
  .page-news__intro-section,
  .page-news__highlights-section,
  .page-news__why-choose-section,
  .page-news__how-to-use-section,
  .page-news__latest-articles-section,
  .page-news__faq-section,
  .page-news__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}