/* Base styles for the blog page, assuming a dark body background from shared.css */
.page-blog {
  color: #FFF5E1; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #B71C1C; /* Background */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 450px; /* Adjust as needed */
  margin-bottom: 30px;
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #FFF5E1;
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 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 {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #FFD86A; /* Gold */
  border: 2px solid #FFD86A; /* Gold */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 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-color: #FFD86A;
  color: #7A0E0E; /* Deep Red */
}

.page-blog__btn-outline {
  display: inline-block;
  padding: 8px 15px;
  background-color: transparent;
  color: #FFD86A; /* Gold */
  border: 1px solid #FFD86A; /* Gold */
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Pushes to bottom of flex container */
}

.page-blog__btn-outline:hover {
  background-color: #FFD86A;
  color: #7A0E0E;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-blog__blog-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards stretch */
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-blog__blog-card-title {
  font-size: 1.5em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: #F4D34D; /* Gold */
  margin-top: 10px;
  margin-bottom: 20px;
}

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

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

.page-blog__cta-title {
  font-size: clamp(2em, 4vw, 3em);
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: #FFD86A; /* Gold */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General image responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-blog__hero-image-wrapper {
    height: 250px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__latest-posts-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-blog__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }
  .page-blog__blog-card-image {
    height: 180px;
  }
  .page-blog__blog-card-title {
    font-size: 1.3em;
  }
  .page-blog__blog-card-excerpt {
    font-size: 0.9em;
  }

  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    gap: 15px;
    padding: 0 15px;
  }
  .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;
  }
  
  /* General image responsiveness for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}