.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000000 (dark), so text should be light */
  background-color: #000000; /* Ensure main content area matches body background */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-blog__latest-posts .page-blog__section-title {
  color: #333333;
}

.page-blog__latest-posts .page-blog__description {
  color: #555555;
}

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333333;
}

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

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #555555;
}

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

/* Categories Section */
.page-blog__categories {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color dark section */
  color: #ffffff;
}

.page-blog__categories .page-blog__section-title {
  color: #ffffff;
}

.page-blog__categories .page-blog__description {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-blog__category-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-blog__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0 15px;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
  color: #333333;
}

.page-blog__cta-section .page-blog__description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-blog__faq-section .page-blog__section-title {
  color: #26A9E0;
}

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item summary { /* For details/summary structure */
  list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker { /* For Webkit browsers */
  display: none;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #26A9E0;
}

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

.page-blog__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px; /* Mobile padding */
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons on mobile */
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 50px 0;
  }

  .page-blog__post-grid,
  .page-blog__category-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-blog__post-thumbnail,
  .page-blog__category-image {
    height: auto; /* Allow auto height for mobile images */
  }

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive (if any) */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-blog__video-section {
    padding-top: 10px !important; /* Small top padding */
  }

  /* Ensure content containers don't overflow */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Add padding to sections/containers to prevent content touching edges */
  .page-blog__latest-posts .page-blog__container,
  .page-blog__categories .page-blog__container,
  .page-blog__cta-section .page-blog__container,
  .page-blog__faq-section .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Check for specific elements */
.page-blog__dark-bg {
  background-color: #000000;
  color: #ffffff;
}
.page-blog__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}
.page-blog__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Ensure minimum image size for content area */
.page-blog__post-thumbnail,
.page-blog__category-image {
  min-width: 200px;
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-blog__post-thumbnail,
  .page-blog__category-image {
    min-width: unset; /* Allow flexibility on mobile */
    min-height: unset;
  }
}