/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #000000; /* Dark text for light background */
  background-color: #FFFFFF; /* Page background color */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark section background */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__hero-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, color 0.3s ease;
  margin: 0 10px;
}

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

.page-blog__hero-button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

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

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

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__why-choose-section,
.page-blog__categories-section,
.page-blog__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.page-blog__article-card,
.page-blog__feature-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,
.page-blog__feature-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.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__article-title a {
  color: #000000;
  text-decoration: none;
}

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #e0a53b;
}

.page-blog__categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.page-blog__category-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #000000;
}

.page-blog__category-link:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-blog__posts-list {
  display: grid;
  gap: 40px;
}

.page-blog__post-item {
  display: flex;
  align-items: flex-start;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-blog__post-image {
  width: 350px;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.page-blog__post-content {
  padding: 25px;
  flex-grow: 1;
}

.page-blog__post-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__post-title a {
  color: #000000;
  text-decoration: none;
}

.page-blog__post-title a:hover {
  color: #FCBC45;
}

.page-blog__post-date {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
  display: block;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
}

.page-blog__why-choose-section {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 60px 40px;
}

.page-blog__intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-blog__feature-card {
  padding: 30px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-blog__feature-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__feature-description {
  font-size: 1em;
  color: #333333;
}

.page-blog__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #000000;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-blog__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  z-index: 1;
}

.page-blog__cta-section .page-blog__section-title,
.page-blog__cta-section .page-blog__cta-description,
.page-blog__cta-section .page-blog__cta-buttons {
  position: relative;
  z-index: 2;
}

.page-blog__cta-section .page-blog__section-title {
  color: #FCBC45;
  font-size: 3em;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

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

.page-blog__cta-button--join:hover {
  background-color: #e0a53b;
}

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

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

.page-blog__cta-button--explore {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

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

.page-blog__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__post-image {
    width: 100%;
    height: 250px;
  }
  .page-blog__post-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .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: 1.8em;
  }
  .page-blog__articles-grid,
  .page-blog__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__post-title {
    font-size: 1.4em;
  }
  .page-blog__feature-title {
    font-size: 1.5em;
  }
  .page-blog__cta-section .page-blog__section-title {
    font-size: 2.5em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Mobile content area image constraint */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-button {
    margin: 0 5px;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-content,
  .page-blog__post-content,
  .page-blog__feature-card {
    padding: 15px;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__category-link {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__cta-section .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}

/* Ensure all content images are at least 200px wide/high if not constrained by max-width: 100% */
.page-blog__article-image,
.page-blog__post-image,
.page-blog__cta-image {
  min-width: 200px;
  min-height: 200px;
}