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

.page-blog__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  padding-bottom: 60px;
  background-color: #000000; /* Dark background for hero content */
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-blog__hero-button:hover {
  background-color: #FFD700; /* Brighter gold on hover */
  transform: translateY(-2px);
}

.page-blog__articles-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-blog__articles-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

.page-blog__article-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 250px;
  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.6em;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #000000;
}

.page-blog__article-title a {
  text-decoration: none;
  color: #000000;
  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__article-link {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-blog__article-link:hover {
  color: #FFD700;
}

.page-blog__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-blog__content-wrapper {
  line-height: 1.7;
}

.page-blog__content-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 30px;
  text-align: left;
}

.page-blog__content-subtitle {
  font-size: 2.2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

.page-blog__content-sub-subtitle {
  font-size: 1.8em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid #FCBC45;
}

.page-blog__content-paragraph {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 20px;
}

.page-blog__content-paragraph a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__content-paragraph a:hover {
  text-decoration: underline;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-blog__cta-group {
  text-align: center;
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  min-width: 220px;
  text-align: center;
}

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

.page-blog__cta-button--register:hover {
  background-color: #FFD700;
  transform: translateY(-3px);
}

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

.page-blog__cta-button--download:hover {
  background-color: #222222;
  border-color: #FFD700;
  transform: translateY(-3px);
}

/* Responsive Design */
@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-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__content-title {
    font-size: 2.4em;
  }
  .page-blog__content-subtitle {
    font-size: 1.9em;
  }
  .page-blog__content-sub-subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    padding: 60px 20px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px; /* Ensure images are not too small but still responsive */
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
  .page-blog__article-excerpt {
    font-size: 0.95em;
  }
  .page-blog__content-area {
    padding: 40px 15px;
  }
  .page-blog__content-title {
    font-size: 2em;
  }
  .page-blog__content-subtitle {
    font-size: 1.7em;
  }
  .page-blog__content-sub-subtitle {
    font-size: 1.4em;
  }
  .page-blog__content-paragraph {
    font-size: 1em;
  }
  .page-blog__content-area img {
    max-width: 100%;
    height: auto; /* Mobile content images responsive */
  }
  .page-blog__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 100%;
    min-width: unset;
  }
}

/* Ensure content area images are never smaller than 200px on desktop */
.page-blog__content-area img {
  min-width: 200px;
  min-height: 200px;
}

/* Mobile content area image specific rule */
@media (max-width: 768px) {
  .page-blog__content-area img {
    max-width: 100%;
    height: auto; /* Ensure responsiveness without overflowing */
    min-width: 200px; /* Maintain minimum size even on mobile if possible, but max-width: 100% takes precedence for overflow */
    min-height: 200px;
  }
  /* Specific rule to prevent overflow for any img inside .page-blog */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}