.page-blog {
  background-color: #140C0C;
  color: #FFF1E8;
  font-family: Arial, sans-serif;
}

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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 20px; /* Small padding below hero content */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(20, 12, 12, 0.8) 0%, #140C0C 100%);
  margin-top: -100px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 1;
}

.page-blog__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF1E8;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF1E8;
}

.page-blog__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-blog__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF1E8;
  padding-top: 20px;
}

.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #140C0C;
}

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

.page-blog__post-card {
  background-color: #2A1212;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #6A1E1E;
}

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

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F3C54D; /* Gold color for titles */
  line-height: 1.3;
}

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

.page-blog__post-excerpt {
  font-size: 1em;
  line-height: 1.5;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFB04A;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #F3C54D;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-blog__view-all-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-blog__cta-section {
  background-color: #2A1212;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #6A1E1E;
}

.page-blog__cta-content {
  max-width: 800px;
}

.page-blog__cta-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #FFF1E8;
  margin-bottom: 40px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.5);
}

.page-blog__cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 176, 74, 0.7);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }
  .page-blog__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }
  .page-blog__hero-title {
    font-size: clamp(2em, 7vw, 2.5em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-thumbnail {
    height: 200px; /* Ensure images are not too small */
  }
  .page-blog__post-content img, .page-blog__post-grid img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__post-card img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all content images are responsive */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum width for images */
    min-height: 200px; /* Minimum height for images */
    object-fit: cover;
  }
  .page-blog__post-card {
    min-height: 450px; /* Ensure card has enough height for content */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    padding: 20px 10px;
    margin-top: -40px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8em, 8vw, 2.2em);
  }
  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1em;
  }
}