.page-news {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: var(--background-color, #ffffff); /* Ensure it respects shared body background */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #f5f5f5;
  text-align: center;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-news__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

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

.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;
  max-width: 100%;
  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: #1e87c0;
  border-color: #1e87c0;
}

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

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

/* General Section Styling */
.page-news__section {
  padding: 60px 0;
  background-color: #ffffff; /* Default light background for sections */
}

.page-news__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

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

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

.page-news__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-news__news-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  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 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-news__news-card-title a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-news__news-card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__news-card-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__news-card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-news__news-card-link:hover {
  text-decoration: underline;
}

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

/* Content Image */
.page-news__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-news__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 20px;
}

.page-news__text-block strong {
  color: #26A9E0;
}

.page-news__button-inline {
  margin-top: 15px;
}

/* Two Column Grid */
.page-news__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-news__column {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.page-news__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-news__ordered-list li {
  font-size: 1em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 10px;
}

.page-news__ordered-list li strong {
  color: #26A9E0;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #f0f8ff; /* Light blue background for FAQ */
}

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

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

.page-news__faq-item details {
  /* For native details element */
  margin: 0;
  padding: 0;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #e6f7ff; /* Lighter blue for question background */
  border-bottom: 1px solid #d0edff;
  transition: background-color 0.3s ease;
}

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

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

.page-news__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−'; /* Changed by JS, but good to have a fallback/initial state */
}

.page-news__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

/* For details tag, hide default marker */
.page-news__faq-item summary {
  list-style: none;
}
.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-news__cta-bottom-content {
  max-width: 900px;
}

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

.page-news__cta-bottom .page-news__description {
  color: #e0f2f7;
}

.page-news__cta-bottom .page-news__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  border-color: #EA7C07;
}

.page-news__cta-bottom .page-news__btn-primary:hover {
  background-color: #d46c05;
  border-color: #d46c05;
}

.page-news__cta-bottom .page-news__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-news__cta-bottom .page-news__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #f0f8ff;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

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

  .page-news__news-card-title {
    font-size: 1.2em;
  }

  .page-news__grid-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 15px 40px;
  }

  .page-news__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em) !important;
  }

  .page-news__description {
    font-size: 0.95em;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__section {
    padding: 40px 0;
  }

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

  .page-news__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card-image {
    height: 180px;
  }

  .page-news__news-card-title {
    font-size: 1.1em;
  }

  .page-news__text-block,
  .page-news__ordered-list li {
    font-size: 0.95em;
  }

  .page-news__subtitle {
    font-size: 1.5em;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

  /* Mobile image and video responsive adaptation */
  .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-image-wrapper,
  .page-news__news-grid,
  .page-news__news-card,
  .page-news__link-security-info,
  .page-news__registration-guide,
  .page-news__faq-section,
  .page-news__cta-bottom-content,
  .page-news__grid-two-columns,
  .page-news__column {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Specific padding for hero section to avoid double padding with container */
  .page-news__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__hero-content {
    padding: 0 15px; /* Apply padding directly to content block */
  }

  .page-news__video-section { /* If video existed, this would apply */
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  .page-news__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}