.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Minimal padding-top, relying on body padding-top from shared.css */
  padding-bottom: 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #C61F1F 0%, #E53030 100%); /* Brand colors as gradient */
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFF1E8;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 90%;
}

.page-blog__hero-description {
  font-size: 1.15rem;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 80%;
}

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background: transparent;
  color: #FFB04A; /* Gold */
  border: 2px solid #FFB04A; /* Gold border */
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C; /* Dark background color for hover text */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Posts Section */
.page-blog__posts-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__post-card {
  background-color: #2A1212; /* Card BG */
  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;
  height: 100%;
}

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

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

.page-blog__post-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

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

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

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

.page-blog__post-date {
  font-size: 0.85rem;
  color: #6A1E1E; /* Border color for subtle date */
  text-align: right;
  display: block;
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #7E0D0D; /* Deep Red */
  color: #FFF1E8;
}

.page-blog__cta-title {
  font-size: 2.8rem;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__cta-title {
    font-size: 2.2rem;
  }
  .page-blog__cta-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* Hero section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Minimal padding-top for mobile */
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    min-height: 250px;
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
    max-width: 100%;
  }
  .page-blog__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 100%;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Posts Section */
  .page-blog__posts-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__post-card {
    margin: 0 15px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.2rem;
  }
  .page-blog__post-excerpt {
    font-size: 0.9rem;
  }
  .page-blog__view-all-button-container {
    margin-top: 40px;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 2rem;
  }
  .page-blog__cta-description {
    font-size: 1rem;
    max-width: 100%;
  }

  /* Universal image responsiveness for content area */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__post-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-blog__container > .page-blog__section-title,
  .page-blog__container > .page-blog__view-all-button-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}