/* style/blog.css */
.page-blog {
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

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

.page-blog__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  text-align: center;
  padding: 0 20px;
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 15px;
}

.page-blog__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: rgba(255, 241, 232, 0.8);
  margin-bottom: 30px;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.3);
  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 6px 20px rgba(255, 176, 74, 0.4);
}

.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

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

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

.page-blog__section-title--dark-text {
  color: #140C0C; /* Dark text for light background */
}

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

.page-blog__post-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px 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-thumbnail {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #6A1E1E; /* Border */
}

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

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

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: rgba(255, 241, 232, 0.7);
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 0.85em;
  color: rgba(255, 241, 232, 0.5);
  margin-top: auto;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background: transparent;
  border: 2px solid #6A1E1E; /* Border */
  color: #FFF1E8; /* Text Main */
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background-color: #6A1E1E; /* Border */
  color: #ffffff;
}

.page-blog__btn-secondary--dark-text {
  color: #140C0C; /* Dark text for light background */
  border-color: #140C0C;
}

.page-blog__btn-secondary--dark-text:hover {
  background-color: #140C0C;
  color: #ffffff;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #F3C54D; /* Gold as light background for contrast */
  color: #140C0C; /* Dark text for light background */
}

.page-blog__description--dark-text {
  color: rgba(20, 12, 12, 0.8);
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__description {
    font-size: 1em;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__post-excerpt {
    font-size: 0.9em;
  }
  .page-blog__latest-articles,
  .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__hero-image-wrapper,
  .page-blog__post-card,
  .page-blog__post-link,
  .page-blog__cta-buttons,
  .page-blog__articles-grid,
  .page-blog__container,
  .page-blog__latest-articles,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-blog__post-thumbnail {
    height: auto; /* Allow height to adjust for mobile */
  }
  /* Mobile button responsiveness */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .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;
  }
  .page-blog__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
}