.page-blog {
  padding-top: 10px; /* Small top padding to avoid content touching header */
  max-width: 1390px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  overflow-x: hidden;
  color: #333333;
  background-color: #FFFFFF; /* Custom background color */
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  background-color: #F8F8F8; /* Light background for hero section */
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 20px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/5;
  object-fit: cover;
  object-position: center;
  margin-bottom: 20px;
}

.page-blog__hero-content {
  padding: 0 20px;
  max-width: 900px;
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0; /* Primary color */
  margin-bottom: 15px;
  text-align: center;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive font size */
}

.page-blog__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
}

.page-blog__section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #26A9E0; /* Primary color */
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #26A9E0;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-blog__latest-articles {
  margin-bottom: 60px;
}

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

.page-blog__article-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no grayscale */
}

.page-blog__card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0; /* Primary color */
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-blog__card-meta {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-blog__read-more {
  display: inline-block;
  color: #EA7C07; /* Login color for accent */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-blog__read-more:hover {
  color: #26A9E0;
}

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

.page-blog__view-all-button {
  display: inline-block;
  background-color: #26A9E0; /* Primary color */
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.page-blog__view-all-button:hover {
  background-color: #1a7fb4;
  transform: translateY(-2px);
}

.page-blog__about-blog {
  padding: 40px 0;
  text-align: center;
  background-color: #F8F8F8;
  border-radius: 12px;
  margin-bottom: 40px;
}

.page-blog__content-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.page-blog__content-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-blog__hero-section {
    margin-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__section-title {
    margin-top: 40px;
    margin-bottom: 25px;
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-blog__article-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  .page-blog__card-title {
    font-size: 1.2rem;
  }
  .page-blog__card-excerpt {
    font-size: 0.95rem;
  }
  .page-blog__view-all-button {
    padding: 10px 20px;
  }
  .page-blog__about-blog {
    padding: 30px 0;
  }
  .page-blog__content-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-left: 12px;
    padding-right: 12px;
  }
  /* Constraint for all images within .page-blog content area */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    aspect-ratio: 16/7; /* Adjust hero image aspect ratio for smaller screens */
  }
  .page-blog__main-title {
    font-size: clamp(1.1rem, 7vw, 1.75rem);
  }
}

@media (max-width: 549px) {
  .page-blog__article-grid {
    grid-template-columns: 1fr; /* Single column layout on very small screens */
  }
  .page-blog__main-title {
    font-size: clamp(1.1rem, 8vw, 1.6rem);
  }
  .page-blog__hero-description {
    font-size: 0.9rem;
  }
  .page-blog__card-title {
    font-size: 1.1rem;
  }
  .page-blog__card-excerpt {
    font-size: 0.9rem;
  }
  .page-blog__content-text {
    text-align: left;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-blog__article-card img {
  min-width: 200px;
  min-height: 112.5px; /* maintain 16:9 aspect ratio */
}

/* Specific overrides for min-width to ensure no image is smaller than 200px */
.page-blog__article-card .page-blog__card-image[width="400"][height="225"] {
  width: 400px; /* Base size */
  height: 225px;
}

@media (max-width: 768px) {
  .page-blog__article-card .page-blog__card-image {
    width: 100%; /* Responsive to full width of card */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Ensure minimum size is still met */
    min-height: 112.5px;
  }
}