.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-blog__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-blog__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Pull content slightly over the image for visual hierarchy */
  background-color: rgba(10, 10, 10, 0.85); /* Semi-transparent dark background for text readability */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(38, 169, 224, 0.5);
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border-color: #26A9E0;
}

.page-blog__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
  margin-left: 15px;
}

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

.page-blog__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-blog__section-subtitle {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__latest-articles {
  padding: 60px 0;
}

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

.page-blog__article-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #26A9E0;
  min-height: 450px; /* Ensure cards have a minimum height */
  display: flex;
  flex-direction: column;
}

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

.page-blog__card-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistent card images */
  overflow: hidden;
}

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

.page-blog__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.page-blog__card-title a:hover {
  color: #ffffff;
}

.page-blog__card-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__card-link:hover {
  color: #ffffff;
}

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

.page-blog__categories {
  padding: 60px 0;
}

.page-blog__category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-blog__category-card {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(38, 169, 224, 0.3);
  white-space: nowrap;
  max-width: 100%; /* Ensure category cards are responsive */
  box-sizing: border-box;
}

.page-blog__category-card:hover {
  background-color: #1e87c0;
  transform: translateY(-3px);
}

.page-blog__why-read {
  padding: 80px 0;
}

.page-blog__why-read-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-blog__why-read-text {
  flex: 1;
}

.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-blog__benefits-item {
  background-color: #1a1a1a;
  border-left: 4px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-blog__benefits-item strong {
  color: #26A9E0;
}

.page-blog__why-read-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-blog__why-read-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px;
}

.page-blog__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  width: 100%; /* Desktop width */
}

.page-blog__video-link-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-blog__faq-section {
  padding: 60px 0;
}

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

.page-blog__faq-item {
  background-color: #1a1a1a;
  border: 1px solid #26A9E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #0a0a0a;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #ccc;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-blog__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .page-blog__why-read-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__hero-content {
    margin-top: -80px;
    padding: 20px 10px;
  }

  .page-blog__main-title {
    font-size: 2rem;
  }

  .page-blog__hero-description,
  .page-blog__section-subtitle {
    font-size: 1rem;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
    padding-top: 30px;
  }

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

  .page-blog__article-card {
    min-height: auto;
  }

  .page-blog__category-grid {
    padding: 0 15px;
    gap: 10px;
  }

  .page-blog__category-card {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-blog__why-read-content {
    padding: 0 15px;
  }

  .page-blog__video-container {
    padding-bottom: 75%; /* Adjust for mobile aspect ratio if needed, or keep 16:9 */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px;
  }
  
  .page-blog__video-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

  /* 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,
  .page-blog__hero-image-wrapper,
  .page-blog__why-read-image-wrapper,
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    margin-top: -60px;
  }

  .page-blog__main-title {
    font-size: 1.6rem;
  }

  .page-blog__hero-description {
    font-size: 0.9rem;
  }

  .page-blog__section-title {
    font-size: 1.5rem;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 20px;
  }

  .page-blog__category-card {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .page-blog__benefits-item {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
}