.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-section {
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* White text for dark background */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-blog__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
  font-weight: bold;
}

.page-blog__tagline {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for button */
  padding: 15px 30px;
  border-radius: 8px;
  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__cta-button:hover {
  background-color: #e0a53a;
  transform: translateY(-2px);
}

.page-blog__articles-overview {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-blog__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.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.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  min-height: 70px; /* Ensure consistent title height for layout */
  font-weight: bold;
}

.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: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-list li a {
  display: block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-list li a:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__cta-section {
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-blog__cta-content {
  max-width: 900px;
}

.page-blog__cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__cta-button--register:hover {
  background-color: #f0f0f0;
}

.page-blog__cta-button--download {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__cta-button--download:hover {
  background-color: #e0a53a;
}

.page-blog__about-panaloko {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-blog__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #444444;
}

.page-blog__copyright {
  padding: 20px 0;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  font-size: 0.9em;
}

.page-blog__copyright-text {
  margin: 0;
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
  .page-blog__main-title {
    font-size: 2.5em;
  }
  .page-blog__tagline {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
    min-height: auto; /* Allow title height to adjust on mobile */
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 100%;
  }
  /* General image rules for content area to prevent overflow and ensure minimum size */
  .page-blog__articles-overview img, 
  .page-blog__about-panaloko img {
    max-width: 100%;
    height: auto; 
    min-width: 200px;
    min-height: 200px;
  }
  /* Override for specific elements if their default size makes them too small */
  .page-blog__article-image {
    min-width: unset; /* Let card image adjust if necessary, but it's already 200px min */
    min-height: unset;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__tagline {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
}