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

.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;
  color: #26A9E0;
  line-height: 1.2;
}

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

.page-news__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: 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;
  max-width: 100%;
}

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

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

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

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

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

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

.page-news__featured-articles,
.page-news__guides-section,
.page-news__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-news__article-card,
.page-news__guide-item {
  background-color: #1a1a1a; /* Slightly lighter dark for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover,
.page-news__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__article-image,
.page-news__guide-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__article-content,
.page-news__guide-item .page-news__guide-text {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title,
.page-news__guide-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__article-title a:hover,
.page-news__guide-title a:hover {
  color: #ffffff;
}

.page-news__article-excerpt,
.page-news__guide-text {
  font-size: 1em;
  line-height: 1.6;
  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;
  margin-top: auto; /* Push to bottom */
}

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

.page-news__categories-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-news__category-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.page-news__category-card:hover {
  background-color: #26A9E0;
  transform: translateY(-5px);
}

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

.page-news__category-card:hover .page-news__category-title {
  color: #ffffff;
}

.page-news__category-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-news__category-card:hover .page-news__category-text {
  color: #ffffff;
}

.page-news__cta-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-news__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

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

.page-news__faq-item {
  background-color: #1a1a1a;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #26A9E0;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  position: relative;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }

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

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

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    min-height: 300px;
  }

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

  .page-news__hero-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

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

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

  .page-news__section-description {
    margin-bottom: 30px;
  }

  .page-news__featured-articles,
  .page-news__guides-section,
  .page-news__categories-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__articles-grid,
  .page-news__guides-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card,
  .page-news__guide-item,
  .page-news__category-card {
    margin: 0 15px;
  }

  .page-news__article-image,
  .page-news__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  .page-news__btn-large {
    padding: 15px 30px;
  }

  /* Ensure all content containers have proper padding and width */
  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__video-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-news__article-title,
  .page-news__guide-title {
    font-size: 1.3em;
  }

  .page-news__category-title {
    font-size: 1.4em;
  }
}