.page-blog {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per rules */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1920px; /* Ensure it doesn't stretch too wide */
  margin-bottom: 20px;
}

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF3E6;
  max-width: 100%; /* Prevents overflow */
  margin-bottom: 15px;
  /* No fixed font-size, rely on clamp for responsiveness if needed */
}

.page-blog__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-blog__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #FFF3E6; /* Ensure text color has good contrast */
}

.page-blog__button--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-blog__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-blog__button--secondary {
  background-color: #17191F;
  border: 2px solid #A84F0C;
}

.page-blog__button--secondary:hover {
  transform: translateY(-2px);
  background-color: #2a2d36;
  box-shadow: 0 4px 10px rgba(168, 79, 12, 0.3);
}

.page-blog__posts-section {
  padding: 50px 0;
}

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

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

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FFA53A, #D96800);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-blog__post-card {
  background-color: #17191F;
  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;
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Ensure cards have a consistent minimum height */
}

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

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__post-title a {
  color: #FFF3E6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-blog__post-title a:hover {
  color: #FFA53A;
}

.page-blog__post-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-blog__load-more-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-blog__button--load-more {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-blog__button--load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-image {
    height: 500px;
  }
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-card {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
  .page-blog__hero-image {
    height: 400px;
  }
  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__button {
    width: 80%;
    max-width: 300px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-card {
    min-height: unset; /* Allow height to adjust naturally on mobile */
  }
  /* Mobile content area image constraint */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-thumbnail {
    height: auto; /* Allow auto height for responsive thumbnails */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-image {
    height: 300px;
  }
  .page-blog__main-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__post-content {
    padding: 15px;
  }
}