.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Default text color for dark background */
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

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

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

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

.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

.page-blog__btn-secondary {
  background: #2A1212;
  color: #F3C54D;
  border: 2px solid #6A1E1E;
}

.page-blog__btn-secondary:hover {
  background: #3a1c1c;
  color: #FFF1E8;
}

.page-blog__section {
  padding: 80px 20px;
  text-align: center;
}

.page-blog__dark-bg {
  background-color: #140C0C;
  color: #FFF1E8;
}

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

.page-blog__light-bg .page-blog__section-description,
.page-blog__light-bg .page-blog__article-excerpt,
.page-blog__light-bg .page-blog__article-meta,
.page-blog__light-bg .page-blog__feature-text,
.page-blog__light-bg .page-blog__safety-text,
.page-blog__light-bg .page-blog__faq-answer p {
  color: #555555;
}

.page-blog__light-bg .page-blog__article-title a,
.page-blog__light-bg .page-blog__promo-title a,
.page-blog__light-bg .page-blog__read-more,
.page-blog__light-bg .page-blog__feature-title,
.page-blog__light-bg .page-blog__safety-title,
.page-blog__light-bg .page-blog__faq-qtext {
  color: #C61F1F;
}

.page-blog__light-bg .page-blog__faq-question {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #F3C54D;
}

.page-blog__light-bg .page-blog__section-title {
  color: #C61F1F;
}

.page-blog__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__articles-grid,
.page-blog__feature-grid,
.page-blog__promotions-grid,
.page-blog__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__article-card,
.page-blog__promo-card,
.page-blog__card {
  background-color: #2A1212;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #6A1E1E;
}

.page-blog__light-bg .page-blog__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-blog__article-image,
.page-blog__promo-image,
.page-blog__feature-image,
.page-blog__safety-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #6A1E1E;
}

.page-blog__light-bg .page-blog__article-image,
.page-blog__light-bg .page-blog__promo-image {
  border-bottom: 1px solid #e0e0e0;
}

.page-blog__article-content,
.page-blog__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-title a,
.page-blog__promo-title a {
  color: #F3C54D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__promo-title a:hover {
  color: #FFB04A;
}

.page-blog__article-meta,
.page-blog__promo-meta {
  font-size: 0.9em;
  color: #7E0D0D;
  margin-bottom: 15px;
}

.page-blog__article-excerpt,
.page-blog__promo-excerpt {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFB04A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.page-blog__view-all,
.page-blog__view-more {
  margin-top: 20px;
}

.page-blog__feature-item,
.page-blog__safety-item {
  background-color: #2A1212;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #6A1E1E;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__feature-image,
.page-blog__safety-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__feature-title,
.page-blog__safety-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-blog__feature-text,
.page-blog__safety-text {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 20px;
}

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #C61F1F;
  list-style: none;
  position: relative;
  transition: background-color 0.3s ease;
}

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

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 15px 25px 25px;
  background-color: #ffffff;
  color: #555555;
  font-size: 1em;
}

.page-blog__cta-final {
  padding-bottom: 80px;
}

/* Image and Video Responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-blog__video-container,
.page-blog__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .page-blog {
    font-size: 15px;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-blog__hero-image {
    max-height: 300px;
  }

  .page-blog__hero-content {
    padding: 0;
  }

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

  .page-blog__section {
    padding: 40px 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__section-description {
    margin-bottom: 30px;
  }

  .page-blog__articles-grid,
  .page-blog__feature-grid,
  .page-blog__promotions-grid,
  .page-blog__safety-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-card,
  .page-blog__promo-card,
  .page-blog__feature-item,
  .page-blog__safety-item {
    padding: 20px;
  }

  .page-blog__article-content,
  .page-blog__promo-content {
    padding: 15px;
  }

  .page-blog__article-title,
  .page-blog__promo-title {
    font-size: 1.2em;
  }

  .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% !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,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__view-all,
  .page-blog__view-more {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__faq-section,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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