.page-blog {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #F4F7FB;
  overflow: hidden;
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__description {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-blog__posts-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Card BG */
}

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

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__post-card {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px 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-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title:hover {
  color: #2F6BFF; /* Main Color on hover */
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog__post-date {
  font-size: 0.85rem;
  color: #6FA3FF; /* Auxiliary Color */
  display: block;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__view-all-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-blog__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: #2F6BFF; /* Main Color as dark bg */
  color: #ffffff; /* White text for contrast */
}

.page-blog__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent; /* Default transparent border */
  cursor: pointer;
  box-sizing: border-box; /* Crucial for max-width 100% */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-blog__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border-color: #2F6BFF; /* Border */
}

.page-blog__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog__posts-section {
    padding: 40px 15px;
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain max width for single column buttons */
    margin: 0 auto; /* Center buttons */
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  /* All images must be responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers must be responsive */
  .page-blog__hero-section,
  .page-blog__posts-section,
  .page-blog__cta-section,
  .page-blog__post-card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific image container adjustments */
  .page-blog__post-image {
    height: 180px; /* Adjust height for mobile card images */
  }

  /* Video section (if any, though not explicitly in this blog page) */
  .page-blog__video-section {
    padding-top: 10px !important; /* Small top padding for video section on mobile */
  }

  /* All buttons must be responsive */
  .page-blog__cta-button,
  .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; /* Ensure padding is maintained for content */
    padding-right: 15px; /* Ensure padding is maintained for content */
  }

  /* Button containers mobile adaptation */
  .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;
    flex-direction: column !important; /* Stack buttons vertically on mobile */
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-blog__post-title {
    font-size: 1.2rem;
  }

  .page-blog__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
}