/* style/blog.css */

/* Base styles for the page content, ensuring text color contrasts with body background */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main color for dark background */
  background-color: transparent; /* Body handles actual background color */
}

/* Fixed header spacing is handled by shared.css on the body element */
/* .page-blog__hero-section should only have a small top padding */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: #0D0E12; /* Background color */
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px; /* Space between image and text */
  min-width: 200px;
  min-height: 200px;
}

.page-blog__hero-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

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

.page-blog__intro-text {
  font-size: 1.1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main for button text */
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  opacity: 0.9;
}

/* Blog Posts Section */
.page-blog__posts-section {
  padding: 60px 20px;
  background-color: #0D0E12; /* Background color */
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-blog__section-description {
  font-size: 1.1em;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__post-card {
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
}

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

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

.page-blog__post-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, images will cover */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min-size rule */
  min-height: 200px; /* Enforce min-size rule */
}

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-date {
  font-size: 0.9em;
  color: #FFA53A; /* Auxiliary color for date */
  margin-bottom: 15px;
  display: block;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFA53A; /* Auxiliary color */
  font-weight: bold;
  text-decoration: none;
}

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

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main for button text */
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__view-all-button:hover {
  opacity: 0.9;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0D0E12; /* Background color */
  color: #FFF3E6; /* Text Main */
}

.page-blog__dark-section {
  background-color: #0D0E12; /* Specific dark background */
  color: #FFF3E6; /* Light text for dark background */
}

.page-blog__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.2em;
  color: #FFF3E6; /* Text Main */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__cta-button--large {
  padding: 15px 40px;
  font-size: 1.1em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section,
  .page-blog__posts-section,
  .page-blog__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers responsive */
  .page-blog__hero-section,
  .page-blog__post-card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive - not used on this page, but included for completeness if video was here */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-blog__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  /* Buttons responsive */
  .page-blog__cta-button,
  .page-blog__view-all-button,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    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;
    margin-bottom: 10px; /* Add some spacing between stacked buttons */
  }

  /* Button containers responsive */
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex behavior for wrapping */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }

  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__intro-text {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__post-image {
    height: auto; /* Allow auto height on mobile to maintain aspect ratio */
  }
}

/* Ensure content area images are not too small */
.page-blog__post-image {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filters for images */
.page-blog img {
  filter: none;
}