.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  background: #17191F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  font-weight: bold;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Accent color */
  border: 2px solid #A84F0C; /* Border */
  margin-left: 15px;
}

.page-blog__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-blog__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: #FFA53A; /* Accent color */
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-blog__text-block {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-blog__unordered-list,
.page-blog__ordered-list {
  list-style-position: inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-blog__unordered-list li,
.page-blog__ordered-list li {
  color: #FFF3E6;
  margin-bottom: 8px;
}

.page-blog__image-with-text-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.page-blog__image-with-text-block.reverse {
  flex-direction: row-reverse;
}

.page-blog__image-left,
.page-blog__image-right {
  flex: 1;
  min-width: 200px; /* Ensure min image size */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__image-left img,
.page-blog__image-right img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__text-content-left,
.page-blog__text-content-right {
  flex: 1;
}

.page-blog__btn-link {
  color: #FFA53A; /* Accent color */
  text-decoration: underline;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
}

.page-blog__btn-link:hover {
  color: #FFB04D; /* Glow */
}

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

.page-blog__faq-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #FFA53A; /* Accent color */
  background: #17191F; /* Card BG */
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
}

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

.page-blog__cta-section {
  text-align: center;
  padding: 60px 20px;
  background: #17191F; /* Card BG */
  margin-top: 40px;
  border-top: 1px solid #A84F0C;
}

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

.page-blog__related-posts-section {
  padding: 60px 20px;
  text-align: center;
}

.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: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-blog__post-image {
  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.3em;
  margin-bottom: 10px;
}

.page-blog__post-title a {
  color: #FFA53A; /* Accent color */
  text-decoration: none;
}

.page-blog__post-title a:hover {
  color: #FFB04D; /* Glow */
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border color for subtle text */
  margin-bottom: 10px;
}

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

.page-blog__view-all-button-container {
  margin-top: 50px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-blog__container,
  .page-blog__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .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__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

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

  .page-blog__section-title {
    font-size: clamp(1.5em, 7vw, 2em);
    margin-bottom: 30px;
  }

  .page-blog__sub-title {
    font-size: clamp(1.2em, 6vw, 1.8em);
  }

  .page-blog__image-with-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-blog__image-with-text-block.reverse {
    flex-direction: column;
  }

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

  /* Force images to be responsive on mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers with images/buttons/videos are responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__image-with-text-block,
  .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; /* Prevent horizontal scroll */
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-blog__post-image {
    height: auto !important; /* Allow height to adjust for mobile */
  }
}