.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color, #B71C1C); /* Fallback to default dark red if shared var not set */
  color: var(--text-main-color, #FFF5E1); /* Default light text for dark background */
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset is handled by body */
  background: linear-gradient(180deg, #C91F17 0%, #E53935 100%); /* Brand colors for hero background */
  color: #FFF5E1; /* Light text for dark background */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

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

.page-blog__intro-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #FFF5E1;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333; /* Dark text for gold button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1; /* Light text for dark background */
}

.page-blog__post-list-section {
  padding: 60px 0;
  background-color: var(--background-color, #B71C1C);
}

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

.page-blog__post-card {
  background-color: var(--card-bg-color, #D32F2F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #FFF5E1; /* Light text for dark card background */
}

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

.page-blog__post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
  color: #FFF5E1;
}

.page-blog__card-date {
  font-size: 0.9rem;
  color: #F2B544; /* Border color for date contrast */
  margin-top: auto;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: #FFF5E1;
  border: 2px solid #F2B544; /* Border color */
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__btn-secondary:hover {
  background-color: #F2B544;
  color: #333333;
}

.page-blog__cta-banner-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-red-color, #7A0E0E);
  color: #FFF5E1;
}

.page-blog__cta-banner-section .page-blog__container {
  background-color: transparent;
  padding: 40px 20px;
  border-radius: 10px;
}

.page-blog__cta-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #FFF5E1;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #B71C1C);
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #F2B544);
  overflow: hidden;
  background: var(--card-bg-color, #D32F2F);
}
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: #FFF5E1;
}
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: #C91F17; /* Slightly darker brand color */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color, #F4D34D);
  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: #C91F17; /* Primary color for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-blog__hero-image img {
    border-radius: 4px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog__intro-text {
    font-size: 1rem;
  }

  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .page-blog__post-card img {
    
  }

  .page-blog__card-title {
    font-size: 1.2rem;
  }

  .page-blog__card-excerpt {
    font-size: 0.9rem;
  }

  .page-blog__btn-secondary {
    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-banner-section {
    padding: 50px 0;
  }

  .page-blog__cta-heading {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-blog__cta-description {
    font-size: 1rem;
  }

  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 1rem; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }

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

  .page-blog__container,
  .page-blog__post-list-section .page-blog__container,
  .page-blog__cta-banner-section .page-blog__container,
  .page-blog__faq-section .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}