.page-news__hero-section {
  position: relative;
  padding: 80px 20px;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bb6 100%);
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.page-news__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  font-size: 1.1em;
  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: #EA7C07; /* Color for Login/Register */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-news__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-news__latest-news-section,
.page-news__community-section,
.page-news__cta-section {
  padding: 60px 0;
  background: #0a0a0a;
  color: #ffffff;
}

.page-news__in-depth-analysis-section,
.page-news__security-section,
.page-news__faq-section {
  padding: 60px 0;
  background: #1a1a1a;
  color: #ffffff;
}

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

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

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

.page-news__news-card,
.page-news__community-card,
.page-news__security-item {
  background: #1a1a1a;
  border-radius: 10px;
  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,
.page-news__community-card:hover,
.page-news__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__news-card-image,
.page-news__community-card-image,
.page-news__security-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-news__news-card-content,
.page-news__community-card-content,
.page-news__security-item > div {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__news-card-title,
.page-news__community-card-title,
.page-news__security-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.page-news__news-card-title a,
.page-news__community-card-title a,
.page-news__security-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__news-card-title a:hover,
.page-news__community-card-title a:hover,
.page-news__security-title a:hover {
  color: #4dc2f7;
}

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

.page-news__news-card-link {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

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

.page-news__analysis-item {
  background: #0a0a0a;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-news__analysis-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.page-news__analysis-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-news__analysis-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-news__analysis-item .page-news__btn-secondary {
  background: transparent;
  color: #EA7C07;
  border: 2px solid #EA7C07;
  margin-top: 15px;
}

.page-news__analysis-item .page-news__btn-secondary:hover {
  background: #EA7C07;
  color: #ffffff;
}

.page-news__security-item {
  text-align: center;
  background: #0a0a0a;
  padding: 30px;
}

.page-news__security-image {
  height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 20px;
}

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

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

.page-news__security-text {
  color: #cccccc;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.page-news__faq-item {
  background: #0a0a0a;
  border: 1px solid #26A9E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-item[open] {
  background: #1a1a1a;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background: #0a0a0a;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
}

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

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
  user-select: none;
}

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

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

.page-news__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
}

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

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

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

/* General image styling for content areas */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  /* Enforce minimum size for content images */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__analysis-title {
    font-size: 1.8em;
  }
  .page-news__news-card-title,
  .page-news__community-card-title,
  .page-news__security-title {
    font-size: 1.3em;
  }
  .page-news__news-card-image,
  .page-news__community-card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__news-grid,
  .page-news__community-grid,
  .page-news__security-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news__news-card,
  .page-news__community-card,
  .page-news__security-item {
    padding-bottom: 0;
  }
  .page-news__news-card-content,
  .page-news__community-card-content,
  .page-news__security-item > div {
    padding: 20px;
  }
  .page-news__news-card-image,
  .page-news__community-card-image {
    height: 180px;
  }
  .page-news__analysis-item {
    padding: 25px;
  }
  .page-news__analysis-title {
    font-size: 1.6em;
  }
  .page-news__analysis-text {
    font-size: 0.95em;
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  /* Mobile image/video/button overrides */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow smaller images if they are naturally smaller, but still enforce max-width */
    min-height: unset !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__in-depth-analysis-section,
  .page-news__community-section,
  .page-news__security-section,
  .page-news__cta-section,
  .page-news__faq-section,
  .page-news__news-grid,
  .page-news__community-grid,
  .page-news__security-grid,
  .page-news__analysis-item,
  .page-news__news-card,
  .page-news__community-card,
  .page-news__security-item,
  .page-news__hero-cta-buttons,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific overrides for buttons to allow text wrapping */
  .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 !important; /* Ensure inner padding is maintained */
    padding-right: 15px !important;
  }

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