/* blog.css */

.page-blog__hero-section {
  position: relative;
  background-color: #100224; /* Dark background for hero */
  padding-bottom: 30px; /* Space below content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 675px; /* Max height for desktop hero */
}

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

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  /* Using font-weight and line-height instead of fixed large font-size */
}

.page-blog__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #D6E2FF;
  margin-bottom: 30px;
}

.page-blog__hero-cta {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.page-blog__hero-cta:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-blog__articles-section {
  background-color: #F4F7FB; /* Light background for article section */
  padding: 60px 0;
}

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

.page-blog__section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border color */
}

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

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card image display */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-blog__article-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1F2D3D;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-meta {
  font-size: 0.875rem;
  color: #6FA3FF;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #1F2D3D;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #2F6BFF;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.page-blog__read-more::after {
  content: ' ';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #2F6BFF;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__article-link:hover .page-blog__read-more::after {
  transform: scaleX(1);
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-blog__main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Responsive font size for H1 */
  }

  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 20px;
  }
  .page-blog__hero-content {
    padding: 15px 15px 0;
  }
  .page-blog__hero-image {
    max-height: 400px;
  }
  .page-blog__hero-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  .page-blog__articles-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid {
    gap: 20px;
  }
  .page-blog__article-title {
    font-size: 1.2rem;
  }
  .page-blog__article-excerpt {
    font-size: 0.95rem;
  }
  .page-blog__view-all-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* Ensure images are responsive and do not overflow */
  .page-blog__articles-grid img,
  .page-blog__article-image {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 549px) {
  .page-blog__main-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-blog__section-title {
    font-size: 1.5rem;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column layout for very small screens */
  }
  .page-blog__article-image {
    height: 200px; /* Adjust height for smaller screens if needed, still >= 200px */
  }
  .page-blog__container {
    padding: 0 15px;
  }
}

/* Content area images CSS size lower bound */
.page-blog img {
  min-width: 200px;
  min-height: 200px;
}