.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.page-blog__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  max-width: 900px;
  padding: 0 15px;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

.page-blog__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  border: none;
}

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

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

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

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

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

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

.page-blog__paragraph {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__paragraph--white {
  color: #f0f0f0;
}

.page-blog__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

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

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

.page-blog__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-blog__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-blog__card-title a:hover {
  text-decoration: underline;
}

.page-blog__card-date {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

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

.page-blog__read-more {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

.page-blog__guides-tips, .page-blog__news-updates {
  padding: 60px 0;
}

.page-blog__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-blog__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #EA7C07;
}

.page-blog__guides-tips .page-blog__sub-title {
  color: #ffffff;
}

.page-blog__image-responsive {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #eaf6fc;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07;
}

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

.page-blog__faq-item:not([open]) .page-blog__faq-answer {
  display: none;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

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

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

.page-blog__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__cta-button, .page-blog__btn-primary, .page-blog__btn-secondary,
.page-blog a[class*="button"], .page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-blog__content-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__image-block {
    order: -1; /* Image appears before text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-blog__hero-content {
    margin-top: 20px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-blog__sub-title {
    font-size: 1.5em;
  }
  .page-blog__paragraph {
    font-size: 0.95em;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__card-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-blog__card-title {
    font-size: 1.1em;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image forced adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/buttons/videos must be responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__post-grid,
  .page-blog__content-grid,
  .page-blog__image-block,
  .page-blog__cta-buttons,
  .page-blog__faq-list,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button forced adaptation */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    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__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }
}