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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding as per requirement */
  padding-bottom: 40px;
  background-color: #F4F7FB;
  text-align: center;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-blog__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-blog__btn-secondary:hover {
  background: #E0EFFF;
  transform: translateY(-2px);
}

.page-blog__section {
  padding: 60px 0;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #2F6BFF;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__blog-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D;
}

.page-blog__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__blog-card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  overflow: hidden;
}

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

.page-blog__blog-card-content {
  padding: 20px;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__blog-card-title a {
  color: #2F6BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__blog-card-title a:hover {
  color: #000000;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-blog__blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: #000000;
}

.page-blog__blog-card-readmore {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__blog-card-readmore:hover {
  text-decoration: underline;
}

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

.page-blog__dark-section {
  background: #2F6BFF;
  color: #FFFFFF;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__description {
  color: #FFFFFF;
}

.page-blog__dark-section .page-blog__btn-primary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #FFFFFF;
}

.page-blog__dark-section .page-blog__btn-primary:hover {
  background: #E0EFFF;
  color: #2F6BFF;
}

.page-blog__dark-section .page-blog__btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-blog__dark-section .page-blog__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

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

  .page-blog__hero-section {
    padding-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: 2em; /* Adjusted for mobile */
    margin-bottom: 10px;
  }

  .page-blog__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
  }

  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-blog__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-blog__blog-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-blog__blog-card-title {
    font-size: 1.2em;
  }

  .page-blog__blog-card-excerpt {
    font-size: 0.9em;
  }

  .page-blog__blog-card-image-wrapper {
    height: 180px; /* Adjusted height for mobile card images */
  }

  /* General image and container responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__hero-image,
  .page-blog__blog-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .page-blog__cta-content {
    padding: 0 15px;
  }

  .page-blog__dark-section .page-blog__btn-primary,
  .page-blog__dark-section .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-blog__blog-slider-track {
    display: flex;
    flex-direction: column;
  }
}