/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #1a1a1a, so text is light */
  background-color: transparent; /* Rely on body background from shared.css */
}

/* Header spacing is handled by shared.css on the body element */

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles main offset */
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #007bff);
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

.page-news__hero-content {
  max-width: 900px;
  margin-top: 20px;
  z-index: 1;
  color: #ffffff;
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-news__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #f0f8ff;
}

/* Content Area */
.page-news__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff; /* Light text on dark background */
  background-color: #1a1a1a; /* Explicitly set for content blocks if needed */
}

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

.page-news__dark-section {
  background: linear-gradient(135deg, #26A9E0, #007bff);
  color: #ffffff;
}

.page-news__section-title {
  font-size: 2.2em;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

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

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

.page-news__news-card {
  background-color: #2a2a2a; /* Card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news__card-content {
  padding: 25px;
}

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

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

.page-news__card-title a:hover {
  color: #007bff;
}

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

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

/* Image with Text Layout */
.page-news__image-with-text {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.page-news__content-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__image-text-content {
  flex: 2;
  min-width: 300px;
  color: #e0e0e0;
}

.page-news__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Call to Action Buttons */
.page-news__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
  background: #007bff;
  border-color: #007bff;
  transform: translateY(-2px);
}

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

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

.page-news__login-button {
  background: #EA7C07; /* Custom login color */
  border-color: #EA7C07;
}

.page-news__login-button:hover {
  background: #d46b00;
  border-color: #d46b00;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-news__faq-item {
  background-color: #2a2a2a; /* Slightly lighter dark background */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-news__faq-item summary:hover {
  background-color: #3a3a3a;
}

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

.page-news__faq-qtext {
  flex-grow: 1;
}

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

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

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

/* CTA Section at the bottom */
.page-news__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #007bff);
  color: #ffffff;
  margin-top: 40px;
}

.page-news__cta-title {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f8ff;
}

.page-news__large-button {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }

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

  .page-news__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-news__hero-content,
  .page-news__content-area,
  .page-news__cta-section,
  .page-news__news-grid,
  .page-news__image-with-text,
  .page-news__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

  .page-news__image-with-text {
    flex-direction: column;
  }

  .page-news__content-image {
    min-width: unset;
    width: 100%;
  }

  .page-news__image-text-content {
    min-width: unset;
    width: 100%;
  }

  /* Image and Video Responsive - IMPORTANT */
  .page-news img,
  .page-news video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Button Responsive - IMPORTANT */
  .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 {
    flex-direction: column !important;
    gap: 15px;
  }

  .page-news__cta-title {
    font-size: 1.8em;
  }

  .page-news__large-button {
    padding: 16px 30px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }

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

  .page-news__cta-title {
    font-size: 1.6em;
  }
}