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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 60px;
  background: linear-gradient(to bottom, #FCE0E0, #ffffff); /* Light gradient background for hero */
}

.page-blog__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333; /* Dark text for light background */
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: #C91F17;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-blog__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F2B544;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: #C91F17;
  color: #FFF5E1; /* Text Main for text on primary red button */
  border: 2px solid #C91F17;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary:hover {
  background: #E53935;
  border-color: #E53935;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-blog__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* General Container & Section Titles */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #C91F17;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

.page-blog__section-title--light {
  color: #FFF5E1; /* Text Main for light text on dark background */
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding-bottom: 60px;
}

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

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

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__post-title {
  font-size: 1.3em;
  color: #C91F17;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-blog__view-all-button-wrapper {
  text-align: center;
}

.page-blog__btn-large {
  padding: 16px 32px;
  font-size: 1.1em;
  min-width: 200px;
}

/* Categories Section */
.page-blog__categories-section {
  background: #f8f8f8;
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-blog__category-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-blog__category-title {
  font-size: 1.4em;
  color: #C91F17;
  margin-bottom: 15px;
}

.page-blog__category-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-blog__category-link {
  display: inline-block;
  padding: 10px 20px;
  background: #E53935;
  color: #FFF5E1;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-blog__category-link:hover {
  background: #C91F17;
}

/* Bottom CTA Section */
.page-blog__cta-bottom-section {
  background: #B71C1C; /* Background color from custom palette */
  color: #FFF5E1; /* Text Main for light text */
  text-align: center;
  padding: 80px 20px;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-blog__faq-item {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-blog__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  transition: color 0.3s ease;
}

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

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

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

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

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

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

/* General image and button responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__category-link {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-buttons,
.page-blog__view-all-button-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}


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

  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 40px;
  }

  .page-blog__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 0 15px;
  }

  .page-blog__hero-content {
    order: 2; /* Content below image on mobile */
    min-width: unset;
  }

  .page-blog__hero-image {
    order: 1; /* Image above content on mobile */
    min-width: unset;
    margin-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to buttons wrapper */
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Container & Section Titles */
  .page-blog__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* Latest Posts Section */
  .page-blog__post-list {
    grid-template-columns: 1fr; /* Single column for posts */
    gap: 20px;
  }

  .page-blog__post-thumbnail {
    height: 180px; /* Adjust height for mobile */
  }

  .page-blog__post-title {
    font-size: 1.1em;
  }

  .page-blog__post-meta,
  .page-blog__post-excerpt {
    font-size: 0.9em;
  }

  .page-blog__view-all-button-wrapper {
    padding: 0 15px; /* Add padding to wrapper */
  }

  .page-blog__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 25px;
  }

  /* Categories Section */
  .page-blog__categories-grid {
    grid-template-columns: 1fr; /* Single column for categories */
    gap: 20px;
  }

  .page-blog__category-card {
    padding: 25px;
  }

  .page-blog__category-title {
    font-size: 1.2em;
  }

  .page-blog__category-description {
    font-size: 0.95em;
  }

  /* Bottom CTA Section */
  .page-blog__cta-bottom-section {
    padding: 50px 15px;
  }

  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-blog__faq-toggle {
    font-size: 1.3em;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Universal image responsive rule for content area */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}