.page-blog {
  color: #ffffff; /* Body background is dark, so text should be light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-blog__dark-bg {
  background: #000000; /* Body background is #000000 */
  color: #ffffff;
}

.page-blog__light-bg {
  background: #f0f0f0;
  color: #333333;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0; /* Brand color for title */
  margin-bottom: 20px;
  /* No fixed font-size for H1, relying on responsive design and default browser sizing */
}

.page-blog__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

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

.page-blog__post-card, .page-blog__news-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 8px;
  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; /* Light text for cards on dark background */
}

.page-blog__post-card:hover, .page-blog__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__post-link, .page-blog__news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__post-image-wrapper, .page-blog__news-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-blog__post-thumbnail, .page-blog__news-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog__post-content, .page-blog__news-content {
  padding: 20px;
}

.page-blog__post-title, .page-blog__news-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color for article titles */
}

.page-blog__post-excerpt, .page-blog__news-excerpt {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-blog__post-date, .page-blog__news-date {
  font-size: 0.85em;
  color: #bbb;
}

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

.page-blog__btn-primary {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-blog__btn-primary:hover {
  background-color: #1e87b7;
}

.page-blog__btn-secondary {
  display: inline-block;
  background: #EA7C07; /* Login color for secondary button */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-blog__btn-secondary:hover {
  background-color: #c96806;
}

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

.page-blog__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.page-blog__faq-answer {
  padding: 15px 25px;
  font-size: 0.95em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-blog__cta-banner {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #26A9E0, #000000); /* Gradient with brand color */
  color: #ffffff;
  border-radius: 8px;
  margin: 40px 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-blog__hero-title {
    font-size: 2em; /* Adjusted for mobile, using clamp() would be ideal but restricted */
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    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-blog__container,
  .page-blog__cta-banner {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__post-grid, .page-blog__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-image-wrapper, .page-blog__news-image-wrapper {
    height: 180px;
  }
  .page-blog__post-card, .page-blog__news-card {
    padding: 0;
  }
  .page-blog__post-title, .page-blog__news-title {
    font-size: 1.2em;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-blog__faq-answer {
    padding: 10px 20px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__section, .page-blog__card, .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__hero-image-wrapper, .page-blog__post-image-wrapper, .page-blog__news-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}