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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
}

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

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

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-blog__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-blog__button--primary:hover {
  background-color: #E0A83A;
  transform: translateY(-2px);
}

.page-blog__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

.page-blog__button--secondary:hover {
  background-color: #1A1A1A;
  transform: translateY(-2px);
}

.page-blog__latest-articles,
.page-blog__categories-section,
.page-blog__cta-section,
.page-blog__about-tg77711 {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

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

.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: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency, ensures >=200px */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  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;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
  color: #E0A83A;
  text-decoration: underline;
}

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

.page-blog__category-card {
  background-color: #000000;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px; /* Space for title */
}

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

.page-blog__category-image {
  width: 100%;
  height: 180px; /* Ensures >=200px on wider screens */
  object-fit: cover;
  margin-bottom: 15px;
  border-bottom: 3px solid #FCBC45;
}

.page-blog__category-title {
  font-size: 1.4em;
  color: #FFFFFF;
  padding: 0 15px;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #000000, #333333);
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 80px;
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto;
  color: #FFFFFF;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-blog__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #F0F0F0;
  line-height: 1.5;
}

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.page-blog__button--cta:hover {
  background-color: #E0A83A;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__about-tg77711 p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #444444;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }

  .page-blog__hero-description {
    font-size: 1.1em;
  }

  .page-blog__section-title {
    font-size: 2.2em;
  }

  .page-blog__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    height: auto;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }

  .page-blog__hero-content {
    padding: 30px 20px;
  }

  .page-blog__hero-title {
    font-size: 2.2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
    max-width: 300px;
  }

  .page-blog__articles-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image, .page-blog__category-image {
    max-width: 100%;
    height: auto; /* Ensures images don't overflow */
  }

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

  .page-blog__cta-section {
    padding: 60px 20px;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-description {
    font-size: 1.1em;
  }

  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .page-blog__article-card, .page-blog__category-card {
    margin-bottom: 20px;
  }
  .page-blog__text-block p {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }
}