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

.page-blog__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

.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: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #0056b3; /* Darker shade of primary color on hover */
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color */
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

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

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__categories,
.page-blog__about-tg777,
.page-blog__more-resources {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-blog__article-card,
.page-blog__category-card,
.page-blog__resource-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-blog__article-content,
.page-blog__category-card,
.page-blog__resource-card {
  padding: 20px;
}

.page-blog__article-title,
.page-blog__category-title,
.page-blog__resource-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-title a,
.page-blog__category-title a,
.page-blog__resource-title a {
  color: #007bff; /* Primary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__category-title a:hover,
.page-blog__resource-title a:hover {
  color: #ffc107; /* Auxiliary color on hover */
}

.page-blog__article-excerpt,
.page-blog__category-description,
.page-blog__resource-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #e0a800; /* Darker shade of auxiliary color on hover */
}

.page-blog__posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__list-item {
  display: flex;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.page-blog__list-image {
  width: 300px; /* Fixed width for list item image */
  height: 200px; /* Fixed height */
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__list-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.page-blog__list-title a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__list-title a:hover {
  color: #ffc107;
}

.page-blog__list-excerpt {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-blog__cta-section {
  background-color: #007bff; /* Primary color background */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color for emphasis */
}

.page-blog__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button:hover {
  background-color: #e0a800; /* Darker shade on hover */
  transform: translateY(-3px);
}

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

.page-blog__resources-grid {
  margin-top: 40px;
}

.page-blog__resource-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.page-blog__resource-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-blog__resource-title a {
  color: #007bff;
  text-decoration: none;
}

.page-blog__resource-title a:hover {
  color: #ffc107;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.2em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__list-image {
    width: 250px;
    height: 180px;
  }
  .page-blog__cta-title {
    font-size: 2.4em;
  }
  .page-blog__cta-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
  .page-blog__hero-content {
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-image {
    height: 220px;
  }
  .page-blog__article-content,
  .page-blog__category-card,
  .page-blog__resource-card {
    padding: 15px;
  }
  .page-blog__article-title,
  .page-blog__category-title,
  .page-blog__resource-title {
    font-size: 1.4em;
  }
  .page-blog__article-excerpt,
  .page-blog__category-description,
  .page-blog__resource-description {
    font-size: 0.9em;
  }
  .page-blog__read-more-button {
    padding: 8px 15px;
    font-size: 0.85em;
  }
  .page-blog__list-item {
    flex-direction: column;
  }
  .page-blog__list-image {
    width: 100%;
    height: 200px; /* Ensure images are not smaller than 200px */
    max-width: 100%; /* Important for mobile responsiveness */
  }
  .page-blog__list-content {
    padding: 15px;
  }
  .page-blog__list-title {
    font-size: 1.2em;
  }
  .page-blog__list-excerpt {
    font-size: 0.85em;
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-blog__about-tg777 .page-blog__about-text {
    font-size: 0.95em;
  }
  /* Ensure all content area images are at least 200px */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__hero-image,
  .page-blog__article-image,
  .page-blog__list-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__article-title,
  .page-blog__category-title,
  .page-blog__resource-title {
    font-size: 1.2em;
  }
  .page-blog__list-title {
    font-size: 1.1em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}