.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Body background is #000000, so text should be white */
  background-color: #000000;
}

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

.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-news__hero-button,
.page-news__read-more-button,
.page-news__cta-button {
  display: inline-block;
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-news__hero-button:hover,
.page-news__read-more-button:hover,
.page-news__cta-button:hover {
  background-color: #1a7bb0;
  transform: translateY(-2px);
}

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

.page-news__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-news__latest-news-section,
.page-news__featured-categories-section,
.page-news__guides-tips-section,
.page-news__faq-section,
.page-news__cta-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for sections */
  margin-bottom: 20px;
  border-radius: 10px;
}

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

.page-news__article-card {
  background-color: #1a1a1a; /* Darker background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

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

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

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

.page-news__article-title a:hover {
  color: #4dc3ff;
}

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

.page-news__article-summary {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  align-self: flex-start;
  background-color: #EA7C07; /* Login color for secondary action */
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9em;
}

.page-news__read-more-button:hover {
  background-color: #c76706;
}

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

.page-news__category-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: #26A9E0; /* Main brand color on hover */
  color: #ffffff;
}

.page-news__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: inherit;
}

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

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

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  background-color: #2a2a2a;
  transition: background-color 0.3s ease;
}

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

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

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
  color: #EA7C07;
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  line-height: 1.6;
}

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

.page-news__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #0d0d0d;
  border-radius: 10px;
}

.page-news__cta-button {
  background-color: #EA7C07; /* Login color */
  font-size: 1.2em;
  padding: 18px 40px;
}

.page-news__cta-button:hover {
  background-color: #c76706;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.9em;
    margin-bottom: 40px;
  }
  .page-news__articles-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-card,
  .page-news__category-card {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-news__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-categories-section,
  .page-news__guides-tips-section,
  .page-news__faq-section,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__faq-question,
  .page-news__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-button,
  .page-news__read-more-button,
  .page-news__cta-button {
    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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__hero-section {
    height: 350px;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__hero-button,
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__category-title {
    font-size: 1.3em;
  }
  .page-news__faq-question {
    font-size: 1em;
  }
}