/* style/blog.css */

/* General styles for the Blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f5f5f5; /* Light background for the page */
}

/* Ensure content area is constrained */
.page-blog__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, relies on body for --header-offset */
  padding-bottom: 40px;
  background-color: #ffffff; /* White background for hero */
}

.page-blog__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 0; /* Vertical padding within container */
}

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333; /* Dark text for light background */
}

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #C91F17; /* Brand color for title */
  line-height: 1.2;
}

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

.page-blog__hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.page-blog__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.page-blog__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for button max-width */
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #333333; /* Dark text for light gradient button */
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #C91F17; /* Brand color for text */
  border: 2px solid #C91F17;
}

.page-blog__btn-secondary:hover {
  background-color: #C91F17;
  color: #ffffff;
}

/* Intro Section */
.page-blog__intro-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
  text-align: center;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFF5E1; /* Custom text color */
}

.page-blog__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-blog__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-blog__icon-box {
  flex: 1 1 280px;
  max-width: 320px;
  background-color: #D32F2F; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #FFF5E1; /* Custom text color for dark card */
}

.page-blog__icon-box-media {
  width: 180px; /* Smaller for desktop */
  height: 180px; /* Smaller for desktop */
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #F2B544; /* Border color */
}

.page-blog__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog__icon-box-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow color for title */
}

.page-blog__icon-box-text {
  font-size: 1em;
  line-height: 1.5;
}

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

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__post-media {
  width: 100%;
  height: 200px; /* Fixed height for image container */
  overflow: hidden;
}

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

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

.page-blog__post-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #C91F17; /* Brand color for title */
}

.page-blog__post-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 15px;
  display: block;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

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

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

.page-blog__pagination {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color */
}

.page-blog__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}