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

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small fixed top padding, as body handles header offset */
  margin-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

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

.page-blog__hero-content {
  padding: 30px 20px;
  background: #ffffff; /* Light background for text block */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: -80px auto 0; /* Overlap slightly with the image for visual effect */
  position: relative;
  z-index: 10;
}

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #C91F17; /* Brand color for title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
  max-width: 100%;
  box-sizing: border-box;
  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: none;
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4);
}

/* --- General Sections & Containers --- */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #C91F17;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #E6B800; /* Gold accent */
  border-radius: 2px;
}

.page-blog__section-title--white {
  color: #FFF5E1;
}
.page-blog__section-title--white::after {
  background: #FFF5E1;
}

.page-blog__light-bg {
  background: #ffffff;
  padding: 60px 0;
}

.page-blog__dark-bg {
  background: #B71C1C; /* Custom background color */
  padding: 60px 0;
  color: #FFF5E1; /* Text Main for dark background */
}

.page-blog__dark-section {
  background: #C91F17; /* Main brand color for dark section */
  color: #ffffff;
  padding: 60px 0;
}

.page-blog__description--white {
  color: #ffffff;
}

/* --- Latest Posts Grid --- */
.page-blog__latest-posts {
  margin-bottom: 40px;
}

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

.page-blog__post-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  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 20px 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-image {
  width: 100%;
  height: 220px;
  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.4em;
  font-weight: 600;
  color: #C91F17;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog__post-date {
  font-size: 0.85em;
  color: #888888;
  text-align: right;
}

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

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

.page-blog__category-card {
  background: #D32F2F; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #FFF5E1; /* Text Main color */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

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

.page-blog__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #FFF5E1;
  margin: 0;
}

/* --- About Section --- */
.page-blog__about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-blog__about-content p {
  font-size: 1.05em;
  color: #444444;
  margin-bottom: 20px;
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #C91F17; /* Brand color for text */
  border: 2px solid #C91F17;
}

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

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

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #C91F17; /* Brand color for FAQ question */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17; /* Brand color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #444444;
}
.page-blog__faq-answer p {
  margin: 0;
  font-size: 1em;
}
.page-blog__faq-answer a {
  color: #E53935; /* Auxiliary color for links in FAQ answers */
  text-decoration: underline;
}

/* --- CTA Section --- */
.page-blog__cta-section {
  text-align: center;
  padding: 80px 0;
  margin-top: 40px;
}

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

/* --- Responsive Design --- */

/* General images responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* @media for tablets and larger mobiles (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.2em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__category-title {
    font-size: 1.1em;
  }
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* @media for smaller desktop/larger tablet (max-width: 849px) for hero image */
@media (max-width: 849px) {
  .page-blog__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}

/* @media for mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog {
    font-size: 15px;
  }
  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section - Mobile */
  .page-blog__hero-section {
    margin-bottom: 30px;
    padding-top: 10px;
  }
  .page-blog__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .page-blog__main-title {
    font-size: 1.8em;
    line-height: 1.3;
  }
  .page-blog__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Section Titles - Mobile */
  .page-blog__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  /* Latest Posts - Mobile */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.15em;
  }
  .page-blog__post-excerpt {
    font-size: 0.9em;
  }

  /* Categories - Mobile */
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-blog__category-image {
    height: 120px;
  }
  .page-blog__category-title {
    font-size: 1em;
  }

  /* About Section - Mobile */
  .page-blog__about-content p {
    font-size: 0.95em;
  }

  /* FAQ Section - Mobile */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 1em;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Section - Mobile */
  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .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 {
    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 {
    display: flex;
    flex-direction: column;
  }
  /* Generic content area images */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
  }
}