/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF; /* Default light background */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

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

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

.page-news__introduction-section,
.page-news__analysis-section,
.page-news__guides-section,
.page-news__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__categories-section,
.page-news__promotions-section,
.page-news__community-section,
.page-news__cta-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__categories-section .page-news__section-title,
.page-news__promotions-section .page-news__section-title,
.page-news__community-section .page-news__section-title,
.page-news__cta-section .page-news__section-title {
  color: #ffffff;
}

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-news__text-block .page-news__inline-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-news__dark-bg .page-news__text-block {
  color: #f0f0f0;
}

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

.page-news__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

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

.page-news__card-title .page-news__card-link:hover {
  color: #1a7bb7;
}

.page-news__card-description {
  font-size: 0.95em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
  margin-top: 20px;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #1a7bb7;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin: 15px;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-news__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #eaf6fd;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #d8edf9;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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, padding 0.3s ease;
}

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

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

.page-news__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-news__image-medium {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__text-block {
    font-size: 1em;
  }
  .page-news__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__introduction-section,
  .page-news__analysis-section,
  .page-news__guides-section,
  .page-news__faq-section,
  .page-news__categories-section,
  .page-news__promotions-section,
  .page-news__community-section,
  .page-news__cta-section {
    padding: 40px 0;
  }
  .page-news p,
  .page-news li {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__card {
    padding-bottom: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }

  /* Responsive images, videos, buttons - MUST use !important */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-news__cta-button,
  .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;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.5em;
  }
  .page-news__section-title {
    font-size: 1.4em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 10px 15px;
  }
  .page-news__card-grid {
    grid-template-columns: 1fr;
  }
}