.page-blog {
  color: #ffffff; /* Body background is #1a1a2e (dark), so text must be light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background should be transparent to show body background */
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color overlay */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding-top: 40px; /* Spacing between image and text */
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

.page-blog__cta-button:hover {
  background-color: #1e87b7;
}

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

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

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

.page-blog__article-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* Light text for cards */
  min-width: 200px; /* Minimum width for card to prevent being too small */
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-blog__article-card-content {
  padding: 20px;
}

.page-blog__article-card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-card-title a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__article-card-meta {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-blog__article-card-description {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-blog__read-more-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.page-blog__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

.page-blog__categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.page-blog__category-item a {
  display: block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Prevent category items from breaking in middle */
}

.page-blog__category-item a:hover {
  background-color: #1e87b7;
}

.page-blog__in-depth-guides-content {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker transparent background */
  padding: 40px;
  border-radius: 10px;
}

.page-blog__guide-article {
  margin-bottom: 40px;
}

.page-blog__guide-title {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__guide-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-blog__guide-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-blog__faq-section {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  box-sizing: border-box;
}

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

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
  color: #26A9E0;
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-blog__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

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

.page-blog__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  margin-top: 60px;
}

.page-blog__cta-bottom-title {
  font-size: 2.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-blog__cta-bottom-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__cta-buttons-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

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

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  padding: 15px 35px;
  border: 2px solid #26A9E0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

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


/* Responsive styles */
@media (max-width: 768px) {
  .page-blog__section,
  .page-blog__faq-section,
  .page-blog__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px !important; /* Small top padding for sections, body handles --header-offset */
  }

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

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

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

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

  .page-blog__article-card-image {
    height: 180px;
  }

  .page-blog__article-card-title {
    font-size: 1.2rem;
  }

  .page-blog__categories-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__category-item a {
    width: 100%;
    text-align: center;
  }

  .page-blog__in-depth-guides-content {
    padding: 20px;
  }

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

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

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

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

  .page-blog__cta-buttons-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to the group itself */
  }
  
  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"],
  .page-blog img,
  .page-blog video,
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper,
  .page-blog__article-card,
  .page-blog__in-depth-guides-content,
  .page-blog__cta-bottom-description {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* For images and videos */
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: block !important; /* For images and videos */
  }

  /* Specific padding for content containers on mobile */
  .page-blog__latest-articles-grid,
  .page-blog__categories-list,
  .page-blog__in-depth-guides-content,
  .page-blog__faq-section,
  .page-blog__cta-bottom {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure images do not use filter */
.page-blog img {
  filter: none;
}