.page-blog {
  background-color: #140C0C;
  color: #FFF1E8;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding to respect header offset from body */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16/9; /* Default aspect ratio for hero */
}

.page-blog__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.2s ease;
  font-size: 1rem;
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
}

.page-blog__articles-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #F3C54D;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__article-card {
  background-color: #2A1212;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E;
  transition: transform 0.2s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.3rem;
  color: #FFB04A;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #E53030;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #FFF1E8;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #FFB04A;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.2s ease;
  font-size: 1rem;
}

.page-blog__view-all-button:hover {
  transform: translateY(-2px);
}

.page-blog__faq-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-blog__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
}

.page-blog__faq-question {
  font-size: 1.15rem;
  color: #FFB04A;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__faq-answer {
  font-size: 1rem;
  color: #FFF1E8;
}

.page-blog__faq-answer a {
  color: #FFB04A;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-blog__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    padding: 20px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__articles-section,
  .page-blog__faq-section {
    padding: 30px 15px;
  }

  .page-blog__section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 30px;
  }

  .page-blog__articles-grid {
    gap: 20px;
  }

  .page-blog__article-card img {
    max-width: 100%;
    height: auto;
  }
  
  .page-blog__articles-section img,
  .page-blog__faq-section img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 549px) {
  .page-blog__main-title {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image {
    height: 220px;
  }

  .page-blog__article-title {
    font-size: 1.15rem;
  }

  .page-blog__faq-question {
    font-size: 1rem;
  }
}

/* Ensure content area images meet minimum size */
.page-blog__articles-section .page-blog__article-image {
  min-width: 200px;
  min-height: 200px;
}

/* General image rules for content area */
.page-blog img:not(.page-blog__hero-image) {
  width: 100%; /* Ensures images scale within their containers */
  height: auto; /* Maintains aspect ratio */
  min-width: 200px;
  min-height: 200px;
}