.page-blog {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1A1A2E 0%, #0D0D1A 100%);
  border-bottom: 2px solid rgba(233, 69, 96, 0.3);
}

.page-blog__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

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

.page-blog__hero-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.page-blog__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #E94560;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 40px;
}

.page-blog__latest-posts-section,
.page-blog__categories-section,
.page-blog__cta-section,
.page-blog__archive-section,
.page-blog__newsletter-section,
.page-blog__about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-blog__post-card,
.page-blog__category-card {
  background: rgba(26, 26, 46, 0.8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

.page-blog__card-title a:hover {
  color: #ffffff;
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #E94560;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

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

.page-blog__category-card {
  text-align: center;
  padding: 30px;
}

.page-blog__category-title {
  font-size: 1.6em;
  margin-bottom: 15px;
}

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

.page-blog__category-title a:hover {
  color: #ffffff;
}

.page-blog__category-description {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

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

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

.page-blog__button--secondary {
  background-color: #1A1A2E;
  border: 2px solid #E94560;
}

.page-blog__button--secondary:hover {
  background-color: #E94560;
  border-color: #E94560;
}

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

.page-blog__cta-section {
  background: linear-gradient(45deg, #E94560 0%, #b8374d 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.95);
}

.page-blog__cta-image {
  margin-top: 30px;
}

.page-blog__cta-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__archive-list p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-blog__archive-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__archive-list a:hover {
  color: #E94560;
}

.page-blog__newsletter-section {
  text-align: center;
  background-color: #1A1A2E;
  padding: 60px 20px;
  border-radius: 10px;
  margin-top: 60px;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__newsletter-input {
  padding: 15px 20px;
  border-radius: 5px;
  border: 2px solid #E94560;
  background-color: #0D0D1A;
  color: #ffffff;
  font-size: 1em;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
}

.page-blog__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.page-blog__button--submit {
  flex-shrink: 0;
}

.page-blog__about-section p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.page-blog__about-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__about-footer {
  text-align: center;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
}

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

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

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

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

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

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

  .page-blog__newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__newsletter-input {
    max-width: 100%;
  }

  /* Ensure content area images are responsive and not smaller than 200px */
  .page-blog__post-card img,
  .page-blog__cta-image img,
  .page-blog__about-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum width for content images */
    min-height: 200px; /* Enforce minimum height for content images */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__cta-section,
  .page-blog__archive-section,
  .page-blog__newsletter-section,
  .page-blog__about-section {
    padding: 30px 15px;
  }

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

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

  .page-blog__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}