/* style/blog.css */
.page-blog {
  color: #ffffff; /* Light text for dark body background */
  background-color: #0F131C; /* Ensuring consistency with body background */
  padding-top: var(--header-offset, 120px);
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

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

.page-blog__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-blog__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 800px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-blog__latest-posts {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

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

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

.page-blog__post-card {
  background-color: #1A202C;
  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 {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

.page-blog__cta-section {
  background-color: #1A202C;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-blog__cta-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

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

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

.page-blog__cta-button--primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

.page-blog__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-blog__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  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.4em;
  }
  .page-blog__post-title {
    font-size: 1.4em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
    padding: 0 10px;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-thumbnail {
    height: 200px; /* Ensure images are not too small */
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__post-excerpt {
    font-size: 0.95em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 80%;
    margin: 0 auto;
  }
  /* Ensure content images are not overflowing */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-card img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    width: 90%;
    padding: 15px 20px;
  }
}