/* style/blog.css */

/* Body background is handled by shared.css, content text color is set based on it */
.page-blog {
  color: #FFF1E8; /* Text Main color for overall page content */
  background-color: #140C0C; /* Background color for the main section */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Rely on body padding for header offset, use small top padding here */
  background-color: #140C0C; /* Background color for the main section */
}

.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;
  padding: 40px 20px 0;
}

.page-blog__hero-title {
  font-weight: bold;
  color: #FFF1E8; /* Text Main color */
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2rem, 3.5vw, 3rem); /* Responsive H1 font size */
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #FFF1E8; /* Text Main color */
  margin-bottom: 30px;
}

.page-blog__hero-cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #FFF1E8; /* Text Main color */
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-blog__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Recent Posts Section */
.page-blog__recent-posts {
  padding: 60px 0;
  background-color: #140C0C; /* Background color */
}

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

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

.page-blog__post-card {
  background-color: #2A1212; /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #6A1E1E; /* Border color */
}

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

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

.page-blog__post-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for image consistency */
  overflow: hidden;
}

.page-blog__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-image {
  transform: scale(1.05);
}

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

.page-blog__post-title {
  font-size: 1.5em;
  color: #F3C54D; /* Gold color for titles */
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

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

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

.page-blog__read-more-button {
  display: inline-block;
  color: #F3C54D; /* Gold color */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more-button:hover {
  color: #FFB04A;
}

/* CTA Section */
.page-blog__cta-section {
  background-color: #2A1212; /* Card BG color */
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid #6A1E1E; /* Border color */
}

.page-blog__cta-title {
  font-size: 2.2em;
  color: #FFF1E8; /* Text Main color */
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #FFF1E8; /* Text Main color */
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #F3C54D; /* Gold color */
  border: 2px solid #F3C54D; /* Gold color border */
}

.page-blog__btn-secondary:hover {
  background-color: #F3C54D;
  color: #140C0C; /* Background color for text on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    padding: 20px 15px 0;
  }
  .page-blog__recent-posts {
    padding: 40px 0;
  }
  .page-blog__section-title {
    margin-bottom: 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-blog__post-card {
    margin-bottom: 20px;
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 15px !important;
    box-sizing: border-box !important;
  }
  .page-blog__hero-image,
  .page-blog__post-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__hero-image-wrapper,
  .page-blog__post-image-wrapper,
  .page-blog__container,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-blog__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is small visual padding */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
}