.page-blog {
  color: #333333; /* Dark text for light body background */
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #FFFFFF;
}

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

.page-blog__hero-title {
  font-size: 3.5em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.3em;
  color: #333333;
  margin-bottom: 30px;
}

.page-blog__hero-cta-btn {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__hero-cta-btn:hover {
  background-color: #e0a73b;
  transform: translateY(-2px);
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
}

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

.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__featured-section,
.page-blog__why-y777-section,
.page-blog__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
}

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

.page-blog__article-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

.page-blog__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-blog__article-title a:hover {
  color: #FCBC45;
}

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

.page-blog__read-more-btn {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  background-color: #333333;
}

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

.page-blog__category-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__category-image {
  width: 100%;
  height: 200px; /* Fixed height for category images */
  object-fit: cover;
  display: block;
}

.page-blog__category-title {
  font-size: 1.5em;
  color: #000000;
  margin: 20px 0 10px 0;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
}

.page-blog__featured-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.page-blog__featured-image-wrapper {
  width: 100%;
  max-width: 800px; /* Constrain image width */
  margin: 0 auto;
}

.page-blog__featured-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-blog__featured-text {
  line-height: 1.7;
  font-size: 1.05em;
  color: #444444;
}

.page-blog__featured-article-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-blog__featured-article-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__featured-article-title a:hover {
  color: #FCBC45;
}

.page-blog__featured-paragraph {
  margin-bottom: 20px;
}

.page-blog__sub-section-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 5px;
}

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

.page-blog__advantage-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-blog__advantage-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-blog__advantage-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-blog__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-blog__cta-btn {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__cta-btn:hover {
  background-color: #e0a73b;
  transform: translateY(-2px);
}

.page-blog__cta-image-wrapper {
  width: 100%;
  max-width: 800px;
}

.page-blog__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.2em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
  .page-blog__featured-article-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 30px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-cta-btn {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .page-blog__latest-articles-section,
  .page-blog__categories-section,
  .page-blog__featured-section,
  .page-blog__why-y777-section,
  .page-blog__cta-section {
    padding: 30px 15px;
  }
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__why-y777-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-image-wrapper {
    height: 200px;
  }
  .page-blog__category-image {
    height: 180px;
  }
  .page-blog__featured-content {
    padding: 20px;
  }
  .page-blog__featured-article-title {
    font-size: 1.6em;
  }
  .page-blog__sub-section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-btn {
    padding: 15px 30px;
    font-size: 1.2em;
  }

  /* Critical: Prevent content area images from overflowing */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image,
  .page-blog__article-image,
  .page-blog__category-image,
  .page-blog__featured-image,
  .page-blog__cta-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__featured-article-title {
    font-size: 1.4em;
  }
  .page-blog__sub-section-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.95em;
  }
  .page-blog__cta-btn {
    padding: 12px 25px;
    font-size: 1.1em;
  }
}