/* Base 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: #F5F7FA; /* Body background from custom colors */
}

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Minimal top padding */
  margin-bottom: 40px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 30px 15px 50px;
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-blog__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
}

.page-blog__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-blog__introduction p,
.page-blog__categories p,
.page-blog__why-choose p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333333;
}

.page-blog__introduction ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-blog__introduction li {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333333;
}

/* Latest Posts Grid */
.page-blog__latest-posts {
  background: #ffffff;
  padding: 60px 0;
}

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

.page-blog__post-card {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-thumbnail-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

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

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #E53935;
}

.page-blog__post-meta {
  font-size: 14px;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
}