.page-blog {
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

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

.page-blog__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-blog__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-blog__button {
  display: inline-block;
  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;
  white-space: nowrap;
}

.page-blog__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-blog__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

.page-blog__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

.page-blog__articles-section,
.page-blog__cta-section,
.page-blog__about-section,
.page-blog__contact-section {
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent background for sections */
  margin-bottom: 20px;
  border-radius: 10px;
}

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

.page-blog__section-title {
  font-size: 2.8em;
  color: #FCBC45;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-blog__article-card {
  background-color: rgba(255, 255, 255, 0.1);
  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__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  color: #FCBC45;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FFFFFF;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
  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;
}

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

.page-blog__cta-section {
  text-align: center;
  background: linear-gradient(45deg, #000000, #330000);
  border-radius: 10px;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
  border: 2px solid #FCBC45;
}

.page-blog__button--cta:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-blog__about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-blog__about-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__read-more--about {
  font-size: 1.1em;
}

.page-blog__contact-section {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.page-blog__contact-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__button--support,
.page-blog__button--faq {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-blog__button--support:hover,
.page-blog__button--faq:hover {
  background-color: transparent;
  color: #FFFFFF;
}

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

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-blog__hero-section {
    padding: 60px 15px 40px;
  }
  .page-blog__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-blog__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__about-section,
  .page-blog__contact-section {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__article-excerpt {
    font-size: 0.9em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__button--cta {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  .page-blog__about-text {
    font-size: 1em;
  }
  .page-blog__contact-description {
    font-size: 1em;
  }
  .page-blog__contact-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Enforce image responsiveness for content area images */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image,
  .page-blog__about-image {
    width: 100%; /* Ensure these specific images also respect max-width */
  }
  /* Content area images must not be displayed smaller than 200px. These rules ensure they are not. */
  .page-blog__article-image, .page-blog__about-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__hero-image {
    min-width: 100%;
    min-height: 200px; /* Hero image should also meet minimum size */
  }
}

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