.page-blog {
  font-family: Arial, sans-serif;
  color: #FFF5E1; /* Default text color for the page, assuming dark body background */
  background-color: var(--background-color); /* Inherited from shared.css */
}

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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding for the first section */
  padding-bottom: 40px;
  background-color: #B71C1C;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text overlay */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
  border-radius: 8px;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
  font-size: 1.1rem;
  color: #FFF5E1;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: #FFD86A; /* Gold for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-blog__section-title--light {
  color: #FFF5E1;
}

.page-blog__latest-posts-section,
.page-blog__categories-section,
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Main background color */
  color: #FFF5E1; /* Text color for these sections */
}

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

.page-blog__post-card {
  background-color: #D32F2F; /* Card background color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border color */
}

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 1.4rem;
  color: #FFD86A; /* Gold for post titles */
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-blog__post-meta {
  font-size: 0.9rem;
  color: #F4D34D; /* Gold for meta info */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #FFF5E1;
  line-height: 1.6;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #FFD86A; /* Gold text for secondary button */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid #FFD86A; /* Gold border */
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: #FFD86A;
  color: #7A0E0E; /* Deep Red text on hover */
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.page-blog__category-card {
  background-color: #D32F2F;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFF5E1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid #F2B544;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #C91F17; /* Slightly darker red on hover */
}

.page-blog__category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
}

.page-blog__category-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFD86A;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #C91F17; /* Brand primary color */
  color: #FFF5E1;
}

.page-blog__description--light {
  color: #FFF5E1;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-blog__faq-item {
  background-color: #D32F2F;
  border: 1px solid #F2B544;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFD86A; /* Gold for FAQ questions */
  cursor: pointer;
  background-color: #C91F17; /* Darker red for question background */
  user-select: none;
  list-style: none;
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD86A;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #FFF5E1;
  line-height: 1.6;
  background-color: #D32F2F;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 15px;
    max-width: 90%;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-blog__description {
    font-size: 1rem;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    position: static;
    transform: none;
    padding: 30px 15px;
    background: none; /* Remove background on small screens */
    border-radius: 0;
    max-width: 100%;
    margin-top: -100px; /* Adjust margin to overlay on image */
    color: #FFF5E1;
  }
  .page-blog__hero-image {
    filter: brightness(0.4); /* Darker image for better text contrast */
  }
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 0;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    color: #FFD86A; /* Ensure gold for title */
  }
  .page-blog__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-blog__btn-primary,
  .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-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .page-blog__category-card {
    padding: 15px;
  }
  .page-blog__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 15px 20px;
  }
  /* All images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All containers with images */
  .page-blog__hero-image-wrapper,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__container,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-blog__hero-image-wrapper {
    margin: 0 -15px; /* Adjust for container padding */
  }
  .page-blog__hero-image {
    width: calc(100% + 30px) !important; /* Image spans full viewport */
    margin-left: -15px; /* Adjust for container padding */
    margin-right: -15px;
  }
  .page-blog__hero-content {
    margin-top: -150px; /* Adjust overlay for mobile */
    position: relative;
  }
}